/* ==========================================================================
   Yacout by Graceful : styles des sections sous le premier écran, des pages de remerciement et légales.
   Chargé après core.css. Mobile d'abord, comme core.css.
   ========================================================================== */

.nowrap { white-space: nowrap; }
.btn-ghost { background: rgba(255, 255, 255, .06); color: var(--white); border: 1px solid rgba(255, 255, 255, .18); }
.btn-ghost .icon { width: 14px; height: 14px; color: var(--gold); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); }
.section-white { background: var(--paper); color: var(--ink); }
.section-head { max-width: 760px; margin: 0 0 28px; }
.section-head-center { margin-left: auto; margin-right: auto; text-align: center; }
.section-white .eyebrow { color: var(--gold-ink); background: rgba(126, 90, 48, .1); }
.section-white .section-title em { color: var(--gold-ink); }
.final .section-title em { color: var(--gold); }
.section-sub { margin-top: 12px; font-size: 15.5px; color: var(--muted); max-width: 40em; }
.section-head-center .section-sub { margin-left: auto; margin-right: auto; }
.section-dark .section-sub { color: var(--mist); }

/* ---------- Pourquoi Yacout (grille « bento ») ---------- */
/* Récit au défilement : textes à gauche, image collante à droite qui se dévoile comme un volet */
.why-story { display: grid; gap: 0; }
.why-steps { position: relative; padding-left: 22px; }
.why-steps::before, .why-steps::after { content: ""; position: absolute; left: 0; top: 0; width: 2px; }
.why-steps::before { bottom: 0; background: var(--line-light); }
.why-steps::after { height: calc(var(--why-p, .25) * 100%); background: var(--gold); transition: height .6s var(--ease); }
.why-step { min-height: 240px; display: flex; flex-direction: column; justify-content: center; padding: 24px 0; transition: opacity .5s var(--ease); }
.js .why-step { opacity: .3; }
.js .why-step.is-on { opacity: 1; }
.why-num { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); }
.why-step h3 { margin-top: 10px; font-size: 26px; letter-spacing: -.035em; line-height: 1.1; }
.why-step p { margin-top: 12px; max-width: 26em; font-size: 15.5px; color: var(--muted); }
.why-stage {
  position: sticky; top: calc(var(--header-h) + 12px); z-index: 2; order: -1; height: 240px; overflow: hidden;
  border-radius: var(--r); background: var(--navy);
  /* aplat sable au-dessus de l'image : masque le texte qui défile dans l'espace sous l'en-tête */
  box-shadow: 0 -12px 0 var(--sand), 0 30px 60px -36px rgba(15, 28, 44, .8);
}
.why-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.js .why-stage img { clip-path: inset(100% 0 0 0); transform: scale(1.12); transition: clip-path 1s var(--ease), transform 1.6s var(--ease); }
.js .why-stage img.is-on, .js .why-stage img.is-past { clip-path: inset(0); transform: none; }
.why-stage::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(15, 28, 44, .7), transparent 45%); }
.why-big { position: absolute; left: 14px; bottom: 4px; z-index: 2; font-size: 84px; font-weight: 800; letter-spacing: -.07em; line-height: .85; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .85); font-variant-numeric: tabular-nums; }
.why-cap { position: absolute; right: 14px; bottom: 16px; z-index: 2; padding: 7px 12px; border-radius: 999px; background: var(--white); color: var(--navy); font-size: 12px; font-weight: 700; }
.why-note { position: absolute; top: 12px; right: 12px; z-index: 2; padding: 4px 10px; border-radius: 999px; background: rgba(15, 28, 44, .6); color: rgba(255, 255, 255, .85); font-size: 11px; opacity: 0; transition: opacity .5s; }
.why-note.is-on { opacity: 1; }

/* ---------- Vue 3D ---------- */
.orbit-section { background: radial-gradient(60% 50% at 50% 0%, rgba(201, 160, 107, .12), transparent 70%), var(--navy); }
.orbit-wrap { max-width: 1000px; margin: 0 auto; text-align: center; }
.orbit {
  position: relative; overflow: hidden; border-radius: 20px; background: var(--navy-2);
  box-shadow: var(--shadow-pop), 0 0 0 1px rgba(255, 255, 255, .08);
  cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.orbit.is-dragging { cursor: grabbing; }
.orbit-img { width: 100%; aspect-ratio: 848 / 478; object-fit: cover; pointer-events: none; }
.orbit-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* pas de backdrop-filter ici : le flou serait recalculé à chaque image de la rotation */
.orbit-hint {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; white-space: nowrap; border-radius: 999px;
  background: rgba(15, 28, 44, .8); border: 1px solid rgba(255, 255, 255, .2); color: var(--white);
  font-size: 14px; font-weight: 700;
  transition: opacity .4s; pointer-events: none;
}
.orbit-hint .icon { color: var(--gold); }
.orbit.is-touched .orbit-hint { opacity: 0; }
.orbit-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .12); z-index: 2; transition: opacity .4s; }
.orbit-progress span { display: block; width: 0; height: 100%; background: var(--gold); transition: width .2s; }
.orbit-progress.is-done { opacity: 0; }
.orbit-range { width: 100%; max-width: 520px; margin: 10px auto 0; display: block; accent-color: var(--gold); height: 44px; cursor: pointer; }
.orbit-wrap .disclaimer { margin-top: 8px; }
.orbit-actions { display: flex; flex-direction: column; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 10px; margin-top: 22px; }

/* ---------- Visite intérieure ---------- */
.interior-section { padding-bottom: calc(var(--section-y) / 2); }
.interior-frame {
  position: relative; overflow: hidden; border-radius: 20px; background: var(--navy);
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(15, 28, 44, .06);
}
.interior-video { display: block; width: 100%; height: auto; aspect-ratio: 720 / 408; object-fit: cover; }
/* lecture seule : la vidéo ne reçoit ni clic, ni appui long, ni sélection (pas de menu « Enregistrer la vidéo ») */
.interior-frame { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.interior-video { pointer-events: none; transform: scale(1.06); } /* léger zoom, rogné par le cadre */
.interior-video::-webkit-media-controls, .interior-video::-webkit-media-controls-start-playback-button, .interior-video::-webkit-media-controls-overlay-play-button { display: none !important; -webkit-appearance: none; }
/* lecture automatique refusée (économie d'énergie, animations réduites) : notre bouton, sans les commandes du navigateur */
.interior-play {
  position: absolute; inset: 50% auto auto 50%; display: grid; place-items: center; width: 72px; height: 72px; border: 0; border-radius: 50%;
  background: var(--gold); color: var(--navy); box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .55); transform: translate(-50%, -50%); cursor: pointer; transition: transform .25s var(--ease);
}
.interior-play .icon { width: 28px; height: 28px; margin-left: 3px; }
.interior-play:hover { transform: translate(-50%, -50%) scale(1.06); }
.interior-play[hidden] { display: none; }
.interior-foot { display: flex; flex-direction: column; flex-wrap: wrap; align-items: stretch; justify-content: space-between; gap: 16px 24px; margin-top: 14px; }
.interior-foot .disclaimer { order: 2; text-align: center; color: var(--muted); }

/* ---------- Bandeau défilant ---------- */
/* deux listes identiques à la suite : quand la première a fini de défiler, la seconde est exactement à sa place */
.marquee {
  display: flex; overflow: hidden; padding: 14px 0; background: var(--navy);
  border-top: 1px solid var(--gold-line); border-bottom: 1px solid var(--gold-line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; flex: none; align-items: center; min-width: 100%; animation: marquee 38s linear infinite; }
@media (hover: hover) { .marquee:hover .marquee-track { animation-play-state: paused; } }
.marquee li { display: inline-flex; align-items: center; white-space: nowrap; font-size: 15px; font-weight: 700; letter-spacing: -.02em; color: var(--white); }
.marquee li:nth-child(even) { color: var(--gold); font-style: italic; }
.marquee li::after { content: ""; flex: none; width: 6px; height: 6px; margin: 0 18px; background: var(--gold); transform: rotate(45deg); }

/* ---------- Vagues animées entre sections (discrètes) ---------- */
/* fond = section du dessus ; vague pleine = couleur de la section du dessous ; liseré doré qui glisse à une autre vitesse */
.wave { position: relative; z-index: 1; height: 36px; margin: -1px 0; overflow: hidden; } /* chevauche 1px les sections voisines : pas de liseré au défilement sur écran mis à l’échelle (125 %, 150 %) */
.wave--to-dark { background: var(--sand); }
.wave--to-light { background: var(--navy); }
.wave svg { position: absolute; left: 0; bottom: -1px; width: 200%; height: 100%; animation: wave-x 10s linear infinite; }
.wave .wave-gold { fill: var(--gold); opacity: .55; animation-duration: 14s; animation-direction: reverse; }
.wave--to-dark .wave-fill { fill: var(--navy); }
.wave--to-light .wave-fill { fill: var(--sand); }
.wave--to-light .wave-gold { opacity: .95; }

/* ---------- Rubans croisés : transition FAQ (blanc cassé) → chiffres géants (nuit) ---------- */
.ribbons { position: relative; z-index: 1; height: 120px; margin: -1px 0; overflow: hidden; background: #05090F; }
/* fond clair au-dessus des rubans, en V le long de leur axe : la limite clair/sombre reste cachée sous les rubans (tan 3° × 50vw ≈ 2,62vw) */
.ribbons::before { content: ""; position: absolute; inset: 0; background: var(--paper); clip-path: polygon(0 0, 100% 0, 100% calc(50% - 2.62vw), 50% 50%, 0 calc(50% - 2.62vw)); }
.ribbon { position: absolute; left: -12%; right: -12%; top: 50%; display: flex; overflow: hidden; padding: 11px 0; }
.ribbon--gold { z-index: 2; background: linear-gradient(180deg, #D6B27F, var(--gold)); transform: translateY(-50%) rotate(-3deg); box-shadow: 0 12px 26px -12px rgba(0, 0, 0, .55); }
.ribbon--navy { background: var(--navy-2); border-top: 1px solid var(--gold-line); border-bottom: 1px solid var(--gold-line); transform: translateY(-50%) rotate(3deg); }
.ribbon-track { display: flex; flex: none; align-items: center; min-width: 100%; margin: 0; padding: 0; list-style: none; animation: marquee 34s linear infinite; }
.ribbon--navy .ribbon-track { animation-duration: 40s; animation-direction: reverse; }
.ribbon li { display: inline-flex; align-items: center; white-space: nowrap; font-size: 13.5px; font-weight: 700; letter-spacing: -.01em; color: var(--white); }
.ribbon li::after { content: ""; flex: none; width: 6px; height: 6px; margin: 0 18px; background: var(--gold); transform: rotate(45deg); }
.ribbon--gold li { color: var(--navy); }
.ribbon--gold li::after { background: var(--navy); }
.ribbon li:nth-child(even) { font-style: italic; }
.ribbon--navy li:nth-child(even) { color: var(--gold); }
@media (hover: hover) { .ribbons:hover .ribbon-track { animation-play-state: paused; } }
/* mobile : écran étroit, on incline davantage pour que les deux rubans se voient en croix */
@media (max-width: 767px) {
  .ribbons { height: 140px; }
  .ribbon--gold { transform: translateY(-50%) rotate(-7deg); }
  .ribbon--navy { transform: translateY(-50%) rotate(7deg); }
  .ribbons::before { clip-path: polygon(0 0, 100% 0, 100% calc(50% - 6.14vw), 50% 50%, 0 calc(50% - 6.14vw)); } /* tan 7° × 50vw */
}

/* ---------- Typologies : onglets Studio / 2 chambres ---------- */
.types { display: grid; gap: 14px; }
.types-switch { display: none; padding: 4px; border-radius: 999px; background: var(--white); border: 1px solid var(--line-light); }
.js .types-switch { display: flex; }
.types-switch button {
  flex: 1; min-height: 48px; padding: 6px 8px; border: 0; border-radius: 999px; background: none; cursor: pointer;
  color: var(--ink); font-size: 14.5px; font-weight: 700; line-height: 1.15; transition: background-color .3s, color .3s;
}
.types-switch small { display: block; font-size: 12px; font-weight: 600; color: var(--gold-ink); }
.types-switch [aria-selected="true"] { background: var(--navy); color: var(--white); }
.types-switch [aria-selected="true"] small { color: var(--gold); }
.type-panel { overflow: hidden; border-radius: var(--r); background: var(--white); border: 1px solid var(--line-light); box-shadow: var(--shadow-card); }
.type-panel[hidden] { display: none; }
.type-media { position: relative; aspect-ratio: 16 / 10; background: var(--sand-2); }
.type-img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s var(--ease); }
.type-img.is-out { opacity: 0; }
.type-cap { position: absolute; left: 10px; top: 10px; padding: 3px 10px; border-radius: 999px; background: rgba(15, 28, 44, .6); color: rgba(255, 255, 255, .92); font-size: 12px; font-weight: 600; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.type-thumbs { position: absolute; right: 8px; bottom: 8px; display: flex; gap: 5px; padding: 4px; border-radius: 12px; background: rgba(15, 28, 44, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.type-thumbs button { width: 58px; height: 42px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: none; opacity: .7; cursor: pointer; transition: opacity .3s, border-color .3s; }
.type-thumbs button.is-on { border-color: var(--gold); opacity: 1; }
.type-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.type-body { display: grid; gap: 10px; padding: 16px 16px 18px; }
.type-row1 { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.type-row1 h3 { font-size: 20px; letter-spacing: -.03em; }
.type-surface { flex: none; padding: 4px 10px; border-radius: 999px; background: var(--sand); font-size: 12px; font-weight: 700; color: var(--gold-ink); white-space: nowrap; }
.type-row2 { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); }
.type-price { font-size: 32px; font-weight: 800; line-height: 1.02; letter-spacing: -.045em; color: var(--ink); white-space: nowrap; }
.type-price span { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.type-note { font-size: 12px; color: var(--muted); text-align: right; }
.type-rooms { font-size: 14px; color: var(--muted); }
.type-actions { display: grid; gap: 4px; margin-top: 4px; }
.type-actions .btn { width: 100%; }
.type-plan { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 6px; border: 0; background: none; color: var(--gold-ink); font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: zoom-in; }
.type-plan .icon { width: 16px; height: 16px; }

/* ---------- Paiement : frise réservation → solde → clés ---------- */
/* téléphone : frise verticale, un trait doré entre chaque pastille ; tablette et plus : frise horizontale */
/* remise des clés : halo doré derrière les clés ; la photo coupe les bras à gauche, à droite et en bas, on fond ces bords */
/* mobile : on rogne seulement sur les côtés (l'image déborde en largeur), pour ne pas couper le halo en haut */
.pay-keys { position: relative; display: grid; margin: 0 calc(var(--gutter) * -1) 36px; overflow: hidden; overflow: clip visible; }
.pay-keys::before { content: ""; position: absolute; left: 50%; top: 48%; width: min(440px, 72%); aspect-ratio: 1.3; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(201, 160, 107, .32), rgba(201, 160, 107, .08) 55%, transparent); pointer-events: none; }
.pay-hands {
  position: relative; width: 118%; max-width: none; height: auto; margin-left: -9%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 13%, #000 87%, transparent 100%), linear-gradient(0deg, transparent 0, #000 16%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 13%, #000 87%, transparent 100%), linear-gradient(0deg, transparent 0, #000 16%);
  mask-composite: intersect;
}
.pay-keys-tag {
  position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; white-space: nowrap;
  background: rgba(15, 28, 44, .78); border: 1px solid var(--gold-line); color: var(--white); font-size: 13px; font-weight: 700;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.pay-keys-tag .icon { width: 16px; height: 16px; color: var(--gold); }
.pay-keys-tag em { font-style: normal; color: var(--gold); }
.pay-track { position: relative; display: grid; grid-template-columns: 1fr; gap: 26px; max-width: 1000px; margin: 0 auto; }
.pay-track li { position: relative; display: grid; grid-template-columns: 56px 1fr; justify-items: start; align-content: start; column-gap: 16px; row-gap: 2px; padding: 0; text-align: left; }
.pay-track li:not(:last-child)::after { content: ""; position: absolute; left: 27px; top: 56px; bottom: -26px; width: 2px; background: linear-gradient(180deg, var(--gold), rgba(201, 160, 107, .35)); }
.pay-dot { position: relative; z-index: 1; grid-row: span 3; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--navy-2); border: 1px solid var(--gold-line); color: var(--gold); }
.pay-track li:first-child .pay-dot { background: linear-gradient(180deg, #D6B27F, var(--gold)); border: 0; color: var(--navy); }
.pay-dot .icon { width: 24px; height: 24px; }
.pay-when { margin-top: 2px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.pay-track h3 { font-size: 22px; letter-spacing: -.03em; line-height: 1.1; }
.pay-how { max-width: 17em; font-size: 15px; color: var(--mist); }
.pay-foot { display: grid; justify-items: stretch; gap: 24px; max-width: 1000px; margin: 36px auto 0; }
.pay-notes { display: flex; flex-direction: column; flex-wrap: wrap; justify-content: center; gap: 14px 28px; }
.pay-notes li { display: flex; gap: 10px; max-width: 30em; font-size: 14.5px; color: var(--mist); }
.pay-notes .icon { flex: none; margin-top: 2px; color: var(--gold); }
.pay-foot .btn, .loc-copy .btn, .about-row .btn { width: 100%; }

/* ---------- Localisation ---------- */
.loc-grid { display: grid; gap: 24px; }
.loc-copy .section-title { margin-bottom: 18px; }
.loc-address { display: flex; gap: 10px; font-size: 15.5px; color: var(--muted); }
.loc-address .icon { margin-top: 3px; color: var(--gold-ink); }
.loc-label { margin-top: 18px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.loc-list { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 10px 0 20px; }
/* cartes bleu nuit : photo du lieu fondue dans le sombre depuis le milieu, sous-titre doré */
.loc-list li {
  position: relative; overflow: hidden; isolation: isolate; min-height: 68px;
  display: flex; flex-direction: column; justify-content: center; padding: 12px 16px; border-radius: var(--r-sm);
  background: var(--navy); color: var(--white); box-shadow: 0 14px 30px -20px rgba(15, 28, 44, .8);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.loc-list li::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--gold), transparent 70%); }
.loc-list b, .loc-list span { position: relative; z-index: 1; text-shadow: 0 1px 8px rgba(15, 28, 44, .9); }
.loc-list b { display: flex; align-items: center; gap: 8px; font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
/* numéro de l'encadré, repris sur sa pastille de la carte */
.loc-nb { display: inline-grid; place-items: center; width: 20px; height: 20px; flex: none; border-radius: 50%; background: var(--gold); color: var(--navy); font-size: 11px; font-weight: 800; font-style: normal; text-shadow: none; }
.loc-list span { font-size: 12.5px; font-weight: 600; color: var(--gold); }
.loc-list img {
  position: absolute; z-index: 0; top: 0; left: 40%; width: 60%; height: 100%; object-fit: cover; opacity: .9;
  -webkit-mask-image: linear-gradient(90deg, transparent, rgba(0, 0, 0, .5) 40%, #000 80%);
  mask-image: linear-gradient(90deg, transparent, rgba(0, 0, 0, .5) 40%, #000 80%);
  transform-origin: right center; transition: transform .8s var(--ease);
}
@media (hover: hover) {
  .loc-list li:hover, .loc-list li.is-hl { transform: translateY(-2px); box-shadow: 0 20px 36px -20px rgba(15, 28, 44, .9); }
  .loc-list li:hover img, .loc-list li.is-hl img { transform: scale(1.08); }
}
.loc-media { display: grid; gap: 12px; }
/* carte : fond OpenStreetMap teinté ivoire, lieux en pastilles photo (Leaflet chargé à l'approche) */
/* contour : marie-louise blanche, filet doré intérieur autour de la carte, filet doré extérieur et ombre douce */
/* z-index 0 + isolation : les calques Leaflet (400 à 1000) restent sous l'en-tête et la barre collante */
.map { position: relative; z-index: 0; isolation: isolate; height: 400px; overflow: hidden; border-radius: var(--r-lg); background: var(--sand-2); border: 8px solid var(--white); box-shadow: 0 0 0 1px rgba(201, 160, 107, .45), 0 28px 56px -30px rgba(15, 28, 44, .5); }
.map::after { content: ""; position: absolute; inset: 0; z-index: 1000; border-radius: calc(var(--r-lg) - 8px); box-shadow: inset 0 0 0 1px rgba(201, 160, 107, .7), inset 0 0 0 4px rgba(255, 255, 255, .35); pointer-events: none; }
.map-fallback { position: absolute; inset: 0; display: grid; place-items: center; font-size: 15px; font-weight: 700; color: var(--gold-ink); }
.map.is-ready .map-fallback { display: none; }
.map-canvas { position: absolute; inset: 0; }
.map .leaflet-container { cursor: default; touch-action: pan-x pan-y !important; }
.map .leaflet-pane { pointer-events: none; }
.map .leaflet-container { background: var(--sand-2); font-family: var(--font); }
.map .leaflet-tile-pane { filter: grayscale(1) sepia(.28) brightness(1.06) contrast(.88); }
.map .leaflet-control-attribution { font-size: 10px; }
.map .mk { background: none; border: 0; }
.map .map-line { stroke-linecap: round; transition: stroke-width .3s, stroke-opacity .3s; }
.map .map-line.is-hl { stroke-width: 3.5px; stroke-opacity: 1; }
/* mobile : étiquette au-dessus du point (Souk El Had est juste en dessous) ; à droite dès la tablette */
.mk-home { position: absolute; left: 0; top: 0; width: max-content; display: flex; flex-direction: column-reverse; align-items: center; gap: 6px; transform: translate(-50%, calc(-100% + 11px)); white-space: nowrap; }
.mk-home i { position: relative; width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--gold); border: 3px solid var(--white); box-shadow: 0 6px 16px rgba(15, 28, 44, .45); }
.mk-home i::before { content: ""; position: absolute; inset: -12px; border-radius: 50%; border: 2px solid var(--gold); opacity: 0; animation: map-halo 2.4s var(--ease) infinite; }
.mk-home b { padding: 7px 13px; border-radius: 999px; background: var(--navy); color: var(--white); font-size: 13px; font-weight: 800; box-shadow: 0 10px 22px -10px rgba(15, 28, 44, .8); }
.mk-home b em { font-style: normal; color: var(--gold); }
.mk-place { position: absolute; left: 0; top: 0; width: max-content; display: flex; flex-direction: column; align-items: center; gap: 6px; transform: translate(-50%, -23px); }
.mk-place span { position: relative; width: 46px; height: 46px; border-radius: 50%; border: 3px solid var(--white); outline: 2px solid var(--gold); box-shadow: 0 10px 22px -8px rgba(15, 28, 44, .6); transition: transform .4s var(--ease); }
/* leaflet.css impose width: auto aux images des repères : on force la taille du cercle */
.map .mk-place span img { display: block; width: 100%; height: 100%; max-width: 100% !important; max-height: 100% !important; border-radius: 50%; object-fit: cover; }
.mk-nb { position: absolute; top: -5px; right: -6px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--navy); color: var(--gold); border: 2px solid var(--white); font-size: 10px; font-weight: 800; font-style: normal; }
/* lieu très proche de la résidence : pastille légèrement décalée en bas à droite (le fil doré pointe toujours vers elle), numéro en bas */
.mk-place.is-near { transform: translate(calc(-50% + 20px), -6px); }
.mk-place.is-near .mk-nb { top: auto; bottom: -5px; }
.mk-place b { display: none; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .95); color: var(--ink); font-size: 12px; font-weight: 700; box-shadow: 0 4px 12px -4px rgba(15, 28, 44, .4); }
.mk.is-hl { z-index: 2000 !important; }
.mk.is-hl .mk-place span { transform: scale(1.14); }

/* ---------- Qui est Graceful ---------- */
/* bandeau compact : logo, qui est Graceful, deux chiffres, bouton */
.about { padding: 0 0 calc(var(--section-y) * .5); }
.faq-section { padding-top: 0; padding-bottom: calc(var(--section-y) * .5); }
.about-row {
  display: grid; gap: 22px; align-items: center; padding: 22px 18px;
  border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line-light); box-shadow: var(--shadow-card);
}
.about-logo { width: 170px; }
.about-kicker { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-ink); }
.about-who h2 { margin-top: 2px; font-size: 17px; font-weight: 700; letter-spacing: -.015em; line-height: 1.35; text-wrap: pretty; }
.about-nums { display: flex; }
.about-nums p { flex: 1; }
.about-nums p + p { padding-left: 24px; border-left: 1px solid var(--line-light); }
.about-nums strong { display: block; font-size: 28px; font-weight: 800; line-height: 1; letter-spacing: -.045em; color: var(--gold-ink); }
.about-nums span { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); white-space: nowrap; }

/* ---------- FAQ ---------- */
/* téléphone et tablette : titre puis questions sur une colonne ; ordinateur : titre collant à gauche */
.faq-grid { display: grid; gap: 0; }
.faq-aside { display: contents; }
.faq-aside .eyebrow, .faq-aside .section-title { justify-self: start; }
.faq-aside .section-title { margin-bottom: 24px; }
.faq { display: grid; gap: 10px; }
.faq details { border-radius: var(--r); background: var(--white); border: 1px solid var(--line-light); transition: border-color .25s, box-shadow .25s; }
.faq details[open] { border-color: var(--gold-line); box-shadow: var(--shadow-card); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; padding: 12px 14px 12px 18px; cursor: pointer; list-style: none;
  font-weight: 700; font-size: 15.5px; letter-spacing: -.01em; transition: color .2s;
}
.faq summary:hover { color: var(--gold-ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 32px; height: 32px; padding: 7px; border-radius: 50%; background: var(--sand); color: var(--ink); transition: transform .3s var(--ease), background-color .3s, color .3s; }
.faq details[open] summary .icon { transform: rotate(45deg); background: var(--navy); color: var(--gold); }
.faq-a p { padding: 0 18px 16px; color: var(--muted); }
.faq details::details-content { height: 0; overflow: clip; transition: height .35s var(--ease), content-visibility .35s allow-discrete; }
.faq details[open]::details-content { height: auto; }

/* ---------- Chiffres géants ---------- */
.giant { position: relative; background: radial-gradient(60% 50% at 50% 50%, rgba(201, 160, 107, .2), transparent 70%), #05090F; color: var(--white); }
.giant-stick { display: grid; gap: 56px; padding: var(--section-y) 20px; }
.giant-slide { display: grid; justify-items: center; text-align: center; }
.giant-slide > small, .giant-form-head small { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #D6B27F; }
.giant-slide > b {
  /* marge latérale : avec l'interlettrage serré, le dernier chiffre déborde de la boîte et le dégradé (clip texte) le couperait */
  display: block; margin: 10px -.12em 6px; padding: 0 .12em; font-size: min(24vw, 38vh); font-weight: 800; letter-spacing: -.07em; line-height: .88; white-space: nowrap;
  background: linear-gradient(180deg, #FFF6E6 0%, #F3DDB6 35%, var(--gold) 70%, var(--gold-ink) 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.giant-slide > b sup { font-size: .3em; letter-spacing: -.02em; vertical-align: .9em; }
.giant-slide > p { max-width: 26em; font-size: clamp(17px, 2vw, 24px); font-weight: 300; color: #E9ECF0; }
.giant-slide > .btn { margin-top: 28px; }
.giant-dots { display: none; }
/* version animée : la section est haute, son contenu reste collé à l'écran */
.giant.is-live { height: 480vh; }
/* 100svh : hauteur visible quand la barre d'adresse mobile est affichée, le chiffre reste centré dans ce qu'on voit */
.giant.is-live .giant-stick { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: block; padding: 0; }
.giant.is-live .giant-slide { position: absolute; inset: 0; place-content: center; padding: 0 20px; opacity: 0; will-change: transform, opacity, filter; }
.giant.is-live .giant-dots { position: absolute; right: 12px; top: 50%; display: grid; gap: 12px; transform: translateY(-50%); }
.giant-dots { transition: opacity .3s; }
/* téléphone : sur le formulaire, les points de progression mordraient sur la carte */
.giant.is-at-form .giant-dots { opacity: 0; }
.giant-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .25); transition: background .3s, transform .3s; }
.giant-dots i.is-on { background: #D6B27F; transform: scale(1.6); }
/* Dernière étape : le formulaire, aux couleurs de la section */
.giant.has-form.is-live { height: 580vh; }
.giant.has-form .giant-slide:nth-child(4) > .btn { display: none; } /* le formulaire suit, le bouton ferait doublon */
.giant-slide[hidden] { display: none !important; }
.giant-slide--form { gap: 22px; }
.giant.is-live .giant-slide--form { padding-top: var(--header-h); }
.giant-form-head { display: grid; justify-items: center; gap: 10px; }
.giant-form-title {
  font-size: clamp(34px, 6vw, 84px); font-weight: 800; letter-spacing: -.05em; line-height: 1;
  background: linear-gradient(180deg, #FFF6E6 0%, #F3DDB6 40%, var(--gold) 80%, var(--gold-ink) 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.giant-form-title em { font-weight: 300; font-style: italic; padding-right: .08em; }
.giant-form-text { max-width: 24em; font-size: 16px; font-weight: 300; color: var(--mist); }
.giant-form { width: min(440px, 100%); text-align: left; }
/* téléphone : le grand titre dit déjà tout, la carte ne garde que les champs */
.giant [data-step="1"] > .form-title, .giant [data-step="1"] > .form-intro { display: none; }
.giant [data-step="1"] > .field:first-of-type { margin-top: 0; }
.giant .card-form .form-meta { display: none; }
.giant .card-form { background: rgba(255, 255, 255, .045); color: var(--white); border: 1px solid rgba(201, 160, 107, .32); box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .06); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.giant .card-form .sold { display: none; } /* le +65 % vient d'être montré en grand */
.giant .form-title { color: var(--white); }
.giant .form-intro, .giant .form-progress-label { color: var(--mist); }
.giant .form-chosen { color: var(--white); }
.giant .field label, .giant .choices legend { color: #E9ECF0; }
.giant .field input, .giant .cc select { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .18); }
.giant .field input { color: var(--white); } /* le select reste transparent : c'est l'étiquette « +212 » qui s'affiche */
.giant .field input::placeholder { color: #8D97A5; }
.giant .field input:hover, .giant .cc select:hover { border-color: rgba(255, 255, 255, .35); }
.giant .field input:focus, .giant .cc select:focus { background: rgba(255, 255, 255, .1); border-color: var(--gold); }
.giant .cc-label { color: var(--white); }
.giant .field-error, .giant .form-status { color: #FF9C8F; }
.giant .choices.is-missing legend { color: #FF9C8F; }
.giant .choices.is-missing .chip span { border-color: #FF9C8F; }
.giant .field input[aria-invalid="true"] { border-color: #FF9C8F; }
.giant .form-meta { border-top-color: rgba(255, 255, 255, .1); }
.giant .form-meta li { color: var(--mist); }
.giant .form-meta .icon { color: var(--gold); }
.giant .form-ok { background: rgba(34, 163, 90, .16); color: #7EE2A0; }
.giant .chip span { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .18); color: var(--white); }
.giant .chip:hover span { border-color: var(--gold); }
.giant .chip input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.giant .chip input:checked + span::before { border-color: var(--navy); }
/* après l'envoi (étape 2, plus haute) : la section redevient un simple bloc, seul le formulaire reste */
.giant.is-form-only { padding: calc(var(--header-h) + 24px) 0 var(--section-y); }
.giant.is-form-only .giant-stick { display: block; padding: 0 20px; }
.giant.is-form-only .giant-slide:not(.giant-slide--form), .giant.is-form-only .giant-dots { display: none; }
.giant-form-title em { white-space: nowrap; } /* « sur WhatsApp. » ne se coupe pas */
/* téléphones à écran court (iPhone SE, Android avec barre d'adresse) : l'étape doit tenir entière dans l'écran,
   sinon le bouton d'envoi est rogné par la scène collante */
@media (max-width: 767px) and (max-height: 760px) {
  .giant-slide--form { gap: 14px; }
  .giant-form-head { gap: 6px; }
  .giant-form-title { font-size: 30px; }
  .giant-form-text { display: none; }
  .giant .card-form { padding: 16px 16px 14px; }
  .giant .field { margin-top: 10px; }
  .giant .field label { margin-bottom: 4px; }
  .giant .field input, .giant .cc select { min-height: 50px; }
  .giant .field input { padding-top: 10px; padding-bottom: 10px; }
  .giant .card-form .btn { margin-top: 14px; min-height: 52px; }
}
@media (min-width: 768px) {
  .giant-slide > small, .giant-form-head small { font-size: 12px; letter-spacing: .26em; }
  .giant.is-live .giant-dots { right: 24px; }
  .giant.is-at-form .giant-dots { opacity: 1; }
  .giant-slide--form { gap: 28px; }
  .giant-form-text { font-size: 18px; color: #E9ECF0; }
  .giant [data-step="1"] > .form-title, .giant [data-step="1"] > .form-intro { display: block; }
  .giant [data-step="1"] > .field:first-of-type { margin-top: 16px; }
  .giant .card-form .form-meta { display: grid; }
}
@media (min-width: 1024px) {
  .giant-slide--form { grid-template-columns: minmax(0, 1fr) 440px; align-items: center; justify-items: start; gap: 64px; max-width: 1100px; margin: 0 auto; text-align: left; }
  .giant.is-live .giant-slide--form { padding-left: 40px; padding-right: 40px; }
  .giant-form-head { justify-items: start; }
}

/* ---------- CTA final ---------- */
/* Typologies → CTA final → Promoteur → FAQ : même fond clair. Un seul écart (moitié de --section-y) entre chaque bloc, au lieu de deux marges qui s'additionnent */
.types-section { padding-bottom: 0; }
/* Tablette et ordinateur : de l'air entre la fiche et le bandeau défilant */
@media (min-width: 768px) { .types-section { padding-bottom: calc(var(--section-y) * .6); } }
.final { background: var(--paper); padding-top: calc(var(--section-y) * .5); padding-bottom: calc(var(--section-y) * .5); }
.final-panel { position: relative; overflow: hidden; isolation: isolate; padding: 48px 18px 0; border-radius: var(--r-lg); background: radial-gradient(55% 50% at 50% 100%, rgba(201, 160, 107, .42), transparent 70%), var(--navy); color: var(--white); text-align: center; }
.final-note { position: absolute; right: 16px; top: 16px; padding: 4px 10px; border-radius: 999px; background: rgba(15, 28, 44, .5); color: rgba(255, 255, 255, .8); font-size: 12px; font-weight: 600; }
.final-title { max-width: 17em; margin: 0 auto; font-size: clamp(28px, 7.4vw, 46px); text-wrap: balance; }
.final-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 22px; margin-top: 28px; }
.final-actions .btn { width: 100%; }
.final-wa { display: inline-flex; align-items: center; gap: 8px; color: var(--mist); font-size: 14px; font-weight: 600; }
/* l'immeuble descend sous le bord du panneau : la base est coupée par le bas */
.final-building { display: block; width: calc(100% + 36px); max-width: none; height: auto; margin: 24px -18px -5%; }
/* Variante « chiffres géants » (page d'accueil) : overflow clip et non hidden, sinon les chiffres ne restent pas collés à l'écran */
.site-footer--giant { overflow: clip; padding-top: 0; background: #05090F; }
/* pas de filet doré en haut : les rubans croisés font déjà la transition */
.site-footer--giant::before { content: none; }
/* téléphone et tablette : place laissée à la barre collante sous le © */
.site-footer--giant .footer-inner { position: relative; padding: 40px 0 96px; }
.site-footer--giant .footer-inner::before { content: ""; position: absolute; left: 50%; top: 0; width: min(560px, 80%); height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, var(--gold-line), transparent); }
.page-simple .site-footer { padding-bottom: 0; }

/* ---------- Apparitions au défilement ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.orbit-hint { will-change: opacity; }

/* Téléphone et tablette : pas de flou d'arrière-plan, recalculé à chaque image du défilement ; fond plus opaque à la place */
@media (max-width: 1023px) {
  .pay-keys-tag { background: rgba(15, 28, 44, .85); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- Sections hors écran : mise en page calculée seulement à l'approche ---------- */
/* --h : hauteur estimée, pour que la barre de défilement reste stable ; le navigateur retient ensuite la vraie hauteur */
[aria-labelledby="why-title"], .orbit-section, .types-section, .pay, .final, .about, .faq-section {
  content-visibility: auto; contain-intrinsic-size: auto var(--h, 800px);
}
[aria-labelledby="why-title"] { --h: 1470px; }
.orbit-section { --h: 720px; }
.types-section { --h: 875px; }
.pay { --h: 980px; }
.final { --h: 580px; }
.about { --h: 340px; }
.faq-section { --h: 460px; }
@media (min-width: 1024px) {
  [aria-labelledby="why-title"] { --h: 1750px; }
  .orbit-section { --h: 1230px; }
  .types-section { --h: 980px; }
  .pay { --h: 1270px; }
  .final { --h: 1040px; }
  .about { --h: 190px; }
  .faq-section { --h: 440px; }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
  .js .thanks-icon circle, .js .thanks-icon path { stroke-dashoffset: 0; }
}

/* ---------- Tablette ---------- */
@media (min-width: 768px) {

  /* Rythme général */
  .section-head { margin-bottom: 40px; }
  .section-sub { margin-top: 16px; font-size: 17px; }

  /* Pourquoi Yacout */
  .why-stage { height: 340px; }
  .why-big { font-size: 120px; left: 22px; }
  .why-cap { right: 22px; bottom: 26px; padding: 9px 16px; font-size: 13.5px; }
  .why-step { min-height: 280px; }
  .why-step h3 { font-size: 34px; }
  .why-step p { font-size: 17px; }

  /* Vue 3D, visite intérieure, bandeau */
  .orbit { border-radius: var(--r-lg); }
  .orbit-range { margin-top: 22px; }
  .orbit-actions { flex-direction: row; align-items: normal; gap: 12px; margin-top: 32px; }
  .interior-frame { border-radius: var(--r-lg); }
  .interior-foot { flex-direction: row; align-items: center; margin-top: 20px; }
  .interior-foot .disclaimer { order: 0; text-align: inherit; }
  .marquee { padding: 20px 0; }
  .marquee li { font-size: 19px; }
  .marquee li::after { width: 7px; height: 7px; margin: 0 28px; }
  .wave { height: 48px; }
  .ribbons { height: 160px; }
  .ribbon { padding: 14px 0; }
  .ribbon li { font-size: 16px; }
  .ribbon li::after { width: 7px; height: 7px; margin: 0 24px; }

  /* Typologies */
  .types { gap: 18px; }
  .types-switch { justify-self: start; }
  .types-switch button { flex: none; min-height: 50px; padding: 8px 24px; font-size: 15px; }
  .types-switch small { display: inline; margin-left: 6px; font-size: 12.5px; }
  .type-panel { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); border-radius: var(--r-lg); }
  .type-media { aspect-ratio: auto; min-height: 420px; }
  .type-img { position: absolute; inset: 0; }
  .type-cap { left: 14px; top: auto; bottom: 14px; font-size: 11.5px; }
  .type-thumbs { right: 12px; bottom: 12px; gap: 6px; padding: 5px; border-radius: 14px; }
  .type-thumbs button { width: 58px; height: 40px; }
  .type-body { align-content: center; gap: 16px; padding: 34px 32px; }
  .type-row1 { flex-direction: column; align-items: flex-start; gap: 10px; }
  .type-row1 .type-surface { order: -1; padding: 5px 12px; font-size: 13px; }
  .type-row1 h3 { font-size: 28px; }
  .type-row2 { padding: 18px 0; }
  .type-price { font-size: 42px; }
  .type-price span { margin-bottom: 6px; font-size: 13px; }
  .type-note { font-size: 13px; }
  .type-rooms { font-size: 15px; }
  .type-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 6px; }
  .type-actions .btn { width: auto; }

  /* Paiement : frise horizontale, trait gris de pastille à pastille et trait doré qui se remplit par-dessus */
  .pay-keys { max-width: 760px; margin: 4px auto 48px; overflow: visible; }
  .pay-hands { width: 100%; margin-left: 0; }
  .pay-keys-tag { left: calc(50% + 70px); top: 16%; bottom: auto; transform: none; }
  .pay-track { grid-template-columns: repeat(3, 1fr); gap: normal; }
  .pay-track::before, .pay-track::after { content: ""; position: absolute; top: 27px; left: 16.66%; height: 2px; border-radius: 2px; }
  .pay-track::before { right: 16.66%; background: rgba(255, 255, 255, .12); }
  .pay-track::after { width: 0; background: linear-gradient(90deg, var(--gold), #F3DDB6); transition: width 1.6s var(--ease) .3s; }
  .pay-track.is-in::after { width: 66.66%; }
  .pay-track li { grid-template-columns: none; justify-items: center; gap: 8px; padding: 0 12px; text-align: center; }
  .pay-track li:not(:last-child)::after { content: none; }
  .pay-dot { grid-row: auto; }
  .pay-when { margin-top: 10px; }
  .pay-track h3 { font-size: 28px; }
  .pay-foot { justify-items: center; gap: 28px; margin-top: 52px; }
  .pay-notes { flex-direction: row; }
  .pay-notes li { font-size: 15px; }
  .pay-foot .btn, .loc-copy .btn, .about-row .btn { width: auto; }

  /* Localisation */
  .loc-grid { gap: 36px; }
  .loc-address { font-size: 17px; }
  .loc-label { margin-top: 26px; }
  .loc-list { grid-template-columns: 1fr 1fr; margin: 12px 0 30px; }
  .loc-list li { min-height: 76px; padding: 12px 18px; }
  .loc-list b { font-size: 16px; }
  .map { height: 480px; }
  .mk-home { flex-direction: row; gap: 8px; transform: translate(-11px, -11px); }
  .mk-place { transform: translate(-50%, -31px); }
  .mk-place span { width: 62px; height: 62px; }
  .mk-nb { top: -6px; right: -8px; width: 22px; height: 22px; font-size: 11px; }
  .mk-place.is-near { transform: translate(calc(-50% + 26px), -10px); }
  .mk-place.is-near .mk-nb { top: auto; bottom: -6px; }
  .mk-place b { display: block; }
  .about-row { padding: 28px 32px; }
  .final-panel { padding: 64px 40px 0; }
  .final-actions .btn { width: auto; }
  .final-building { width: 100%; max-width: 980px; margin: 28px auto -2.5%; }
}

/* ---------- Ordinateur ---------- */
@media (min-width: 1024px) {
  /* vidéo source en 720 px de large : on la garde proche de sa taille réelle */
  .interior-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 64px; align-items: center; }
  .interior-grid .section-head { margin-bottom: 0; }
  .why-story { grid-template-columns: 1fr 1.1fr; gap: 64px; }
  .why-steps { padding-left: 36px; }
  .why-stage { order: 0; top: calc(var(--header-h) + 24px); align-self: start; height: min(580px, calc(100vh - var(--header-h) - 48px)); border-radius: var(--r-lg); }
  .why-big { font-size: 150px; }
  .why-step { min-height: 320px; }
  .why-step h3 { font-size: 40px; }

  /* vue 3D : tient entière dans la hauteur d'un écran de portable (image en 848/478) */
  .orbit-wrap { max-width: min(1000px, calc((100vh - var(--header-h) - 150px) * 1.774)); }

  .section-head { margin-bottom: 56px; }

  .type-media { min-height: 480px; }
  .type-body { padding: 40px 40px; }
  .type-row1 h3 { font-size: 30px; }
  .type-price { font-size: 46px; }

  .loc-grid { grid-template-columns: 1fr 1.25fr; gap: 72px; align-items: center; }
  .map { height: 560px; }

  .about-row { grid-template-columns: auto 1fr auto auto auto; gap: 32px; }
  .about-nums { display: contents; }
  .about-nums p { padding-left: 24px; border-left: 1px solid var(--line-light); }

  .faq-grid { grid-template-columns: 380px 1fr; gap: 72px; align-items: start; }
  .faq-aside { display: block; position: sticky; top: calc(var(--header-h) + 32px); }
  .faq-aside .eyebrow, .faq-aside .section-title { justify-self: auto; }
  .faq summary { min-height: 64px; padding: 16px 18px 16px 22px; font-size: 17.5px; }
  .faq-a p { padding: 0 60px 20px 22px; }

  .site-footer--giant .footer-inner { padding-bottom: 32px; }
}

/* petits portables */
@media (min-width: 1024px) and (max-width: 1279px) {
  .about-row { gap: 24px; padding: 26px 26px; }
  .about-logo { width: 140px; }
  .about-nums p { padding-left: 20px; }
}

/* ---------- Pages secondaires (merci, mentions légales, confidentialité) ---------- */
.page-simple { min-height: 100vh; display: flex; flex-direction: column; }
.page-simple main { flex: 1; }
.page-simple .site-header { position: relative; }
.back-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 16px 8px 12px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04);
  font-size: 14px; font-weight: 600; color: var(--white); text-decoration: none; transition: background-color .2s, border-color .2s;
}
.back-link .icon { width: 16px; height: 16px; color: var(--gold); }
.back-link:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .26); }
/* Page de remerciement */
.thanks { position: relative; overflow: clip; padding: 48px 0 72px; background: radial-gradient(60% 40% at 20% 0%, rgba(201, 160, 107, .16), transparent 70%), var(--navy); }
.thanks-grid { display: grid; gap: 40px; align-items: start; }
.thanks-icon { display: block; width: 64px; height: 64px; margin-bottom: 22px; color: var(--gold); }
.js .thanks-icon circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw .9s var(--ease) .1s forwards; }
.js .thanks-icon path { stroke-dasharray: 34; stroke-dashoffset: 34; animation: draw .5s var(--ease) .7s forwards; }
.thanks h1 { font-size: clamp(32px, 8vw, 52px); letter-spacing: -.04em; }
.thanks-lead { margin-top: 16px; max-width: 32em; font-size: 17px; color: var(--mist); }
.thanks-timeline { position: relative; display: grid; margin-top: 32px; }
.thanks-timeline::before { content: ""; position: absolute; left: 19px; top: 20px; bottom: 40px; width: 2px; background: linear-gradient(var(--gold) 45%, var(--navy-line) 45%); }
.thanks-timeline li { position: relative; display: flex; gap: 16px; padding-bottom: 22px; }
.tl-dot { position: relative; z-index: 1; display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--navy-2); border: 1px solid var(--navy-line); font-size: 14px; font-weight: 800; color: var(--mist); }
.tl-dot .icon { width: 18px; height: 18px; }
.is-done .tl-dot { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.is-current .tl-dot { border-color: var(--gold); }
.is-current .tl-dot::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.is-current .tl-dot::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--gold); animation: ring 2s var(--ease) infinite; }
.thanks-timeline p { padding-top: 8px; }
.thanks-timeline strong { display: block; font-size: 16.5px; }
.thanks-timeline p span { display: block; margin-top: 2px; font-size: 14.5px; color: var(--mist); }
.thanks-facts { display: grid; gap: 10px; margin-top: 8px; padding-top: 22px; border-top: 1px solid var(--navy-line); }
.thanks-facts p { display: flex; align-items: flex-start; gap: 12px; font-size: 14.5px; color: var(--mist); }
.thanks-facts .icon { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--gold); }
.thanks-facts strong { display: block; color: var(--white); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.thanks-photo { position: relative; margin: 48px 0 0; overflow: hidden; border-radius: var(--r-lg); }
.thanks-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.thanks-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 20, 32, .85), transparent 55%); }
.thanks-photo figcaption { position: absolute; left: 20px; bottom: 18px; z-index: 1; }
.thanks-photo figcaption strong { display: block; font-size: 20px; letter-spacing: -.02em; }
.thanks-photo figcaption span { font-size: 14px; color: var(--mist); }
.thanks-photo .img-note { z-index: 1; }
.thanks-back { margin-top: 20px; text-align: center; }
.thanks-back a { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--gold); text-decoration: none; }
.thanks-back .icon { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.thanks-back a:hover .icon { transform: translateX(4px); }

/* Assistant (page de remerciement) */
.chat { display: flex; flex-direction: column; border-radius: var(--r); background: var(--paper); color: var(--ink); box-shadow: var(--shadow-pop); overflow: hidden; }
.chat[hidden] { display: none; }
.chat-head { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: var(--white); border-bottom: 1px solid var(--line-light); }
.chat-avatar { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--gold); font-size: 19px; font-weight: 800; box-shadow: 0 0 0 3px var(--gold-soft); }
.chat-head h2 { font-size: 18px; letter-spacing: -.02em; }
.chat-head p { display: flex; align-items: center; gap: 8px; margin-top: 2px; font-size: 13px; color: var(--muted); }
.chat-head .live-dot { width: 7px; height: 7px; }
.chat-log { display: flex; flex-direction: column; gap: 10px; height: min(52vh, 380px); padding: 18px 16px; overflow-y: auto; } /* pas d’overscroll-behavior: contain : arrivé en haut ou en bas de la conversation, le défilement passe à la page */
.chat-msg { max-width: 86%; padding: 11px 14px; border-radius: 18px; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; animation: rise .35s var(--ease) both; }
.chat-bot { align-self: flex-start; background: var(--white); border: 1px solid var(--line-light); border-bottom-left-radius: 6px; }
.chat-user { align-self: flex-end; background: var(--navy); color: var(--white); border-bottom-right-radius: 6px; white-space: pre-wrap; }
.chat-bot a { color: var(--gold-ink); }
.chat-error { color: #8A2F12; background: #FCEDE6; border-color: #F3D3C4; }
.chat-error button { margin-left: 4px; padding: 0; border: 0; background: none; font: inherit; font-weight: 700; color: inherit; text-decoration: underline; cursor: pointer; }
.chat-typing { display: inline-flex; gap: 5px; padding: 15px 16px; }
.chat-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); animation: bounce 1.2s infinite ease-in-out; }
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .3s; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 14px; }
.chat-chips[hidden] { display: none; }
.chat-chips button { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--gold-line); background: var(--white); font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink); cursor: pointer; transition: background .2s, border-color .2s; }
.chat-chips button:hover { background: var(--gold-soft); border-color: var(--gold); }
.chat-form { display: flex; align-items: flex-end; gap: 8px; margin: 0 12px; padding: 6px 6px 6px 16px; border-radius: 24px; background: var(--white); border: 1px solid var(--field-border); transition: border-color .2s, box-shadow .2s; }
.chat-form:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.chat-form textarea { flex: 1; min-height: 40px; max-height: 120px; padding: 9px 0; border: 0; outline: 0; resize: none; background: transparent; font: inherit; font-size: 16px; line-height: 1.4; color: var(--ink); }
.chat-send { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: linear-gradient(180deg, #D6B27F, var(--gold)); color: var(--navy); cursor: pointer; transition: transform .2s var(--ease), opacity .2s; }
.chat-send .icon { width: 18px; height: 18px; }
.chat-send:hover { transform: scale(1.06); }
.chat-send:disabled { opacity: .5; cursor: default; transform: none; }
.chat-note { padding: 10px 20px 16px; font-size: 12px; color: var(--muted); text-align: center; }
@media (min-width: 768px) {
  .chat { border-radius: var(--r-lg); }
  .chat-log { height: 340px; }
}
@media (min-width: 1024px) {
  .thanks { padding: 72px 0 96px; }
  .thanks-grid { grid-template-columns: 1fr 440px; gap: 72px; }
  .chat { position: sticky; top: 24px; }
  .chat-log { height: 380px; }
  .thanks-photo { margin-top: 72px; }
  .thanks-photo img { aspect-ratio: 21 / 9; }
  .thanks-photo figcaption { left: 32px; bottom: 28px; }
  .thanks-photo figcaption strong { font-size: 26px; }
}
/* Pages légales */
.legal-hero { position: relative; overflow: clip; padding: 48px 0 36px; background: radial-gradient(60% 80% at 85% 0%, rgba(201, 160, 107, .16), transparent 70%), linear-gradient(180deg, var(--navy), var(--navy-3)); }
.legal-hero .container, .legal .container { max-width: 840px; }
.legal-hero h1 { font-size: clamp(36px, 9vw, 56px); letter-spacing: -.04em; }
.legal-hero h1 em { color: var(--gold); }
.legal-lead { max-width: 36em; margin-top: 14px; font-size: 17px; color: var(--mist); }
.legal-tabs { display: inline-flex; gap: 4px; margin-top: 26px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--navy-line); }
.legal-tabs a { padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--mist); text-decoration: none; transition: color .2s, background-color .2s; }
.legal-tabs a:hover { color: var(--white); }
.legal-tabs a[aria-current="page"] { background: var(--gold); color: var(--navy); }
.legal { background: var(--sand); color: var(--ink); padding: 28px 0 80px; }
.legal-body { padding: 6px 20px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line-light); box-shadow: var(--shadow-card); }
.legal-body section { padding: 24px 0; }
.legal-body section + section { border-top: 1px solid var(--line-light); }
.legal-body h2 { font-size: 20px; letter-spacing: -.025em; }
.legal-body p { margin-top: 10px; color: var(--muted); }
.legal-body strong { color: var(--ink); }
.legal-body a { color: var(--gold-ink); font-weight: 600; text-underline-offset: 3px; }
@media (min-width: 768px) {
  .legal-hero { padding: 72px 0 48px; }
  .legal { padding-top: 40px; }
  .legal-body { padding: 12px 44px; }
  .legal-body section { padding: 30px 0; }
}
@keyframes marquee { to { transform: translateX(-100%); } }
@keyframes wave-x { to { transform: translateX(-50%); } }
@keyframes map-halo { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-5px); opacity: 1; } }
