/* ==========================================================================
   MOHAMED KHALDI IMMOBILIER — landing
   Charte : bleu #00094A · bordeaux #83002A (accent) · blanc / crème · Montserrat
   ========================================================================== */

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #00094A;
  --blue-soft: #0B1663;
  --bordeaux: #83002A;
    --tint: #F3F4F8;
  --white: #fff;
  --line-dark: rgba(255, 255, 255, .16);
  --line-light: rgba(0, 9, 74, .14);
  --muted-dark: rgba(255, 255, 255, .72);
  --muted-light: rgba(0, 9, 74, .68);
  --pad: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--blue);
  background: var(--blue);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.skip { position: absolute; left: -999px; top: 0; background: var(--white); color: var(--blue); padding: 12px 16px; z-index: 100; }
.skip:focus { left: 0; }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--pad); }

/* ---------- Boutons ---------- */
.btn {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; min-height: 60px; padding: 0 22px;
  font-weight: 700; font-size: 14px; letter-spacing: .09em; text-transform: uppercase; text-align: left;
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.btn, .btn:hover { text-decoration: none; }
.btn i { font-style: normal; font-weight: 500; font-size: 20px; letter-spacing: 0; transition: transform .35s var(--ease); }
.btn:hover i { transform: translateX(5px); }
.btn:active { transform: scale(.985); }
.btn--light { background: var(--white); color: var(--blue); }
.btn--accent { background: var(--bordeaux); color: var(--white); }
.btn--primary { background: var(--blue); color: var(--white); }
@media (hover: hover) {
  .btn--light:hover { background: var(--tint); }
  .btn--accent:hover { background: #6d0023; }
  .btn--primary:hover { background: var(--blue-soft); }
}
.link { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* Soulignement bordeaux — signature MK */
.ul { position: relative; white-space: nowrap; }
.ul::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.06em; height: .1em;
  background: var(--bordeaux); transform: scaleX(0); transform-origin: left;
  animation: draw .9s var(--ease) 1.35s forwards;
}
.ul--late::after { animation: none; transition: transform .9s var(--ease) .35s; }
.is-in .ul--late::after { transform: scaleX(1); }
@keyframes draw { to { transform: scaleX(1); } }

/* ---------- HERO ---------- */
html, body { min-height: 100%; }
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
.hero { flex: 1 0 auto; display: flex; flex-direction: column; position: relative; background: var(--white); color: var(--blue); padding-bottom: clamp(20px, 3.5svh, 36px); overflow: hidden; }
.foot { flex: none; }
/* Façade haussmannienne au trait — filigrane posé sur le filet, derrière le portrait */
.hero__scene { grid-column: 1 / -1; grid-row: 1; align-self: end; height: 0; position: relative; z-index: -1; }
.hero__deco { position: absolute; bottom: 0; right: calc(var(--pad) * -1 - 4px); width: min(64%, 300px); max-width: none; height: auto; opacity: .12; pointer-events: none; user-select: none; }
/* Tracé du bâtiment : longueurs (l*) et départs (d*) — généré */
.hz .l60{--l:60}.hz .l140{--l:140}.hz .l320{--l:320}.hz .l330{--l:330}.hz .l360{--l:360}.hz .l370{--l:370}.hz .l380{--l:380}.hz .l390{--l:390}.hz .l420{--l:420}.hz .l430{--l:430}.hz .l440{--l:440}.hz .l500{--l:500}.hz .l510{--l:510}.hz .l540{--l:540}.hz .l550{--l:550}.hz .l580{--l:580}.hz .l890{--l:890}.hz .l940{--l:940}.hz .l1020{--l:1020}.hz .l1030{--l:1030}.hz .l1040{--l:1040}.hz .l1050{--l:1050}.hz .l1060{--l:1060}.hz .l1080{--l:1080}.hz .l1150{--l:1150}.hz .l1340{--l:1340}
.hz .d0{animation-delay:0.30s}.hz .d2{animation-delay:0.40s}.hz .d3{animation-delay:0.45s}.hz .d4{animation-delay:0.50s}.hz .d5{animation-delay:0.55s}.hz .d6{animation-delay:0.60s}.hz .d7{animation-delay:0.65s}.hz .d8{animation-delay:0.70s}.hz .d9{animation-delay:0.75s}.hz .d10{animation-delay:0.80s}.hz .d11{animation-delay:0.85s}.hz .d12{animation-delay:0.90s}.hz .d13{animation-delay:0.95s}.hz .d14{animation-delay:1.00s}.hz .d15{animation-delay:1.05s}.hz .d16{animation-delay:1.10s}.hz .d17{animation-delay:1.15s}.hz .d18{animation-delay:1.20s}.hz .d19{animation-delay:1.25s}.hz .d20{animation-delay:1.30s}.hz .d21{animation-delay:1.35s}.hz .d22{animation-delay:1.40s}.hz .d23{animation-delay:1.45s}.hz .d24{animation-delay:1.50s}.hz .d25{animation-delay:1.55s}.hz .d26{animation-delay:1.60s}.hz .d27{animation-delay:1.65s}.hz .d28{animation-delay:1.70s}.hz .d29{animation-delay:1.75s}.hz .d30{animation-delay:1.80s}.hz .d32{animation-delay:1.90s}.hz .d33{animation-delay:1.95s}
.hz path { stroke-dasharray: var(--l); stroke-dashoffset: var(--l); animation: hz-draw .7s cubic-bezier(.45, .05, .25, 1) both; }
.hz path.s { animation-duration: 1.15s; }
@keyframes hz-draw { from { stroke-dashoffset: var(--l); } to { stroke-dashoffset: 0; } }
.hero__bar, .hero__grid { position: relative; z-index: 1; }
.hero__bar { display: flex; align-items: center; justify-content: flex-end; height: 68px; }
/* Logo MK animé — timings officiels (MK_Logo_Anime_V3) : M 0–.38 s · K .09–.47 s · point .50–.62 s,
   lettres opaques révélées depuis la ligne de base (course 31 %), point en léger rebond. */
.logo--anim { position: relative; display: block; width: 60px; aspect-ratio: 260 / 110; color: var(--blue); --t0: .15s; }
.logo__win { position: absolute; inset: 0; overflow: hidden; transform: translateY(99.1%); animation: mk-win .38s cubic-bezier(.215, .61, .355, 1) var(--t0) forwards; }
.logo__win svg { display: block; width: 100%; height: 100%; fill: currentColor; transform: translateY(-68.4%); animation: mk-let .38s cubic-bezier(.215, .61, .355, 1) var(--t0) forwards; }
.logo__win--k, .logo__win--k svg { animation-delay: calc(var(--t0) + .09s); }
.logo__dot { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: var(--bordeaux); transform: scale(0); transform-origin: 94.23% 87.27%; animation: mk-dot .12s cubic-bezier(.34, 1.56, .64, 1) calc(var(--t0) + .5s) forwards; }
@keyframes mk-win { to { transform: translateY(0); } }
@keyframes mk-let { to { transform: translateY(0); } }
@keyframes mk-dot { to { transform: scale(1); } }

.hero__grid { display: grid; grid-template-columns: 54% minmax(0, 1fr); column-gap: 0; position: relative; flex: 0 0 auto; }
.hero::before { content: ""; flex: 2 1 0; min-height: 10px; }   /* respiration : 2/5 au-dessus, 3/5 en dessous */
.hero::after { content: ""; flex: 3 1 0; min-height: 8px; }
.hero__bar { order: -1; }
.hero__grid::after { content: ""; grid-column: 1 / -1; grid-row: 2; height: 1px; background: var(--line-light); margin-inline: calc(var(--pad) * -1); }

/* PHOTO à gauche */
.hero__portrait { grid-column: 1; grid-row: 1; position: relative; margin-left: calc(var(--pad) * -1); aspect-ratio: 900 / 1260; max-height: 56svh; overflow: hidden; }
.hero__portrait img { position: absolute; left: 0; top: 0; width: 100%; max-width: none; }

/* IDENTITÉ + CONTACTS à droite */
.hero__id { grid-column: 2; grid-row: 1; align-self: end; padding: 0 0 20px 10px; min-width: 0; }
.hero__name { font-weight: 800; font-size: clamp(20px, 6.1vw, 28px); line-height: 1.04; letter-spacing: .02em; text-transform: uppercase; }
.hero__name .ln { display: block; overflow: hidden; padding-block: .06em; margin-block: -.06em; white-space: nowrap; }
.hero__first { color: var(--bordeaux); }
.hero__role { margin-top: 12px; white-space: nowrap; font-size: clamp(10.5px, 3.2vw, 15px); font-weight: 700; color: var(--bordeaux); }
.hero__zone { margin-top: 4px; font-size: 12px; font-weight: 500; color: var(--muted-light); white-space: nowrap; }
.hero__phone { margin-top: 6px; }
.hero__phone a { display: inline-block; padding: 8px 0; font-size: 15px; font-weight: 700; letter-spacing: .05em; text-decoration: none; white-space: nowrap; }

/* Présentation courte */
.hero__bio { grid-column: 1 / -1; grid-row: 3; padding-top: 30px; max-width: 34em; font-size: 15.5px; line-height: 1.55; color: var(--blue); }
.hero__bio p + p { margin-top: 14px; }
.hero__bio strong { font-weight: 800; }
.bio__l { overflow: hidden; }
.bio__l > span { display: block; animation: wd-in .8s var(--out) 1.7s both; }
.bio__key { margin-top: 0 !important; font-size: 1.3em; font-weight: 800; letter-spacing: .005em; line-height: 1.25; }
.bio__key .wd > span { --t: 1.7s; }
.bio__sub { margin-top: 6px !important; white-space: nowrap; font-size: 13px; line-height: 1.55; color: var(--muted-light); }
.bio__sub > span { animation-delay: 1.92s; }

/* CTA sous la présentation */
.hero__pitch { grid-column: 1 / -1; grid-row: 4; padding-top: 30px; }
.cta__note { margin-top: 14px; max-width: 40ch; font-size: 13px; line-height: 1.6; color: var(--muted-light); animation: cta-label .8s var(--out) 2.45s both; }
.cta__note strong { font-weight: 700; color: var(--bordeaux); }
h1 { font-weight: 800; }
.cta { display: grid; gap: 10px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ---------- Séquence d’introduction (≈ 2,8 s) ----------
   logo .15 s → bâtiment .30 s → photo .45 s → nom .85 s → métier 1.30 s → lieu 1.55 s → téléphone 1.70 s → CTA 1.95 s → pied de page 2.2 s
   Uniquement transform / opacity / clip-path : fluide sur iPhone. */
:root { --out: cubic-bezier(.16, 1, .3, 1); }
.hero__portrait { animation: photo-in 1.1s var(--out) .4s both; }
.hero__portrait img { animation: photo-settle 1.6s var(--out) .4s both; transform-origin: 50% 100%; }
@keyframes photo-in { from { opacity: 0; clip-path: inset(100% -120px 0 -120px); } 40% { opacity: 1; } to { opacity: 1; clip-path: inset(0 -120px 0 -120px); } }
@keyframes photo-settle { from { transform: scale(1.06) translateY(10px); } to { transform: none; } }
.hero__grid::after { transform: scaleX(0); transform-origin: left; animation: draw 1.2s var(--out) .5s forwards; }

.ch { display: inline-block; animation: ch-in .75s var(--out) both; animation-delay: calc(var(--t, .7s) + var(--i, 0) * 28ms); }
.ln--2 .ch { --t: .82s; }
.ch:nth-child(2) { --i: 1; } .ch:nth-child(3) { --i: 2; } .ch:nth-child(4) { --i: 3; } .ch:nth-child(5) { --i: 4; } .ch:nth-child(6) { --i: 5; } .ch:nth-child(7) { --i: 6; } .ch:nth-child(8) { --i: 7; }
@keyframes ch-in { from { opacity: 0; transform: translateY(105%); } 35% { opacity: 1; } to { opacity: 1; transform: none; } }

.wd { display: inline-block; overflow: hidden; vertical-align: bottom; padding-block: .1em; margin-block: -.1em; }
.wd > span { display: inline-block; animation: wd-in .7s var(--out) both; animation-delay: calc(var(--t, 1.05s) + var(--i, 0) * 70ms); }
.wd:nth-child(2) > span { --i: 1; } .wd:nth-child(3) > span { --i: 2; } .wd:nth-child(4) > span { --i: 3; } .wd:nth-child(5) > span { --i: 4; }
.hero__phone .wd > span { --t: 1.4s; }
.hero__phone .wd:nth-child(2) > span { --i: .8; } .hero__phone .wd:nth-child(3) > span { --i: 1.6; } .hero__phone .wd:nth-child(4) > span { --i: 2.4; } .hero__phone .wd:nth-child(5) > span { --i: 3.2; }
@keyframes wd-in { from { opacity: 0; transform: translateY(110%); } 40% { opacity: 1; } to { opacity: 1; transform: none; } }

.wipe { display: inline-block; animation: wipe-in .9s var(--out) 1.25s both; }
@keyframes wipe-in { from { opacity: 0; clip-path: inset(0 100% 0 0); transform: translateX(-8px); } 30% { opacity: 1; } to { opacity: 1; clip-path: inset(0 0 0 0); transform: none; } }

#hero-cta .btn { animation: cta-in .8s var(--out) 2.1s both; }
#hero-cta .btn span { animation: cta-label .6s var(--out) 2.3s both; }
#hero-cta .btn i { animation: cta-arrow .6s var(--out) 2.4s both; }
@keyframes cta-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes cta-label { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }
@keyframes cta-arrow { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }

[data-in] { opacity: 0; transform: translateY(10px); animation: in .8s var(--ease) forwards; }
[data-in="1"] { animation-delay: .05s; } [data-in="2"] { animation-delay: .12s; }
[data-in="3"] { animation-delay: .2s; }  [data-in="4"] { animation-delay: .85s; }
[data-in="5"] { animation-delay: .4s; }  [data-in="6"] { animation-delay: .5s; }
@keyframes in { to { opacity: 1; transform: none; } }
.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Sections ---------- */
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }

.foot { background: var(--blue); color: var(--muted-dark); padding: 26px 0 calc(26px + env(safe-area-inset-bottom)); font-size: 12px; }
.foot__in {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.foot__logo { width: 40px; color: var(--white); animation: cta-label .8s var(--out) 2.2s both; }
.foot__links a { animation: cta-label .8s var(--out) 2.32s both; }
.foot__links a + a { animation-delay: 2.42s; }
.foot__links { display: flex; gap: 20px; }
.foot__links a { padding: 8px 0; text-underline-offset: 3px; }

/* ---------- Barre d’action mobile ---------- */
.dock {
  position: fixed; inset: auto 0 0 0; z-index: 20;
  display: grid; grid-template-columns: 1fr; gap: 1px;
  padding-bottom: env(safe-area-inset-bottom); background: var(--blue);
  box-shadow: 0 -1px 0 var(--line-dark);
  transform: translateY(105%); transition: transform .45s var(--ease);
}
.dock.is-on { transform: none; }
.dock .btn { min-height: 58px; padding: 0 var(--pad); }

/* ---------- Parcours ---------- */
.flow {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: var(--white); color: var(--blue);
  overflow: hidden;
}
.flow[open] { display: flex; flex-direction: column; animation: sheet .45s var(--ease); }
.flow::backdrop { background: rgba(0, 9, 74, .82); animation: fade .45s var(--ease); }
@keyframes fade { from { opacity: 0; } }
@keyframes sheet { from { opacity: 0; transform: translateY(18px); } }
.flow__top { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; height: 60px; padding-right: var(--pad); flex: none; }
.flow__back { height: 60px; font-size: 22px; }
.flow__back[hidden] { display: block; visibility: hidden; }
.flow__title { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.flow__close { font-size: 13px; font-weight: 600; padding: 12px 0 12px 12px; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.flow__progress { height: 2px; background: var(--line-light); flex: none; }
.flow__progress span { display: block; height: 100%; width: 0; background: var(--bordeaux); transition: width .5s var(--ease); }
.flow__body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }

.step { display: none; max-width: 560px; margin-inline: auto; padding: 36px var(--pad) calc(40px + env(safe-area-inset-bottom)); }
.step.is-on { display: block; animation: step .5s var(--ease); }
.step.is-on.is-back { animation-name: step-back; }
@keyframes step { from { opacity: 0; transform: translateX(18px); } }
@keyframes step-back { from { opacity: 0; transform: translateX(-18px); } }
.step__count { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--bordeaux); }
.step__q { margin-top: 12px; font-size: clamp(27px, 7.6vw, 36px); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; }
.step__q--s { margin-top: 0; font-size: 18px; letter-spacing: -.01em; }
.step__hint, .step__lead { margin-top: 12px; font-size: 15px; color: var(--muted-light); }
.step__lead { font-size: 17px; color: var(--blue); }
.step__next { margin-top: 28px; }
.step__mark { width: 44px; height: 4px; background: var(--bordeaux); margin-bottom: 28px; transform-origin: left; animation: draw-in .8s var(--ease) .2s both; }
@keyframes draw-in { from { transform: scaleX(0); } }

/* choix */
.choices { display: grid; gap: 10px; margin-top: 28px; }
.choices--row { grid-template-columns: repeat(5, 1fr); gap: 8px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span {
  display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 0 20px;
  font-size: 17px; font-weight: 600; background: var(--white); border: 1px solid var(--line-light);
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.choice span::after { content: "→"; font-weight: 500; opacity: .35; transition: opacity .2s, transform .3s var(--ease); }
.choices--row .choice span { justify-content: center; padding: 0; font-size: 19px; font-weight: 700; }
.choices--row .choice span::after { content: none; }
@media (hover: hover) { .choice:hover span { border-color: var(--blue); } .choice:hover span::after { opacity: 1; transform: translateX(4px); } }
.choice input:checked + span { background: var(--bordeaux); border-color: var(--bordeaux); color: var(--white); }
.choice input:checked + span::after { opacity: 1; }
.choice input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }

/* champs */
.field { position: relative; margin-top: 24px; }
.field label .req { color: var(--bordeaux); }
.field label:not(.sr) { display: block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }
.field input, .mini select {
  width: 100%; height: 60px; padding: 0 16px; font: inherit; font-size: 18px; font-weight: 600; color: var(--blue);
  background: var(--white); border: 1px solid var(--line-light); border-radius: 0; appearance: none; -webkit-appearance: none;
  transition: border-color .2s var(--ease);
}
.field input::placeholder { color: rgba(0, 9, 74, .35); font-weight: 500; }
.field input:focus, .mini select:focus { outline: none; border-color: var(--blue); box-shadow: inset 0 -2px 0 var(--blue); }
.field.is-bad input { border-color: var(--bordeaux); box-shadow: inset 0 -2px 0 var(--bordeaux); }
.field__err { min-height: 0; font-size: 13px; font-weight: 600; color: var(--bordeaux); }
.field__err:not(:empty) { margin-top: 8px; }
.field--unit input { font-size: 32px; font-weight: 800; height: 76px; padding-right: 72px; letter-spacing: -.01em; }
.field--unit .unit { position: absolute; right: 18px; top: 38px; transform: translateY(-50%); font-size: 20px; font-weight: 700; color: var(--bordeaux); }

/* autocomplétion */
.ac__list { background: var(--white); border: 1px solid var(--blue); border-top: 0; margin-top: -1px; }
.ac__list li { padding: 14px 16px; font-size: 15px; font-weight: 500; line-height: 1.3; cursor: pointer; border-top: 1px solid var(--line-light); }
.ac__list li small { display: block; font-size: 12px; color: var(--muted-light); }
.ac__list li[aria-selected="true"], .ac__list li:hover { background: var(--tint); }

/* précisions facultatives */
.mini { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line-light); }
.mini:first-of-type { margin-top: 24px; }
.mini[hidden] { display: none; }
.mini > label, .mini__l { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.mini select { height: 48px; font-size: 16px; background-image: linear-gradient(45deg, transparent 50%, var(--blue) 50%), linear-gradient(135deg, var(--blue) 50%, transparent 50%); background-position: calc(100% - 21px) 21px, calc(100% - 15px) 21px; background-size: 6px 6px; background-repeat: no-repeat; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span { display: grid; place-items: center; min-width: 64px; height: 46px; padding: 0 16px; font-size: 15px; font-weight: 600; background: var(--white); border: 1px solid var(--line-light); transition: background-color .2s, color .2s, border-color .2s; }
.chips--dpe .chip span { min-width: 42px; padding: 0; }
.chip input:checked + span { background: var(--blue); border-color: var(--blue); color: var(--white); }
.chip input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }

[data-step="e-details"] .step__next { position: sticky; bottom: calc(16px + env(safe-area-inset-bottom)); margin-top: 20px; box-shadow: 0 0 0 16px var(--white); }

/* consentement */
.consent { margin-top: 24px; }
.check { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; font-size: 14px; font-weight: 500; line-height: 1.45; cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; width: 26px; height: 26px; margin: 0; background: var(--white); border: 1px solid var(--blue); border-radius: 0; display: grid; place-items: center; cursor: pointer; }
.check input::after { content: ""; width: 12px; height: 12px; background: var(--bordeaux); transform: scale(0); transition: transform .2s var(--ease); }
.check input:checked::after { transform: scale(1); }
.consent__note { margin-top: 14px; font-size: 11.5px; line-height: 1.5; color: var(--muted-light); }

/* estimation automatique (V2) */
.estimate { margin-top: 24px; padding: 20px 0; border-block: 1px solid var(--line-light); }
.estimate strong { display: block; font-size: 30px; font-weight: 800; color: var(--bordeaux); letter-spacing: -.01em; }

/* calendly */
.step--cal { max-width: 760px; padding-top: 22px; padding-bottom: 0; }
.cal { margin: 16px calc(var(--pad) * -1) 0; min-height: 640px; background: var(--white); position: relative; }
.cal iframe { display: block; width: 100%; height: max(640px, calc(100dvh - 140px)); border: 0; }
.cal__load, .cal__fallback { padding: 40px var(--pad); font-size: 15px; }
.cal__load { position: absolute; inset: 0; color: var(--muted-light); }
.cal__fallback strong { display: block; font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.cal__fallback .btn { margin-top: 24px; }
.cal__done { padding: 18px var(--pad); font-weight: 700; background: var(--blue); color: var(--white); }

/* cookies (affiché uniquement si un outil de mesure soumis à consentement est configuré) */
.cookie { position: fixed; z-index: 30; left: 12px; right: 12px; bottom: 12px; background: var(--white); color: var(--blue); padding: 16px; font-size: 13px; box-shadow: 0 0 0 1px var(--line-light), 0 12px 40px rgba(0, 9, 74, .25); }
.cookie div { display: flex; gap: 8px; margin-top: 12px; }
.cookie button { flex: 1; height: 44px; font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--blue); }
.cookie button[data-cookie="yes"] { background: var(--blue); color: var(--white); }

/* petits écrans : le bouton reste sur une ligne */
@media (max-width: 389px) { .cta--one .btn, .dock .btn { font-size: 11.5px; letter-spacing: .08em; } .cta--one .btn span, .dock .btn span { white-space: nowrap; } }

/* ---------- Tablette ---------- */
@media (min-width: 640px) {
  :root { --pad: 40px; }
  .hero__grid { grid-template-columns: 360px minmax(0, 1fr); }
  .hero__bio { font-size: 17px; padding-top: 40px; }
  .hero__pitch { padding-top: 36px; }
  .cta__note { font-size: 14px; }
  .hero__id { padding: 0 0 30px 36px; }
  .hero__deco { right: -30px; width: 360px; }
  .hero__phone a { font-size: 17px; }
  .hero__name { font-size: 40px; }
  .hero__role { font-size: 16px; } .hero__zone { font-size: 14px; }
  .cta { max-width: 360px; }
  .dock { display: none; }
  .flow { inset: 0; margin: auto; width: min(600px, calc(100% - 80px)); height: min(700px, calc(100% - 80px)); }
  .flow.is-cal { width: min(860px, calc(100% - 80px)); height: min(860px, calc(100% - 48px)); }
  .cal iframe { height: 720px; }
  .cookie { left: auto; right: 24px; bottom: 24px; width: 360px; }
}

/* ---------- Desktop ---------- */
@media (min-width: 960px) {
  .hero { padding-bottom: 0; }
  .hero::before, .hero::after { display: none; }
  .hero__bar { height: 96px; position: relative; z-index: 2; }
  .logo--anim { width: 76px; }
  .hero__grid {
    max-width: none; padding-inline: 0; margin-top: -24px; flex: 1 0 auto; min-height: 640px;
    grid-template-columns: clamp(400px, 38vw, 600px) minmax(0, 1fr); grid-template-rows: 1fr auto auto auto 1.2fr; column-gap: 0;
  }
  .hero__grid::after { display: none; }
  .hero__scene { grid-column: 2; grid-row: 5; margin-right: max(var(--pad), calc(50vw - 590px + var(--pad))); }
  .hero__deco { right: 0; width: min(400px, 28vw); opacity: .13; }
  /* PHOTO : grande, au bord gauche de l’écran, posée sur le bandeau */
  .hero__portrait { grid-column: 1; grid-row: 1 / -1; aspect-ratio: auto; max-height: none; height: auto; margin: 0; align-self: stretch; overflow: visible; }
  .hero__portrait img { top: auto; bottom: 0; left: 0; width: auto; height: min(104%, 860px); }
  .hero__id, .hero__bio, .hero__pitch { grid-column: 2; padding-left: clamp(40px, 5vw, 88px); padding-right: var(--pad); }
  .hero__id { grid-row: 2; align-self: end; padding-bottom: 0; }
  .hero__name { font-size: clamp(40px, 3.7vw, 54px); line-height: 1.02; }
  .hero__role { margin-top: 18px; font-size: 20px; }
  .hero__zone { margin-top: 6px; font-size: 15px; letter-spacing: .02em; }
  .hero__phone { margin-top: 10px; }
  .hero__phone a { font-size: 21px; }
  .hero__bio { grid-row: 3; padding-top: 26px; font-size: 16.5px; max-width: calc(33em + 88px); }
  .bio__key { font-size: 1.62em; letter-spacing: -.005em; }
  .bio__sub { margin-top: 8px !important; font-size: 14px; }
  .hero__bio p + p { margin-top: 12px; }
  .hero__pitch { grid-row: 4; align-self: start; padding-top: 32px; }
  .btn { min-height: 64px; font-size: 13px; white-space: nowrap; }
  .foot { padding: 34px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-delay: 0s !important; transition-duration: .001s !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
}
