/* ==========================================================================
   Saloon du Diner — feuille de style
   ========================================================================== */
@font-face { font-family: "Rye"; src: url(fonts/rye.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Smokum"; src: url(fonts/smokum.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Special Elite"; src: url(fonts/special-elite.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url(fonts/courier-prime-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url(fonts/courier-prime-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: #2a160c;
  --ink-soft: #4a2c17;
  --paper: #ecd9ab;
  --paper-dark: #c49a5c;
  --rust: #8b1e14;
  --gold: #d9a441;
  --gold-light: #f3cf72;
  --cream: #f6e3b4;
  --wood: #7a4a24;
  --wood-dark: #4a2a12;
  --leather: #5a3220;
  --board: #1d2a24;
  --chalk: #f1ead8;

  --f-title: "Rye", "Georgia", serif;
  --f-poster: "Smokum", "Rye", serif;
  --f-type: "Special Elite", "Courier New", monospace;
  --f-body: "Courier Prime", "Courier New", monospace;

  /* pilotes par app.js selon le scroll (0 -> 1) */
  --p: 0; --day: 1; --dusk: 0; --night: 0;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0;
  background: #1a0d06;
  color: var(--cream);
  font: 400 17px/1.6 var(--f-body);
  overflow-x: hidden; overflow-x: clip;
}
body.locked { overflow: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 400 1.05rem/1 var(--f-title); letter-spacing: .03em;
  padding: .95em 1.4em; border-radius: 8px; cursor: pointer; text-decoration: none;
  border: 2px solid var(--ink); transition: transform .12s, box-shadow .12s, filter .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(3px); }
.btn--gold {
  color: var(--ink);
  background: linear-gradient(180deg, #fbe39a, var(--gold) 55%, #b97d24);
  box-shadow: 0 4px 0 var(--ink), 0 10px 24px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.6);
}
.btn--gold:active { box-shadow: 0 1px 0 var(--ink), 0 4px 10px rgba(0,0,0,.35); }
.btn--gold:hover { filter: brightness(1.06); }
.btn--wood {
  color: var(--cream);
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,.06) 0 3px, transparent 3px 11px),
    linear-gradient(180deg, #9a6233, var(--wood) 60%, #5d3618);
  box-shadow: 0 4px 0 var(--ink), 0 10px 24px rgba(0,0,0,.35);
}
.btn--ghost { color: var(--cream); background: transparent; border-color: rgba(246,227,180,.55); font-size: .9rem; }

/* ==========================================================================
   Portes du saloon
   ========================================================================== */
.doors {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(12px, 2.6vh, 28px);
  padding: 16px; overflow: hidden;
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,.25) 0 2px, transparent 2px 64px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 1px, transparent 1px 9px),
    linear-gradient(180deg, #3b2110, #24130a 70%, #160b05);
  transition: opacity .7s ease .9s, visibility 0s linear 1.6s;
}
.doors.open { opacity: 0; visibility: hidden; pointer-events: none; }
.doors.gone { display: none; }
.doors__glow {
  position: absolute; left: 50%; top: 55%; width: min(110vw, 900px); aspect-ratio: 1.4;
  translate: -50% -50%;
  background: radial-gradient(closest-side, rgba(255,205,120,.85), rgba(214,120,40,.45) 45%, transparent 75%);
  filter: blur(8px); pointer-events: none;
  animation: flicker 3.2s infinite ease-in-out;
}
@keyframes flicker { 0%,100% { opacity: .9 } 40% { opacity: .75 } 55% { opacity: 1 } 70% { opacity: .82 } }
.doors__sign {
  position: relative; z-index: 2; text-align: center;
  padding: .35em 1.1em .45em; border-radius: 6px;
  font: 400 clamp(38px, 10vw, 84px)/1 var(--f-title); color: var(--gold-light); letter-spacing: .08em; max-width: 100%;
  text-shadow: 0 0 18px rgba(243,207,114,.55), 3px 3px 0 var(--ink);
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,.12) 0 2px, transparent 2px 7px),
    linear-gradient(180deg, #8a5429, #5d3618);
  border: 4px solid var(--ink);
  box-shadow: 0 14px 30px rgba(0,0,0,.55), inset 0 0 0 3px rgba(243,207,114,.25);
  transform-origin: 50% -40px; animation: sway 4s ease-in-out infinite;
}
.doors__sign small { display: block; margin-top: .35em; font: 400 clamp(12px, 3.2vw, 17px)/1 var(--f-type); letter-spacing: .25em; text-transform: uppercase; color: var(--cream); text-shadow: none; }
.doors__sign::before, .doors__sign::after {
  content: ""; position: absolute; top: -40px; width: 3px; height: 40px;
  background: repeating-linear-gradient(180deg, #bbb 0 5px, #666 5px 8px);
}
.doors__sign::before { left: 18%; } .doors__sign::after { right: 18%; }
@keyframes sway { 0%,100% { rotate: -1.2deg } 50% { rotate: 1.2deg } }

.doors__frame {
  position: relative; z-index: 2;
  width: min(94vw, 640px); height: min(46vh, 460px); flex: none;
  display: flex; perspective: 1100px;
  border-bottom: 6px solid #120904;
}
.leaf { flex: 1; height: 100%; transform-style: preserve-3d; filter: drop-shadow(0 18px 18px rgba(0,0,0,.55)); }
.leaf .door { width: 100%; height: 100%; }
.leaf--left { transform-origin: left center; animation: breeze 5s ease-in-out infinite; }
.leaf--right { transform-origin: right center; animation: breeze-r 5s ease-in-out infinite; }
.leaf--right .door { transform: scaleX(-1); }
@keyframes breeze { 0%,100% { transform: rotateY(0) } 50% { transform: rotateY(-6deg) } }
@keyframes breeze-r { 0%,100% { transform: rotateY(0) } 50% { transform: rotateY(6deg) } }
.doors.open .leaf--left { animation: swing-l 1.7s cubic-bezier(.2,.7,.3,1) forwards; }
.doors.open .leaf--right { animation: swing-r 1.7s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes swing-l { 0% { transform: rotateY(0) } 30% { transform: rotateY(-112deg) } 52% { transform: rotateY(-62deg) } 70% { transform: rotateY(-96deg) } 85% { transform: rotateY(-78deg) } 100% { transform: rotateY(-88deg) } }
@keyframes swing-r { 0% { transform: rotateY(0) } 30% { transform: rotateY(112deg) } 52% { transform: rotateY(62deg) } 70% { transform: rotateY(96deg) } 85% { transform: rotateY(78deg) } 100% { transform: rotateY(88deg) } }
.doors__actions { position: relative; z-index: 2; max-width: 100%; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.doors.open .doors__actions, .doors.open .doors__sign { opacity: 0; transition: opacity .3s; }

/* ==========================================================================
   Decor : ciel, soleil, desert, virevoltant
   ========================================================================== */
.sky { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.sky__layer { position: absolute; inset: 0; }
.sky__day   { opacity: var(--day);   background: linear-gradient(180deg, #5fb0d8 0%, #9fd0de 45%, #f4d79a 85%); }
.sky__dusk  { opacity: var(--dusk);  background: linear-gradient(180deg, #2b1d4a 0%, #7b2f4e 35%, #d9553a 65%, #f7a541 88%); }
.sky__night { opacity: var(--night); background: linear-gradient(180deg, #05060f 0%, #11163a 50%, #3a2550 90%); }
.sky__stars {
  position: absolute; inset: 0 0 30% 0; opacity: var(--night);
  background-image:
    radial-gradient(1.6px 1.6px at 22px 38px, #fff 60%, transparent),
    radial-gradient(1.2px 1.2px at 140px 90px, #ffeec8 60%, transparent),
    radial-gradient(1px 1px at 80px 160px, #fff 60%, transparent),
    radial-gradient(1.8px 1.8px at 190px 20px, #fff 60%, transparent),
    radial-gradient(1px 1px at 250px 130px, #cfe0ff 60%, transparent),
    radial-gradient(1.4px 1.4px at 300px 60px, #fff 60%, transparent);
  background-size: 320px 200px;
  animation: twinkle 4s ease-in-out infinite alternate;
}
@keyframes twinkle { to { filter: brightness(.6); } }
.sky__sun {
  position: absolute; left: 68%; top: calc(10vh + var(--p) * 62vh);
  width: clamp(90px, 20vmin, 180px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, #fff6c8 0%, #ffd36b 45%, #f28a2e 100%);
  box-shadow: 0 0 60px 20px rgba(255,190,90,.45), 0 0 140px 60px rgba(255,140,60,.25);
  opacity: calc(1 - var(--night));
}
.sky__moon {
  position: absolute; left: 18%; top: 12vh; width: clamp(50px, 10vmin, 90px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fffbe8, #d9d3c0 70%);
  box-shadow: 0 0 40px 10px rgba(230,230,255,.25), inset -14px -6px 0 rgba(0,0,0,.12);
  opacity: var(--night); transform: translateY(calc((1 - var(--night)) * 20vh));
}
.land { position: absolute; left: 0; bottom: 0; width: 100%; height: 44vh; }
.land--far  { fill: #a8625c; filter: brightness(calc(1 - var(--p) * .55)); transform: translateY(calc(var(--p) * 3vh)); }
.land--mid  { fill: #7c3f22; filter: brightness(calc(1 - var(--p) * .6));  transform: translateY(calc(var(--p) * 1.5vh)); }
.land--near { fill: #3a2012; filter: brightness(calc(1 - var(--p) * .5)); }
/* voile sombre en bas pour la lisibilite du contenu */
.sky::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(20,8,3,.35)); }

.tumbleweed { position: fixed; left: 0; bottom: 4vh; z-index: 1; width: clamp(54px, 9vw, 90px); pointer-events: none; opacity: 0; }
.tumbleweed.roll { animation: tw-move 8s linear forwards; }
.tumbleweed.roll svg { animation: tw-spin .9s linear infinite; }
@keyframes tw-move {
  0%   { opacity: 1; transform: translate(-120px, 0); }
  12%  { transform: translate(10vw, -40px); }
  24%  { transform: translate(22vw, 0); }
  36%  { transform: translate(36vw, -28px); }
  48%  { transform: translate(50vw, 0); }
  62%  { transform: translate(66vw, -36px); }
  76%  { transform: translate(82vw, 0); }
  88%  { transform: translate(94vw, -16px); }
  99%  { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(100vw + 120px), 0); }
}
@keyframes tw-spin { to { rotate: 360deg; } }

/* ---------- Bouton son ---------- */
.sound-toggle {
  position: fixed; top: max(12px, env(safe-area-inset-top)); right: 12px; z-index: 50;
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  background: rgba(42,22,12,.8); border: 2px solid var(--gold); color: var(--cream); font-size: 20px;
  box-shadow: 0 6px 16px rgba(0,0,0,.4); backdrop-filter: blur(4px);
}

/* ---------- Juke-box (musique YouTube) ---------- */
.jukebox__btn {
  position: fixed; top: calc(max(12px, env(safe-area-inset-top)) + 54px); right: 12px; z-index: 50;
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer; font-size: 20px; color: var(--cream);
  background: rgba(42,22,12,.8); border: 2px solid var(--gold); box-shadow: 0 6px 16px rgba(0,0,0,.4); backdrop-filter: blur(4px);
}
.jukebox.playing .jukebox__btn span[aria-hidden] { display: inline-block; animation: note 1.2s ease-in-out infinite; }
@keyframes note { 50% { transform: translateY(-3px) rotate(-12deg); } }
/* Replie hors champ mais toujours rendu : un iframe en display:none ne joue pas partout */
.jukebox__panel {
  position: fixed; top: calc(max(12px, env(safe-area-inset-top)) + 108px); right: 12px; z-index: 50;
  width: min(280px, calc(100vw - 24px)); padding: 12px 12px 10px; border-radius: 12px;
  background: linear-gradient(180deg, #6e3e25, var(--leather)); border: 2px solid var(--gold);
  outline: 2px dashed rgba(243,207,114,.4); outline-offset: -7px; box-shadow: 0 18px 40px rgba(0,0,0,.55);
  transform: translateX(calc(100% + 40px)); opacity: 0; pointer-events: none;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .25s;
}
.jukebox.open .jukebox__panel { transform: none; opacity: 1; pointer-events: auto; }
.jukebox__title { margin: 2px 0 8px; text-align: center; font: 400 1.05rem/1 var(--f-title); color: var(--gold-light); }
.jukebox__hint { margin: 0 0 8px; text-align: center; font: 400 .85rem/1.3 var(--f-type); color: var(--cream); }
.jukebox__screen { position: relative; aspect-ratio: 16 / 9; border: 3px solid var(--ink); border-radius: 4px; overflow: hidden; background: #000; }
.jukebox__screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.jukebox__credit { margin: 8px 0 0; text-align: center; font: 400 .72rem/1.3 var(--f-type); color: var(--cream); opacity: .8; }

/* ==========================================================================
   Contenu
   ========================================================================== */
main { position: relative; z-index: 2; padding: 0 16px; }
.section { max-width: 780px; margin: 0 auto 16vh; text-align: center; }
.panel {
  padding: clamp(26px, 5vw, 48px) clamp(18px, 4vw, 44px);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(42,22,12,.86), rgba(30,15,8,.9));
  border: 1px solid rgba(217,164,65,.35);
  outline: 2px dashed rgba(217,164,65,.35); outline-offset: -10px;
  box-shadow: 0 30px 60px rgba(0,0,0,.45);
  backdrop-filter: blur(3px);
}
.telegram {
  display: flex; align-items: center; gap: 12px; justify-content: center;
  margin: 0 0 10px; font: 400 .82rem/1.3 var(--f-type); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-light);
}
.telegram::before, .telegram::after { content: ""; flex: 0 1 60px; height: 1px; background: currentColor; opacity: .6; }
.title {
  margin: 0 0 .6em; font: 400 clamp(30px, 7vw, 54px)/1.1 var(--f-title); color: var(--cream);
  text-shadow: 3px 3px 0 var(--leather), 0 0 24px rgba(0,0,0,.4);
}
.title--dark { color: var(--ink); text-shadow: 2px 2px 0 rgba(139,30,20,.25); }
.lead { margin: 1.2em auto 0; max-width: 36em; }

html.js .reveal { opacity: 0; transform: translateY(46px) rotate(-.6deg); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
html.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Affiche WANTED ---------- */
.hero { min-height: 100svh; display: grid; place-items: center; align-content: center; gap: 28px; padding: 76px 0 40px; }
/* clip-path coupe les ombres : l'ombre portee est sur le conteneur */
.poster-wrap { width: min(100%, 500px); filter: drop-shadow(0 30px 40px rgba(0,0,0,.55)); }
.poster {
  position: relative; width: 100%; padding: 34px clamp(20px, 6vw, 44px) 30px;
  text-align: center; color: #3a2414; cursor: crosshair; user-select: none; -webkit-user-select: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .2 0 0 0 0 .08 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at 30% 20%, rgba(255,250,230,.55), transparent 50%),
    radial-gradient(ellipse at 75% 85%, rgba(120,70,25,.35), transparent 55%),
    linear-gradient(180deg, #f0deb2, #e3c486 70%, #d3ad6c);
  box-shadow: inset 0 0 70px rgba(110,60,20,.55), inset 0 0 8px rgba(80,40,10,.6);
  clip-path: polygon(0% 2%, 6% 0%, 14% 1.5%, 22% .2%, 31% 1.2%, 40% 0%, 52% 1.4%, 61% .3%, 70% 1.6%, 79% 0%, 88% 1.1%, 95% 0%, 100% 1.8%,
    99% 12%, 100% 24%, 98.8% 37%, 100% 49%, 99.2% 62%, 100% 75%, 98.9% 88%, 100% 98%,
    93% 100%, 84% 98.6%, 74% 100%, 63% 98.9%, 52% 100%, 41% 98.7%, 30% 100%, 19% 98.8%, 9% 100%, 0% 98.4%,
    1% 86%, 0% 73%, 1.2% 60%, 0% 47%, .9% 34%, 0% 21%, 1.1% 10%);
  rotate: -1.4deg;
  animation: poster-in 1s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes poster-in { from { transform: translateY(-30px) scale(.96); opacity: 0; } }
.poster.recoil { animation: recoil .32s ease-out; }
@keyframes recoil { 0% { transform: none } 25% { transform: translate(4px,-3px) rotate(.8deg) } 55% { transform: translate(-3px,2px) rotate(-.5deg) } 100% { transform: none } }
.poster__nail { position: absolute; top: 14px; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ddd, #555 70%); box-shadow: 1px 2px 2px rgba(0,0,0,.5); }
.poster__nail--tl { left: 16px; } .poster__nail--tr { right: 16px; }
.poster__wanted { margin: 0; font: 400 clamp(46px, 15vw, 84px)/.9 var(--f-title); letter-spacing: .02em; color: #3a2414; text-shadow: 1px 1px 0 rgba(255,255,255,.35); }
.poster__mention { margin: .3em 0 .9em; font: 400 clamp(22px, 6vw, 32px)/1 var(--f-poster); letter-spacing: .06em; color: var(--rust); }
.poster__portrait { margin: 0 auto; width: min(78%, 280px); padding: 8px; border: 3px solid #3a2414; outline: 1px solid #3a2414; outline-offset: 4px; background: rgba(120,70,25,.18); }
.poster__portrait svg { width: 100%; filter: sepia(.4); }
.poster__target { margin: .7em 0 .1em; font: 400 clamp(34px, 9.5vw, 52px)/1 var(--f-title); text-transform: uppercase; }
.poster__target small { display: block; margin-top: .25em; font: 700 .9rem/1 var(--f-body); letter-spacing: .3em; text-transform: uppercase; color: var(--rust); }
.poster__desc { margin: .9em auto .6em; max-width: 26em; font: 400 1rem/1.45 var(--f-type); }
.poster__when {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .2em .55em;
  margin: .4em 0 .8em; padding: .45em 0; border-top: 3px double #3a2414; border-bottom: 3px double #3a2414;
  font: 400 clamp(17px, 4.6vw, 23px)/1.25 var(--f-title);
}
.poster__when .dot { color: var(--rust); }
.poster__reward small { display: block; font: 700 .8rem/1 var(--f-body); letter-spacing: .4em; text-transform: uppercase; }
.poster__reward strong { display: block; margin-top: .2em; font: 400 clamp(26px, 7vw, 38px)/1.1 var(--f-poster); color: var(--rust); }
.poster__sheriff { margin: 1em 0 0; font: 400 .9rem/1 var(--f-type); letter-spacing: .1em; }
.poster__hint { margin: .9em 0 0; font: 400 .72rem/1 var(--f-body); opacity: .55; letter-spacing: .15em; text-transform: uppercase; }
.bullet {
  position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; pointer-events: none;
  background:
    radial-gradient(circle, #0b0603 0 22%, #2a160c 26% 32%, rgba(70,40,15,.55) 36% 48%, rgba(70,40,15,.18) 52% 64%, transparent 68%),
    conic-gradient(from 20deg, transparent 0 8%, rgba(42,22,12,.5) 9% 10%, transparent 11% 33%, rgba(42,22,12,.5) 34% 35%, transparent 36% 61%, rgba(42,22,12,.45) 62% 63%, transparent 64% 84%, rgba(42,22,12,.5) 85% 86%, transparent 87%);
  -webkit-mask: radial-gradient(circle, #000 55%, transparent 72%); mask: radial-gradient(circle, #000 55%, transparent 72%);
  animation: hole .18s ease-out;
}
@keyframes hole { from { transform: scale(2.2); opacity: 0; } }
.flash { position: fixed; inset: 0; z-index: 90; background: #fff3d0; pointer-events: none; animation: flash .14s ease-out forwards; }
@keyframes flash { from { opacity: .35 } to { opacity: 0 } }
.scroll-cue { display: block; width: 30px; height: 48px; border: 2px solid var(--cream); border-radius: 16px; position: relative; opacity: .8; }
.scroll-cue span { position: absolute; left: 50%; top: 9px; width: 4px; height: 9px; margin-left: -2px; border-radius: 2px; background: var(--cream); animation: cue 1.6s infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1 } 80% { transform: translateY(16px); opacity: 0 } 100% { opacity: 0 } }

/* ---------- Compte a rebours ---------- */
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(8px, 2vw, 16px); margin: 8px 0 0; }
.plank {
  position: relative; padding: 18px 4px 12px; border-radius: 6px;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,.08) 0 2px, transparent 2px 6px),
    radial-gradient(ellipse at 30% 40%, rgba(0,0,0,.18) 0 6%, transparent 7%),
    linear-gradient(180deg, #a06a36, var(--wood) 55%, #5a3418);
  border: 3px solid var(--ink);
  box-shadow: inset 0 2px 0 rgba(255,230,180,.25), 0 10px 18px rgba(0,0,0,.45);
}
.plank:nth-child(odd) { rotate: -1.2deg; } .plank:nth-child(even) { rotate: 1deg; }
.plank::before, .plank::after { content: ""; position: absolute; top: 6px; width: 6px; height: 6px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #bbb, #333); }
.plank::before { left: 7px; } .plank::after { right: 7px; }
.plank b { display: block; font: 400 clamp(34px, 9vw, 60px)/1 var(--f-title); color: var(--cream); text-shadow: 2px 3px 0 var(--ink); font-variant-numeric: tabular-nums; }
.plank span { display: block; margin-top: 6px; font: 400 clamp(10px, 2.6vw, 13px)/1 var(--f-type); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); }
.plank.tick b { animation: tick .35s ease-out; }
@keyframes tick { from { transform: scale(1.15); color: var(--gold-light); } }
.countdown__done { margin: 1em 0 0; font: 400 1.6rem/1.2 var(--f-title); color: var(--gold-light); }
#ics { margin-top: 1.6em; }

/* ---------- Dossier secret ---------- */
.dossier {
  position: relative; margin-top: 28px; padding: clamp(28px, 5vw, 48px) clamp(18px, 5vw, 46px) clamp(70px, 10vw, 90px);
  text-align: left; color: var(--ink); border-radius: 4px 12px 12px 12px;
  background:
    repeating-linear-gradient(180deg, transparent 0 31px, rgba(80,50,20,.12) 31px 32px),
    linear-gradient(170deg, #e2c98f, #d1b170);
  box-shadow: inset 0 0 40px rgba(110,70,20,.35), 0 30px 60px rgba(0,0,0,.45);
  rotate: .6deg;
}
.dossier__tab { position: absolute; top: -26px; left: 0; padding: 6px 18px 4px; border-radius: 8px 8px 0 0; background: #d8bd80; font: 400 .85rem/1.2 var(--f-type); letter-spacing: .1em; }
.dossier__intro, .dossier__outro { font: 400 1.08rem/1.6 var(--f-type); }
.redacted { list-style: none; margin: 1.2em 0; padding: 0; display: grid; gap: 14px; }
.redacted li { position: relative; }
.redacted button {
  display: block; height: 1.25em; max-width: 100%; border: 0; padding: 0; cursor: help;
  background: #120a05; border-radius: 2px; box-shadow: 0 1px 0 rgba(0,0,0,.4);
}
.redacted li:nth-child(odd) button { rotate: -.4deg; } .redacted li:nth-child(even) button { rotate: .5deg; }
.redacted .tease { position: absolute; left: 8px; top: -2px; font: 400 .95rem/1.3 var(--f-type); color: var(--gold-light); pointer-events: none; opacity: 0; transition: opacity .2s; }
.redacted .tease.show { opacity: 1; }
.stamp {
  position: absolute; right: clamp(10px, 4vw, 34px); bottom: clamp(14px, 3vw, 26px);
  padding: .3em .7em .35em; border: 5px double var(--rust); border-radius: 6px;
  font: 400 clamp(22px, 6vw, 34px)/1 var(--f-title); text-transform: uppercase; color: var(--rust);
  text-align: center; rotate: -12deg; opacity: .85; mix-blend-mode: multiply;
}
.stamp small { display: block; margin-top: .25em; font: 700 .7rem/1 var(--f-body); letter-spacing: .25em; }
html.js .reveal .stamp { opacity: 0; transform: scale(2.4); }
html.js .reveal.in .stamp { opacity: .85; transform: none; transition: transform .35s cubic-bezier(.5,0,.75,1) .7s, opacity .2s .7s; }

/* ---------- Dress code ---------- */
.dress { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 8px; }
@media (min-width: 720px) { .dress { grid-template-columns: repeat(4, 1fr); } }
.dress__card {
  padding: 22px 12px 18px; border-radius: 10px;
  background: radial-gradient(ellipse at 30% 20%, rgba(255,255,255,.08), transparent 60%), linear-gradient(180deg, #6e3e25, var(--leather));
  outline: 2px dashed rgba(243,207,114,.45); outline-offset: -7px;
  box-shadow: 0 10px 20px rgba(0,0,0,.4);
  transition: transform .25s;
}
.dress__card:hover { transform: translateY(-4px) rotate(-1deg); }
.dress__card svg { width: 64px; height: 64px; margin: 0 auto 10px; color: var(--gold); fill: currentColor; filter: drop-shadow(0 3px 0 rgba(0,0,0,.35)); }
.dress__card h3 { margin: 0 0 .35em; font: 400 1.15rem/1.15 var(--f-title); color: var(--cream); }
.dress__card p { margin: 0; font-size: .92rem; line-height: 1.45; opacity: .85; }

/* ---------- Carte au tresor ---------- */
.map {
  position: relative; margin-top: 8px; padding: clamp(14px, 3vw, 26px);
  color: var(--ink); border-radius: 6px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .2 0 0 0 0 .08 0 0 0 .2 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at center, #f1e0b6 30%, #d8b97c 80%, #b98d4f);
  box-shadow: inset 0 0 60px rgba(110,60,20,.55), 0 30px 60px rgba(0,0,0,.5);
  rotate: -.5deg;
}
.map__svg { width: 100%; height: auto; }
.map__label { font: 400 16px var(--f-type); fill: #5a3d1e; }
.map__label--sm { font-size: 12px; }
.map__label--red { font: 400 22px var(--f-title); fill: var(--rust); }
.route-reveal { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 3s ease-in-out .3s; }
.in .route-reveal, html:not(.js) .route-reveal { stroke-dashoffset: 0; }
.map__x { transform-box: fill-box; }
.in .map__x path { animation: x-pulse 1.4s ease-in-out 3.2s infinite; transform-box: fill-box; transform-origin: center; }
@keyframes x-pulse { 50% { transform: scale(1.25); } }
.map__address { margin-top: 8px; padding-top: 14px; border-top: 2px dashed rgba(58,36,20,.45); text-align: center; }
.map__city { margin: 0; font: 400 clamp(28px, 7vw, 40px)/1 var(--f-title); }
.map__street { margin: .5em 0 0; font: 400 1.1rem/1.4 var(--f-type); }
.map__street.pending { color: var(--rust); }
.map__access { margin: .4em 0 0; font-size: .95rem; }
#route-link { margin-top: 1em; }

/* ---------- Pied ---------- */
.footer { position: relative; max-width: 780px; margin: 0 auto; padding: 4vh 0 22vh; text-align: center; font: 400 1.1rem/1.5 var(--f-type); color: var(--cream); text-shadow: 0 2px 8px rgba(0,0,0,.8); }
.footer__sig { font: 400 1.6rem/1 var(--f-title); color: var(--gold-light); }
.noscript { position: relative; z-index: 3; text-align: center; padding: 16px; }

/* ---------- Petits ecrans ---------- */
@media (max-width: 460px) {
  .countdown { grid-template-columns: repeat(2, 1fr); }
  .section { margin-bottom: 12vh; }
}

/* ---------- Mouvement reduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .tumbleweed { display: none; }
}
