/* =====================================================================
   AMBROSIA & Co. — Model Management
   Feuille de style maison · oxblood profond · or · braise
   ===================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Couleurs */
  --ink:          #1A0703;   /* fond principal, oxblood quasi-noir */
  --ink-2:        #220A04;   /* léger relief */
  --oxblood:      #3A1206;   /* panneaux élevés */
  --oxblood-vif:  #611002;   /* marque (fond du logo) */
  --gold:         #D9870B;   /* or de marque */
  --gold-light:   #E8A82E;   /* highlights / hover */
  --gold-soft:    #F2C14E;   /* éclat */
  --champagne:    #F4EDE2;   /* texte clair + panneau lumineux */
  --champagne-2:  #FBF6EC;   /* panneau clair, fond */
  --taupe-gold:   #C9B79C;   /* texte secondaire sur sombre */
  --ember-1:      #E8541E;   /* braise (joyau) */
  --ember-2:      #F39C12;
  --ember-deep:   #7A1A06;

  /* Filets / voiles */
  --hairline:     rgba(217, 135, 11, 0.22);
  --hairline-soft:rgba(244, 237, 226, 0.10);
  --glass:        rgba(26, 7, 3, 0.55);

  /* Typo */
  --font-display: "Bodoni Moda", "Times New Roman", serif;
  --font-sans:    "Jost", "Helvetica Neue", Arial, sans-serif;

  /* Rythme */
  --maxw: 1240px;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --section-y: clamp(5rem, 11vw, 10rem);

  /* Z-index */
  --z-nav: 50;
  --z-overlay: 40;
  --z-raise: 10;

  /* Motion */
  --ease-luxe: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 600ms;
}

/* ---------- 2. Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  font-weight: 300;
  background-color: var(--ink);
  color: var(--champagne);
  line-height: 1.7;
  letter-spacing: 0.01em;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; }
:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Sélection */
::selection { background: var(--gold); color: var(--ink); }

/* ---------- 3. Texture de fond ---------- */
.grain::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Profondeur de fond (halos oxblood) — calque fixe composité, derrière le contenu */
.bg-depth {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(58% 40% at 50% -4%, rgba(97, 16, 2, 0.40), transparent 60%),
    radial-gradient(50% 42% at 100% 30%, rgba(122, 26, 6, 0.18), transparent 55%),
    radial-gradient(50% 42% at 0% 66%, rgba(97, 16, 2, 0.18), transparent 55%),
    radial-gradient(64% 42% at 50% 104%, rgba(58, 18, 6, 0.28), transparent 60%);
}

/* ---------- 4. Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); position: relative; }
.section--light { background: var(--champagne-2); color: var(--ink); }

/* ---------- 5. Typographie ---------- */
.display { font-family: var(--font-display); font-weight: 500; line-height: 1.02; letter-spacing: -0.01em; }
.eyebrow {
  font-size: clamp(0.66rem, 1.1vw, 0.78rem);
  font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
}
.section-index {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  color: var(--gold);
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  letter-spacing: 0.05em;
}
.lead { color: var(--taupe-gold); font-weight: 300; }
.section--light .lead { color: #6E4A2C; }

.section-head { max-width: 56ch; }
.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1.05;
  margin-top: 0.5rem;
}
.rule {
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  border: 0;
  margin: 1.5rem 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s var(--ease-luxe) 0.25s;
}
.reveal.in .rule { transform: scaleX(1); }
.section--light .rule { background: linear-gradient(90deg, var(--oxblood-vif), transparent); }

/* ---------- 6. Glyphe séparateur ---------- */
.glyph {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 0.4em;
}
.glyph::before, .glyph::after {
  content: "";
  width: clamp(28px, 8vw, 64px);
  height: 1px;
  background: var(--hairline);
}
.glyph__mark { font-size: 1rem; transform: translateY(-1px); }

/* ---------- 7. Boutons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1rem 2rem;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-radius: 2px;
  overflow: hidden;
  transition: color var(--dur) var(--ease-luxe), border-color var(--dur) var(--ease-luxe);
  min-height: 44px;
}
.btn__label { position: relative; z-index: 2; }
.btn__icon { position: relative; z-index: 2; transition: transform var(--dur) var(--ease-luxe); }

/* CTA doré — remplissage balayé au survol */
.btn--gold {
  color: var(--ink);
  background: linear-gradient(100deg, var(--gold) 0%, var(--gold-soft) 50%, var(--gold) 100%);
}
.btn--gold::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--gold-light);
  transform: translateX(-101%);
  transition: transform var(--dur) var(--ease-luxe);
}
.btn--gold:hover::after { transform: translateX(0); }
.btn--gold:hover .btn__icon { transform: translateX(4px); }

/* CTA fantôme — filet or, remplissage au survol */
.btn--ghost {
  color: var(--champagne);
  border: 1px solid var(--hairline);
}
.btn--ghost::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--gold);
  transform: translateX(-101%);
  transition: transform var(--dur) var(--ease-luxe);
}
.btn--ghost:hover { color: var(--ink); border-color: var(--gold); }
.btn--ghost:hover::after { transform: translateX(0); }
.btn--ghost:hover .btn__icon { transform: translateX(4px); }
.section--light .btn--ghost { color: var(--ink); border-color: rgba(97,16,2,0.3); }
.section--light .btn--ghost:hover { color: var(--champagne-2); }
.section--light .btn--ghost:hover::after { background: var(--oxblood-vif); }

/* Lien souligné qui se trace */
.link-underline { position: relative; padding-bottom: 3px; }
.link-underline::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease-luxe);
}
.link-underline:hover::after { transform: scaleX(1); }

/* ---------- 8. Navigation ---------- */
.nav {
  position: fixed;
  top: clamp(0.75rem, 2vw, 1.25rem);
  left: clamp(0.75rem, 2vw, 1.25rem);
  right: clamp(0.75rem, 2vw, 1.25rem);
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.7rem clamp(1rem, 2.5vw, 1.75rem);
  border: 1px solid var(--hairline-soft);
  border-radius: 4px;
  background: var(--glass);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  transition: background var(--dur) var(--ease-luxe), border-color var(--dur) var(--ease-luxe), transform 500ms var(--ease-luxe);
}
.nav.is-scrolled { background: rgba(20, 5, 2, 0.82); border-color: var(--hairline); }
.nav.is-hidden { transform: translateY(calc(-100% - 2rem)); }

/* Barre de progression de défilement */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  z-index: 60;
  pointer-events: none;
  will-change: transform;
}

.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand__emblem { width: 30px; height: 36px; flex: none; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.12rem;
  letter-spacing: 0.06em;
  color: var(--champagne);
}
.brand__name b { color: inherit; font-weight: 500; }

.nav__links { display: flex; align-items: center; gap: clamp(1.25rem, 2.5vw, 2.25rem); }
.nav__link {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--taupe-gold);
  transition: color var(--dur) var(--ease-luxe);
}
.nav__link:hover { color: var(--champagne); }
.nav__link--menu { display: none; color: var(--gold); }   /* visible seulement dans le menu mobile */

.nav__right { display: flex; align-items: center; gap: clamp(0.75rem, 2vw, 1.5rem); }

/* Bascule FR / EN */
.lang {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  border: 1px solid var(--hairline);
  border-radius: 2px;
  overflow: hidden;
}
.lang__btn { padding: 0.4rem 0.6rem; color: var(--taupe-gold); transition: color var(--dur), background var(--dur); min-height: 32px; }
.lang__btn[aria-pressed="true"] { background: var(--gold); color: var(--ink); }

/* Burger */
.nav__burger { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; gap: 5px; align-items: center; }
.nav__burger span { width: 22px; height: 1.5px; background: var(--champagne); transition: transform 300ms var(--ease-luxe), opacity 200ms; }
body.menu-open .nav__burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.menu-open .nav__burger span:nth-child(2) { opacity: 0; }
body.menu-open .nav__burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- 9. Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: clamp(7rem, 14vh, 11rem) clamp(3rem, 8vh, 6rem);
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(120% 90% at 78% 18%, rgba(97, 16, 2, 0.55) 0%, transparent 55%),
    radial-gradient(90% 70% at 12% 90%, rgba(122, 26, 6, 0.35) 0%, transparent 50%),
    linear-gradient(180deg, var(--ink) 0%, #140502 100%);
}
.hero__glow {
  position: absolute; z-index: 0;
  width: min(60vw, 620px); aspect-ratio: 1;
  right: -6%; top: 8%;
  background: radial-gradient(circle, rgba(243, 156, 18, 0.16) 0%, rgba(232, 84, 30, 0.05) 40%, transparent 70%);
  filter: blur(8px);
  animation: breathe 9s ease-in-out infinite;
}
.hero__inner {
  position: relative; z-index: var(--z-raise);
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  width: 100%;
}
.hero__eyebrow { margin-bottom: 1.75rem; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.9rem, 8.5vw, 6.6rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
}
.hero__title .accent {
  font-style: italic;
  background: linear-gradient(100deg, var(--gold-soft), var(--gold) 40%, var(--ember-2) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub {
  margin-top: 1.6rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  color: var(--taupe-gold);
  letter-spacing: 0.01em;
}
.hero__copy { margin-top: 1.4rem; max-width: 44ch; color: var(--taupe-gold); }
.hero__actions { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

/* Colonne emblème + stats hero */
.hero__aside { display: flex; flex-direction: column; align-items: center; gap: 2rem; }
.hero__emblem { width: min(70%, 300px); height: auto; filter: drop-shadow(0 18px 50px rgba(232,84,30,0.25)); }
.hero__meta { display: flex; gap: clamp(1.25rem, 3vw, 2.5rem); }
.hero__meta-item { text-align: center; }
.hero__meta-num { font-family: var(--font-display); font-size: 1.8rem; color: var(--gold); line-height: 1; }
.hero__meta-label { font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--taupe-gold); margin-top: 0.4rem; }

/* Indicateur de défilement */
.scroll-cue {
  position: absolute; left: 50%; bottom: 1.75rem; transform: translateX(-50%);
  z-index: var(--z-raise);
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--taupe-gold);
}
.scroll-cue__line { width: 1px; height: 46px; background: linear-gradient(180deg, var(--gold), transparent); overflow: hidden; }
.scroll-cue__line::after { content:""; display:block; width:100%; height: 40%; background: var(--gold-soft); animation: cue 2.2s var(--ease-luxe) infinite; }

/* ---------- 9b. Hero — défilé vidéo scrubé au scroll ---------- */
.reveal-hero {
  --reveal-scroll: 1500px;
  position: relative;
  width: 100%;
  height: calc(var(--reveal-scroll) + 100vh);
  background: var(--ink);
}
.reveal-hero__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--ink);
}
.reveal-hero__clip {
  position: absolute;
  inset: 0;
  clip-path: polygon(25% 25%, 75% 25%, 75% 75%, 25% 75%);
  will-change: clip-path;
  background: #000;
}
.reveal-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
  transform: scale(1.7);
  will-change: transform;
  /* léger étalonnage chaud */
  filter: saturate(1.1) contrast(1.05) brightness(0.96);
}
/* Teinte oxblood/or pour unifier la vidéo à la charte */
.reveal-hero__tint {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 95% at 50% 32%, rgba(217,135,11,0.18), transparent 62%),
    linear-gradient(180deg, rgba(97,16,2,0.5) 0%, rgba(58,18,6,0.42) 55%, rgba(20,5,2,0.55) 100%);
  mix-blend-mode: soft-light;
  opacity: 0.7;
}
.reveal-hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20,5,2,0.6) 0%, rgba(20,5,2,0.2) 34%, rgba(20,5,2,0.3) 64%, rgba(20,5,2,0.92) 100%),
    radial-gradient(110% 70% at 50% 48%, rgba(20,5,2,0.4) 0%, transparent 70%);
}
.reveal-hero__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem var(--gutter) 5rem;
  pointer-events: none;
  opacity: 0;                         /* caché au chargement, révélé au scroll (JS) */
  will-change: opacity, transform;
  text-shadow: 0 2px 22px rgba(8, 2, 0, 0.6);
}
.reveal-hero__content::before {       /* voile sombre derrière le texte pour la lisibilité */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(58% 46% at 50% 50%, rgba(10, 2, 0, 0.6) 0%, transparent 72%);
}
.reveal-hero__content > * { pointer-events: auto; position: relative; }
.hero-overlay__title { font-size: clamp(2.7rem, 8vw, 6.2rem); margin-top: 0.3rem; }
.hero-overlay__title span { display: block; }
.hero-overlay .hero__eyebrow { margin-bottom: 1rem; }
.hero-overlay .hero__sub { margin-top: 1.3rem; }
.hero-overlay__actions { margin-top: 2.3rem; justify-content: center; }
.reveal-hero__cue { z-index: 3; }
@media (max-width: 720px) {
  .reveal-hero { --reveal-scroll: 900px; }
  .reveal-hero__content { padding: 6rem 1.25rem 5rem; }
}

/* ---------- 10. Emblème SVG — goutte de nectar ---------- */
.emblem { overflow: visible; }
.emblem .drop-body { filter: drop-shadow(0 8px 16px rgba(120,40,4,0.5)); }
.emblem .spec--soft, .emblem .spec--sharp { mix-blend-mode: screen; pointer-events: none; }
.emblem .flow { transform-box: fill-box; transform-origin: center; mix-blend-mode: screen; }
.emblem .drip { transform-box: fill-box; transform-origin: 50% 0%; }
.emblem .emblem-halo { transform-box: fill-box; transform-origin: center; }

/* ---------- 11. Maison / manifeste ---------- */
.maison__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: end; }
.maison__statement {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(1.2rem, 2.3vw, 1.85rem);
  line-height: 1.5;
  letter-spacing: 0.005em;
  color: var(--champagne);
}
.maison__statement em { font-style: italic; font-weight: 500; color: inherit; position: relative; }
.maison__statement em::after {       /* soulignement or qui se trace après l'apparition */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 1px; background: linear-gradient(90deg, var(--gold), transparent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.2s var(--ease-luxe) .55s;
}
.maison__statement.in em::after { transform: scaleX(1); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: clamp(3rem, 6vw, 4.5rem); }
.pillar {
  position: relative;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
  transition: transform .55s var(--ease-luxe);
}
.pillar::before {                      /* filet or qui se trace à l'apparition */
  content: ""; position: absolute; top: -1px; left: 0;
  height: 1px; width: 100%; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.1s var(--ease-luxe) .15s, box-shadow .45s ease, background .45s ease;
}
.pillar.in::before { transform: scaleX(1); }
.pillar:hover { transform: translateY(-6px); }
.pillar:hover::before { background: var(--gold-light); box-shadow: 0 0 16px rgba(217,135,11,0.55); }
.pillar__num {
  position: relative; display: inline-block;
  font-family: var(--font-display); font-style: normal; color: var(--gold);
  font-size: 1.2rem; letter-spacing: 0.08em;
  transition: color .45s var(--ease-luxe), transform .45s var(--ease-luxe);
}
.pillar__num::before {            /* halo doré au survol */
  content: ""; position: absolute; left: 50%; top: 50%; z-index: -1;
  width: 2.6em; height: 2.6em; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(217,135,11,0.4), transparent 70%);
  transform: translate(-50%, -50%) scale(0.5);
  opacity: 0; transition: opacity .5s var(--ease-luxe), transform .5s var(--ease-luxe);
}
.pillar:hover .pillar__num { color: var(--gold-light); transform: translateX(4px); }
.pillar:hover .pillar__num::before { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.pillar__title {
  position: relative; display: inline-block;
  font-family: var(--font-display); font-size: 1.25rem; margin: 0.6rem 0 0.5rem;
  transition: color .45s var(--ease-luxe);
}
.pillar__title::after {           /* soulignement or qui se trace au survol */
  content: ""; position: absolute; left: 0; bottom: -3px; width: 100%; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .55s var(--ease-luxe);
}
.pillar:hover .pillar__title { color: var(--champagne); }
.pillar:hover .pillar__title::after { transform: scaleX(1); }
.pillar__text { color: var(--taupe-gold); font-size: 0.92rem; }

/* ---------- 12. Le Board ---------- */
.board__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem; }
.board__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.7rem, 1.4vw, 1.15rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.portrait {
  position: relative;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--hairline);
  border-radius: 3px;
  overflow: hidden;
  background: var(--oxblood);
  cursor: default;
  transition: border-color var(--dur) var(--ease-luxe), transform var(--dur) var(--ease-luxe);
}
.portrait img {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 800ms var(--ease-luxe);
}
.portrait::before { /* voile haut/bas pour la lisibilité du numéro */
  content: "";
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(13,3,1,0.5) 0%, transparent 26%, transparent 72%, rgba(13,3,1,0.5) 100%);
}
.portrait:hover { border-color: var(--gold); transform: translateY(-4px); }
.portrait:hover img { transform: scale(1.05); }
.portrait__tag {
  position: absolute; z-index: 3; top: 0.85rem; left: 0.85rem;
  font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold);
  text-shadow: 0 1px 6px rgba(13,3,1,0.6);
}
/* Cadre or qui se resserre au survol */
.portrait__frame {
  position: absolute; inset: 12px; z-index: 2; pointer-events: none;
  border: 1px solid transparent; border-radius: 2px;
  transition: inset .55s var(--ease-luxe), border-color .55s var(--ease-luxe);
}
.portrait:hover .portrait__frame,
.portrait:focus-within .portrait__frame { inset: 8px; border-color: rgba(244,237,226,0.7); }
/* Légende qui monte au survol */
.portrait__cap {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
  padding: 2.4rem 1rem 0.95rem;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 0.5rem;
  background: linear-gradient(0deg, rgba(13,3,1,0.92) 0%, rgba(13,3,1,0.35) 55%, transparent 100%);
  opacity: 0; transform: translateY(16px);
  transition: opacity .55s var(--ease-luxe), transform .55s var(--ease-luxe);
}
.portrait:hover .portrait__cap,
.portrait:focus-within .portrait__cap { opacity: 1; transform: none; }
.portrait__cap-brand { font-family: var(--font-display); font-size: 0.86rem; letter-spacing: 0.04em; color: var(--champagne); }
.portrait__cap-mark { font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.portrait__meta {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1rem 0.9rem;
  background: linear-gradient(0deg, rgba(13,3,1,0.92), transparent);
  transform: translateY(8px);
  opacity: 0;
  transition: opacity var(--dur) var(--ease-luxe), transform var(--dur) var(--ease-luxe);
}
.portrait:hover .portrait__meta, .portrait:focus-within .portrait__meta { opacity: 1; transform: none; }
.portrait__name { font-family: var(--font-display); font-size: 1.05rem; }
.portrait__loc { font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--taupe-gold); }
.portrait--cta {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem;
  text-align: center; padding: 1.5rem;
  background: linear-gradient(160deg, var(--oxblood-vif), var(--ink));
}
.portrait--cta::before { display: none; }
.portrait--cta .portrait__name { color: var(--gold); }

/* ---------- 13. Le Parcours (timeline) ---------- */
.parcours__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); }
.steps { position: relative; }
.steps::before {
  content: ""; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 1px;
  background: var(--hairline);
}
.steps__progress {
  position: absolute; left: 19px; top: 8px; width: 1px;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  height: 0; transition: height 0.25s linear;
  box-shadow: 0 0 10px rgba(217,135,11,0.5);
}
.step { position: relative; isolation: isolate; padding: 1.4rem 1.4rem 1.4rem 4rem; }
.step::after {                         /* panneau de fond de chaque catégorie */
  content: ""; position: absolute; z-index: -1;
  top: 0.4rem; bottom: 0.4rem; left: 2.9rem; right: 0;
  border-radius: 8px;
  background: linear-gradient(125deg, rgba(58,18,6,0.24), rgba(20,5,2,0) 62%);
  border: 1px solid rgba(217,135,11,0.09);
  transition: background .55s var(--ease-luxe), border-color .55s var(--ease-luxe), box-shadow .55s var(--ease-luxe);
}
.step.is-active::after {               /* la catégorie atteinte s'illumine */
  background: linear-gradient(125deg, rgba(97,16,2,0.46), rgba(58,18,6,0.12) 65%);
  border-color: var(--hairline);
  box-shadow: 0 16px 46px rgba(0,0,0,0.28);
}
.step__dot {
  position: absolute; left: 8px; top: 1.7rem;
  width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid var(--gold); background: var(--ink);
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 0.72rem; color: var(--gold);
  transition: background .45s var(--ease-luxe), color .45s var(--ease-luxe),
              box-shadow .5s var(--ease-luxe), transform .5s var(--ease-luxe);
}
.step.is-active .step__dot {
  background: var(--gold); color: var(--ink);
  box-shadow: 0 0 0 4px rgba(217,135,11,0.14), 0 0 18px rgba(217,135,11,0.5);
  transform: scale(1.08);
}
.step__title { font-family: var(--font-display); font-size: 1.35rem; transition: color .45s var(--ease-luxe); }
.step.is-active .step__title { color: var(--champagne); }
.step__text { color: var(--taupe-gold); font-size: 0.92rem; margin-top: 0.35rem; max-width: 46ch; }

/* ---------- 14. Confiance (stats + marques + témoignage) ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat { text-align: center; padding: 1.5rem 0.5rem; border-top: 1px solid var(--hairline); }
.stat__num { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.6rem); color: var(--gold); line-height: 1; }
.stat__label { font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--taupe-gold); margin-top: 0.6rem; }

.brands { margin-top: clamp(3rem, 6vw, 4.5rem); }
.brands__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(2rem, 6vw, 4.5rem); }
.brands__item { font-family: var(--font-display); font-size: clamp(1.05rem, 2.2vw, 1.5rem); letter-spacing: 0.18em; text-transform: uppercase; color: var(--taupe-gold); opacity: 0.7; transition: opacity var(--dur), color var(--dur); }
.brands__item:hover { opacity: 1; color: var(--champagne); }

.quote { max-width: 60ch; margin: clamp(3.5rem, 7vw, 5.5rem) auto 0; text-align: center; }
.quote__mark { font-family: var(--font-display); font-size: 4rem; color: var(--gold); line-height: 0.5; }
.quote__text { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: clamp(1.3rem, 2.8vw, 2rem); line-height: 1.4; margin-top: 1rem; }
.quote__cite { margin-top: 1.5rem; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.quote__cite span { display: block; color: var(--taupe-gold); margin-top: 0.3rem; letter-spacing: 0.14em; }

/* ---------- 15. Candidater (formulaire, panneau clair) ---------- */
.apply__grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.apply__intro .section-title { color: var(--ink); }
.apply__points { margin-top: 2rem; display: grid; gap: 1rem; }
.apply__point { display: flex; gap: 0.85rem; align-items: flex-start; color: #5C3D24; font-size: 0.95rem; }
.apply__point svg { flex: none; margin-top: 3px; color: var(--oxblood-vif); }

.form { display: grid; gap: 1.35rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.35rem; }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field label { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: #6E4A2C; font-weight: 500; }
.field input, .field select, .field textarea {
  font-family: var(--font-sans); font-size: 0.95rem; font-weight: 300;
  padding: 0.85rem 1rem; color: var(--ink);
  background: #fff; border: 1px solid rgba(97,16,2,0.18); border-radius: 3px;
  transition: border-color var(--dur), box-shadow var(--dur);
}
.field input::placeholder, .field textarea::placeholder { color: #B79A82; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217,135,11,0.15);
}
.field textarea { resize: vertical; min-height: 120px; }
.field--full { grid-column: 1 / -1; }
.form__consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.8rem; color: #6E4A2C; }
.form__consent input { margin-top: 3px; accent-color: var(--oxblood-vif); width: 18px; height: 18px; }
.form .btn--gold { width: fit-content; }
.form__note { font-size: 0.74rem; color: #8A6A4E; }

/* Message de succès */
.form__success {
  display: none;
  padding: 1.1rem 1.25rem; border-radius: 3px;
  background: rgba(217,135,11,0.12); border: 1px solid var(--gold);
  color: var(--oxblood-vif); font-size: 0.9rem;
}
.form__success.is-visible { display: block; }

/* ---------- 16. Footer ---------- */
.footer { background: #120402; padding-block: clamp(3.5rem, 7vw, 5rem) 2rem; border-top: 1px solid var(--hairline); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.footer__brand .brand__name { font-size: 1.4rem; }
.footer__tag { margin-top: 1.1rem; color: var(--taupe-gold); max-width: 34ch; font-style: italic; font-family: var(--font-display); }
.footer__col h4 { font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.1rem; }
.footer__col li { margin-bottom: 0.7rem; }
.footer__col a { color: var(--taupe-gold); font-size: 0.9rem; transition: color var(--dur); }
.footer__col a:hover { color: var(--champagne); }
.footer__bottom {
  margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.75rem; border-top: 1px solid var(--hairline-soft);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  font-size: 0.72rem; letter-spacing: 0.1em; color: var(--taupe-gold);
}

/* ---------- 17. Animations ---------- */
@keyframes breathe { 0%,100% { transform: scale(1); opacity: 0.8; } 50% { transform: scale(1.12); opacity: 1; } }
@keyframes cue { 0% { transform: translateY(-100%); } 100% { transform: translateY(250%); } }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes dropIn { 0% { opacity: 0; transform: scale(0.62) translateY(10px); } 60% { opacity: 1; } 100% { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes flowDown { 0% { transform: translateY(-80px); opacity: 0; } 25% { opacity: 0.9; } 75% { opacity: 0.9; } 100% { transform: translateY(150px); opacity: 0; } }
@keyframes dripFall {
  0%, 55% { opacity: 0; transform: translateY(0) scale(0.5); }
  63% { opacity: 1; transform: translateY(0) scale(1); }
  80% { opacity: 1; transform: translateY(16px) scaleY(1.18) scaleX(0.9); }
  100% { opacity: 0; transform: translateY(44px) scaleY(1.32) scaleX(0.82); }
}
@keyframes haloPulse { 0%,100% { opacity: 0.45; transform: scale(0.96); } 50% { opacity: 0.85; transform: scale(1.05); } }

/* Reveal au scroll */
.reveal { opacity: 0; transform: translateY(28px); filter: blur(7px); transition: opacity 1s var(--ease-luxe), transform 1s var(--ease-luxe), filter 1s var(--ease-luxe); }
.reveal.in { opacity: 1; transform: none; filter: blur(0); }
.reveal[data-delay="1"] { transition-delay: 90ms; }
.reveal[data-delay="2"] { transition-delay: 180ms; }
.reveal[data-delay="3"] { transition-delay: 270ms; }
.reveal[data-delay="4"] { transition-delay: 360ms; }
.reveal[data-delay="5"] { transition-delay: 450ms; }

/* Hero : masque-révélation du titre au chargement */
.hero__line { display: block; overflow: hidden; }
.hero__line > span { display: block; transform: translateY(105%); transition: transform 1s var(--ease-luxe); }
body.is-loaded .hero__line > span { transform: none; }
body.is-loaded .hero__line:nth-child(2) > span { transition-delay: 120ms; }
.hero .fade-up { opacity: 0; transform: translateY(20px); transition: opacity 1s var(--ease-luxe) .5s, transform 1s var(--ease-luxe) .5s; }
body.is-loaded .hero .fade-up { opacity: 1; transform: none; }
.hero__aside { opacity: 0; transform: translateY(20px); transition: opacity 1.1s var(--ease-luxe) .35s, transform 1.1s var(--ease-luxe) .35s; }
body.is-loaded .hero__aside { opacity: 1; transform: none; }

/* Emblème : entrée + écoulement continu (la goutte qui coule) */
.emblem .drop-body { opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; transform: scale(0.62) translateY(10px); }
body.is-loaded .emblem .drop-body { animation: dropIn 1.1s var(--ease-luxe) forwards; }
.emblem .drop-rim { opacity: 0; }
body.is-loaded .emblem .drop-rim { opacity: 1; transition: opacity 1s var(--ease-luxe) .7s; }
.emblem .spec--soft, .emblem .spec--sharp { opacity: 0; }
body.is-loaded .emblem .spec--soft { opacity: .8; transition: opacity 1s var(--ease-luxe) .85s; }
body.is-loaded .emblem .spec--sharp { opacity: .92; transition: opacity 1s var(--ease-luxe) .95s; }
.emblem .flow { opacity: 0; }
body.is-loaded .emblem .flow { animation: flowDown 4.2s var(--ease-luxe) 1.2s infinite; }
.emblem .drip { opacity: 0; }
body.is-loaded .emblem .drip { animation: dripFall 3.8s ease-in 1.9s infinite; }
.emblem .emblem-halo { opacity: 0; }
body.is-loaded .emblem .emblem-halo { animation: haloPulse 6s ease-in-out 1s infinite; }

/* ---------- 18. Responsive ---------- */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__aside { order: -1; flex-direction: row; justify-content: flex-start; gap: 1.5rem; }
  .hero__emblem { width: 110px; }
  .maison__grid, .parcours__grid, .apply__grid { grid-template-columns: 1fr; }
  .board__grid { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav [data-cta] { display: none; }       /* CTA repris par le hero + le menu */
  .nav { gap: 0.75rem; }
  .nav__links.is-open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem;
    position: absolute; top: calc(100% + 0.6rem); left: 0; right: 0;
    padding: 1.75rem; background: rgba(20,5,2,0.96); backdrop-filter: blur(16px);
    border: 1px solid var(--hairline); border-radius: 4px;
  }
  .nav__links.is-open .nav__link--menu { display: block; }
  .pillars { grid-template-columns: 1fr; gap: 1.25rem; }
  .form__row { grid-template-columns: 1fr; }
  .hero__aside { flex-direction: column; align-items: flex-start; }
  /* --- condensation mobile --- */
  .section { padding-block: clamp(3.25rem, 12vw, 5rem); }
  .section-title { font-size: clamp(1.85rem, 7.5vw, 2.6rem); }
  .hero-overlay__title { font-size: clamp(2.1rem, 9.5vw, 3.1rem); }
  .hero-overlay .hero__eyebrow { letter-spacing: 0.3em; }
  .brands__row { gap: clamp(1.1rem, 5vw, 2rem); }
  .brands__item { font-size: 1.05rem; }
  .step { padding-left: 3.4rem; }
  .step__title { font-size: 1.2rem; }
  .reveal { filter: blur(4px); }       /* moins lourd sur mobile */
  .quote__text { font-size: clamp(1.15rem, 5.5vw, 1.6rem); }
}

@media (max-width: 560px) {
  .hero-overlay__actions { flex-direction: column; width: 100%; }
  .hero-overlay__actions .btn { width: 100%; justify-content: center; }
  .brand__name { font-size: 1rem; }
}

@media (max-width: 460px) {
  .board__grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__meta { flex-wrap: wrap; }
}

/* ---------- 19. Réduction de mouvement ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal, .hero .fade-up { opacity: 1 !important; transform: none !important; filter: none !important; }
  .reveal-hero { height: 100svh !important; }
  .reveal-hero__clip { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%) !important; }
  .reveal-hero__video { transform: none !important; }
  .reveal-hero__content { opacity: 1 !important; transform: none !important; }
  .scroll-cue__line::after { animation: none !important; }
}
