/* ==========================================================
   One Habitat — page d'attente
   ========================================================== */

@font-face { font-family: "Montserrat"; font-weight: 500; font-style: normal; font-display: swap; src: url("assets/fonts/montserrat-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-style: normal; font-display: swap; src: url("assets/fonts/montserrat-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 800; font-style: normal; font-display: swap; src: url("assets/fonts/montserrat-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant"; font-weight: 500; font-style: italic; font-display: swap; src: url("assets/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant"; font-weight: 600; font-style: normal; font-display: swap; src: url("assets/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }

:root {
  --navy: #0b1d3a;
  --navy-2: #0f2748;
  --navy-3: #16345f;
  --ink: #06101f;
  --gold: #e8d682;
  --gold-hi: #f4e9b4;
  --gold-lo: #c4a650;
  --gold-grad: linear-gradient(180deg, #f6ecb8 0%, #e8d682 50%, #c4a650 100%);
  --text: #eef1f6;
  --muted: #a9b6c9;
  --line: rgba(232, 214, 130, .28);
  --sans: "Montserrat", "Segoe UI", Arial, sans-serif;
  --serif: "Cormorant", Georgia, "Times New Roman", serif;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--text);
  font: 500 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 4px; border-radius: 4px; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
strong { font-weight: 700; }

.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }
.ico { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.kicker {
  font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold);
}
.kicker span { color: var(--text); }
h1 em, h2 em { font-style: normal; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Header ---------- */
.top { position: absolute; inset: 0 0 auto; z-index: 5; }
.top__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 26px; }

.logo { display: inline-block; }
.logo__svg { width: 150px; height: auto; overflow: visible; }
.logo__svg text, .cta__logo text { font-family: var(--sans); fill: #e8d682; }

.top__call {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 18px; border: 1px solid var(--line); border-radius: 999px;
  font-weight: 700; font-size: 15px; letter-spacing: .02em; color: var(--gold-hi);
  transition: background .2s, border-color .2s;
}
.top__call:hover { background: rgba(232, 214, 130, .1); border-color: var(--gold); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 180px 0 96px;
  background:
    radial-gradient(900px 560px at 78% 38%, rgba(66, 112, 180, .30), transparent 65%),
    radial-gradient(700px 500px at 8% 100%, rgba(232, 214, 130, .08), transparent 70%),
    linear-gradient(180deg, #0a1832 0%, var(--navy) 100%);
}
.hero::after { /* motif de toits en filigrane */
  content: ""; position: absolute; inset: auto -5% -1px; height: 320px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='120' viewBox='0 0 240 120'%3E%3Cpath d='M0 120 60 72l60 48 60-48 60 48' fill='none' stroke='%23e8d682' stroke-opacity='.07' stroke-width='1.5'/%3E%3C/svg%3E") bottom / 240px 120px repeat-x;
  -webkit-mask: linear-gradient(transparent, #000); mask: linear-gradient(transparent, #000);
}
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 64px; }
.hero__copy .kicker { margin-bottom: 26px; }
.hero__copy .kicker span { display: block; margin-top: 4px; }
h1 { font-size: clamp(36px, 4.6vw, 60px); font-weight: 800; line-height: 1.08; letter-spacing: -.025em; max-width: 13em; }
.hero__script { margin: 22px 0 38px; font: italic 500 clamp(26px, 2.6vw, 34px)/1.2 var(--serif); color: var(--gold-hi); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border-radius: 999px;
  font-weight: 700; font-size: 15px; letter-spacing: .02em;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--gold-grad); color: var(--ink); box-shadow: 0 10px 30px -10px rgba(232, 214, 130, .6); }
.btn--gold:hover { box-shadow: 0 14px 36px -10px rgba(232, 214, 130, .8); }
.btn--avatar { padding-left: 6px; gap: 12px; }
.btn__avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgba(6, 16, 31, .85); }
.btn--ghost { border: 1px solid var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--gold); background: rgba(232, 214, 130, .08); }

/* Illustration animée : maison sécurisée */
.hero__scene { position: relative; justify-self: end; width: min(100%, 540px); }
.scene { width: 100%; height: auto; overflow: visible; }
.sc-led { animation: blink 2.6s ease-in-out infinite; }
.sc-d2 { animation-delay: .8s; }
.sc-d3 { animation-delay: 1.6s; }
.sc-rec { animation-duration: 1.2s; }
@keyframes blink { 0%, 60%, 100% { opacity: .2; } 70%, 88% { opacity: 1; } }
.sc-ring { transform-box: fill-box; transform-origin: center; animation: ring 3s ease-out infinite; }
@keyframes ring { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(4.2); opacity: 0; } }
.sc-flash { animation: flash 1.5s steps(2, jump-none) infinite; }
@keyframes flash { 0% { opacity: .25; } 100% { opacity: 1; } }
.sc-cone { transform-box: fill-box; transform-origin: 0 0; animation: sweep 7s ease-in-out infinite alternate; }
@keyframes sweep { from { transform: rotate(-12deg); } to { transform: rotate(14deg); } }
.sc-perimeter { transform-box: fill-box; transform-origin: center; animation: spin 80s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.sc-shield { animation: glow 3.2s ease-in-out infinite; }
@keyframes glow { 0%, 100% { filter: drop-shadow(0 0 0 rgba(232, 214, 130, 0)); } 50% { filter: drop-shadow(0 0 14px rgba(232, 214, 130, .55)); } }

.scene__chip {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 12px;
  background: rgba(15, 39, 72, .82); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .6);
  font-size: 12px; line-height: 1.35; color: var(--muted);
  animation: floaty 6s ease-in-out infinite;
}
.scene__chip strong { display: block; color: var(--text); font-size: 13px; }
.scene__chip--alarm { left: 6%; bottom: -3%; }
.scene__chip--cam { right: -2%; top: 30%; animation-delay: -3s; }
.scene__dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #5fe0a0; box-shadow: 0 0 0 4px rgba(95, 224, 160, .18); animation: blink 2s ease-in-out infinite; }
.scene__dot--rec { background: #ff5a4a; box-shadow: 0 0 0 4px rgba(255, 90, 74, .18); animation-duration: 1.2s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ---------- Salon ---------- */
.salon { background: var(--gold-grad); color: var(--ink); }
.salon__inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 36px; padding-block: 28px; }
.salon__date { display: flex; flex-direction: column; align-items: center; padding-right: 36px; border-right: 1px solid rgba(6, 16, 31, .25); line-height: 1; }
.salon__days { font-size: 40px; font-weight: 800; letter-spacing: -.02em; }
.salon__month { margin-top: 6px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.salon__eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #5b4418; }
.salon h2 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; letter-spacing: -.01em; line-height: 1.2; margin: 4px 0 4px; }
.salon__text p { font-size: 15px; }
.salon h2 a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; text-decoration-thickness: 2px; transition: text-decoration-color .2s; }
.salon h2 a:hover { text-decoration-color: currentColor; }
.salon__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; font-weight: 700; letter-spacing: .04em; border-bottom: 1px solid rgba(6, 16, 31, .4); padding-bottom: 2px; transition: gap .2s, border-color .2s; }
.salon__link:hover { gap: 10px; border-color: var(--ink); }
.salon a:focus-visible { outline-color: var(--ink); }
.salon__stand {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 96px; height: 96px; border-radius: 50%;
  background: var(--navy); color: var(--gold-hi); font-size: 30px; font-weight: 800; line-height: 1;
  box-shadow: 0 0 0 6px rgba(11, 29, 58, .15);
}
.salon__stand small { display: block; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section--tight { padding: 0 0 104px; }
.section__head { text-align: center; margin-bottom: 52px; }
.section__head .kicker { margin-bottom: 12px; }
h2 { font-size: clamp(28px, 3.3vw, 42px); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }

.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.nowrap { white-space: nowrap; }
.service {
  padding: 30px 26px 32px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(22, 52, 95, .55), rgba(15, 39, 72, .25));
  border: 1px solid rgba(232, 214, 130, .16);
  transition: border-color .25s, transform .25s;
}
.service:hover { border-color: var(--line); transform: translateY(-4px); }
.service__icon {
  display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 22px; border-radius: 50%;
  border: 1.5px solid var(--gold); color: var(--gold-hi); font-size: 24px;
}
.service h3 { font-size: 17px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }
.service p { color: var(--muted); font-size: 15px; }
/* Solution mise en avant : brouillard occultant */
.service--featured {
  position: relative;
  background: radial-gradient(120% 70% at 50% 0%, rgba(232, 214, 130, .20), transparent 70%), linear-gradient(180deg, #14325d, #0f2748);
  border: 1.5px solid var(--gold);
  box-shadow: 0 24px 50px -24px rgba(232, 214, 130, .45);
}
.service--featured:hover { border-color: var(--gold-hi); }
.service--featured .service__icon { background: var(--gold-grad); border-color: transparent; color: var(--ink); }
.service--featured h3 { color: var(--gold-hi); }
.service--featured p { color: #c9d3e1; }
.service__badge {
  position: absolute; top: -13px; right: 18px;
  padding: 5px 12px; border-radius: 999px;
  background: var(--gold-grad); color: var(--ink);
  font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .6);
}
.service__more { display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 700; color: var(--gold-hi); border-bottom: 1px solid var(--line); }
.service__more:hover { border-color: var(--gold-hi); }
.foot__nowrap { white-space: nowrap; }

/* ---------- e-Sens ---------- */
.esens { padding: 104px 0; background: linear-gradient(180deg, var(--navy-2), var(--navy)); border-block: 1px solid rgba(232, 214, 130, .14); }
.esens__range { width: min(100%, 980px); height: auto; margin: 0 auto 64px; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); }
.esens__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.esens__copy .kicker { margin-bottom: 14px; }
.esens__lead { margin: 20px 0 26px; color: var(--muted); font-size: 17px; max-width: 34em; }
.checks { display: grid; gap: 14px; padding-top: 6px; }
.checks li { position: relative; padding-left: 32px; color: var(--muted); font-size: 15px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--gold-grad);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1.2 14.2L4.6 10l1.4-1.4 2.8 2.8 5.2-5.2 1.4 1.4-6.6 6.6Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1.2 14.2L4.6 10l1.4-1.4 2.8 2.8 5.2-5.2 1.4 1.4-6.6 6.6Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.checks strong { color: var(--text); }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--gold-hi); border-bottom: 1px solid var(--line); padding-bottom: 4px; transition: border-color .2s, gap .2s; }
.link:hover { border-color: var(--gold-hi); gap: 12px; }

/* ---------- Engagements ---------- */
.esens + .section--tight { padding-top: 88px; }
.pledges { display: grid; grid-template-columns: repeat(3, 1fr); }
.pledges li { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8px 20px; }
.pledges li + li { border-left: 1px solid var(--line); }
.pledges .ico { font-size: 34px; color: var(--gold); margin-bottom: 14px; stroke-width: 1.4; }
.pledges strong { font-size: 15px; letter-spacing: .08em; text-transform: uppercase; }
.pledges span { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ---------- CTA ---------- */
.cta { overflow: hidden; padding: 96px 0 0; background: radial-gradient(700px 380px at 50% 100%, rgba(66, 112, 180, .28), transparent 70%), var(--ink); text-align: center; }
.cta__logo { width: min(300px, 80%); height: auto; margin: 0 auto 48px; }
.cta__row { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "photo text"; align-items: end; gap: 56px; max-width: 1040px; margin: 40px auto 0; text-align: left; }
.cta__text { grid-area: text; align-self: center; padding-bottom: 40px; }
.cta__portrait { grid-area: photo; position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 460px; isolation: isolate; }
.cta__portrait::before { /* halo derrière le buste */
  content: ""; position: absolute; left: 50%; bottom: 0; width: 125%; aspect-ratio: 1; transform: translate(-50%, 45%); z-index: -2;
  background: radial-gradient(closest-side, rgba(90, 140, 210, .42), rgba(90, 140, 210, .12) 55%, transparent);
}
.cta__house { /* maison du logo en filigrane */
  position: absolute; left: 50%; bottom: 20%; width: 108%; height: auto; transform: translateX(-50%); z-index: -1; opacity: .11;
  -webkit-mask-image: linear-gradient(#000 30%, transparent 92%); mask-image: linear-gradient(#000 30%, transparent 92%);
}
.cta__portrait img {
  display: block; width: min(100%, 460px); height: auto;
  -webkit-mask-image: linear-gradient(to top, transparent 0, #000 16%), linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to top, transparent 0, #000 16%), linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%); mask-composite: intersect;
}
.cta__text .kicker { margin-bottom: 6px; }
.cta__name { font: italic 500 46px/1.1 var(--serif); color: var(--gold-hi); margin-bottom: 14px; }
.cta p:not(.kicker):not(.cta__name) { color: var(--muted); margin-top: 12px; font-size: 17px; }
.cta__phone {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 26px;
  font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; letter-spacing: .02em;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cta__phone .ico { color: var(--gold); stroke-width: 1.5; width: .85em; height: .85em; }
.cta__phone:hover { filter: brightness(1.12); }

/* ---------- Footer ---------- */
.foot { background: var(--ink); border-top: 1px solid rgba(232, 214, 130, .14); color: #7f8da3; font-size: 13px; }
.foot__inner { display: flex; justify-content: space-between; gap: 16px; padding-block: 22px; }
.foot a:hover { color: var(--gold-hi); }
.foot__links { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; }
.foot__credit { color: #a9b6c9; font-weight: 700; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1020px) {
  .hero__grid { gap: 40px; }
  .esens__grid { gap: 48px; }
}

@media (max-width: 820px) {
  .top__call span { display: none; }
  .top__call { padding: 12px; }
  .top__call .ico { width: 20px; height: 20px; }
  .hero { padding: 140px 0 64px; }
  .hero__grid { grid-template-columns: 1fr; gap: 56px; }
  .hero__scene { justify-self: center; width: min(100%, 460px); }
  .salon__inner { grid-template-columns: 1fr auto; gap: 18px 24px; }
  .salon__date { grid-column: 1 / -1; flex-direction: row; align-items: baseline; gap: 12px; padding: 0 0 14px; border-right: 0; border-bottom: 1px solid rgba(6, 16, 31, .25); }
  .salon__days { font-size: 32px; }
  .salon__month { margin: 0; }
  .salon__stand { width: 78px; height: 78px; font-size: 24px; }
  .esens__grid { grid-template-columns: 1fr; }
  .esens__range { margin-bottom: 44px; }
  .cta__row { grid-template-columns: 1fr; grid-template-areas: "text" "photo"; gap: 24px; text-align: center; }
  .cta__text { padding-bottom: 0; }
  .cta__portrait { min-height: 0; }
  .cta__portrait img { width: min(100%, 360px); }
  .section, .esens { padding: 80px 0; }
}

@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .top__inner { padding-block: 18px; }
  .logo__svg { width: 118px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .services { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .service { display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; padding: 22px; }
  .service__icon { grid-row: span 2; margin: 0; }
  .service h3 { align-self: end; margin-bottom: 2px; }
  .service__more { grid-column: 2; justify-self: start; }
  .service--featured { margin-top: 10px; }
  .pledges { grid-template-columns: 1fr; gap: 28px; }
  .pledges li + li { border-left: 0; border-top: 1px solid var(--line); padding-top: 28px; }
  .salon__text p { font-size: 14px; }
  .foot__inner { flex-direction: column; align-items: center; text-align: center; gap: 6px; }
  .foot__links { flex-direction: column; align-items: center; }
  .foot__links > span[aria-hidden] { display: none; }
}

@media (max-width: 600px) {
  .scene__chip { padding: 7px 10px; gap: 8px; font-size: 11px; }
  .scene__chip strong { font-size: 12px; }
}

@media (max-width: 380px) {
  .service { grid-template-columns: 46px 1fr; column-gap: 14px; padding: 20px 18px; }
  .service__icon { width: 46px; height: 46px; font-size: 20px; }
  .service h3 { font-size: 15px; letter-spacing: .03em; }
  .service__badge { right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
