
/* ══════════════════════════════════════════════════════════
   LUNA — écrin vert profond + rose · animé & romantique
   ══════════════════════════════════════════════════════════ */
:root {
  --bg: #072019;        /* vert profond (le sien, bien foncé) */
  --bg-2: #0d3123;      /* surface verte */
  --ink: #f2efe4;       /* crème */
  --muted: #a6c2b3;     /* vert-gris doux */
  --green: #45cf95;     /* vert émeraude vif (accent/glow) */
  --green-2: #1f9564;
  --pink: #ff9ec9;      /* rose doux */
  --pink-2: #ee6ba6;    /* rose profond */
  --gold: #e6c583;      /* filet doré */
  --glass: rgba(255, 255, 255, 0.05);
  --glass-line: rgba(255, 226, 238, 0.16);
  --glow-green: rgba(69, 207, 149, .34);
  --glow-pink: rgba(238, 107, 166, .4);

  --display: "Space Grotesk", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --body: "Sora", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--bg); }
/* pré-voile (pseudo-élément, invisible aux extensions) jusqu'à l'entrée */
html::before {
  content: "";
  position: fixed; inset: 0; z-index: 70;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% 25%, #14402e 0%, #0a2118 68%);
  transition: opacity 1s ease;
}
html.entered::before { opacity: 0; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(90% 60% at 15% 0%, rgba(69,207,149,.07), transparent 60%),
    radial-gradient(80% 60% at 95% 30%, rgba(238,107,166,.09), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
main { position: relative; z-index: 2; overflow-x: clip; }

/* curseur personnalisé (masque le natif sur desktop) */
html.has-cursor, html.has-cursor * { cursor: none !important; }
.cursor {
  position: fixed; top: 0; left: 0; z-index: 120;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 14px var(--pink), 0 0 34px var(--glow-pink);
  pointer-events: none; mix-blend-mode: screen;
  transition: width .25s ease, height .25s ease, background .25s ease, box-shadow .25s ease;
}
.cursor.cursorHot {
  width: 46px; height: 46px;
  background: rgba(69,207,149,.16);
  box-shadow: 0 0 0 1px var(--green), 0 0 26px var(--glow-green);
}

::selection { background: var(--pink); color: #3a0f26; }

/* apparitions au défilement — la classe n'est posée que par le JS,
   donc sans JS (ou si une erreur survient) tout reste visible */
.willReveal {
  opacity: 0; transform: translateY(42px);
  transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1);
  will-change: opacity, transform;
}
.willReveal.isIn { opacity: 1; transform: none; will-change: auto; }

h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; }
p { margin: 0; }

/* fond : particules douces (pollen / lucioles) + auras */
.starfield { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.nebula { position: fixed; inset: -10% -10% 0; z-index: 1; pointer-events: none; overflow: hidden; }
.neb { position: absolute; border-radius: 50%; filter: blur(100px); opacity: .55; animation: drift 28s ease-in-out infinite; }
.neb-green { width: 48vw; height: 48vw; top: 4%; left: -10%; background: radial-gradient(circle, rgba(69,207,149,.5), transparent 66%); }
.neb-pink { width: 54vw; height: 54vw; top: 42%; right: -14%; background: radial-gradient(circle, rgba(255,158,201,.45), transparent 66%); animation-delay: -9s; }
.neb-violet { width: 40vw; height: 40vw; bottom: -6%; left: 26%; background: radial-gradient(circle, rgba(230,197,131,.28), transparent 66%); animation-delay: -16s; }
@keyframes drift { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(4%,-5%) scale(1.12); } }

/* étiquettes sans-serif espacées */
.hero-eyebrow, .head-kick, .spread-dek, .scrollCue span, .finale-kick,
.notesProgress, .noteHint, .doorHint, .reason-num, .colophon, .lbCount,
.moonHint, .musicSub, .phFile {
  font-family: var(--display);
}

/* ══════════════════════════════════════════════════════════
   ÉCRAN D'ENTRÉE — prairie au crépuscule + la vache
   ══════════════════════════════════════════════════════════ */
.gate {
  position: fixed; inset: 0; z-index: 90; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background:
    radial-gradient(90% 55% at 50% 82%, rgba(255,196,150,.12), transparent 60%),
    linear-gradient(#0e3524 0%, #082018 58%, #05160f 100%);
  transition: opacity 1.2s ease, visibility 1.2s;
}
.gateOut { opacity: 0; visibility: hidden; }
.gateSun {
  position: absolute; left: 50%; bottom: 20%; width: 60vmin; height: 60vmin;
  transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(255,214,160,.5), rgba(255,158,201,.22) 42%, transparent 66%);
  filter: blur(28px); animation: pulseAura 6s ease-in-out infinite;
}
@keyframes pulseAura { 0%,100% { transform: translateX(-50%) scale(1); opacity: .85; } 50% { transform: translateX(-50%) scale(1.1); opacity: 1; } }

.gateStage { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.cowBtn {
  position: relative; width: min(230px, 62vw); border: none; background: none; padding: 0;
  transition: transform .5s cubic-bezier(.34,1.4,.5,1), opacity 1s ease;
}
.cowBtn:hover { transform: translateY(-6px) scale(1.04) rotate(-1deg); }
.gateOut .cowBtn { transform: scale(1.2); opacity: 0; }
.cow { width: 100%; height: auto; display: block; filter: drop-shadow(0 14px 26px rgba(0,0,0,.35)); position: relative; z-index: 1; }
.cowGlow {
  position: absolute; inset: -22% -10% -10%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,158,201,.34), rgba(69,207,149,.14) 48%, transparent 68%);
  filter: blur(20px); animation: pulseAura 5s ease-in-out infinite;
}
.gateName {
  font-family: var(--serif); font-style: italic; font-size: clamp(40px, 8vw, 72px); letter-spacing: .02em;
  background: linear-gradient(90deg, var(--green), #fff 50%, var(--pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.gateHint { font-size: 12px; letter-spacing: .34em; text-transform: uppercase; color: var(--muted); animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 0%,100% { opacity: .4; } 50% { opacity: 1; } }

/* collines de la prairie */
.hills { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 42vh; z-index: 2; transition: transform 1.2s ease; }
.gateOut .hills { transform: translateY(40%); }
.hill-back { fill: #0c3122; }
.hill-front { fill: #071c14; }

/* lucioles */
.firefly {
  position: absolute; z-index: 2; width: 6px; height: 6px; border-radius: 50%;
  background: #ffe6a0; box-shadow: 0 0 10px #ffe6a0, 0 0 18px rgba(255,200,120,.6);
  animation: floatFly 9s ease-in-out infinite, blink 3s ease-in-out infinite;
}
@keyframes floatFly { 0%,100% { transform: translate(0,0); } 50% { transform: translate(14px,-22px); } }
.firefly-0 { left: 18%; top: 30%; animation-delay: 0s, .2s; }
.firefly-1 { left: 74%; top: 26%; animation-delay: -2s, .8s; }
.firefly-2 { left: 30%; top: 60%; animation-delay: -4s, 1.4s; }
.firefly-3 { left: 82%; top: 58%; animation-delay: -1s, .5s; }
.firefly-4 { left: 60%; top: 40%; animation-delay: -6s, 1s; width: 4px; height: 4px; }
.firefly-5 { left: 44%; top: 22%; animation-delay: -3s, 2s; width: 4px; height: 4px; }
.firefly-6 { left: 12%; top: 52%; animation-delay: -5s, .3s; }
.firefly-7 { left: 88%; top: 42%; animation-delay: -7s, 1.7s; width: 5px; height: 5px; }
.firefly-8 { left: 52%; top: 66%; animation-delay: -2.5s, .9s; width: 4px; height: 4px; }

/* ══════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════ */
.hero {
  min-height: 100svh; padding: 12vh 6vw 10vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; position: relative;
}
.hero-eyebrow { font-size: 12px; letter-spacing: .42em; text-transform: uppercase; color: var(--green); margin-bottom: 4vh; }
.hero-title { display: flex; flex-direction: column; align-items: center; line-height: .9; }
.hero-luna {
  font-size: clamp(88px, 22vw, 300px); font-weight: 700; letter-spacing: -.02em;
  background: linear-gradient(120deg, var(--green) 0%, #fff 48%, var(--pink) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 42px rgba(255,158,201,.3));
}
.hero-melet {
  margin-top: -.06em; font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(40px, 9vw, 120px); color: var(--ink); text-shadow: 0 0 30px var(--glow-pink);
}
.hero-dek { max-width: 46ch; margin: 5vh auto 0; font-size: clamp(15px, 1.5vw, 19px); color: var(--muted); }
.scrollCue {
  position: absolute; bottom: 4vh; left: 50%; transform: translateX(-50%);
  display: inline-flex; flex-direction: column; align-items: center; gap: 12px;
  text-decoration: none; color: var(--muted); font-size: 11px; letter-spacing: .34em; text-transform: uppercase;
}
.scrollCue i { width: 1px; height: 46px; background: linear-gradient(var(--green), transparent); position: relative; overflow: hidden; }
.scrollCue i::after { content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); animation: cueRun 1.8s ease-in-out infinite; }
@keyframes cueRun { 0% { transform: translateY(0); } 100% { transform: translateY(300%); } }

/* ══════════════════════════════════════════════════════════
   SECTIONS + EN-TÊTES
   ══════════════════════════════════════════════════════════ */
.manifesto, .spread { padding: 15vh 6vw; position: relative; }
.head { max-width: 1180px; margin: 0 auto 7vh; }
.head-kick { display: inline-flex; align-items: center; gap: 14px; font-size: 12px; letter-spacing: .34em; text-transform: uppercase; color: var(--green); margin-bottom: 26px; }
.head-num { color: var(--pink); }
.head-dot { width: 34px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }
.head-title { max-width: 18ch; font-size: clamp(34px, 5.4vw, 76px); font-weight: 600; line-height: 1.02; letter-spacing: -.02em; }
.spread-dek { max-width: 52ch; margin: -4vh auto 6vh 0; font-size: 15px; color: var(--muted); }

/* MANIFESTO — panneau verre */
.panel {
  max-width: 760px; margin: 0 auto; padding: clamp(34px, 5vw, 60px);
  border-radius: 22px; background: var(--glass); border: 1px solid var(--glass-line);
  backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px rgba(4, 18, 12, .5), inset 0 1px 0 rgba(255,255,255,.06);
  font-size: clamp(16px, 1.6vw, 20px); color: #dce8e0;
}
.panel p { margin-bottom: 1.1em; }
.panel-big { font-family: var(--serif); font-style: italic; font-size: clamp(26px, 3.4vw, 44px); line-height: 1.2; color: #fff; }
.panel-big em { font-style: italic; background: linear-gradient(90deg, var(--green), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.panel-sign { margin: 0 !important; color: var(--muted); font-style: italic; }

/* ══════════════════════════════════════════════════════════
   GALERIES — cadres verre lumineux
   ══════════════════════════════════════════════════════════ */
.gallery { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.galleryItem { min-width: 0; }
.galleryFrame {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; padding: 0;
  border: 1px solid var(--glass-line); border-radius: 16px; cursor: pointer; overflow: hidden;
  background: var(--bg-2); line-height: 0;
  transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .5s ease, border-color .5s ease;
}
.galleryFrame:hover { transform: translateY(-6px); border-color: rgba(255,158,201,.5); box-shadow: 0 24px 60px rgba(4,18,12,.6), 0 0 40px var(--glow-pink); }
.photoImg { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; display: block; filter: saturate(1.04) contrast(1.02) brightness(.99); transition: transform 1.1s cubic-bezier(.2,.8,.2,1), filter .5s ease; }
.galleryFrame:hover .photoImg { transform: scale(1.06); filter: saturate(1.1) brightness(1.04); }
.galleryCaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 13px;
  font-family: var(--body); font-size: 13px; color: #f2efe4; text-align: center;
  background: linear-gradient(transparent, rgba(6,22,15,.88));
  opacity: 0; transform: translateY(8px); transition: opacity .4s ease, transform .4s ease;
}
.galleryFrame:hover .galleryCaption { opacity: 1; transform: none; }
.galleryZoom {
  position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 50%; background: rgba(255,255,255,.08); border: 1px solid var(--glass-line); color: var(--pink);
  font-size: 14px; opacity: 0; transition: opacity .35s ease; backdrop-filter: blur(6px);
}
.galleryFrame:hover .galleryZoom { opacity: 1; }

.photoPlaceholder {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; text-align: center; padding: 18px; color: var(--muted);
  background: radial-gradient(120% 120% at 50% 30%, rgba(255,158,201,.12), transparent 60%), var(--bg-2);
}
.phMark { font-family: var(--serif); font-size: clamp(30px, 5vw, 50px); color: var(--pink); text-shadow: 0 0 20px var(--glow-pink); }
.phCap { font-family: var(--serif); font-style: italic; font-size: 15px; color: #cfe0d6; }
.phFile { font-size: 10px; letter-spacing: .06em; color: var(--muted); opacity: .5; }

/* LIGHTBOX */
.lightbox { position: fixed; inset: 0; z-index: 110; display: flex; align-items: center; justify-content: center; padding: 3vh 3vw; background: rgba(5, 18, 12, .93); backdrop-filter: blur(10px); animation: fade .3s ease both; }
.lbFigure { margin: 0; max-width: min(1040px, 94vw); max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; min-height: 0; }
/* min-height:0 + object-fit:contain → l'image se réduit d'elle-même pour laisser
   la place à la légende, sans jamais se déformer */
.lbImage, .lbFigure .photoPlaceholder { max-width: 100%; max-height: 84vh; width: auto; height: auto; min-height: 0; object-fit: contain; margin: 0 auto; border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px var(--glass-line), 0 0 60px var(--glow-pink); }
.lbFigure figcaption { flex: 0 0 auto; }
.lbFigure .photoPlaceholder { width: min(500px, 80vw); height: 320px; }
.lbFigure figcaption { text-align: center; font-family: var(--serif); font-style: italic; color: #e9f1ea; font-size: 18px; }
.lbCount { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); font-size: 12px; letter-spacing: .2em; color: var(--muted); }
.lbClose, .lbNav { position: absolute; border: 1px solid var(--glass-line); border-radius: 50%; background: rgba(255,255,255,.05); color: #fff; cursor: pointer; transition: background .3s ease, border-color .3s ease; }
.lbClose { top: 20px; right: 22px; width: 44px; height: 44px; font-size: 22px; }
.lbNav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 26px; }
.lbClose:hover, .lbNav:hover { background: rgba(255,158,201,.14); border-color: var(--pink); }
.lbPrev { left: 3vw; } .lbNext { right: 3vw; }
.lbSwipeHint { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); font-size: 11px; letter-spacing: .12em; color: var(--muted); display: none; }

/* ══════════════════════════════════════════════════════════
   MESSAGES (cartes qui se retournent)
   ══════════════════════════════════════════════════════════ */
.notesWrap { max-width: 1080px; margin: 0 auto; }
.notesProgress { margin-bottom: 34px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.notesCount { color: var(--pink); }
.noteGrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.note { aspect-ratio: 5 / 4; border: none; padding: 0; background: none; cursor: pointer; perspective: 1400px; }
.noteInner { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.2,.8,.25,1); }
.noteOpen .noteInner { transform: rotateY(180deg); }
.noteFace { position: absolute; inset: 0; backface-visibility: hidden; display: flex; flex-direction: column; padding: 24px; border-radius: 16px; border: 1px solid var(--glass-line); overflow: hidden; }
.noteFront { align-items: flex-start; justify-content: flex-end; gap: 12px; background: var(--glass); backdrop-filter: blur(10px); transition: border-color .4s ease, box-shadow .4s ease, transform .4s ease; }
.noteFront::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 100% at 20% 0%, rgba(255,158,201,.14), transparent 55%); opacity: 0; transition: opacity .4s ease; }
.note:not(.noteOpen):hover { transform: translateY(-4px); }
.note:not(.noteOpen):hover .noteFront { border-color: rgba(255,158,201,.5); box-shadow: 0 20px 50px rgba(4,18,12,.5), 0 0 30px var(--glow-pink); }
.note:not(.noteOpen):hover .noteFront::before { opacity: 1; }
.noteKicker { position: absolute; top: 20px; left: 24px; font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--pink); }
.noteLabel { position: relative; font-family: var(--serif); font-style: italic; font-size: clamp(21px, 2.1vw, 28px); color: #fff; line-height: 1.12; }
.noteHint { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.noteHintIcon { color: var(--green); font-size: 13px; }
.noteBack { transform: rotateY(180deg); align-items: center; justify-content: center; text-align: center; background: linear-gradient(150deg, rgba(31,149,100,.22), rgba(238,107,166,.2)), var(--bg-2); box-shadow: inset 0 0 40px rgba(255,158,201,.12); }
.noteMessage { font-family: var(--serif); font-style: italic; font-size: clamp(15px, 1.5vw, 19px); line-height: 1.5; color: #f2efe4; }
.noteNudge:not(.noteOpen) .noteInner { animation: nudgeFlip 3.6s ease-in-out 1.4s 2; }
@keyframes nudgeFlip { 0%, 84%, 100% { transform: rotateY(0); } 10% { transform: rotateY(-24deg); } 20% { transform: rotateY(0); } }

.secretReveal { max-height: 0; overflow: hidden; opacity: 0; transition: max-height 1s ease, opacity 1s ease, margin-top 1s ease; }
.secretOpen { max-height: 520px; opacity: 1; margin-top: 40px; }
.secretCard { position: relative; max-width: 700px; margin: 0 auto; padding: clamp(34px, 5vw, 58px); text-align: center; border-radius: 22px; background: linear-gradient(150deg, rgba(69,207,149,.16), rgba(255,158,201,.16)), var(--bg-2); border: 1px solid var(--glass-line); box-shadow: 0 30px 80px rgba(4,18,12,.6), 0 0 60px var(--glow-pink); }
.secretEyebrow { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--green); margin-bottom: 16px; }
.secretBig { max-width: 30ch; margin: 0 auto; font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.6vw, 34px); line-height: 1.3; color: #fff; }
.secretSign { margin-top: 18px; font-family: var(--serif); font-style: italic; color: var(--muted); }

/* ══════════════════════════════════════════════════════════
   PORTES
   ══════════════════════════════════════════════════════════ */
.doors { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.door { position: relative; aspect-ratio: 3 / 4; border: none; padding: 0; background: none; cursor: pointer; perspective: 1600px; }
.doorBehind { position: absolute; inset: 0; border-radius: 16px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--glass-line); }
.doorBehind .photoImg, .doorBehind .photoPlaceholder { width: 100%; height: 100%; }
.doorCaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 13px; font-family: var(--body); font-size: 13px; color: #f2efe4; text-align: center; background: linear-gradient(transparent, rgba(6,22,15,.88)); opacity: 0; transition: opacity .5s ease .35s; }
.doorOpen .doorCaption { opacity: 1; }
.doorPanel {
  position: absolute; inset: 0; border-radius: 16px;
  background: linear-gradient(160deg, #17402f, #0b2419);
  border: 1px solid var(--glass-line); transform-origin: left center; transform: rotateY(0deg);
  transition: transform 1s cubic-bezier(.2,.8,.2,1), box-shadow 1s ease;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; backface-visibility: hidden;
  box-shadow: inset 0 0 60px rgba(69,207,149,.12); overflow: hidden;
}
.doorGrain { position: absolute; inset: 12px; border-radius: 10px; border: 1px solid rgba(230,197,131,.24); pointer-events: none; }
.doorGrain::after { content: none; }
.doorPlate { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.2vw, 28px); color: #f0ead9; text-shadow: 0 0 16px var(--glow-green); z-index: 1; }
.doorHint { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); z-index: 1; }
.doorKnob { position: absolute; right: 16px; top: 50%; width: 10px; height: 10px; transform: translateY(-50%); border-radius: 50%; background: var(--pink); box-shadow: 0 0 12px var(--pink); }
.doorOpen .doorPanel { transform: rotateY(-118deg); box-shadow: 0 30px 60px rgba(0,0,0,.5); }

/* ══════════════════════════════════════════════════════════
   TROIS CHOSES
   ══════════════════════════════════════════════════════════ */
.reasonGrid { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.reason { padding: 34px 28px 36px; border-radius: 18px; background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(10px); transition: transform .4s ease, border-color .4s ease, box-shadow .4s ease; }
.reason:hover { transform: translateY(-6px); border-color: rgba(69,207,149,.45); box-shadow: 0 24px 50px rgba(4,18,12,.5), 0 0 30px var(--glow-green); }
.reason-num { display: block; margin-bottom: 18px; font-family: var(--serif); font-style: italic; font-size: clamp(40px, 4vw, 60px); background: linear-gradient(120deg, var(--green), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.reason h3 { margin-bottom: 12px; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(24px, 2.4vw, 32px); color: #fff; }
.reason p { font-size: 15px; color: var(--muted); line-height: 1.65; }

/* ══════════════════════════════════════════════════════════
   FINALE
   ══════════════════════════════════════════════════════════ */
.finale { position: relative; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 16vh 6vw 6vh; overflow: hidden; }
.finale-photo {
  position: absolute; inset: -12% 0 auto; margin: 0; width: min(340px, 70vw); height: 460px; left: 50%; translate: -50% 0;
  border-radius: 20px; overflow: hidden; opacity: .3; filter: saturate(1.1) brightness(.82);
  -webkit-mask-image: radial-gradient(120% 80% at 50% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(120% 80% at 50% 40%, #000 30%, transparent 75%);
}
.finale-photo .photoImg, .finale-photo .photoPlaceholder { width: 100%; height: 100%; }
.finale-inner { position: relative; z-index: 1; }
.finale-kick { font-size: 12px; letter-spacing: .34em; text-transform: uppercase; color: var(--green); margin-bottom: 26px; }
.finale-title { max-width: 20ch; margin: 0 auto; font-size: clamp(34px, 6vw, 92px); font-weight: 600; line-height: 1.04; letter-spacing: -.02em; }
.finale-title em { font-family: var(--serif); font-style: italic; font-weight: 400; background: linear-gradient(90deg, var(--green), #fff 50%, var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.colophon { position: relative; z-index: 1; margin-top: auto; padding-top: 8vh; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; font-family: var(--display); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: rgba(166,194,179,.6); }

.colophon .credit {
  flex-basis: 100%; margin-top: 10px; font-size: 10px; letter-spacing: .14em;
  color: rgba(166,194,179,.5);
}
.colophon .credit strong { font-weight: 600; color: rgba(255,158,201,.85); }
/* les noms propres ne doivent pas se couper en fin de ligne */
.colophon .credit strong, .colophon .credit .nb { white-space: nowrap; }

/* EASTER EGG */
.endNote { margin-top: 6vh; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.endHeart { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,158,201,.5); background: rgba(255,158,201,.06); color: var(--pink); font-size: 22px; cursor: pointer; box-shadow: 0 0 24px var(--glow-pink); transition: transform .3s ease, background .3s ease; animation: blink 2.8s ease-in-out infinite; }
.endHeart:hover { transform: scale(1.1); background: rgba(255,158,201,.16); }
.endHeartOpen { animation: none; background: var(--pink); color: #3a0f26; border-color: var(--pink); box-shadow: 0 0 40px var(--glow-pink); }
.endMsg { max-height: 0; overflow: hidden; opacity: 0; font-family: var(--serif); font-style: italic; font-size: clamp(20px, 3vw, 30px); color: #fff; transition: opacity .7s ease, max-height .7s ease; }
.endMsgShow { max-height: 80px; opacity: 1; }

/* PROGRESSION */
.scrollProgress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 100; pointer-events: none; }
.scrollProgress span { display: block; height: 100%; transform-origin: left center; transform: scaleX(0); background: linear-gradient(90deg, var(--green), var(--pink)); box-shadow: 0 0 10px var(--glow-green); transition: transform .1s linear; }

/* MUSIQUE */
/* pointer-events: none sur le conteneur — sinon le panneau (invisible mais
   présent dans le flux) capte les touchers sur presque tout l'écran mobile */
.musicPlayer { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 95; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; pointer-events: none; }
.musicToggle { width: 48px; height: 48px; border: 1px solid var(--glass-line); border-radius: 50%; cursor: pointer; color: #3a0f26; font-size: 18px; background: var(--pink); box-shadow: 0 0 22px var(--glow-pink); transition: transform .3s ease; pointer-events: auto; }
.musicToggle:hover { transform: scale(1.08); }
.musicIdle { animation: musicRing 2.8s ease-in-out infinite; }
@keyframes musicRing { 0%,100% { box-shadow: 0 0 22px var(--glow-pink), 0 0 0 0 rgba(255,158,201,.4); } 50% { box-shadow: 0 0 22px var(--glow-pink), 0 0 0 12px rgba(255,158,201,0); } }
.musicPanel { width: min(320px, 88vw); max-height: calc(100svh - 120px); overflow-y: auto; padding: 16px 16px 12px; border-radius: 16px; background: rgba(13,43,32,.92); border: 1px solid var(--glass-line); box-shadow: 0 24px 60px rgba(0,0,0,.5); backdrop-filter: blur(16px); transform-origin: bottom right; opacity: 0; transform: translateY(10px) scale(.96); pointer-events: none; transition: opacity .35s ease, transform .35s ease; }
.musicOpen .musicPanel { opacity: 1; transform: none; pointer-events: auto; }
.musicTitle { margin: 0; text-align: center; font-family: var(--serif); font-style: italic; font-size: 22px; color: #fff; }
.musicSub { margin: 2px 0 12px; text-align: center; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.musicEmbed { display: block; width: 100%; border: 0; border-radius: 12px; margin-bottom: 8px; }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .noteGrid { grid-template-columns: repeat(2, 1fr); }
  .doors { grid-template-columns: 1fr; max-width: 380px; }
  .reasonGrid { grid-template-columns: 1fr; max-width: 460px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding: 12vh 22px 12vh; }
  .hero-eyebrow { letter-spacing: .28em; }
  .manifesto, .spread { padding: 11vh 20px; }
  .head { margin-bottom: 5vh; }
  .head-kick { letter-spacing: .2em; }
  .spread-dek { margin: -2vh 0 5vh; }
  .panel { border-radius: 18px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .noteGrid { grid-template-columns: 1fr; }
  .note { aspect-ratio: 16 / 9; }
  .doors { max-width: 100%; }
  .hero-dek { font-size: 15px; }
  .cowBtn { width: min(200px, 56vw); }
  .gateHint { letter-spacing: .18em; font-size: 11px; }
  .gateName { font-size: clamp(38px, 12vw, 56px); }
  .finale-photo { width: 78vw; height: 60vh; }

  /* lightbox plein écran : barre du haut (compteur + croix), photo au centre,
     flèches en bas — tout hors de l'encoche et de la barre d'accueil iOS */
  .lightbox {
    padding: calc(env(safe-area-inset-top, 0px) + 58px) 10px calc(env(safe-area-inset-bottom, 0px) + 84px);
  }
  .lbFigure { max-width: 100%; max-height: 100%; gap: 10px; }
  .lbImage, .lbFigure .photoPlaceholder { max-height: 100%; border-radius: 10px; }
  .lbFigure figcaption { padding: 0 6px; font-size: 15px; line-height: 1.45; }
  .lbClose { top: calc(env(safe-area-inset-top, 0px) + 10px); right: 12px; width: 44px; height: 44px; font-size: 24px; }
  .lbCount { top: calc(env(safe-area-inset-top, 0px) + 22px); left: 18px; transform: none; }
  .lbNav { top: auto; transform: none; bottom: calc(env(safe-area-inset-bottom, 0px) + 18px); width: 48px; height: 48px; }
  .lbPrev { left: 22px; } .lbNext { right: 22px; }
  .lbSwipeHint { bottom: calc(env(safe-area-inset-bottom, 0px) + 34px); font-size: 10px; }
  .musicToggle { width: 46px; height: 46px; }
}
@media (hover: none) {
  html.has-cursor, html.has-cursor * { cursor: auto !important; }
  .cursor { display: none; }
  .galleryCaption, .galleryZoom { opacity: 1; transform: none; }
  .lbSwipeHint { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .neb { animation: none; }
}
