/* ============================================================
   LA FOIRE — Hi-Fi page styles (mobile-first)
   Built on top of colors_and_type.css (design system tokens).
   Sections, hero variants, stand cards, ornaments.
   ============================================================ */

/* ---------- Reset ------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }

/* ---------- Accent palette (toggle via [data-accent]) ------- */
:root,
[data-accent="pissenlit"] {
  --accent-hot:   var(--c-pissenlit);
  --accent-cool:  var(--c-bouteille);
  --accent-ink:   var(--c-encre);
  --accent-on-hot: var(--c-encre);
}
[data-accent="bouteille"] {
  --accent-hot:   var(--c-bouteille);
  --accent-cool:  var(--c-pissenlit);
  --accent-on-hot: var(--c-lait);
}
[data-accent="charrette"] {
  --accent-hot:   var(--c-charrette);
  --accent-cool:  var(--c-pissenlit);
  --accent-on-hot: var(--c-lait);
}

/* ---------- Page shell -------------------------------------- */
.page {
  background: var(--c-lait);
  color: var(--c-encre);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-inline: clamp(20px, 5vw, 64px);
}

/* ---------- Sticky tagline ribbon --------------------------- */
.ribbon {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--c-encre);
  color: var(--c-lait);
  border-bottom: 2.5px solid var(--c-bavette);
  overflow: hidden;
  height: 36px;
  display: flex;
  align-items: center;
}
.ribbon__track {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: ribbon-scroll 36s linear infinite;
  font-family: var(--font-tagline);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 13px;
  color: var(--c-lait);
}
.ribbon__item {
  padding-inline: 22px;
  display: inline-flex;
  align-items: center;
  gap: 22px;
}
.ribbon__item::after {
  content: "◆";
  color: var(--c-bavette);
  font-size: 11px;
  display: inline-block;
}
@keyframes ribbon-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Nav --------------------------------------------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 18px;
  position: relative;
  z-index: 4;
}
.nav__logo img {
  height: 36px;
  width: auto;
  transform: rotate(-3deg);
}
.nav__links {
  display: none;
  gap: 28px;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav__links a {
  color: inherit;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
  transition: border-color var(--t-fast) var(--ease-snap);
}
.nav__links a:hover { border-bottom-color: currentColor; }
.nav__cta {
  display: none;
}
.nav__burger {
  background: var(--c-lait);
  color: var(--c-encre);
  border: 2.5px solid var(--c-encre);
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  font-size: 20px;
  box-shadow: var(--shadow-sticker-sm);
}
@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__cta   { display: inline-flex; }
  .nav__burger { display: none; }
}

/* ---------- Sections ---------------------------------------- */
.section {
  position: relative;
  padding-block: clamp(56px, 9vw, 104px);
}
.section--bavette { background: var(--c-bavette); color: var(--c-lait); }
.section--lait    { background: var(--c-lait);    color: var(--c-encre); }
.section--paper   { background: var(--c-paper);   color: var(--c-encre); }
.section--encre   { background: var(--c-encre);   color: var(--c-lait); }
.section--bouteille { background: var(--c-bouteille-dark); color: var(--c-lait); }

.section__eyebrow {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-bavette);
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.section--bavette .section__eyebrow,
.section--encre   .section__eyebrow,
.section--bouteille .section__eyebrow {
  color: var(--c-pissenlit);
}
.section__eyebrow::before,
.section__eyebrow::after {
  content: "";
  width: 26px; height: 2px;
  background: currentColor;
  opacity: 0.8;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.92;
  font-size: clamp(40px, 7.5vw, 96px);
  margin: 0 0 28px;
}

/* ---------- Damier band ------------------------------------- */
.damier {
  height: 22px;
  background-color: var(--c-lait);
  background-image:
    linear-gradient(45deg, var(--c-bavette) 25%, transparent 25%, transparent 75%, var(--c-bavette) 75%),
    linear-gradient(45deg, var(--c-bavette) 25%, var(--c-lait) 25%, var(--c-lait) 75%, var(--c-bavette) 75%);
  background-size: 22px 22px, 22px 22px;
  background-position: 0 0, 11px 11px;
  border-top: 2.5px solid var(--c-encre);
  border-bottom: 2.5px solid var(--c-encre);
}
.damier--encre {
  background-color: var(--c-encre);
  background-image:
    linear-gradient(45deg, var(--c-bavette) 25%, transparent 25%, transparent 75%, var(--c-bavette) 75%),
    linear-gradient(45deg, var(--c-bavette) 25%, var(--c-encre) 25%, var(--c-encre) 75%, var(--c-bavette) 75%);
}

/* ---------- Buttons / CTAs ---------------------------------- */
.btn {
  font-family: var(--font-sans);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 2.5px solid var(--c-encre);
  background: var(--c-bavette);
  color: var(--c-lait);
  box-shadow: var(--shadow-sticker-md);
  padding: 14px 28px;
  font-size: 14px;
  transition: transform var(--t-fast) var(--ease-snap),
              box-shadow var(--t-fast) var(--ease-snap);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-sticker-lg); }
.btn:active{ transform: translate(1px, 1px);   box-shadow: 2px 2px 0 var(--c-encre); }

.btn--losange  { border-radius: var(--r-losange); padding: 16px 36px; }
.btn--lg       { padding: 22px 48px; font-size: 17px; }
.btn--md       { padding: 16px 32px; font-size: 15px; }
.btn--sm       { padding: 10px 22px; font-size: 12px; }

.btn--yellow   { background: var(--c-pissenlit); color: var(--c-encre); }
.btn--cream    { background: var(--c-lait);      color: var(--c-encre); }
.btn--ink      { background: var(--c-encre);     color: var(--c-lait); }
.btn--ghost    { background: transparent;        color: var(--c-encre); box-shadow: none; }
.btn--accent   { background: var(--accent-hot);  color: var(--accent-on-hot); }

.btn__arrow {
  display: inline-block;
  width: 22px; height: 12px;
  position: relative;
}
.btn__arrow::before {
  content: "";
  position: absolute; inset: 0;
  background: currentColor;
  clip-path: polygon(0 35%, 65% 35%, 65% 0, 100% 50%, 65% 100%, 65% 65%, 0 65%);
}

/* ---------- Number diamond (losange) ------------------------ */
.numdiamond {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--c-bavette);
  color: var(--c-lait);
  border: 2.5px solid var(--c-encre);
  border-radius: var(--r-losange);
  box-shadow: var(--shadow-sticker-sm);
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.02em;
  width: 86px; height: 50px;
  font-size: 26px;
  transform: rotate(-3deg);
}
.numdiamond--lg { width: 120px; height: 72px; font-size: 36px; }
.numdiamond--xl {
  /* Auto-grow so text values like "60min" / "2 essais" don't overflow */
  min-width: 170px;
  width: auto;
  height: 110px;
  padding-inline: 22px;
  font-size: clamp(34px, 4vw, 52px);
  box-shadow: var(--shadow-sticker-md);
  white-space: nowrap;
}
.numdiamond--yellow { background: var(--c-pissenlit); color: var(--c-encre); }
.numdiamond--green  { background: var(--c-bouteille); color: var(--c-lait); }
.numdiamond--blue   { background: var(--c-charrette); color: var(--c-lait); }
.numdiamond--cream  { background: var(--c-lait);      color: var(--c-encre); }

/* ---------- Tagline component ------------------------------- */
.tagline {
  font-family: var(--font-tagline);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  display: inline-flex;
  align-items: center;
  gap: 0.65em;
}
.tagline__dot { color: var(--c-bavette); font-size: 0.65em; }

/* ---------- Ornaments : étoiles, ampoules, starbursts ------ */
.star {
  display: inline-block;
  color: var(--accent-hot);
  font-size: 14px;
  filter: drop-shadow(2px 2px 0 var(--c-encre));
}

/* Bulb garland — string of decorative bulbs */
.bulb-garland {
  display: flex;
  align-items: flex-end;
  gap: clamp(22px, 4vw, 60px);
  height: 56px;
  position: relative;
}
.bulb-garland::before {
  content: "";
  position: absolute;
  top: 0; left: -20px; right: -20px;
  height: 2px;
  background: var(--c-encre);
  border-radius: 1px;
  transform: translateY(2px);
}
.bulb {
  width: 20px;
  height: 28px;
  background: var(--c-pissenlit);
  border: 2px solid var(--c-encre);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  position: relative;
  transform-origin: top center;
  animation: bulb-glow 2.4s ease-in-out infinite;
}
.bulb::before {
  content: "";
  position: absolute;
  top: -8px; left: 50%;
  width: 6px; height: 6px;
  background: var(--c-encre);
  transform: translateX(-50%);
  border-radius: 1px;
}
.bulb:nth-child(2) { background: var(--c-bavette);   animation-delay: 0.2s; }
.bulb:nth-child(3) { background: var(--c-lait);      animation-delay: 0.4s; }
.bulb:nth-child(4) { background: var(--c-pissenlit); animation-delay: 0.6s; }
.bulb:nth-child(5) { background: var(--c-bouteille); animation-delay: 0.8s; }
.bulb:nth-child(6) { background: var(--c-bavette);   animation-delay: 1.0s; }
.bulb:nth-child(7) { background: var(--c-pissenlit); animation-delay: 1.2s; }
.bulb:nth-child(8) { background: var(--c-lait);      animation-delay: 1.4s; }
@keyframes bulb-glow {
  0%, 100% { filter: brightness(1); }
  50%      { filter: brightness(1.35); }
}

/* Star burst (rayons derrière le titre hero) */
.starburst {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0.18;
  animation: starburst-spin 80s linear infinite;
}
.starburst svg { width: min(160vw, 1600px); height: auto; }
@keyframes starburst-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Kraft texture overlay (very subtle noise) */
.kraft {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0.07;
  background-image:
    repeating-radial-gradient(circle at 23% 31%, rgba(14,14,16,0.7) 0 0.4px, transparent 0.4px 4px),
    repeating-radial-gradient(circle at 67% 71%, rgba(14,14,16,0.6) 0 0.4px, transparent 0.4px 5px);
}

/* ---------- Hero variants ----------------------------------- */
.hero {
  position: relative;
  background: var(--c-bavette);
  color: var(--c-lait);
  overflow: hidden;
  isolation: isolate;
}
.hero__inner {
  position: relative;
  padding-block: clamp(48px, 7vw, 84px) clamp(72px, 9vw, 120px);
}

/* --- Variant: cubes (default) --- */
.hero--cubes .hero__title {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(8px, 1.1vw, 14px);
  margin-top: clamp(40px, 8vw, 72px);
}
.hero__cube {
  width: clamp(58px, 13.5vw, 138px);
  height: clamp(58px, 13.5vw, 138px);
  background: var(--c-lait);
  color: var(--c-bavette);
  border: 4px solid var(--c-encre);
  box-shadow: 8px 8px 0 var(--c-encre);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(50px, 12vw, 120px);
  line-height: 1;
  letter-spacing: -0.04em;
  flex-shrink: 0;
}
.hero__cube:nth-child(odd)  { transform: rotate(-2.5deg); }
.hero__cube:nth-child(even) { transform: rotate(2.5deg); }

/* --- Variant: monster (typo géante hors-cadre) --- */
.hero--monster .hero__title-monster {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.035em;
  line-height: 0.82;
  font-size: clamp(140px, 36vw, 440px);
  color: var(--c-lait);
  margin: 16px 0 0;
  position: relative;
  left: -2vw;
  text-shadow: 6px 6px 0 var(--c-encre);
}

/* --- Variant: classic (titre simple aligné) --- */
.hero--classic .hero__title-classic {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.9;
  font-size: clamp(64px, 12vw, 180px);
  color: var(--c-lait);
  margin: 16px 0 0;
  text-align: center;
}

.hero__script {
  font-family: var(--font-script);
  font-size: clamp(40px, 8vw, 88px);
  color: var(--c-pissenlit);
  transform: rotate(-5deg);
  display: inline-block;
  margin-top: clamp(8px, 1.5vw, 18px);
  line-height: 1;
  text-shadow: 3px 3px 0 var(--c-encre);
}
.hero__title-wrap {
  text-align: center;
}
.hero__sub {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(16px, 2.2vw, 22px);
  line-height: 1.45;
  max-width: 620px;
  margin: clamp(36px, 6vw, 56px) auto clamp(28px, 4vw, 40px);
  text-align: center;
  text-wrap: balance;
  text-shadow: 2px 2px 0 var(--c-encre);
}
.hero__sub strong { font-weight: 800; }
.hero__cta-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__pun {
  margin-top: clamp(40px, 6vw, 72px);
  text-align: center;
  font-family: var(--font-tagline);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 14px;
  color: var(--c-pissenlit);
}

.hero__scroll-cue {
  margin-top: clamp(40px, 6vw, 72px);
  text-align: center;
  font-family: var(--font-script);
  font-size: 18px;
  color: var(--c-lait);
  opacity: 0.85;
}
.hero__scroll-cue::after {
  content: "";
  display: block;
  margin: 8px auto 0;
  width: 24px; height: 9px;
  background: var(--c-lait);
  border-radius: 50% / 35%;
  animation: scroll-bounce 1.8s ease-in-out infinite;
}
@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); opacity: 0.5; }
}

/* Hero CTA — affiche maxi : bordure plus épaisse, ombre plus marquée */
.hero__cta {
  font-size: 18px;
  border-width: 3px;
  box-shadow: 8px 8px 0 var(--c-encre);
}
.hero__cta:hover { box-shadow: 12px 12px 0 var(--c-encre); }

/* Garland over hero */
.hero__garland {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(28px, 4vw, 48px);
}

/* ---------- Pitch section (variant A · Plaques émaillées) -- */
.pitch { position: relative; }

/* Annotation script "promis, t'as déjà joué." */
.pitch__note {
  position: absolute;
  top: clamp(40px, 6vw, 80px);
  right: clamp(24px, 5vw, 80px);
  font-family: var(--font-script);
  color: var(--c-bavette);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.05;
  transform: rotate(-7deg);
  pointer-events: none;
  z-index: 2;
}
.pitch__note::after {
  content: "";
  display: block;
  width: 56px;
  height: 12px;
  margin-top: 6px;
  margin-left: 20px;
  border-left: 2.5px solid var(--c-bavette);
  border-bottom: 2.5px solid var(--c-bavette);
  border-bottom-left-radius: 60% 100%;
  transform: rotate(8deg);
}
@media (max-width: 640px) {
  .pitch__note { display: none; }
}

.pitch__intro {
  max-width: 920px;
  margin-inline: auto;
  text-align: center;
}
.pitch__lead {
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.55;
  max-width: 680px;
  margin: 0 auto;
}

/* "KERMESSE" with hand-drawn double underline */
.pitch__kermesse {
  position: relative;
  font-style: normal;
  color: var(--c-bavette);
  display: inline-block;
}
.pitch__kermesse::after {
  content: "";
  position: absolute;
  left: -6px;
  right: -6px;
  bottom: -0.08em;
  height: 14px;
  background:
    linear-gradient(to right, var(--c-bavette) 0%, var(--c-bavette) 100%) bottom left / 100% 3px no-repeat,
    linear-gradient(to right, var(--c-bavette) 0%, var(--c-bavette) 100%) bottom left / 90% 3px no-repeat;
  background-position: 0 100%, 8px 70%;
  transform: rotate(-1deg);
}

/* Row of enamel plates */
.pitch__plates {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: clamp(20px, 2.5vw, 32px);
  margin-top: clamp(48px, 6.5vw, 72px);
}
.plate-wrap {
  display: flex;
  align-items: stretch;
}

.plate {
  position: relative;
  width: clamp(200px, 22vw, 260px);
  min-height: 140px;
  background: var(--c-bavette);
  color: var(--c-lait);
  border: 4px solid var(--c-encre);
  outline: 3px solid var(--c-lait);
  outline-offset: -10px;
  box-shadow: 6px 6px 0 var(--c-encre);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px 16px 24px;
  text-align: center;
  border-radius: 3px;
  transition: transform var(--t-base) var(--ease-snap), box-shadow var(--t-base) var(--ease-snap);
}
.plate:hover {
  box-shadow: 10px 10px 0 var(--c-encre);
}
.plate--yellow {
  background: var(--c-pissenlit);
  color: var(--c-encre);
}

.plate__rivet {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--c-lait);
  border: 2px solid var(--c-encre);
  border-radius: 50%;
}
.plate__rivet--tl { top: 6px;    left: 6px; }
.plate__rivet--tr { top: 6px;    right: 6px; }
.plate__rivet--bl { bottom: 6px; left: 6px; }
.plate__rivet--br { bottom: 6px; right: 6px; }
.plate--yellow .plate__rivet {
  background: var(--c-encre);
  border-color: var(--c-encre);
}

.plate__num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(48px, 5.5vw, 64px);
  line-height: 1;
  letter-spacing: -0.01em;
}
.plate__num small {
  font-size: 0.42em;
  margin-left: 2px;
  vertical-align: 0.55em;
  letter-spacing: 0;
}
.plate__lbl {
  margin-top: 10px;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* ---------- How it works ------------------------------------ */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 24px;
}
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.step { display: flex; flex-direction: column; gap: 14px; }
.step__title {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 0.95;
  letter-spacing: -0.01em;
}
.step__desc {
  font-size: 15px;
  line-height: 1.5;
}

.steps__pun {
  /* Roc Grotesk Compressed handles accents + apostrophes; Boldstrom is
     ASCII-only and would eat É È '. Reserve var(--font-tagline) for the
     JOUER ◆ TRINQUER ◆ MANGER signature exclusively. */
  margin-top: clamp(48px, 6vw, 72px);
  text-align: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(26px, 3.4vw, 40px);
  letter-spacing: -0.005em;
  text-transform: uppercase;
  color: var(--c-bavette);
  line-height: 1.05;
}
.steps__pun--cool { color: var(--c-encre); }

/* ---------- Stands grid ------------------------------------- */
.stands__head {
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 64px);
}
.stands__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 640px) { .stands__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .stands__grid { grid-template-columns: repeat(3, 1fr); } }

.stand {
  background: var(--c-paper);
  border: 2.5px solid var(--c-encre);
  box-shadow: var(--shadow-sticker-md);
  padding: 18px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: transform var(--t-base) var(--ease-snap),
              box-shadow var(--t-base) var(--ease-snap);
}
.stand:hover {
  transform: translate(-3px, -3px);
  box-shadow: 10px 10px 0 var(--accent-hot), 10px 10px 0 1.5px var(--c-encre);
}
.stand:hover .stand__num { transform: rotate(6deg); }
.stand__head {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 14px;
}
.stand__num {
  transition: transform var(--t-base) var(--ease-bounce);
}
.stand__corner {
  font-family: var(--font-script);
  font-size: 22px;
  color: var(--c-bavette);
  transform: rotate(8deg);
  line-height: 1;
}
.stand__photo {
  aspect-ratio: 4 / 3;
  background: var(--stand-color, var(--c-encre));
  color: var(--c-lait);
  border: 2.5px solid var(--c-encre);
  display: grid;
  place-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.stand__photo::before,
.stand__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 49%, rgba(255,255,255,0.18) 49%, rgba(255,255,255,0.18) 51%, transparent 51%);
  background-size: 18px 18px;
  opacity: 0.5;
  mix-blend-mode: overlay;
}
.stand__photo::after {
  background: linear-gradient(45deg, transparent 49%, rgba(0,0,0,0.15) 49%, rgba(0,0,0,0.15) 51%, transparent 51%);
  background-size: 18px 18px;
}
.stand__photo-label {
  position: relative;
  z-index: 2;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: rgba(14,14,16,0.55);
  color: var(--c-lait);
  padding: 6px 12px;
  border: 1.5px dashed currentColor;
}
.stand__photo--yellow .stand__photo-label { background: rgba(14,14,16,0.7); }
.stand__name {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(24px, 2.8vw, 32px);
  line-height: 1;
  margin: 0;
  letter-spacing: -0.01em;
  text-wrap: balance;
  min-height: 2em;
}
.stand__tagline {
  /* Some stand taglines contain accents / apostrophes (« J'peux pas, j'ai pêche »),
     which Boldstrom can't render. Switch to LCT Picon Extra Bold. */
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-bavette);
  margin-top: -8px;
}
.stand__desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--c-encre);
  margin: 0;
}

/* ---------- Leaderboard ------------------------------------- */
.lb {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 1000px) { .lb { grid-template-columns: 1fr 1.4fr; gap: 64px; } }

.lb__copy h2 { color: var(--c-lait); }
.lb__copy p {
  font-size: 16px;
  line-height: 1.55;
  opacity: 0.86;
  max-width: 460px;
}
.lb__screen {
  background: var(--c-lait);
  color: var(--c-encre);
  border: 3px solid var(--c-lait);
  box-shadow: 10px 10px 0 var(--c-bavette);
  padding: 18px;
}
.lb__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--c-encre);
  padding-bottom: 12px;
  margin-bottom: 14px;
}
.lb__live {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.lb__live::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--c-bavette);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(237,34,48,0.6); }
  50%      { box-shadow: 0 0 0 8px rgba(237,34,48,0); }
}
.lb__clock {
  font-family: var(--font-display);
  font-size: 26px;
  text-transform: uppercase;
}
/* Animated list container — JS sets height, rows use absolute position */
.lb__list {
  position: relative;
}
.lb__row {
  position: absolute;
  width: 100%;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 36px 1fr 90px;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-bottom: 1px solid rgba(27,34,63,0.18);
  transition: top 550ms cubic-bezier(0.2, 0.9, 0.25, 1),
              background 300ms ease;
}
@media (min-width: 720px) {
  .lb__row { grid-template-columns: 40px 1fr 90px; }
}
.lb__row--me { background: var(--c-pissenlit); }

/* Score flash when points are added */
.lb__score--flash {
  animation: score-pop 0.65s var(--ease-snap);
  display: inline-block;
  transform-origin: right center;
}
@keyframes score-pop {
  0%   { color: var(--c-bavette); transform: scale(1.22); }
  55%  { color: var(--c-bavette); }
  100% { color: inherit; transform: scale(1); }
}
/* Delta badge (+120) that floats up and fades */
.lb__delta {
  position: absolute;
  right: 8px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
  color: var(--c-bavette);
  pointer-events: none;
  animation: delta-rise 1.1s var(--ease-snap) forwards;
}
.lb__row--me .lb__delta { color: var(--c-encre); }
@keyframes delta-rise {
  0%   { opacity: 1; transform: translateY(0); }
  70%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(-28px); }
}
.lb__rank {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--c-encre);
}
.lb__rank--first { color: var(--c-bavette); }
.lb__name {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 14px;
}
.lb__score {
  font-family: var(--font-display);
  font-size: 22px;
  text-align: right;
}
.lb__jeux {
  display: none;
  gap: 4px;
}
@media (min-width: 720px) { .lb__jeux { display: flex; } }
.lb__jeux span {
  flex: 1;
  padding: 3px 6px;
  background: var(--c-encre);
  color: var(--c-lait);
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-align: center;
}

/* ---------- F&B (variant B · Cartes polaroid) --------------- */
.fb__head {
  text-align: center;
  max-width: 900px;
  margin: 0 auto clamp(40px, 6vw, 56px);
}
.fb__head p {
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.55;
  max-width: 680px;
  margin: 16px auto 0;
}

/* Two stacks (food + bar) side-by-side */
.fb__split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(56px, 6vw, 72px);
  padding-top: clamp(24px, 4vw, 40px);
}
@media (min-width: 880px) {
  .fb__split { grid-template-columns: repeat(2, 1fr); gap: clamp(36px, 4vw, 56px); }
}

.fb__stack {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* ── Polaroid (sits above the card) ── */
.fb__polaroid {
  position: relative;
  width: clamp(220px, 60%, 320px);
  align-self: center;
  background: var(--c-lait);
  border: 2px solid var(--c-encre);
  padding: 12px 12px 48px;
  margin-bottom: -42px;
  box-shadow: var(--shadow-sticker-md);
  z-index: 3;
  transition: transform var(--t-base) var(--ease-snap);
}
.fb__stack:hover .fb__polaroid {
  transform: rotate(0deg) translateY(-2px) !important;
}

/* Tape strip */
.fb__tape {
  position: absolute;
  top: -16px;
  left: 50%;
  width: 110px;
  height: 28px;
  background: rgba(244, 191, 51, 0.72);
  border: 1px dashed rgba(14, 14, 16, 0.4);
  transform: translateX(-50%) rotate(-4deg);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  z-index: 4;
}
.fb__stack:nth-child(2) .fb__tape { transform: translateX(-50%) rotate(5deg); }

.fb__polaroid-photo {
  aspect-ratio: 3 / 2;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.fb__polaroid-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(45deg, transparent 49%, rgba(255,255,255,0.10) 49%, rgba(255,255,255,0.10) 51%, transparent 51%);
  background-size: 26px 26px;
}
.fb__polaroid-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(255,255,255,0.12), transparent 55%),
    radial-gradient(ellipse at 70% 80%, rgba(0,0,0,0.18), transparent 60%);
}
.fb__polaroid-photo-label {
  position: relative;
  z-index: 2;
  padding: 7px 13px;
  border: 1.5px dashed var(--c-lait);
  color: var(--c-lait);
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.fb__polaroid-cap {
  position: absolute;
  bottom: 10px;
  left: 12px;
  right: 12px;
  font-family: var(--font-script);
  font-size: clamp(16px, 1.8vw, 20px);
  color: var(--c-bavette);
  text-align: center;
  line-height: 1.05;
}

/* ── The menu card under the polaroid ── */
.fb__card {
  position: relative;
  background: var(--c-lait);
  border: 2.5px solid var(--c-encre);
  border-radius: 4px;
  padding: clamp(48px, 5vw, 64px) clamp(22px, 3vw, 32px) clamp(20px, 2.5vw, 26px);
  box-shadow: var(--shadow-sticker-md);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1;
  transition: transform var(--t-base) var(--ease-snap),
              box-shadow var(--t-base) var(--ease-snap);
}
.fb__stack:hover .fb__card {
  transform: translate(-3px, -3px);
  box-shadow: 10px 10px 0 var(--accent-hot), 10px 10px 0 1.5px var(--c-encre);
}

.fb__card-eyebrow {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-bavette);
}
.fb__card-name {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 0.92;
  letter-spacing: -0.01em;
  margin: 0;
}
.fb__card-copy {
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
  max-width: 46ch;
}
.fb__card-foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 2px dashed rgba(27, 34, 63, 0.32);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.fb__card-note {
  font-family: var(--font-script);
  font-size: clamp(16px, 1.7vw, 19px);
  color: var(--c-bavette);
  transform: rotate(-1.5deg);
  display: inline-block;
}

/* ---------- Final CTA --------------------------------------- */
.final {
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final__title {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.88;
  font-size: clamp(80px, 16vw, 200px);
  margin: 0 0 12px;
  color: var(--c-lait);
  position: relative;
}
.final__sub {
  font-family: var(--font-script);
  font-size: clamp(22px, 3vw, 34px);
  color: var(--c-pissenlit);
  transform: rotate(-2deg);
  display: inline-block;
  margin-bottom: clamp(28px, 4vw, 40px);
  text-shadow: 3px 3px 0 var(--c-encre);
}
.final__cta-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Footer ------------------------------------------ */
.footer {
  background: var(--c-encre);
  color: var(--c-lait);
  padding: 28px clamp(20px, 5vw, 64px);
  border-top: 4px solid var(--c-bavette);
}
.footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  text-align: center;
}
@media (min-width: 720px) {
  .footer__inner { flex-direction: row; justify-content: space-between; text-align: left; }
}
.footer img { height: 30px; width: auto; transform: rotate(-2deg); }
.footer__links {
  display: flex;
  gap: 18px;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.footer__links a { color: var(--c-lait); text-decoration: none; opacity: 0.85; }
.footer__links a:hover { opacity: 1; color: var(--c-pissenlit); }

/* ---------- Reveal-on-scroll -------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms var(--ease-snap), transform 600ms var(--ease-snap);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Misc -------------------------------------------- */
.script { font-family: var(--font-script); font-weight: 400; line-height: 1; }

/* Lampion garland decorative banner */
.section--accent-bar {
  background: var(--accent-hot);
  color: var(--accent-on-hot);
}

/* Section header centered display */
.section-head {
  text-align: center;
  max-width: 900px;
  margin: 0 auto clamp(40px, 6vw, 56px);
}
.section-head p {
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.55;
  max-width: 680px;
  margin: 0 auto;
}

/* prevent reduce-motion from spinning forever */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
