/* =========================================================
   Le nouVel Alchimiste — Rebrand "Le Cinéma de l'Âme"
   Deep night + gold · Cormorant Garamond × Jost
   ========================================================= */

:root {
  /* Ink / night — navy très sombre (palette site live) */
  --ink:        #030a18;
  --ink-2:      #081630;
  --ink-3:      #0b1d3a;
  --night:      #050f24;
  --raised:     #0a1c38;

  /* Gold foil — or riche (palette site live) */
  --gold:        #d4a01e;
  --gold-bright: #ecd48e;
  --gold-deep:   #b58319;
  --gold-line:   rgba(212, 160, 30, 0.26);
  --gold-faint:  rgba(212, 160, 30, 0.12);

  /* Cosmic blue (atmosphere only) */
  --violet:     rgba(74, 143, 232, 0.16);

  /* Text — slate froid (palette site live) */
  --parchment:  #eef3f8;
  --text:       #cbd5e1;
  --muted:      #8a9bb0;
  --muted-2:    #5f7187;

  /* Type */
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans:  "Jost", system-ui, sans-serif;

  /* Rhythm */
  --rail: 56px;            /* film-strip rail width */
  --pad:  clamp(24px, 6vw, 120px);
  --maxw: 1320px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; overflow-x: clip; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

/* ---- Atmosphere: grain + vignette (fixed overlays) ---- */
.grain {
  position: fixed; inset: 0; z-index: 9000; pointer-events: none;
  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' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.vignette {
  position: fixed; inset: 0; z-index: 8000; pointer-events: none;
  background: radial-gradient(130% 100% at 50% 0%, transparent 55%, rgba(1,5,14,0.7) 100%);
}
#starfield {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.star {
  position: absolute; border-radius: 50%;
  background: #e6edf5;
  animation: twinkle var(--tw, 5s) ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: var(--o, .4); }
  50%      { opacity: calc(var(--o, .4) * 0.25); }
}

/* ---- Film-strip rail (left edge) ---- */
.film-rail {
  position: fixed; top: 0; left: 0; bottom: 0; width: var(--rail);
  z-index: 50; pointer-events: none;
  border-right: 1px solid var(--gold-faint);
  display: flex; flex-direction: column; align-items: center;
  justify-content: space-between; padding: 18px 0;
  background: linear-gradient(180deg, rgba(3,10,24,.6), rgba(3,10,24,0));
}
.film-rail .holes {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; gap: 30px; padding-top: 90px;
}
.film-rail .hole {
  width: 14px; height: 20px; border-radius: 3px;
  border: 1px solid var(--gold-faint);
  background: rgba(0,0,0,0.4);
  flex: 0 0 auto;
}
.rail-label {
  writing-mode: vertical-rl; text-orientation: mixed;
  font-family: var(--sans); font-size: 10px; letter-spacing: .42em;
  text-transform: uppercase; color: var(--gold); opacity: .65;
  position: relative; z-index: 2;
}

/* ---- Shared layout ---- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
section { position: relative; z-index: 2; }

.eyebrow {
  font-family: var(--sans); font-weight: 400; font-size: 12px;
  letter-spacing: .44em; text-transform: uppercase; color: var(--gold);
  display: inline-flex; align-items: center; gap: 14px;
}
.eyebrow::before {
  content: ""; width: 34px; height: 1px; background: var(--gold);
  opacity: .6; display: inline-block;
}
.eyebrow.center::before { display: none; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.02; color: var(--parchment); letter-spacing: -0.01em; }
.italic { font-style: italic; }
.gold-text { color: var(--gold-bright); }

.lede {
  font-family: var(--serif); font-weight: 300; font-style: italic;
  font-size: clamp(1.35rem, 2.3vw, 1.9rem); line-height: 1.45;
  color: var(--parchment);
}
.body { font-size: clamp(1rem, 1.15vw, 1.08rem); color: var(--text); font-weight: 300; }
.muted { color: var(--muted); }

.hr-gold { height: 1px; background: var(--gold-line); border: 0; }

/* ---- Buttons ---- */
.btn {
  font-family: var(--sans); font-weight: 400; font-size: 13px;
  letter-spacing: .18em; text-transform: uppercase; text-decoration: none;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 17px 30px; border: 1px solid var(--gold); color: var(--gold-bright);
  background-color: transparent;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-repeat: no-repeat; background-position: left center; background-size: 0% 100%;
  cursor: pointer; position: relative;
  transition: background-size .45s cubic-bezier(.7,0,.2,1), color .4s ease, border-color .4s ease;
  overflow: hidden;
}
.btn:hover { color: var(--ink); border-color: var(--gold); background-size: 100% 100%; }
.btn .arrow { display: inline-block; transition: transform .4s ease; }
.btn:hover .arrow { transform: translateX(5px); }
.btn--ghost { border-color: transparent; padding-left: 0; padding-right: 0; color: var(--parchment); background-image: none; }
.btn--ghost .arrow { transition: transform .4s ease; }
.btn--ghost:hover { color: var(--gold-bright); }
.btn--ghost:hover .arrow { transform: translateX(7px); }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 22px var(--pad); padding-left: calc(var(--rail) + 28px);
  display: flex; align-items: center; justify-content: space-between;
  transition: background .5s ease, padding .5s ease, border-color .5s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(3,10,24,0.85); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--gold-faint); padding-top: 14px; padding-bottom: 14px;
}
.nav-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.nav-brand img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 1px solid var(--gold-line); }
.nav-brand .bn { font-family: var(--serif); font-size: 1.32rem; color: var(--parchment); line-height: 1; letter-spacing: .01em; }
.logo-mark {
  width: 42px; height: 42px; flex: 0 0 auto; border-radius: 50%;
  border: 1px solid var(--gold); display: inline-flex; align-items: center; justify-content: center;
  color: var(--gold-bright); font-family: var(--serif); font-size: 1.3rem; line-height: 1;
  background: radial-gradient(circle at 50% 38%, rgba(198,167,99,.18), transparent 70%);
}
.footer-mark { width: 46px; height: 46px; font-size: 1.45rem; }
.nav-brand .bs { font-family: var(--sans); font-size: 9px; letter-spacing: .34em; text-transform: uppercase; color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-family: var(--sans); font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text); text-decoration: none; font-weight: 300; position: relative; padding: 4px 0;
  transition: color .3s ease;
}
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0; background: var(--gold); transition: width .35s ease; }
.nav-links a:hover { color: var(--gold-bright); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.current { color: var(--gold-bright); }
.nav-links a.current::after { width: 100%; opacity: .5; }
.nav-cta { font-size: 12px; padding: 12px 24px; }
.nav-burger { display: none; background: none; border: 0; color: var(--gold); cursor: pointer; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 160px var(--pad) 80px; padding-left: calc(var(--rail) + var(--pad));
  position: relative; overflow: hidden;
}
.hero-glow {
  position: absolute; top: -10%; left: 38%; width: 60vw; height: 60vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(circle, rgba(236,212,142,0.13), rgba(74,143,232,0.12) 42%, transparent 70%);
  filter: blur(20px); pointer-events: none; z-index: 0;
}
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; width: 100%; max-width: var(--maxw); margin: 0 auto; position: relative; z-index: 3; }
.hero-eyebrow { margin-bottom: 34px; }
.hero h1 {
  font-size: clamp(3.4rem, 8.5vw, 8rem); line-height: 0.94; margin-bottom: 6px;
  position: relative; padding-left: clamp(18px, 2vw, 30px);
}
.hero h1::before {
  content: ""; position: absolute; left: 0; top: .08em; bottom: .16em; width: 2px;
  background: linear-gradient(var(--gold-bright), var(--gold-deep) 90%, transparent);
}
.hero h1 .l1 {
  display: block; font-size: 0.41em; font-weight: 300; line-height: 1.04;
  color: var(--parchment); letter-spacing: .005em; margin-bottom: .16em;
}
.hero h1 .l2 { display: block; }
.hero h1 .hl { font-style: italic; color: var(--gold-bright); }
.hero .sub {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(1.5rem, 2.8vw, 2.3rem); color: var(--parchment);
  margin: 26px 0 30px; line-height: 1.3; max-width: 22ch;
}
.hero .body { max-width: 46ch; margin-bottom: 42px; color: var(--text); }
.hero .body .names { color: var(--gold-bright); font-style: italic; font-family: var(--serif); font-size: 1.18em; }
.hero-actions { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }

/* Hero sigil (rotating reel/sun) */
.hero-sigil { position: relative; display: flex; align-items: center; justify-content: center; min-height: 440px; }
.reel { width: min(440px, 38vw); aspect-ratio: 1; position: relative; }
.reel .ring { position: absolute; inset: 0; border: 1px solid var(--gold-line); border-radius: 50%; }
.reel .ring.r2 { inset: 9%; border-color: var(--gold-faint); }
.reel .ring.r3 { inset: 26%; border-color: var(--gold-line); }
.reel .spin { position: absolute; inset: 0; animation: spin 80s linear infinite; }
.reel .spin.rev { animation-duration: 120s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.reel .tick { position: absolute; top: 50%; left: 50%; width: 1px; height: 50%; background: var(--gold-faint); transform-origin: top center; }
.reel .core { position: absolute; inset: 26%; border: 1px solid var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.reel .core .glyph { font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 4rem); color: var(--gold-bright); }
.reel .core img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.reel .orbit-dot { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-bright); top: -3px; left: calc(50% - 3px); box-shadow: 0 0 14px 2px rgba(236,212,142,.5); }

.scroll-cue {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px; z-index: 4;
  font-family: var(--sans); font-size: 10px; letter-spacing: .35em; text-transform: uppercase; color: var(--muted);
}
.scroll-cue .stem { width: 1px; height: 46px; background: linear-gradient(var(--gold), transparent); position: relative; overflow: hidden; }
.scroll-cue .stem::after { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 40%; background: var(--gold-bright); animation: drop 2.4s ease-in-out infinite; }
@keyframes drop { 0% { transform: translateY(-100%);} 60%,100% { transform: translateY(280%);} }

/* =========================================================
   CONCEPTS — "Révéler votre —"
   ========================================================= */
.concepts { padding-block: clamp(90px, 12vh, 160px); }
.concepts .head { max-width: 760px; margin-bottom: 64px; }
.concepts h2 { font-size: clamp(2.6rem, 6vw, 5.2rem); margin-top: 18px; }
.concepts h2 .swap { color: var(--gold-bright); font-style: italic; display: block; white-space: nowrap; transition: opacity .4s ease, transform .4s ease; }
.concept-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.concept-list { display: flex; flex-direction: column; }
.concept-tab {
  display: flex; align-items: center; gap: 22px; padding: 24px 18px 24px 0;
  border-top: 1px solid var(--gold-faint); cursor: pointer; position: relative;
  transition: padding-left .4s ease;
}
.concept-tab:last-child { border-bottom: 1px solid var(--gold-faint); }
.concept-tab .num { font-family: var(--sans); font-size: 11px; letter-spacing: .2em; color: var(--muted-2); width: 26px; }
.concept-tab .sig { width: 30px; height: 30px; color: var(--muted); transition: color .4s ease, transform .5s ease; flex: 0 0 auto; }
.concept-tab .nm { font-family: var(--serif); font-size: clamp(1.5rem, 2.4vw, 2.1rem); color: var(--text); transition: color .4s ease; }
.concept-tab::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%) scaleY(0); width: 2px; height: 60%; background: var(--gold); transition: transform .4s ease; }
.concept-tab:hover .nm { color: var(--parchment); }
.concept-tab:hover .sig { color: var(--gold); }
.concept-tab.active { padding-left: 22px; }
.concept-tab.active::before { transform: translateY(-50%) scaleY(1); }
.concept-tab.active .nm { color: var(--gold-bright); }
.concept-tab.active .sig { color: var(--gold-bright); transform: rotate(0deg); }

.concept-panel { position: relative; min-height: 360px; padding-top: 8px; }
.concept-panel .watermark { position: absolute; top: -40px; right: -10px; width: 220px; height: 220px; color: var(--gold-faint); pointer-events: none; }
.concept-state { position: relative; z-index: 2; }
.concept-state .lead { font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 2.6vw, 2.3rem); color: var(--parchment); margin-bottom: 28px; line-height: 1.3; }
.concept-state p { margin-bottom: 18px; max-width: 52ch; }
.concept-fade { animation: cfade .55s ease; }
@keyframes cfade { from { opacity: 0; transform: translateY(14px);} to { opacity: 1; transform: none; } }

/* =========================================================
   PROFIL
   ========================================================= */
.profil { padding: clamp(90px, 12vh, 160px) 0; background: linear-gradient(180deg, var(--ink), var(--night) 60%, var(--ink)); }
.profil .head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 24px; margin-bottom: 60px; }
.profil h2 { font-size: clamp(2.6rem, 6vw, 5.2rem); }
.portraits { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); margin-bottom: 80px; }
.portrait { position: relative; display: flex; align-items: center; gap: clamp(18px, 2.2vw, 28px); }
.portrait .frame { position: relative; width: clamp(130px, 15vw, 166px); aspect-ratio: 4/5; flex: 0 0 auto; overflow: hidden; border: 1px solid var(--gold-line); background: var(--ink-3); }
.portrait .frame img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.25) contrast(1.02) brightness(.95); transition: filter .6s ease, transform 1.2s cubic-bezier(.2,.7,.2,1); }
.pslot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--ink-3); display: flex; align-items: center; justify-content: center; text-align: center; }
.pslot-ph { font-family: var(--sans); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; line-height: 1.7; color: var(--gold); opacity: .55; }
.portrait .frame .meta, .portrait .frame .corner { z-index: 4; }
.portrait:hover .frame img { filter: grayscale(0) contrast(1.05) brightness(1); transform: scale(1.04); }
.portrait .frame::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 30px rgba(0,0,0,.4); pointer-events: none; }
.portrait .ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--gold-faint); font-family: var(--serif); font-size: 5rem; }
.portrait .meta { flex: 1 1 auto; border-left: 1px solid var(--gold-line); padding-left: clamp(16px, 2vw, 24px); }
.portrait .meta .pn { font-family: var(--serif); font-size: clamp(1.6rem, 2.3vw, 2.15rem); color: var(--parchment); line-height: 1.04; }
.portrait .meta .pr { font-family: var(--sans); font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-top: 11px; }
.portrait .corner { position: absolute; width: 16px; height: 16px; border: 1px solid var(--gold); z-index: 3; }
.portrait .corner.tl { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.portrait .corner.tr { top: 10px; right: 10px; border-left: 0; border-bottom: 0; }

.histoire { display: grid; grid-template-columns: 0.55fr 1.45fr; gap: clamp(30px, 6vw, 80px); align-items: start; }
.histoire h3 { font-size: clamp(2rem, 3.4vw, 3rem); position: sticky; top: 120px; }
.histoire h3 .sm { display: block; font-family: var(--sans); font-size: 11px; letter-spacing: .4em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.histoire .copy p { margin-bottom: 22px; max-width: 64ch; }
.histoire .copy p:first-child::first-letter { font-family: var(--serif); font-size: 4.2em; float: left; line-height: .8; padding: 6px 14px 0 0; color: var(--gold-bright); }
.tags { display: flex; flex-wrap: wrap; gap: 0; margin-top: 34px; }
.tags .tag { font-family: var(--sans); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); padding: 8px 0; display: inline-flex; align-items: center; }
.tags .tag:not(:last-child)::after { content: "◇"; color: var(--gold-deep); margin: 0 18px; font-size: 9px; }

/* =========================================================
   SAVOIR-FAIRE — Les Actes
   ========================================================= */
.savoir { padding-block: clamp(90px, 12vh, 160px); }
.savoir .head { max-width: 820px; margin-bottom: 70px; }
.savoir h2 { font-size: clamp(2.6rem, 6vw, 5.2rem); margin-top: 18px; }
.savoir .head .body { margin-top: 26px; max-width: 60ch; }
.actes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--gold-line); }
.acte { padding: 44px 38px 48px 0; border-right: 1px solid var(--gold-faint); position: relative; }
.acte:last-child { border-right: 0; }
.acte:not(:first-child) { padding-left: 38px; }
.acte .rn { font-family: var(--serif); font-size: 1.1rem; color: var(--gold); letter-spacing: .1em; }
.acte .sig { width: 40px; height: 40px; color: var(--gold); margin: 26px 0 22px; }
.acte h3 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); margin-bottom: 16px; }
.acte p { color: var(--text); max-width: 38ch; }
.acte::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 0; height: 2px; background: var(--gold); transition: width .6s ease; }
.acte:hover::after { width: 64px; }

/* État Modifié feature panel */
.etat { margin-top: 80px; background: var(--ink-2); border: 1px solid var(--gold-line); position: relative; overflow: hidden; }
.etat-glow { position: absolute; top: -30%; right: -10%; width: 50%; height: 160%; background: radial-gradient(circle, rgba(74,143,232,.13), transparent 70%); pointer-events: none; }
.etat-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(30px, 5vw, 70px); padding: clamp(40px, 5vw, 70px); position: relative; z-index: 2; }
.etat .sig-lg { width: 56px; height: 56px; color: var(--gold-bright); margin-bottom: 26px; }
.etat .sub { font-family: var(--sans); font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.etat h3 { font-size: clamp(2rem, 3.6vw, 3.2rem); margin-bottom: 26px; line-height: 1.05; }
.etat p { color: var(--text); max-width: 50ch; }
.etat ul { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.etat li { display: flex; gap: 16px; align-items: flex-start; font-size: 1.02rem; color: var(--parchment); border-bottom: 1px solid var(--gold-faint); padding-bottom: 18px; }
.etat li .mk { color: var(--gold-bright); font-size: 1rem; line-height: 1.6; flex: 0 0 auto; }

/* =========================================================
   QUOTE
   ========================================================= */
.quote { padding: clamp(110px, 16vh, 200px) 0; background: var(--night); position: relative; text-align: center; }
.quote .mark { font-family: var(--serif); font-size: 5rem; color: var(--gold); line-height: .5; height: 40px; display: block; opacity: .7; }
.quote blockquote { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.5rem, 2.8vw, 2.4rem); line-height: 1.4; color: var(--parchment); max-width: 24ch; margin: 0 auto 36px; text-transform: uppercase; letter-spacing: .03em; }
.quote blockquote em { color: var(--gold-bright); font-style: italic; }
.quote .attr { font-family: var(--sans); font-size: 12px; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); }
.quote .attr::before { content: "—"; margin-right: 12px; color: var(--gold-deep); }

/* =========================================================
   CTA
   ========================================================= */
.cta { padding: clamp(100px, 14vh, 180px) 0; text-align: center; position: relative; }
.cta .eyebrow { margin-bottom: 30px; }
.cta h2 { font-size: clamp(2.6rem, 6.5vw, 5.5rem); max-width: 16ch; margin: 0 auto 48px; line-height: 1.02; }
.cta h2 em { color: var(--gold-bright); font-style: italic; }
.cta-glow { position: absolute; bottom: -20%; left: 50%; transform: translateX(-50%); width: 70vw; height: 50vw; max-width: 800px; background: radial-gradient(circle, rgba(236,212,142,.1), rgba(74,143,232,.08) 50%, transparent 68%); pointer-events: none; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--ink-2); border-top: 1px solid var(--gold-line); padding: clamp(60px, 8vh, 100px) 0 40px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 60px; border-bottom: 1px solid var(--gold-faint); }
.footer-brand .fb { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.footer-brand img { width: 66px; height: 66px; border-radius: 50%; border: 1px solid var(--gold-line); object-fit: cover; }
.footer-brand .fn { font-family: var(--serif); font-size: 1.5rem; color: var(--parchment); line-height: 1; }
.footer-brand .fs { font-family: var(--sans); font-size: 9px; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); }
.footer-brand p { color: var(--muted); max-width: 38ch; font-size: .95rem; }
.footer-col h3 { font-family: var(--sans); font-weight: 400; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-bottom: 22px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 13px; }
.footer-col a { color: var(--text); text-decoration: none; font-size: .95rem; font-weight: 300; transition: color .3s ease; display: inline-flex; align-items: center; gap: 8px; }
.footer-col a:hover { color: var(--gold-bright); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding-top: 30px; }
.footer-bottom .legal { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-bottom a, .footer-bottom span { font-family: var(--sans); font-size: 12px; color: var(--muted); text-decoration: none; letter-spacing: .04em; }
.footer-bottom .legal a { color: var(--text); }
.footer-bottom a:hover { color: var(--gold-bright); }
.footer-bottom .made a { color: var(--gold); text-decoration: underline; }

/* =========================================================
   Scroll reveal
   ========================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .reel .spin, .star, .scroll-cue .stem::after { animation: none !important; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 50px; }
  .hero-sigil { min-height: 300px; order: -1; }
  .concept-grid { grid-template-columns: 1fr; }
  .etat-inner { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  /* Rail décoratif masqué sur mobile (évite le chevauchement avec le texte) */
  .film-rail { display: none; }
  /* Rail à 0 + gouttière latérale plus large pour aérer le texte */
  :root { --rail: 0px; --pad: clamp(34px, 8vw, 76px); }

  /* Nav → menu hamburger déroulant */
  .nav { padding: 16px var(--pad); flex-wrap: wrap; row-gap: 0; }
  .nav.scrolled { padding-top: 12px; padding-bottom: 12px; }
  .nav.open { background: rgba(3,10,24,0.96); backdrop-filter: blur(14px); border-bottom: 1px solid var(--gold-faint); }
  .nav-cta { display: none; }
  .nav-burger { display: block; font-size: 1.6rem; line-height: 1; padding: 4px 2px; }
  .nav-brand { gap: 11px; }
  .nav-brand img { width: 46px; height: 46px; }
  .nav-brand .bn { font-size: 1.12rem; }
  .nav-links {
    order: 3; width: 100%; display: none;
    flex-direction: column; align-items: stretch; gap: 0; margin-top: 10px;
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a { font-size: 13px; letter-spacing: .14em; padding: 14px 2px; border-top: 1px solid var(--gold-faint); }
  .nav-links a::after { display: none; }

  /* Hero — bobine plus grande, moins de vide */
  .hero { padding: 128px var(--pad) 70px; }
  .hero-sigil { min-height: 200px; }
  .reel { width: min(230px, 56vw); }

  /* Sections empilées */
  .portraits { grid-template-columns: 1fr; }
  .histoire { grid-template-columns: 1fr; }
  .histoire h3 { position: static; }
  .actes { grid-template-columns: 1fr; }
  .acte { border-right: 0; border-bottom: 1px solid var(--gold-faint); padding: 36px 0; }
  .acte:not(:first-child) { padding-left: 0; }
}
@media (max-width: 560px) {
  .hero { min-height: auto; padding-top: 118px; }
  .hero-actions { justify-content: center; }

  /* Nav compacte (évite tout débordement horizontal) */
  .nav-brand img { width: 42px; height: 42px; }
  .nav-brand .bn { font-size: 1.02rem; }
  .nav-brand .bs { display: none; }

  /* Footer entièrement centré sur mobile */
  .footer-top { grid-template-columns: 1fr; text-align: center; }
  .footer-brand .fb { justify-content: center; }
  .footer-brand p { margin-left: auto; margin-right: auto; }
  .footer-col ul { align-items: center; }
  .footer-col a { justify-content: center; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: 14px; }
  .footer-bottom .legal { justify-content: center; }
}

/* Screen-reader-only utility (accessible headings without visual change) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
