/* Double Six Farm — feuille de style (v15) */

:root {
  --paper: #FDFAF3;
  --paper-2: #FFFFFF;
  --panel: #F7EFD8;
  --cream: #F3E2A8;
  --sun: #F6EAC4;
  --ink: #211C16;
  --ink-soft: #554E42;
  --muted: #8C8069;
  --charcoal: #33303A;
  --red: #C4362C;
  --red-deep: #99251D;
  --gold: #E7B21C;
  --line: rgba(33, 28, 22, 0.12);
  --line-2: rgba(33, 28, 22, 0.22);
  --on-dark: #F7EFDC;
  --focus: #2C7BE5;
  --fb: #1877F2;
  --f-head: "Archivo", Arial, sans-serif;
  --f-body: "Mulish", "Helvetica Neue", Arial, sans-serif;
  --f-display: "Zilla Slab", "Archivo", Georgia, serif;  /* écho du panneau peint du ranch */

  --wrap: 1660px;          /* conteneur large — on exploite toute la largeur */
  --wrap-mid: 1180px;      /* colonnes de lecture (formulaire, FAQ) */
  --gutter: clamp(1.1rem, 3.5vw, 2.6rem);
  --head-h: 76px;

  --s--1: clamp(0.82rem, 0.79rem + 0.14vw, 0.94rem);
  --s-0: clamp(1rem, 0.96rem + 0.2vw, 1.14rem);
  --s-1: clamp(1.12rem, 1rem + 0.5vw, 1.45rem);
  --s-2: clamp(1.4rem, 1.05rem + 1.15vw, 2.15rem);
  --s-3: clamp(1.8rem, 1.15rem + 2.6vw, 3.15rem);
  --s-4: clamp(2.1rem, 1.15rem + 3.8vw, 4.4rem);
  --s-5: clamp(2.9rem, 0.6rem + 8vw, 8rem);
  --s-6: clamp(3.4rem, 0.2rem + 11vw, 10.5rem);

  /* moteur de mouvement — un seul jeu d'easing, tenu partout */
  --ease: cubic-bezier(.16, 1, .3, 1);       /* sortie douce, "arrivée qui se pose" */
  --ease-io: cubic-bezier(.62, .04, .3, 1);  /* aller-retour */
  --dur: .8s;
  --dur-s: .45s;

  color-scheme: light;   /* charte cream/rouge — pas de bascule sombre */
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-body); font-size: var(--s-0); line-height: 1.58; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; } }

h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
a { color: var(--red-deep); }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
[hidden] { display: none !important; }

.wrap { width: min(100% - (var(--gutter) * 2), var(--wrap)); margin-inline: auto; }
.wrap.mid { --wrap: var(--wrap-mid); }

.eyebrow { font-family: var(--f-head); font-size: var(--s--1); font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--red); display: inline-flex; align-items: center; gap: 0.7rem; }
.eyebrow::before { content: ""; width: 34px; height: 3px; background: currentColor; border-radius: 2px; transform-origin: left center; transform: scaleX(0.3); transition: transform .75s var(--ease) .15s; }
.rv.in .eyebrow::before, .in .eyebrow::before { transform: scaleX(1); }

.btn { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--f-head); font-weight: 700; font-size: 0.96rem; letter-spacing: 0.01em; padding: 0.85rem 1.5rem; border-radius: 8px; border: 1.5px solid var(--red); background: var(--red); color: #fff; text-decoration: none; cursor: pointer; transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.btn::after { content: "\2192"; display: inline-block; transition: transform .22s ease; }
.btn:hover { transform: translateY(-2px); background: var(--red-deep); border-color: var(--red-deep); box-shadow: 0 14px 26px -12px rgba(196,54,44,0.55); }
.btn:hover::after { transform: translateX(4px); }
.btn.big { font-size: 1.06rem; padding: 1rem 2rem; }
.btn.xl { font-size: 1.14rem; padding: 1.15rem 2.4rem; border-radius: 10px; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--red); color: var(--red-deep); background: transparent; box-shadow: none; }
.btn.plain::after { content: none; }

.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--red); z-index: 260; }

/* ---------- header ---------- */
header { position: sticky; top: 0; z-index: 250; background: var(--paper); border-bottom: 1px solid var(--line); transition: background .18s ease, border-color .18s ease, box-shadow .3s ease; }
body.scrolled header { box-shadow: 0 12px 38px -26px rgba(20,14,8,0.65); }
header .row { display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; min-height: var(--head-h); padding-block: 0.6rem; }
.logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--ink); }
.logo svg { flex: none; display: block; width: 48px; height: 42px; transition: transform .3s cubic-bezier(.16,1,.3,1); }
.logo:hover svg { transform: rotate(-6deg) scale(1.06); }
.logo .name { font-family: var(--f-head); font-weight: 800; font-size: 1.16rem; letter-spacing: 0.02em; line-height: 1; text-transform: uppercase; }
.logo .name small { display: block; font-family: var(--f-head); font-weight: 600; font-size: 0.56rem; letter-spacing: 0.24em; color: var(--muted); margin-top: 0.34rem; }
nav.primary { display: flex; align-items: center; flex-wrap: nowrap; gap: clamp(1rem, 1.4vw, 2rem); }
nav.primary a { color: var(--ink-soft); text-decoration: none; font-family: var(--f-head); font-size: clamp(0.8rem, 0.7rem + 0.3vw, 0.9rem); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.45rem 0; position: relative; white-space: nowrap; transition: color .2s ease; }
nav.primary a:not(.nav-book)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--red); transition: right .28s cubic-bezier(.16,1,.3,1); }
nav.primary a:not(.nav-book):hover { color: var(--ink); }
nav.primary a:not(.nav-book):hover::after,
nav.primary a:not(.nav-book).active::after { right: 0; }
nav.primary a.active { color: var(--red-deep); }
nav.primary a.nav-book { background: var(--red); color: #fff; padding: 0.8rem 1.5rem; border-radius: 8px; letter-spacing: 0.06em; box-shadow: 0 12px 26px -14px rgba(196,54,44,0.6); transition: background .2s ease, transform .2s ease, box-shadow .2s ease; }
nav.primary a.nav-book:hover { background: var(--red-deep); color: #fff; transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(196,54,44,0.7); }
nav.primary a.nav-faq { font-size: 0.76rem; color: var(--muted); letter-spacing: 0.08em; }
nav.primary a.nav-faq:hover { color: var(--ink); }
.burger { display: none; background: none; border: 1.5px solid var(--line-2); border-radius: 7px; width: 46px; height: 42px; cursor: pointer; color: var(--ink); font-size: 1.15rem; }

/* accueil : barre intégrée, sans fond — le fond n'arrive qu'au défilement */
body.home header { position: fixed; inset: 0 0 auto 0; background: transparent; border-bottom-color: transparent; }
body.home header::after { content: ""; position: absolute; inset: 0 0 -40px; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(8,5,3,0.68) 0%, rgba(8,5,3,0.22) 55%, rgba(8,5,3,0)); transition: opacity .3s ease; }
body.home:not(.scrolled) .logo, body.home:not(.scrolled) .logo .name { color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,0.45); }
body.home:not(.scrolled) .logo .name small { color: rgba(255,255,255,0.8); }
@media (min-width: 1141px) {
  body.home:not(.scrolled) nav.primary a { color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,0.6); }
  body.home:not(.scrolled) nav.primary a:not(.nav-book)::after { background: #fff; }
  body.home:not(.scrolled) nav.primary a:not(.nav-book):hover, body.home:not(.scrolled) nav.primary a.active { color: #fff; }
  body.home:not(.scrolled) nav.primary a.nav-faq { color: rgba(255,255,255,0.7); }
}
body.home:not(.scrolled) .burger { color: #fff; border-color: rgba(255,255,255,0.6); }
body.home.scrolled header { background: var(--paper); border-bottom-color: var(--line); }
body.home.scrolled header::after { opacity: 0; }

@media (max-width: 1140px) {
  .burger { display: block; }
  nav.primary { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 0.5rem var(--gutter) 1.1rem; box-shadow: 0 20px 40px -24px rgba(20,14,8,0.5); }
  nav.primary:not(.open) { display: none; }
  nav.primary a { padding: 1rem 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
  nav.primary a:not(.nav-book)::after { display: none; }
  nav.primary a.active { color: var(--red-deep); }
  nav.primary a.nav-book { margin-top: 0.9rem; text-align: center; justify-content: center; }
}

/* ---------- sous-nav (sous le header, au-dessus de la photo) ---------- */
.subnav { position: sticky; top: var(--head-h); z-index: 200; background: var(--ink); border-bottom: 1px solid rgba(247,239,220,0.1); }
.subnav .wrap { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.4rem 0.6rem; }
.subnav a { flex: none; color: rgba(247,239,220,0.7); text-decoration: none; font-family: var(--f-head); font-weight: 700; font-size: 0.92rem; letter-spacing: 0.05em; text-transform: uppercase; padding: 1.05rem 1.4rem; border-bottom: 3px solid transparent; white-space: nowrap; transition: color .2s ease, border-color .2s ease; }
.subnav a:hover { color: #fff; }
.subnav a.active { color: var(--gold); border-color: var(--gold); }
@media (max-width: 640px) {
  .subnav .wrap { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .subnav .wrap::-webkit-scrollbar { display: none; }
  .subnav a { font-size: 0.82rem; padding: 0.9rem 1rem; }
}

.page { animation: none; }

.band { padding-block: clamp(3.2rem, 6.5vw, 5.5rem); scroll-margin-top: calc(var(--head-h) + 84px); }
.band.panel { background: var(--panel); }
.band.sun { background: var(--sun); }
.band.tight { padding-block: clamp(2.2rem, 4.5vw, 3.4rem); }
.band.first { padding-top: clamp(5.5rem, 9vw, 7rem); }

.shead { display: grid; gap: 0.75rem; position: relative; }
.shead h2 { font-family: var(--f-display); font-weight: 600; font-size: var(--s-3); line-height: 1.05; letter-spacing: -0.018em; max-width: 40ch; text-wrap: balance; }
.shead p { color: var(--ink-soft); font-size: var(--s-1); max-width: 78ch; }
.shead.wide h2 { max-width: none; }
.shead .eyebrow { margin-bottom: 0.15rem; }
/* numéro fantôme de section (façon éditorial) — discret, en retrait */
.shead .snum { position: absolute; right: -0.15em; top: -0.5em; font-family: var(--f-display); font-weight: 700; font-size: clamp(3.4rem, 9vw, 8.5rem); line-height: 0.8; color: var(--ink); letter-spacing: -0.04em; pointer-events: none; user-select: none; z-index: 0;
  opacity: 0; transform: scale(1.55) translateY(0.1em); transition: opacity 1s var(--ease) .15s, transform 1.2s var(--ease) .15s; }
.shead.in .snum, .rv.in .snum { opacity: 0.05; transform: none; }
.band.panel .shead.in .snum, .band.sun .shead.in .snum { opacity: 0.07; color: var(--red); }
.band.panel .shead .snum, .band.sun .shead .snum { color: var(--red); }
.shead > *:not(.snum) { position: relative; z-index: 1; }
@media (max-width: 720px) { .shead .snum { font-size: 3.4rem; top: -0.15em; right: 0; } }

/* ---------- moteur de révélation ---------- */
.rv { opacity: 0; transform: translateY(34px) scale(1.018); filter: blur(5px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), filter calc(var(--dur) * .8) var(--ease); transition-delay: var(--rvd, 0s); }
.rv.in { opacity: 1; transform: none; filter: blur(0); }
.rv.d1 { --rvd: .08s; } .rv.d2 { --rvd: .16s; } .rv.d3 { --rvd: .24s; }
.rv[data-reveal="left"]  { transform: translateX(-44px); }
.rv[data-reveal="right"] { transform: translateX(44px); }
.rv[data-reveal="scale"] { transform: scale(1.06); }
.rv[data-reveal="fade"]  { transform: none; }
.rv[data-reveal="clip"]  { opacity: 1; clip-path: inset(0 100% 0 0); transition: clip-path 1.05s var(--ease); transition-delay: var(--rvd, 0s); }
.rv[data-reveal="clip"].in { clip-path: inset(0 0 0 0); }
/* enfants décalés dans le temps (rythme) */
[data-stagger] > * { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * .07s); }
[data-stagger].in > * { opacity: 1; transform: none; }

/* titres qui se dévoilent ligne par ligne */
.ln { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.ln > * { display: block; transform: translateY(112%); transition: transform .95s var(--ease); transition-delay: calc(var(--i, 0) * .09s); }
.in .ln > *, .ln.in > * { transform: none; }

/* filet de sécurité pur CSS : si une révélation ne se déclenche pas (JS lent, onglet masqué…),
   on force l'état visible au bout de 4 s — invisible sur un vrai navigateur, salvateur sinon */
@keyframes rv-failsafe { to { opacity: 1; transform: none; clip-path: none; filter: none; } }
.rv, [data-stagger] > *, .ln > * { animation: rv-failsafe .01s linear 4s forwards; }

@media (prefers-reduced-motion: reduce) {
  .rv, [data-stagger] > *, .ln > * { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; animation: none !important; }
}

.media { position: relative; overflow: hidden; border-radius: 12px; background: var(--panel); }
.media .shot { position: absolute; inset: -3%; background-size: cover; background-position: center; transition: transform .6s ease; }
.media:hover .shot { transform: scale(1.04); }
.media .cap { position: absolute; left: 0; bottom: 0; z-index: 2; font-family: var(--f-head); font-size: 0.58rem; letter-spacing: 0.05em; text-transform: uppercase; color: #fff; background: rgba(0,0,0,0.5); padding: 0.3rem 0.6rem; border-radius: 0 8px 0 0; }
/* petite bannière photo au-dessus du trait rouge (étapes & phases) */
.step-pic { position: relative; aspect-ratio: 5 / 3; border-radius: 10px; overflow: hidden; background-size: cover; background-position: center; box-shadow: 0 16px 34px -26px rgba(33,28,22,0.6); }

.media.strip-photo { aspect-ratio: 21 / 8; border-radius: 14px; margin-top: 1.8rem; }
@media (max-width: 640px) { .media.strip-photo { aspect-ratio: 4 / 3; } }

/* labels FFE (ranch) */
.labels-row { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: clamp(1.6rem, 4vw, 3.5rem); align-items: center; }
@media (max-width: 820px) { .labels-row { grid-template-columns: 1fr; } }
.labels-pic { aspect-ratio: 4 / 5; border-radius: 14px; background-size: cover; background-position: center; box-shadow: 0 26px 54px -34px rgba(33,28,22,0.5); }
@media (max-width: 820px) { .labels-pic { aspect-ratio: 16 / 10; } }
.labels-txt h2 { font-family: var(--f-head); font-weight: 800; font-size: var(--s-3); line-height: 1.06; letter-spacing: -0.03em; margin-top: 0.4rem; }
.labels-txt > p { color: var(--ink-soft); font-size: var(--s-1); margin-top: 0.7rem; max-width: 62ch; }
.lbl-list { margin: 1.3rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.lbl-list li { list-style: none; font-family: var(--f-head); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: var(--red-deep); border: 1px solid var(--line-2); border-radius: 6px; padding: 0.4rem 0.75rem; }

.duo { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(1.8rem, 5vw, 4.5rem); align-items: center; }
.duo.flip { grid-template-columns: 1.15fr 0.85fr; }
.duo.flip .txt { order: 2; }
.duo .media { aspect-ratio: 16 / 11; }
@media (max-width: 900px) { .duo, .duo.flip { grid-template-columns: 1fr; } .duo.flip .txt { order: 0; } }

/* ---------- hero (accueil) — plein écran, la vidéo en fond, on scrolle normalement ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 600px; overflow: hidden; color: #fff; display: flex; background: var(--ink); }
.hero-media { position: absolute; inset: -6%; z-index: 0; }
.hero-media .shot { position: absolute; inset: 0; background-image: url("video/hero-poster.jpg"); background-size: cover; background-position: 50% 42%; filter: brightness(0.82) saturate(1.05) contrast(1.04); animation: kenburns 34s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.14) translate(-1.4%, -1%); } }
@media (prefers-reduced-motion: reduce) { .hero-media .shot { animation: none; } }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; filter: brightness(0.82) saturate(1.05) contrast(1.04); opacity: 0; transition: opacity 1.2s ease; }
.hero-video.ready { opacity: 1; }
.hero .veil { position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(107deg, rgba(9,6,3,0.8) 0%, rgba(9,6,3,0.3) 46%, rgba(9,6,3,0.04) 74%, rgba(9,6,3,0.24) 100%),
    linear-gradient(0deg, rgba(9,6,3,0.76) 0%, rgba(9,6,3,0.08) 42%, rgba(9,6,3,0) 62%),
    radial-gradient(120% 80% at 78% 12%, rgba(231,178,28,0.10), transparent 60%); }
.hero-grain { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0.28; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E"); }

.hero-inner { position: relative; z-index: 2; width: 100%; align-self: flex-end; display: flex; flex-direction: column; gap: clamp(1.8rem, 5vh, 3.4rem); padding: 0 var(--gutter) clamp(1.8rem, 5vh, 3.4rem); }
.hero-lead { max-width: min(1280px, 94%); }
.hero-eyebrow { display: block; overflow: hidden; margin-bottom: clamp(0.9rem, 2vh, 1.6rem); }
.hero-eyebrow > span { display: inline-flex; align-items: center; gap: 0.9rem; font-family: var(--f-head); font-weight: 700; font-size: clamp(0.74rem, 0.6rem + 0.6vw, 0.98rem); letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.92); text-shadow: 0 1px 16px rgba(0,0,0,0.6);
  animation: heroUp 1s var(--ease) .1s both; }
.hero-eyebrow > span::before { content: ""; width: clamp(40px, 5vw, 70px); height: 3px; background: var(--gold); border-radius: 2px; flex: none; }
.hero-title { font-family: var(--f-display); font-weight: 600; font-size: clamp(3rem, 0.4rem + 8.4vw, 8.6rem); line-height: 0.96; letter-spacing: -0.024em; color: #fff; text-shadow: 0 6px 50px rgba(0,0,0,0.45); }
.hln { display: block; overflow: hidden; padding-bottom: 0.09em; margin-bottom: -0.09em; }
.hw { display: inline-block; }
.hw.hw-p { margin-left: -0.12em; }
.hero-title .hw { animation: heroWordIn 1s var(--ease) both; }
.hln:nth-child(1) .hw:nth-child(1) { animation-delay: .16s; }
.hln:nth-child(1) .hw:nth-child(2) { animation-delay: .30s; }
.hln:nth-child(1) .hw:nth-child(3) { animation-delay: .30s; }
.hln:nth-child(2) .hw:nth-child(1) { animation-delay: .42s; }
.hln:nth-child(2) .hw:nth-child(2) { animation-delay: .50s; }
.hln:nth-child(2) .hw:nth-child(3) { animation-delay: .57s; }
.hln:nth-child(2) .hw:nth-child(4) { animation-delay: .64s; }
.hero-title .gold { color: var(--gold); font-style: italic; }

.hero-foot { align-self: stretch; display: flex; align-items: flex-end; justify-content: space-between; gap: 1.4rem; animation: heroFade .9s var(--ease) .9s both; }
.hero-langs { font-family: var(--f-head); font-weight: 600; font-size: clamp(0.62rem, 0.5rem + 0.4vw, 0.82rem); letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.82); text-shadow: 0 1px 14px rgba(0,0,0,0.6); }
.hero-cue { appearance: none; background: none; border: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 0.55rem; font-family: var(--f-head); font-size: 0.56rem; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase; color: rgba(255,255,255,0.72); transition: color .2s ease; }
.hero-cue:hover { color: #fff; }
.hero-cue::after { content: ""; width: 15px; height: 15px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); animation: cue 1.9s ease-in-out infinite; }
.hero.replay .hero-eyebrow > span, .hero.replay .hero-title .hw, .hero.replay .hero-foot { animation: none; }
@keyframes heroUp { from { transform: translateY(115%); } to { transform: translateY(0); } }
@keyframes heroFade { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes heroWordIn { from { opacity: 0; transform: translateY(0.42em) scale(1.16); filter: blur(9px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes cue { 0%, 100% { transform: rotate(45deg) translate(-2px, -2px); opacity: 0.35; } 50% { transform: rotate(45deg) translate(2px, 2px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .hero { height: 100svh; min-height: 600px; }
  .hero-cue::after { animation: none; }
  .hero-eyebrow > span, .hero-title .hw, .hero-foot { animation: none !important; transform: none !important; opacity: 1 !important; filter: none !important; }
}
@media (max-width: 640px) {
  .hero { height: 190vh; }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

/* ---------- bannière de page = un vrai hero par rubrique ---------- */
.pbanner { position: relative; min-height: 84svh; min-height: 620px; display: flex; align-items: flex-end; overflow: hidden; color: #fff; background: var(--ink); }
.pbanner .shot { position: absolute; inset: -9%; background-size: cover; background-position: center; filter: brightness(0.7) saturate(1.06) contrast(1.03); animation: kenburns 36s ease-in-out infinite alternate; will-change: transform; }
@media (prefers-reduced-motion: reduce) { .pbanner .shot { animation: none; } }
.pb-video { position: absolute; inset: -9%; width: 118%; height: 118%; object-fit: cover; filter: brightness(0.7) saturate(1.06) contrast(1.03); opacity: 0; transition: opacity 1.1s ease; will-change: transform; }
.pb-video.ready { opacity: 1; }
.pi-vid, .step-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--ink); }
.pbanner .veil { position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(107deg, rgba(9,6,3,0.82) 0%, rgba(9,6,3,0.34) 48%, rgba(9,6,3,0.05) 76%, rgba(9,6,3,0.30) 100%),
    linear-gradient(0deg, rgba(9,6,3,0.78) 0%, rgba(9,6,3,0.10) 42%, rgba(9,6,3,0) 62%),
    radial-gradient(120% 80% at 80% 10%, rgba(231,178,28,0.08), transparent 60%); }
.pbanner .grain { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0.3; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E"); }
.pbanner .wrap { position: relative; z-index: 2; padding-block: clamp(2.6rem, 6vw, 5rem); will-change: transform; }
.pbanner .eyebrow { color: #fff; overflow: hidden; }
.pbanner .eyebrow::before { background: var(--gold); }
.pbanner h1 { font-family: var(--f-display); font-weight: 700; font-size: clamp(2.4rem, 1rem + 5vw, 5.1rem); line-height: 1; letter-spacing: -0.022em; margin-top: 0.7rem; max-width: 17ch; text-shadow: 0 4px 40px rgba(0,0,0,0.4); }
.pbanner p { margin-top: 1.1rem; color: rgba(255,255,255,0.9); font-size: var(--s-1); max-width: 52ch; }
.pbanner .hero-cue { position: absolute; right: var(--gutter); bottom: clamp(1.4rem, 3vw, 2.4rem); z-index: 2; }
/* entrée de la bannière (rejouée à chaque navigation via .replay sur .page) */
.pbanner .eyebrow > span { display: inline-flex; align-items: center; gap: 0.7rem; animation: heroUp .9s var(--ease) .12s both; }
.pbanner h1 .ln > * { animation: heroUp 1.05s var(--ease) both; animation-delay: calc(.26s + var(--i,0) * .12s); }
.pbanner h1:not(:has(.ln)) { animation: heroFade 1s var(--ease) .3s both; }
.pbanner > .wrap > p { animation: heroFade .9s var(--ease) .55s both; }
.page.replay .pbanner .eyebrow > span, .page.replay .pbanner h1 .ln > *, .page.replay .pbanner h1, .page.replay .pbanner > .wrap > p { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .pbanner .eyebrow > span, .pbanner h1 .ln > *, .pbanner h1, .pbanner > .wrap > p { animation: none !important; }
}
/* bannière sans photo (tarifs) : bande sombre compacte, texturée */
.pbanner:not(:has(.shot)) { min-height: 40svh; min-height: 340px;
  background:
    radial-gradient(120% 130% at 88% -10%, rgba(196,54,44,0.28), transparent 52%),
    radial-gradient(90% 120% at 5% 110%, rgba(231,178,28,0.10), transparent 48%),
    var(--ink); }
.pbanner:not(:has(.shot)) .veil, .pbanner:not(:has(.shot)) .grain { display: none; }
.pbanner:not(:has(.shot)) .hero-cue { display: none; }
@media (max-width: 640px) {
  .pbanner { min-height: 76svh; min-height: 500px; }
  .pbanner:not(:has(.shot)) { min-height: 34svh; min-height: 280px; }
  .pbanner h1 { font-size: clamp(2.3rem, 11vw, 3.2rem); max-width: none; }
  .pbanner .hero-cue { left: var(--gutter); right: auto; }
}

/* ---------- bande intro (accueil) — pleine largeur, éditoriale, asymétrique ---------- */
.intro-band { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.intro-band::before { content: ""; position: absolute; top: -30%; right: 8%; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(196,54,44,0.16), transparent 70%); pointer-events: none; }
.intro-ghost { position: absolute; right: clamp(-2rem, 2vw, 3rem); top: 50%; transform: translateY(-50%); font-family: var(--f-display); font-size: clamp(14rem, 34vw, 34rem); line-height: 0.7; color: var(--gold); opacity: 0.05; pointer-events: none; user-select: none; }
.intro-inner { position: relative; padding-block: clamp(2.6rem, 5vw, 4.4rem); }
.intro-inner .eyebrow { color: var(--gold); }
.intro-inner .eyebrow::before { background: var(--gold); }
.intro-line { font-family: var(--f-display); font-weight: 600; font-size: clamp(2.1rem, 1rem + 4.4vw, 4.6rem); line-height: 1.02; letter-spacing: -0.022em; margin-top: 1rem; max-width: 19ch; }
.intro-line .hi { color: var(--gold); font-style: italic; }
.intro-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.6rem 2.5rem; margin-top: clamp(1.8rem, 3.5vw, 3rem); padding-top: clamp(1.4rem, 2.5vw, 2rem); border-top: 1px solid rgba(247,239,220,0.18); }
.intro-sub { font-size: var(--s-1); color: rgba(255,255,255,0.82); line-height: 1.45; max-width: 38ch; }
.intro-btns { display: flex; flex-wrap: wrap; gap: 0.8rem; flex: none; }
.intro-btns .btn.ghost { color: #fff; border-color: rgba(255,255,255,0.5); }
.intro-btns .btn.ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
@media (max-width: 720px) {
  .intro-foot { flex-direction: column; align-items: flex-start; }
  .intro-btns { width: 100%; }
  .intro-btns .btn { flex: 1; justify-content: center; }
}

/* ---------- chiffres ---------- */
.bigstats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(0.9rem, 2vw, 2rem); }
@media (max-width: 1080px) { .bigstats { grid-template-columns: repeat(3, 1fr); row-gap: 1.8rem; } }
@media (max-width: 480px) { .bigstats { grid-template-columns: repeat(2, 1fr); } }
.bigstats.n3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 560px) { .bigstats.n3 { grid-template-columns: 1fr; } }

/* ligne de chiffres compacte et centrée (nos chevaux) */
.statline { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(2rem, 6vw, 4.5rem); margin-top: 1.8rem; padding: 1.6rem 0; border-block: 1px solid var(--line); }
.statline .bs { text-align: center; }
.statline b { display: block; font-family: var(--f-head); font-weight: 800; font-size: clamp(2rem, 1rem + 2.6vw, 3rem); color: var(--red); letter-spacing: -0.04em; line-height: 0.95; font-variant-numeric: tabular-nums; }
.statline span { display: block; margin-top: 0.4rem; font-size: var(--s--1); color: var(--muted); }
.bigstats .bs { border-top: 4px solid var(--line); padding-top: 1rem; transition: border-color .5s ease; }
.bigstats .bs.go { border-color: var(--red); }
.bigstats .bs b { transition: transform .25s cubic-bezier(.16,1,.3,1); }
.bigstats .bs:hover b { transform: translateY(-3px); }
.bigstats b { display: block; font-family: var(--f-head); font-weight: 800; font-size: clamp(1.85rem, 0.9rem + 2.7vw, 3.2rem); color: var(--red); font-variant-numeric: tabular-nums; letter-spacing: -0.04em; line-height: 0.95; white-space: nowrap; }
.bigstats b.txt { letter-spacing: -0.05em; }
.bigstats span { display: block; margin-top: 0.65rem; font-size: var(--s--1); color: var(--muted); line-height: 1.35; }

/* ---------- marquees ---------- */
.marquees { display: grid; gap: 0.5rem; margin-top: 1.8rem; }
.mq { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--paper-2); padding-block: 0.6rem; }
.mq-track { display: inline-flex; white-space: nowrap; gap: 1.8rem; font-family: var(--f-head); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.88rem; color: var(--ink-soft); animation: mqx 26s linear infinite; }
.mq.rev .mq-track { animation-direction: reverse; }
.mq-track span::after { content: "\2022"; color: var(--red); margin-left: 1.8rem; }
@keyframes mqx { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.mq:hover .mq-track { animation-play-state: paused; }

/* ---------- carrousel center-stage — pleine largeur, on voit toutes les cartes ---------- */
.carousel { position: relative; width: 100vw; margin-inline: calc(50% - 50vw); margin-top: clamp(2rem, 4vw, 3rem); }
.c-viewport { position: relative; height: var(--ch, 340px); overflow: hidden; cursor: grab; perspective: 1600px; perspective-origin: 50% 50%; }
.c-viewport:active { cursor: grabbing; }
.c-card { position: absolute; top: 0; left: 50%; width: min(var(--cw, 470px), 90vw); height: var(--ch, 340px); border: 1px solid var(--line); border-radius: 16px; background: var(--paper-2); box-shadow: 0 24px 50px -34px rgba(33,28,22,0.55); display: flex; flex-direction: column; overflow: hidden;
  transform: translateX(-50%) translateX(var(--dx, 0)) scale(var(--sc, 1)) rotateY(var(--ry, 0deg)); opacity: var(--op, 1);
  transition: transform .55s cubic-bezier(.16,1,.3,1), opacity .55s ease, box-shadow .3s ease; text-decoration: none; color: inherit; }
.c-card[data-state="far"] { pointer-events: none; }
.c-card[data-state="side"] { cursor: pointer; }
.c-card[data-state="side"]:hover { opacity: 1 !important; }
.c-card[data-state="center"] { border-color: var(--red); border-width: 2px; box-shadow: 0 10px 26px -8px rgba(33,28,22,0.4), 0 50px 100px -30px rgba(33,28,22,0.6); }
.c-card .cm { height: 42%; background-size: cover; background-position: center; flex: none; position: relative; overflow: hidden; }
.c-card.vlog .cm, .c-card.photo .cm { height: 100%; }
.cm-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--ink); }
.c-card.vlog .cm::after { content: "\25B6"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 2rem; text-shadow: 0 2px 16px rgba(0,0,0,0.65); }
.c-card.vlog .cc, .c-card.photo .cc { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(transparent, rgba(0,0,0,0.82)); color: #fff; }
.c-card.vlog .cc .k, .c-card.photo .cc .k { color: var(--gold); }
.c-card.photo > .cc > p { color: rgba(255,255,255,0.82); }
.c-card .cc { padding: 1.15rem 1.35rem 1.3rem; display: flex; flex-direction: column; flex: 1; overflow: hidden; }
.c-card .k { font-family: var(--f-head); font-size: 0.64rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--red); font-weight: 700; }
.c-card h4 { font-size: var(--s-1); margin-top: 0.25rem; }
.c-card[data-state="center"] h4 { font-size: var(--s-2); }
.c-card.vlog[data-state="center"] h4, .c-card.photo[data-state="center"] h4 { font-size: var(--s-1); }
.c-card > .cc > p { color: var(--ink-soft); font-size: var(--s--1); margin-top: 0.5rem; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.c-card[data-state="center"] > .cc > p { -webkit-line-clamp: 6; }
.c-card.vlog > .cc > p { color: rgba(255,255,255,0.82); }
.c-card .foot { margin-top: auto; padding-top: 0.7rem; font-family: var(--f-head); font-weight: 800; font-size: var(--s-1); color: var(--red-deep); }
.c-card .foot small { font-weight: 600; font-size: 0.6em; color: var(--muted); }
.c-card.price .foot { display: flex; align-items: baseline; gap: 0.55rem; padding-top: 0.9rem; border-top: 1px solid var(--line); }
.c-card.price .foot b { font-family: var(--f-head); font-weight: 800; font-size: clamp(1.7rem, 1.1rem + 1.6vw, 2.5rem); color: var(--red); letter-spacing: -0.03em; line-height: 1; }
.c-card.price .foot small { font-family: var(--f-head); font-weight: 700; font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.c-card .go { margin-top: auto; padding-top: 0.7rem; font-family: var(--f-head); font-weight: 700; font-size: 0.84rem; color: var(--red-deep); }
.c-card .go::after { content: " \2192"; }
.c-card dl { margin: 0.4rem 0 0; }
.c-card dl div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; border-bottom: 1px dotted var(--line); font-size: var(--s--1); }
.c-card dl div:last-child { border-bottom: 0; }
.c-card dl dt { color: var(--ink-soft); }
.c-card dl dt em { color: var(--muted); font-style: normal; font-size: 0.85em; }
.c-card dl dd { margin: 0; font-family: var(--f-head); font-weight: 800; color: var(--red-deep); white-space: nowrap; }
.c-nav { display: flex; align-items: center; justify-content: center; gap: 1.1rem; margin-top: 1.4rem; }
.c-nav button { width: 54px; height: 54px; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--paper-2); cursor: pointer; font-size: 1.4rem; color: var(--ink); transition: all .2s ease; display: grid; place-items: center; box-shadow: 0 10px 24px -16px rgba(33,28,22,0.4); }
.c-nav button:hover { background: var(--red); color: #fff; border-color: var(--red); transform: scale(1.08); box-shadow: 0 14px 28px -12px rgba(196,54,44,0.5); }
.c-dots { display: flex; gap: 0.45rem; }
.c-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); transition: all .3s ease; cursor: pointer; }
.c-dots i.on { background: var(--red); width: 26px; border-radius: 5px; }

/* ---------- installations ---------- */
.fac-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-top: 2rem; }
.fac { background: var(--paper-2); padding: 1.7rem 1.5rem; transition: background .2s ease; }
.fac:hover { background: var(--sun); }
.fac .n { font-family: var(--f-head); font-weight: 800; font-size: clamp(1.4rem, 2.5vw, 2.2rem); letter-spacing: -0.03em; color: var(--red); line-height: 1; font-variant-numeric: tabular-nums; transition: color .2s ease; }
.fac:hover .n { color: var(--red-deep); }
.fac .l { display: block; margin-top: 0.55rem; font-family: var(--f-head); font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; font-size: 0.82rem; }
.fac .d { display: block; margin-top: 0.25rem; font-size: var(--s--1); color: var(--muted); }
@media (max-width: 980px) { .fac-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .fac-grid { grid-template-columns: 1fr 1fr; } }

.inline-note { margin-top: 1.8rem; font-size: var(--s--1); color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 0.5rem 1.8rem; }
.inline-note b { color: var(--red); font-family: var(--f-head); text-transform: uppercase; letter-spacing: 0.02em; font-size: 0.82em; }
.cta-row { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: 0.7rem; }
.cta-big { margin-top: 2.6rem; padding: 1.9rem 2rem; border: 1px solid var(--line); border-radius: 14px; background: var(--paper-2); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem; }
.cta-big b { font-family: var(--f-head); font-weight: 800; font-size: var(--s-2); }

/* ---------- déroulé d'un cours — 3 temps en grand, plein cadre, alternés ---------- */
.deroule .shead { margin-bottom: clamp(2rem, 5vw, 4rem); }
.dphase { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: stretch; gap: 0; min-height: 64vh; margin-block: clamp(1.4rem, 3vw, 2.6rem); overflow: hidden; }
.dphase.flip { grid-template-columns: 0.85fr 1.15fr; }
.dphase.flip .dphase-media { order: 2; }
.dphase-media { position: relative; overflow: hidden; background: var(--ink); }
.dphase-media .shot { position: absolute; inset: -8%; background-size: cover; background-position: center; will-change: transform; }
.dphase-media .step-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dphase-txt { display: flex; flex-direction: column; justify-content: center; gap: 0.6rem; padding: clamp(2rem, 5vw, 4.5rem); background: var(--panel); }
.dphase.flip .dphase-txt { background: var(--sun); }
.dph-n { font-family: var(--f-display); font-weight: 700; font-size: clamp(3.5rem, 8vw, 7rem); line-height: 0.8; color: var(--red); opacity: 0.16; letter-spacing: -0.04em; }
.dphase-txt .pk { font-family: var(--f-head); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--red); }
.dphase-txt h3 { font-family: var(--f-display); font-weight: 600; font-size: var(--s-3); line-height: 1.02; letter-spacing: -0.02em; margin-top: 0.2rem; }
.dphase-txt ul { margin: 1.1rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.55rem; }
.dphase-txt li { position: relative; padding-left: 1.3rem; color: var(--ink-soft); font-size: var(--s-0); }
.dphase-txt li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 14px; height: 2px; background: var(--red); }
@media (max-width: 860px) {
  .dphase, .dphase.flip { grid-template-columns: 1fr; min-height: 0; }
  .dphase.flip .dphase-media { order: 0; }
  .dphase-media { aspect-ratio: 16 / 10; }
  .dph-n { font-size: 3.4rem; }
}

/* ---------- phases (pension « ce qui est compris ») ---------- */
.phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; margin-top: 2.2rem; }
@media (max-width: 820px) { .phases { grid-template-columns: 1fr; } }
.phase .step-pic { margin-bottom: 1rem; }
.phase .ph-body { border-top: 3px solid var(--red); padding-top: 1.1rem; }
.phase .pk { font-family: var(--f-head); font-weight: 700; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); }
.phase b { display: block; font-family: var(--f-head); font-weight: 700; font-size: var(--s-1); margin-top: 0.35rem; }
.phase p { color: var(--ink-soft); font-size: var(--s--1); margin-top: 0.4rem; }
.phase ul { margin: 0.6rem 0 0; padding-left: 1.1rem; color: var(--ink-soft); font-size: var(--s--1); list-style: none; }
.phase li { margin-top: 0.35rem; position: relative; }
.phase li::before { content: "\2013"; position: absolute; left: -1.1rem; color: var(--red); }

/* ---------- timeline ---------- */
.timeline { margin-top: 2rem; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 1.5rem; }
@media (max-width: 860px) { .timeline { grid-auto-flow: row; grid-auto-columns: auto; } }
.tl-step { opacity: 0.34; transform: translateY(6px); transition: opacity .5s ease, transform .5s ease; }
.tl-step.on { opacity: 1; transform: none; }
.tl-step .step-pic { margin-bottom: 0.95rem; }
.tl-step .tl-body { border-top: 3px solid var(--line-2); padding-top: 0.85rem; transition: border-color .5s ease; }
.tl-step.on .tl-body { border-color: var(--red); }
.tl-step .tl-n { font-family: var(--f-head); font-weight: 800; font-size: 0.82rem; color: var(--red); }
.tl-step b { display: block; font-family: var(--f-head); font-weight: 700; font-size: var(--s-1); margin-top: 0.15rem; }
.tl-step p { color: var(--ink-soft); font-size: var(--s--1); margin-top: 0.25rem; }

/* ---------- concours : deux panneaux toujours visibles ---------- */
.split2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; margin-top: 2rem; }
@media (max-width: 800px) { .split2 { grid-template-columns: 1fr; } }
.pbox { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--paper-2); transition: transform .25s ease, box-shadow .25s ease; }
.pbox:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -30px rgba(33,28,22,0.5); }
.pbox .pi { position: relative; aspect-ratio: 16 / 7; overflow: hidden; background-size: cover; background-position: center; transition: transform .5s ease; }
.pbox:hover .pi { transform: scale(1.04); }
.pbox .pc { padding: 1.5rem 1.6rem 1.7rem; }
.pbox .k { font-family: var(--f-head); font-weight: 700; font-size: 0.66rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--red); }
.pbox h4 { font-size: var(--s-2); margin-top: 0.2rem; }
.pbox p { color: var(--ink-soft); font-size: var(--s--1); margin-top: 0.5rem; }

/* ---------- social ---------- */
.social { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem; margin-top: 2rem; }
.social a { display: flex; align-items: center; gap: 1rem; padding: 1.5rem 1.6rem; border-radius: 14px; text-decoration: none; color: #fff; transition: all .2s ease; }
.social a.ig { background: linear-gradient(135deg, #7C3AED, #E1306C 55%, #F77737); }
.social a.fb { background: linear-gradient(135deg, var(--fb), #0C5BD6); }
.social a:hover { transform: translateY(-3px); box-shadow: 0 24px 46px -26px rgba(33,28,22,0.55); }
.social .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,0.2); color: #fff; flex: none; }
.social .ic svg { width: 24px; height: 24px; fill: currentColor; }
.social b { font-family: var(--f-head); font-weight: 800; display: block; font-size: var(--s-1); }
.social span { font-size: var(--s--1); color: rgba(255,255,255,0.88); }

.fb-embed { margin-top: 1.8rem; display: flex; justify-content: center; }
.fb-embed iframe { width: 100%; max-width: 500px; border-radius: 14px; box-shadow: 0 26px 54px -34px rgba(33,28,22,0.5); background: var(--panel); }

/* ---------- lieu ---------- */
.place-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(1.8rem, 5vw, 3.5rem); margin-top: 2rem; }
@media (max-width: 900px) { .place-grid { grid-template-columns: 1fr; } }
.map { position: relative; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; min-height: 320px; background: var(--panel); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(0.92); }
.map-link { position: absolute; right: 0.7rem; bottom: 0.7rem; z-index: 2; background: var(--paper); color: var(--ink); text-decoration: none; font-family: var(--f-head); font-weight: 700; font-size: 0.74rem; letter-spacing: 0.03em; text-transform: uppercase; padding: 0.5rem 0.85rem; border-radius: 8px; box-shadow: 0 8px 20px -10px rgba(20,14,8,0.5); }
.map-link:hover { background: var(--red); color: #fff; }
.contact-list { margin: 0; display: grid; grid-template-columns: auto 1fr; }
.contact-list dt { font-family: var(--f-head); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding: 0.8rem 1.3rem 0.8rem 0; border-top: 1px solid var(--line); }
.contact-list dd { margin: 0; padding: 0.8rem 0; border-top: 1px solid var(--line); font-size: var(--s--1); }
.contact-list dd a { color: var(--ink); }

/* ---------- faq ---------- */
.faq { margin-top: 1.8rem; border-top: 2px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 1.15rem 2.5rem 1.15rem 0; font-family: var(--f-head); font-weight: 700; font-size: var(--s-1); position: relative; transition: color .18s ease; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--red-deep); }
.faq summary::after { content: "+"; position: absolute; right: 0.3rem; top: 50%; transform: translateY(-50%); font-weight: 700; font-size: 1.3rem; color: var(--red); transition: transform .25s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(135deg); }
.faq details[open] summary { color: var(--red-deep); }
.faq details p { padding: 0 0 1.2rem; color: var(--ink-soft); font-size: var(--s--1); max-width: 88ch; }

/* ---------- form ---------- */
.contact-grid { display: grid; grid-template-columns: 1.4fr 0.75fr; gap: clamp(1.8rem, 4vw, 3.5rem); align-items: start; margin-top: 1.9rem; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-aside { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 1.7rem 1.8rem; }
.contact-aside h3 { font-family: var(--f-head); font-weight: 800; font-size: var(--s-1); }
.contact-aside ol { margin: 1.1rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.9rem; counter-reset: step; }
.contact-aside ol li { position: relative; padding-left: 2.2rem; font-size: var(--s--1); color: var(--ink-soft); line-height: 1.45; counter-increment: step; }
.contact-aside ol li::before { content: counter(step); position: absolute; left: 0; top: -0.1rem; width: 1.6rem; height: 1.6rem; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: #fff; font-family: var(--f-head); font-weight: 800; font-size: 0.78rem; }
.contact-aside .ph { margin-top: 1.5rem; padding-top: 1.3rem; border-top: 1px solid var(--line); display: grid; gap: 0.9rem; }
.contact-aside .ph div span { display: block; font-family: var(--f-head); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.15rem; }
.contact-aside .ph a { font-family: var(--f-head); font-weight: 800; color: var(--ink); text-decoration: none; font-size: 1.05rem; }
.contact-aside .ph a:hover { color: var(--red-deep); }
form.book { display: grid; gap: 1rem; }
#coursFields { display: grid; gap: 1rem; }
.field { display: grid; gap: 0.35rem; }
.field.row2 { grid-template-columns: 1fr 1fr; gap: 0.9rem; }
@media (max-width: 520px) { .field.row2 { grid-template-columns: 1fr; } }
.field label { font-family: var(--f-head); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea { font-family: var(--f-body); font-size: var(--s-0); color: var(--ink); background: var(--paper-2); border: 1px solid var(--line-2); border-radius: 7px; padding: 0.78rem 0.9rem; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--red); outline-offset: 1px; border-color: transparent; }
.pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span { display: inline-block; padding: 0.5rem 0.95rem; border: 1px solid var(--line-2); border-radius: 6px; font-family: var(--f-head); font-size: 0.8rem; letter-spacing: 0.02em; text-transform: uppercase; cursor: pointer; transition: all .18s ease; user-select: none; }
.pill input:checked + span { background: var(--red); border-color: var(--red); color: #fff; }
.form-ok { display: none; padding: 1.2rem 1.4rem; border: 1px solid var(--red); border-radius: 8px; background: color-mix(in srgb, var(--red) 8%, transparent); font-size: var(--s--1); }
.form-ok.show { display: block; }

/* ---------- footer ---------- */
footer { background: var(--charcoal); color: var(--on-dark); padding-block: 3.4rem 2rem; margin-top: 2.5rem; }
.foot-cols { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.3fr; gap: 2.6rem; }
@media (max-width: 860px) { .foot-cols { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 480px) { .foot-cols { grid-template-columns: 1fr; } }
.foot-cols .logo { color: #fff; }
.foot-cols .logo svg { width: 46px; height: 40px; }
.foot-cols .logo .name { font-size: 1.16rem; }
.foot-cols .logo .name small { color: rgba(247,239,220,0.7); }
.foot-cols .addr { margin-top: 1.2rem; font-size: 0.84rem; color: rgba(247,239,220,0.74); line-height: 1.75; max-width: 34ch; }
.foot-col h5 { font-family: var(--f-head); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(247,239,220,0.5); margin-bottom: 0.8rem; }
.foot-col a { display: block; color: rgba(247,239,220,0.82); text-decoration: none; font-family: var(--f-head); font-weight: 600; font-size: 0.9rem; padding: 0.3rem 0; transition: color .18s ease, padding-left .18s ease; }
.foot-col a:hover { color: #fff; padding-left: 0.3rem; }
.foot-note { font-size: 0.82rem; color: rgba(247,239,220,0.62); line-height: 1.65; }
.foot-note a { color: rgba(247,239,220,0.82); font-weight: 700; text-decoration: none; }
.foot-note a:hover { color: #fff; }
.foot-labels { margin-top: 2.1rem; display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; }
.foot-labels li { list-style: none; font-family: var(--f-head); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.03em; color: rgba(247,239,220,0.62); border: 1px solid rgba(247,239,220,0.22); border-radius: 5px; padding: 0.38rem 0.75rem; }
.foot-meta { margin-top: 1.7rem; padding-top: 1.1rem; border-top: 1px solid rgba(247,239,220,0.18); font-size: 0.74rem; color: rgba(247,239,220,0.5); }
footer { position: relative; overflow: hidden; }
.foot-word { position: absolute; left: 0; right: 0; bottom: -0.14em; text-align: center; pointer-events: none; line-height: 0.72; overflow: hidden; }
.foot-word span { display: inline-block; font-family: var(--f-display); font-weight: 700; font-size: clamp(4rem, 17vw, 15rem); letter-spacing: -0.03em; color: #fff; opacity: 0.04; white-space: nowrap; will-change: transform; }
footer > .wrap { position: relative; z-index: 1; }

.flag { position: fixed; left: 0.9rem; bottom: 0.9rem; z-index: 255; background: var(--red); color: #fff; font-family: var(--f-head); font-size: 0.58rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.36rem 0.62rem; border-radius: 5px; }

/* ---------- lightbox vidéo (vlogs) ---------- */
.c-card.vlog[data-state="center"] { cursor: pointer; }
.lightbox { position: fixed; inset: 0; z-index: 300; background: #0a0705; display: flex; align-items: center; justify-content: center; padding: clamp(1rem, 4vw, 3rem); animation: lbfade .2s ease both; }
.lightbox[hidden] { display: none; }
@keyframes lbfade { from { opacity: 0; } to { opacity: 1; } }
.lb-frame { width: min(100%, 1120px); }
.lb-frame video { width: 100%; max-height: 82vh; border-radius: 12px; background: #000; display: block; box-shadow: 0 40px 90px -20px rgba(0,0,0,0.7); }
.lb-close { position: absolute; top: clamp(0.7rem, 3vw, 1.6rem); right: clamp(0.7rem, 3vw, 1.6rem); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.14); color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; transition: background .2s ease; }
.lb-close:hover { background: rgba(255,255,255,0.3); }

/* ============ mobile ============ */
@media (max-width: 640px) {
  :root { --head-h: 58px; --gutter: 1.1rem; }
  header .row { min-height: var(--head-h); padding-block: 0.4rem; }
  .logo { gap: 0.55rem; }
  .logo svg { width: 36px; height: 32px; }
  .logo .name { font-size: 0.92rem; letter-spacing: 0.01em; }
  .logo .name small { display: none; }
  .burger { width: 42px; height: 38px; font-size: 1rem; }

  .hero { min-height: 88svh; min-height: 560px; }
  .hero-inner { gap: 1.4rem; padding-bottom: 1.3rem; }
  .hero-eyebrow { font-size: 0.66rem; letter-spacing: 0.1em; }
  .hero-eyebrow::before { width: 24px; }
  .hero-langs { font-size: 0.58rem; letter-spacing: 0.1em; }
  .hero-cue { font-size: 0.52rem; letter-spacing: 0.16em; }

  .subnav a { font-size: 0.8rem; padding: 0.85rem 0.9rem; letter-spacing: 0.03em; }

  .pbanner { min-height: 44svh; min-height: 300px; }
  .pbanner h1 { font-size: clamp(1.5rem, 6vw, 2rem); max-width: none; }
  .pbanner p { font-size: var(--s-0); }

  .band { padding-block: clamp(2.4rem, 9vw, 3.4rem); }
  .shead h2 { font-size: clamp(1.5rem, 6vw, 2.1rem); }
  .shead p { font-size: var(--s-0); }

  .intro-line { font-size: clamp(1.95rem, 8.5vw, 2.7rem); max-width: 16ch; }
  .intro-ghost { font-size: 40vw; opacity: 0.04; }

  .statline { gap: 1.6rem 2rem; padding: 1.3rem 0; }
  .statline b { font-size: clamp(1.7rem, 8vw, 2.2rem); }

  .c-nav { gap: 0.8rem; }
  .c-nav button { width: 48px; height: 48px; font-size: 1.2rem; }

  .cta-big { padding: 1.4rem 1.4rem; }
  .cta-big b { font-size: clamp(1.15rem, 5vw, 1.5rem); }

  .contact-aside { position: static; }
  footer { padding-block: 2.6rem 1.6rem; }
  .flag { font-size: 0.5rem; padding: 0.3rem 0.5rem; left: 0.6rem; bottom: 0.6rem; }
}

/* ================================================================
   ÉLÉVATION — typographie éditoriale, mouvement, micro-interactions
   ================================================================ */

/* --- titres display (écho du panneau du ranch) --- */
.pbanner h1, .labels-txt h2, .intro-line, .cta-big b, .pbox h4, .c-card[data-state="center"] h4 { font-family: var(--f-display); font-weight: 600; letter-spacing: -0.02em; }
.pbanner h1 { font-weight: 700; }
.hero-title .gold, .intro-line .hi { font-style: italic; }

/* --- header : se condense au défilement --- */
header .row { transition: min-height .4s var(--ease), padding-block .4s var(--ease); }
.logo svg { transition: transform .4s var(--ease), width .4s var(--ease), height .4s var(--ease); }
body.scrolled-far header .row { min-height: 60px; padding-block: 0.3rem; }
body.scrolled-far .logo svg { width: 38px; height: 34px; }
body.home.scrolled-far header .row { min-height: 60px; }
nav.primary a:not(.nav-book) { --uw: 2px; }
nav.primary a:not(.nav-book)::after { height: var(--uw); }

/* --- boutons : ressort + halo --- */
.btn { transition: transform .3s var(--ease), background .2s ease, box-shadow .3s ease, color .2s ease; will-change: transform; }
.btn.xl, .btn.big { position: relative; overflow: hidden; }
.btn.xl::before, .btn.big::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120px 60px at var(--mx, 50%) 50%, rgba(255,255,255,0.22), transparent 70%); opacity: 0; transition: opacity .3s ease; }
.btn.xl:hover::before, .btn.big:hover::before { opacity: 1; }

/* --- liens qui se soulignent (tracé) --- */
.c-card .go, .foot-col a, .faq summary, .intro-sub a, .map-link { position: relative; }
a.map-link, .foot-col a { --uw: 1.5px; }

/* --- ligne de chiffres : moins « wireframe », plus posée --- */
.band > .wrap > .bigstats { position: relative; padding-top: 0.5rem; }
.bigstats .bs { border-top-width: 3px; border-top-color: var(--line); }
.bigstats .bs { position: relative; }
.bigstats .bs::after { content: ""; position: absolute; left: 0; top: -3px; height: 3px; width: 0; background: var(--red); transition: width .8s var(--ease); transition-delay: calc(var(--i, 0) * .06s); }
.bigstats.in .bs::after { width: 100%; }
.bigstats .bs b { font-family: var(--f-display); font-weight: 700; }

/* --- carte explorer : réaction au survol --- */
.c-card[data-state="center"] { transition: transform .52s var(--ease), opacity .52s ease, box-shadow .4s var(--ease); }
.c-card[data-state="center"] .cm { transition: transform .6s var(--ease); }
.c-card[data-state="center"]:hover { transform: translateX(-50%) translateY(-6px) scale(1.012); }
.c-card[data-state="center"]:hover .cm { transform: scale(1.05); }
.c-card .cm::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, transparent 55%, rgba(33,28,22,0.16)); opacity: 0; transition: opacity .4s ease; }
.c-card[data-state="center"]:hover .cm::after { opacity: 1; }

/* --- séparation douce entre bandes (plus de bord dur) --- */
.band.panel, .band.sun { position: relative; }
.band.panel::before, .band.sun::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 60px; background: linear-gradient(180deg, var(--paper), transparent); pointer-events: none; opacity: 0.6; }
.intro-band + .band::before { display: none; }

/* --- media : révélation en balayage quand la section arrive --- */
.rv[data-reveal="clip"] .shot, .media.reveal-shot .shot { will-change: transform; }

/* --- déroulé d'un cours : le trait rouge se trace --- */
.phase .ph-body, .tl-step .tl-body { position: relative; }
.phase .ph-body { border-top-color: transparent; }
.phase .ph-body::before { content: ""; position: absolute; left: 0; top: -3px; height: 3px; width: 0; background: var(--red); transition: width .7s var(--ease); transition-delay: calc(var(--i, 0) * .12s + .1s); }
.phases.in .phase .ph-body::before { width: 64px; }

/* --- pbanner : le titre se dévoile aussi --- */
.pbanner .wrap { --rvd: .1s; }

/* --- intro-band : ligne-signature qui se dévoile, colonne droite qui monte --- */
.intro-inner[data-stagger] > .eyebrow,
.intro-inner[data-stagger] > .intro-line { opacity: 1; transform: none; transition: none; animation: none; }
.intro-line { overflow: visible; }
.intro-line .ln > * { transition-duration: 1s; }

/* --- réglages hero mobile (nouveau markup) --- */
@media (max-width: 640px) {
  .hero-eyebrow > span { font-size: 0.64rem; letter-spacing: 0.14em; }
  .hero-eyebrow > span::before { width: 26px; }
  .hero-lead { max-width: 100%; }
  .hero-langs { font-size: 0.56rem; letter-spacing: 0.14em; }
  .shead .snum { font-size: 3.6rem; }
  .band.panel::before, .band.sun::before { height: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .bigstats .bs::after, .phase .ph-body::before { transition: none; width: 100%; }
  .phase .ph-body::before { width: 64px; }
  .phase .ph-body { border-top-color: var(--red); }
}
