/* ============================================================
   Offline Custom — funnel lead magnet
   Palette marque : orange lapin #F4562A → #FF8A3D, brun #3E332C,
   crème #F6EFE4, charbon chaud #171210
   ============================================================ */

:root {
  --orange: #F4562A;
  --orange-2: #FF8A3D;
  --orange-soft: rgba(244, 86, 42, .14);
  --cream: #F6EFE4;
  --cream-dim: rgba(246, 239, 228, .68);
  --cream-faint: rgba(246, 239, 228, .42);
  --ink: #171210;
  --ink-2: #221A15;
  --card: rgba(255, 249, 240, .05);
  --card-border: rgba(246, 239, 228, .12);
  --card-border-hover: rgba(255, 138, 61, .65);
  --ok: #5FBF77;
  --radius: 20px;
  --shadow-pop: 0 18px 50px -12px rgba(0, 0, 0, .55);
  --grad: linear-gradient(120deg, var(--orange) 10%, var(--orange-2) 90%);
  --font-head: "Baloo 2", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }

body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.stage {
  position: fixed; inset: 0;
  display: flex; flex-direction: column;
  overflow: hidden;
}

/* ---------- décor ---------- */
.bg { position: absolute; inset: 0; z-index: 0; }
.bg-photo {
  position: absolute; inset: 0;
  background: url("assets/atelier-bg.jpg") 82% 55% / cover no-repeat;
  filter: saturate(.9) brightness(.72) contrast(1.05);
}
/* vidéo d'atelier en fond (injectée par JS, sinon la photo reste) */
.bg-video-wrap { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.bg-video-wrap.on { opacity: 1; }
.bg-video-wrap video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.68) brightness(.32) contrast(1.02); }
/* assombrissement au-dessus de photo + vidéo pour garder le texte lisible sur toutes les frames */
.bg-scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(135% 105% at 50% 108%, rgba(23,18,16,.78) 16%, rgba(23,18,16,.26) 54%, rgba(23,18,16,.05) 100%),
    linear-gradient(180deg, rgba(23,18,16,.68) 0%, rgba(23,18,16,.06) 26%, rgba(23,18,16,.08) 62%, rgba(23,18,16,.74) 100%);
}
.bg-grain { display: none; } /* retiré : mix-blend coûteux en repaint */
.bg-glow { position: absolute; border-radius: 50%; opacity: .5; }
.bg-glow--a { width: 46vw; height: 46vw; left: -12vw; top: -18vw; background: radial-gradient(circle, rgba(244, 86, 42, .22), transparent 70%); }
.bg-glow--b { width: 40vw; height: 40vw; right: -14vw; bottom: -16vw; background: radial-gradient(circle, rgba(255, 138, 61, .14), transparent 70%); }

/* ---------- topbar ---------- */
.topbar {
  position: relative; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(16px, 4vw, 40px) 6px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 46px; height: auto; filter: drop-shadow(0 4px 14px rgba(244,86,42,.45)); }
.brand-txt { font-family: var(--font-head); line-height: .95; }
.brand-txt strong { display: block; font-size: 20px; font-weight: 800; letter-spacing: .3px; }
.brand-txt span { font-size: 12px; font-weight: 600; color: var(--orange-2); text-transform: uppercase; letter-spacing: 3.5px; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.mif {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; color: var(--cream-dim);
  padding: 8px 13px; border: 1px solid var(--card-border); border-radius: 100px;
  background: rgba(23,18,16,.72);
}
.mif-flag { display: inline-flex; width: 21px; height: 14px; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,.18); }
.mif-flag--big { width: 42px; height: 28px; border-radius: 6px; vertical-align: middle; }
.mif-flag i { flex: 1; }
.mif-flag i:nth-child(1) { background: #2E4B9B; }
.mif-flag i:nth-child(2) { background: #F4F0E6; }
.mif-flag i:nth-child(3) { background: #D9422F; }
.btn-close {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--card-border); background: rgba(23,18,16,.72);
  color: var(--cream-dim); font-size: 15px; cursor: pointer;
  transition: .2s;
}
.btn-close:hover { color: var(--cream); border-color: var(--card-border-hover); transform: rotate(90deg); }

/* ---------- piste de progression ---------- */
.track {
  position: relative; z-index: 5;
  width: min(560px, 82vw);
  margin: 10px auto 0;
  height: 34px;
  opacity: 0; pointer-events: none;
  transition: opacity .4s;
}
.track.on { opacity: 1; }
.track-line {
  position: absolute; left: 0; right: 0; top: 50%;
  height: 6px; transform: translateY(-50%);
  background: rgba(246,239,228,.10); border-radius: 10px; overflow: hidden;
}
.track-fill {
  height: 100%; width: 0%;
  background: var(--grad); border-radius: 10px;
  transition: width .5s cubic-bezier(.65, 0, .35, 1);
  box-shadow: 0 0 16px rgba(244,86,42,.55);
}
.track-cells { position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: center; }
.track-cell {
  width: 12px; height: 12px; border-radius: 4px;
  background: rgba(246,239,228,.14);
  border: 1px solid rgba(246,239,228,.14);
  transform: rotate(45deg); transition: .35s;
}
.track-cell.done { background: var(--orange); border-color: var(--orange-2); box-shadow: 0 0 10px rgba(244,86,42,.6); }
.track-die {
  position: absolute; top: 50%; left: 0%;
  width: 30px; height: 30px; margin: -15px 0 0 -15px;
  display: grid; place-items: center;
  font-size: 21px; line-height: 1; color: #fff;
  background: var(--grad); border-radius: 9px;
  box-shadow: 0 6px 18px rgba(244,86,42,.5), inset 0 -2px 0 rgba(0,0,0,.18);
  transition: left .5s cubic-bezier(.65, 0, .35, 1);
}
.track-die.rolling { animation: roll .5s cubic-bezier(.65, 0, .35, 1); }
@keyframes roll { 50% { transform: rotate(200deg) scale(1.25); } 100% { transform: rotate(360deg); } }

/* ---------- écrans ---------- */
.screens {
  position: relative; z-index: 4;
  flex: 1; display: flex; overflow: hidden;
}
.screen {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center;
  overflow-y: auto; overscroll-behavior: contain;
  padding: clamp(14px, 3vh, 34px) clamp(16px, 4vw, 40px) 40px;
  opacity: 0; transform: translateX(60px);
  transition: opacity .38s ease, transform .38s cubic-bezier(.5, 0, .2, 1);
  pointer-events: none;
}
.screen.in { opacity: 1; transform: translateX(0); pointer-events: auto; }
.screen.out-left { opacity: 0; transform: translateX(-60px); }

.screen-inner { width: min(880px, 100%); margin: auto; text-align: center; }

.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--orange-2); margin-bottom: 14px; text-shadow: 0 1px 8px rgba(0, 0, 0, .55);
}
.kicker::before, .kicker::after { content: ""; width: 26px; height: 1.5px; background: currentColor; opacity: .5; }

h1, h2 {
  font-family: var(--font-head); font-weight: 800; line-height: 1.06;
  letter-spacing: -.5px; text-wrap: balance;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .55), 0 1px 3px rgba(0, 0, 0, .4);
}
h1 { font-size: clamp(30px, 5.4vw, 56px); }
h2 { font-size: clamp(25px, 4vw, 42px); }
.sub {
  margin: 14px auto 0; max-width: 640px;
  font-size: clamp(14.5px, 1.6vw, 17.5px); line-height: 1.55; color: var(--cream-dim);
  text-wrap: balance;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .5);
}
.sub strong { color: var(--cream); }

.hl { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* icônes de marque — SVG en dégradé orange Offline (#og) */
.ic { width: 1.2em; height: 1.2em; display: inline-block; vertical-align: -.24em; stroke: url(#og); color: var(--orange); stroke-width: 1.9; fill: none; flex: none; }
.ic-lbl { width: 1.15em; height: 1.15em; vertical-align: -.16em; margin-right: 5px; }
.chip .ic { width: 1.15em; height: 1.15em; vertical-align: -.22em; margin-right: 3px; }
.btn .ic { stroke: #fff; color: #fff; width: 1.1em; height: 1.1em; vertical-align: -.16em; }

/* choix en cartes */
.choices { display: grid; gap: 14px; margin-top: clamp(20px, 3.5vh, 36px); }
.choices--3 { grid-template-columns: repeat(3, 1fr); }
.choices--2 { grid-template-columns: repeat(2, minmax(0, 340px)); justify-content: center; }
.choices--grid { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.choices--list { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 720px; margin-inline: auto; }

.choice {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 20px 16px; min-height: 92px;
  background: rgba(34, 26, 21, .84); border: 1.5px solid rgba(246, 239, 228, .14);
  border-radius: var(--radius);
  color: var(--cream); font-family: var(--font-head); font-size: 17px; font-weight: 700;
  cursor: pointer; text-align: center;
  transition: transform .18s, border-color .18s, background .18s, box-shadow .18s;
}
.choice:hover, .choice:focus-visible {
  transform: translateY(-4px);
  border-color: var(--card-border-hover);
  background: rgba(255, 249, 240, .08);
  box-shadow: 0 14px 34px -14px rgba(244, 86, 42, .45);
  outline: none;
}
.choice:active { transform: translateY(-1px) scale(.98); }
.choice .ic.ico { width: 34px; height: 34px; margin-bottom: 3px; filter: drop-shadow(0 4px 10px rgba(244, 86, 42, .3)); }
.choice .note { font-family: var(--font-body); font-size: 12.5px; font-weight: 600; color: var(--cream-faint); }
.choice .badge {
  position: absolute; top: -11px; right: 12px;
  font-family: var(--font-body); font-size: 11px; font-weight: 700; letter-spacing: .4px;
  color: #fff; background: var(--grad);
  padding: 4px 11px; border-radius: 100px;
  box-shadow: 0 6px 16px rgba(244,86,42,.45);
}
.choice.selected { border-color: var(--orange); background: var(--orange-soft); }

/* cartes visuelles avec photo */
.choice--photo { padding: 0; overflow: hidden; min-height: 0; }
.choice--photo .badge { top: 12px; right: 12px; }
.choice--photo .ph {
  width: 100%; aspect-ratio: 4 / 3;
  background-size: cover; background-position: center;
  transition: transform .4s;
}
.choice--photo:hover .ph { transform: scale(1.06); }
.choice--photo .lbl { display: flex; flex-direction: column; gap: 4px; padding: 14px 14px 16px; width: 100%; }
.choice--photo .lbl-t { display: inline-flex; align-items: center; justify-content: center; gap: 2px; }
.choice--photo .lbl .note { font-size: 12px; }

/* hero */
.hero-mascotte { width: clamp(74px, 9vw, 110px); margin: 0 auto 10px; filter: drop-shadow(0 10px 30px rgba(244,86,42,.4)); animation: floaty 4.5s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-9px) rotate(-2deg); } }

.hero-strip {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
  margin-top: clamp(18px, 3vh, 30px);
}
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 600; color: var(--cream-dim);
  border: 1px solid var(--card-border); border-radius: 100px;
  padding: 8px 14px; background: rgba(23,18,16,.74);
}
.chip b { color: var(--orange-2); }

/* inputs */
.fields { display: grid; gap: 13px; margin-top: clamp(20px, 3.5vh, 34px); text-align: left; max-width: 640px; margin-inline: auto; }
.fields--2 { grid-template-columns: 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12.5px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--cream-dim); text-shadow: 0 1px 7px rgba(0, 0, 0, .6); }
.field label em { color: var(--orange-2); font-style: normal; }
.field input, .field textarea, .field select {
  font: 500 15.5px/1.45 var(--font-body); color: var(--cream);
  background: rgba(12, 9, 7, .86);
  border: 1.5px solid rgba(246, 239, 228, .2); border-radius: 14px;
  padding: 14px 16px; outline: none; width: 100%;
  box-shadow: 0 6px 20px -10px rgba(0, 0, 0, .6);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { min-height: 116px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(246,239,228,.45); }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--orange); background: rgba(255,249,240,.09);
  box-shadow: 0 0 0 4px rgba(244, 86, 42, .16);
}
.field .err { display: none; font-size: 12px; font-weight: 600; color: #FF9A7E; }
.field.invalid input, .field.invalid textarea { border-color: #E2543A; }
.field.invalid .err { display: block; }

.check {
  display: flex; gap: 11px; align-items: flex-start; text-align: left;
  font-size: 13px; line-height: 1.5; color: var(--cream-dim); cursor: pointer;
}
.check input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--orange); cursor: pointer; }

/* boutons */
.actions { display: flex; gap: 12px; justify-content: center; align-items: center; margin-top: clamp(20px, 3.5vh, 34px); flex-wrap: wrap; }
.btn {
  font-family: var(--font-head); font-size: 16.5px; font-weight: 700; letter-spacing: .2px;
  border: none; border-radius: 100px; cursor: pointer;
  padding: 15px 30px; color: #fff;
  background: var(--grad);
  box-shadow: 0 12px 30px -8px rgba(244, 86, 42, .55), inset 0 -2px 0 rgba(0,0,0,.15);
  transition: transform .18s, box-shadow .18s, filter .18s;
  display: inline-flex; align-items: center; gap: 9px;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 18px 38px -8px rgba(244, 86, 42, .65); filter: brightness(1.05); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .55; cursor: wait; transform: none; }
.btn--ghost {
  background: transparent; color: var(--cream-dim);
  border: 1.5px solid var(--card-border); box-shadow: none;
}
.btn--ghost:hover { color: var(--cream); border-color: var(--card-border-hover); box-shadow: none; }
.btn--sm { font-size: 14px; padding: 10px 20px; }

.backrow { margin-top: 18px; }
.link-back {
  background: none; border: none; cursor: pointer;
  color: var(--cream-faint); font: 600 13.5px var(--font-body);
  display: inline-flex; align-items: center; gap: 6px; transition: color .2s;
}
.link-back:hover { color: var(--cream); }

/* info minimum (révélé au choix produit) */
.minfo {
  margin: 18px auto 0; max-width: 560px;
  display: none; align-items: center; gap: 12px; text-align: left;
  background: rgba(244, 86, 42, .10); border: 1px solid rgba(255, 138, 61, .4);
  padding: 13px 18px; border-radius: 16px;
  font-size: 14px; line-height: 1.45; color: var(--cream);
  animation: pop .35s cubic-bezier(.3, 1.4, .5, 1);
}
.minfo.on { display: flex; }
.minfo .ic { width: 28px; height: 28px; flex: none; }
@keyframes pop { from { transform: scale(.92); opacity: 0; } }

/* galerie réalisations — cartes graphiques (nom + type), clic → lightbox */
.gallery-wrap { margin-top: 22px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gcell {
  position: relative; padding: 0; cursor: pointer; overflow: hidden;
  border: 1.5px solid var(--card-border); border-radius: 16px; background: #0d0a09;
  box-shadow: 0 10px 26px -14px rgba(0, 0, 0, .7);
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.gcell:hover { border-color: var(--orange); transform: translateY(-3px); box-shadow: 0 16px 34px -12px rgba(244, 86, 42, .5); }
.gcell img {
  width: 100%; aspect-ratio: 1; object-fit: cover; display: block;
  transition: transform .45s;
}
.gcell:hover img { transform: scale(1.06); }
/* nom de la réalisation, sur un dégradé qui ancre les fonds clairs */
.gcap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 11px 10px; text-align: left;
  background: linear-gradient(to top, rgba(12, 8, 6, .95), rgba(12, 8, 6, .55) 55%, transparent);
  font-family: var(--font-head); font-weight: 700; font-size: 12.5px; line-height: 1.2; color: var(--cream);
  text-shadow: 0 1px 5px rgba(0, 0, 0, .7);
}
/* tag type (Piste de dés…) en haut à gauche */
.gtag {
  position: absolute; top: 9px; left: 9px;
  font-family: var(--font-body); font-size: 10.5px; font-weight: 700; letter-spacing: .3px;
  color: #fff; background: var(--grad); padding: 4px 9px; border-radius: 100px;
  box-shadow: 0 4px 12px rgba(244, 86, 42, .45);
}
.gmore {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px;
  background: rgba(12, 8, 6, .74);
  font-family: var(--font-head); font-weight: 800; font-size: 30px; color: #fff;
  transition: background .25s;
}
.gmore em { font-size: 12px; font-weight: 700; font-style: normal; letter-spacing: .5px; text-transform: uppercase; opacity: .9; }
.gcell:hover .gmore { background: rgba(244, 86, 42, .68); }
.gallery-cta {
  display: inline-flex; align-items: center; gap: 8px; margin: 14px auto 0;
  background: none; border: none; cursor: pointer;
  font: 700 14px var(--font-body); color: var(--cream-dim);
  transition: color .2s;
}
.gallery-cta:hover { color: var(--cream); }
.gallery-cta .ic { width: 1.2em; height: 1.2em; }

/* stats atelier */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
.stat {
  padding: 22px 14px;
  background: rgba(44, 34, 28, .55); border: 1px solid var(--card-border); border-radius: var(--radius);
}
.stat b { display: block; font-family: var(--font-head); font-size: clamp(24px, 3vw, 34px); font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-size: 13px; font-weight: 600; color: var(--cream-dim); }

/* écran atelier dédié : vidéo en grand, lumineuse */
.atelier-video {
  position: relative; width: min(660px, 100%); margin: clamp(16px, 3vh, 26px) auto 4px;
  aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #0d0a09;
  border: 1px solid var(--card-border);
  box-shadow: 0 26px 60px -18px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 138, 61, .3), 0 0 40px -10px rgba(244, 86, 42, .35);
  animation: avin .5s cubic-bezier(.3, 1.2, .5, 1);
}
@keyframes avin { from { transform: scale(.96) translateY(8px); opacity: 0; } }
.atelier-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.av-badge {
  position: absolute; left: 12px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11.5px; font-weight: 700; color: var(--cream);
  background: rgba(23, 18, 16, .72); border: 1px solid var(--card-border);
  padding: 6px 12px; border-radius: 100px;
}

/* bande atelier : rangée de petits écrans, un clip par étape */
.atelier-strip {
  position: absolute; left: 0; right: 0; bottom: clamp(30px, 4.5vh, 46px); z-index: 6;
  display: flex; gap: 10px; justify-content: center; align-items: flex-end;
  padding: 0 20px; pointer-events: none;
  opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s cubic-bezier(.3, 1.2, .5, 1);
}
.atelier-strip.show { opacity: 1; transform: none; }
.strip-cell {
  position: relative; width: clamp(104px, 11vw, 140px); aspect-ratio: 16 / 9;
  border-radius: 11px; overflow: hidden; background: #0d0a09;
  border: 1px solid var(--card-border);
  box-shadow: 0 12px 26px -12px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 138, 61, .22);
  pointer-events: auto; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.strip-cell:hover { transform: translateY(-5px); box-shadow: 0 18px 34px -12px rgba(0, 0, 0, .7), 0 0 0 1px var(--orange), 0 0 26px -8px rgba(244, 86, 42, .55); }
.strip-cell::before { content: "⤢"; position: absolute; top: 5px; right: 6px; z-index: 2; font-size: 12px; color: #fff; opacity: 0; transition: opacity .2s; text-shadow: 0 1px 3px rgba(0,0,0,.7); }
.strip-cell:hover::before { opacity: .95; }
.strip-cell video { width: 100%; height: 100%; object-fit: cover; display: block; }
.strip-cell::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(transparent 48%, rgba(23, 18, 16, .82)); }
.strip-lbl { position: absolute; left: 8px; bottom: 6px; z-index: 1; font-family: var(--font-head); font-weight: 800; font-size: 11px; color: #fff; text-shadow: 0 1px 5px rgba(0, 0, 0, .7); }
.strip-num { position: absolute; top: 6px; left: 7px; z-index: 1; font-size: 9px; font-weight: 800; color: #fff; background: var(--orange); width: 15px; height: 15px; border-radius: 50%; display: grid; place-items: center; }
/* réserve la place en bas pour ne pas passer sous la bande */
.has-strip .screen { padding-bottom: 132px; }
@media (max-width: 900px) { .atelier-strip { display: none; } .has-strip .screen { padding-bottom: 40px; } }
@media (prefers-reduced-motion: reduce) { .atelier-strip { display: none; } }

/* modal clip (clic sur une tuile) */
.clipbox {
  position: fixed; inset: 0; z-index: 82;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(16px, 4vw, 50px); background: rgba(10, 7, 6, .74);
  opacity: 0; pointer-events: none; transition: opacity .28s;
}
.clipbox.on { opacity: 1; pointer-events: auto; }
.clip-modal {
  position: relative; width: min(92vw, 660px);
  background: #1b1510; border: 1px solid var(--card-border); border-radius: 20px;
  padding: 14px; box-shadow: 0 44px 100px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 138, 61, .18);
  animation: clipin .4s cubic-bezier(.3, 1.3, .5, 1);
}
@keyframes clipin { from { transform: scale(.9) translateY(12px); opacity: 0; } }
.clip-modal .clipbox-video { width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; background: #0d0a09; display: block; }
.clip-close {
  position: absolute; top: -14px; right: -14px; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--card-border); background: #1b1510; color: var(--cream);
  font-size: 15px; cursor: pointer; z-index: 2; box-shadow: 0 6px 16px rgba(0, 0, 0, .5); transition: .2s;
}
.clip-close:hover { color: #fff; border-color: var(--orange); transform: rotate(90deg); }
.clip-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 4px 2px; }
.clip-title { font-family: var(--font-head); font-weight: 800; font-size: 16.5px; color: var(--cream); }
.clip-nav {
  width: 36px; height: 36px; flex: none; border-radius: 50%;
  border: 1px solid var(--card-border); background: rgba(255, 249, 240, .05);
  color: var(--cream); font-size: 20px; line-height: 1; cursor: pointer; transition: .2s;
}
.clip-nav:hover { border-color: var(--orange); color: #fff; }

/* succès */
.success-die {
  width: 96px; height: 96px; margin: 0 auto 18px;
  animation: winroll .8s cubic-bezier(.3, 1.5, .4, 1);
}
.success-die .die { width: 100%; height: 100%; display: block; filter: drop-shadow(0 5px 6px rgba(0, 0, 0, .35)) drop-shadow(0 16px 40px rgba(244, 86, 42, .5)); }
@keyframes winroll { from { transform: rotate(-240deg) scale(.3); opacity: 0; } }

.recap {
  margin: 24px auto 0; max-width: 520px; text-align: left;
  background: rgba(44, 34, 28, .55); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 18px 22px;
}
.recap dl { display: grid; grid-template-columns: auto 1fr; gap: 7px 16px; font-size: 13.5px; }
.recap dt { color: var(--cream-faint); font-weight: 600; }
.recap dd { color: var(--cream); font-weight: 500; text-align: right; }

/* confetti */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 50; overflow: hidden; }
.confetti i {
  position: absolute; top: -4vh;
  width: 10px; height: 14px; border-radius: 3px;
  animation: fall linear forwards;
}
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); opacity: .1; } }

/* footer */
.foot {
  position: relative; z-index: 4;
  text-align: center; padding: 10px 16px 14px;
  font-size: 11.5px; letter-spacing: .4px; color: rgba(246,239,228,.34);
}

/* lightbox réalisations */
.lightbox {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(16px, 4vw, 60px);
  background: rgba(10, 7, 6, .96);
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.lightbox.on { opacity: 1; pointer-events: auto; }
.lb-fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; animation: lbin .35s cubic-bezier(.3, 1.3, .5, 1); }
@keyframes lbin { from { transform: scale(.94); opacity: .3; } }
.lightbox-img {
  max-width: min(84vw, 680px); max-height: 74vh; object-fit: contain;
  border-radius: 20px; background: #0d0a09;
  box-shadow: var(--shadow-pop);
}
.lightbox-cap { display: flex; align-items: center; gap: 12px; justify-content: center; text-align: center; }
.lb-name { font-family: var(--font-head); font-weight: 700; font-size: 16px; color: var(--cream); }
.lb-count { font: 600 13px var(--font-body); color: var(--cream-faint); }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--card-border); background: rgba(23, 18, 16, .6);
  color: var(--cream); font-size: 26px; line-height: 1; cursor: pointer;
  display: grid; place-items: center; transition: .2s;
}
.lb-nav:hover { border-color: var(--card-border-hover); color: #fff; transform: translateY(-50%) scale(1.08); }
.lb-prev { left: clamp(10px, 3vw, 40px); }
.lb-next { right: clamp(10px, 3vw, 40px); }
.lb-close {
  position: absolute; top: clamp(14px, 3vh, 28px); right: clamp(14px, 3vw, 28px);
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--card-border); background: rgba(23, 18, 16, .6);
  color: var(--cream); font-size: 16px; cursor: pointer; transition: .2s;
}
.lb-close:hover { border-color: var(--card-border-hover); color: #fff; transform: rotate(90deg); }
.lb-dots { position: absolute; bottom: clamp(18px, 5vh, 42px); left: 0; right: 0; display: flex; gap: 8px; justify-content: center; }
.lb-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(246, 239, 228, .3); cursor: pointer; transition: .25s; }
.lb-dots i.on { background: var(--orange); width: 22px; border-radius: 4px; }

/* ============ hero refonte + animations "vie du ludique" ============ */
.hero { display: flex; flex-direction: column; align-items: center; }

/* pas de sélection de texte parasite au clic sur les éléments ludiques/cliquables */
.hero, .die, .brand, .track, .btn, .choice, .link-soft, .chip, .spawn-die, .jackpot-die, .jackpot-banner {
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
}

/* dés qui tombent/roulent dans le hero */
.die { display: block; }
.hero-roll { display: flex; gap: clamp(10px, 2vw, 18px); justify-content: center; margin: clamp(12px, 2.5vh, 24px) 0 clamp(6px, 1.5vh, 14px); }
.hero-roll .hd {
  width: clamp(44px, 7vw, 72px); height: clamp(44px, 7vw, 72px);
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .35)) drop-shadow(0 13px 24px rgba(244, 86, 42, .4));
  will-change: transform;
}
.hd1 { animation: tumble 2.7s cubic-bezier(.5, 0, .3, 1) infinite; }
.hd2 { animation: tumble 2.7s cubic-bezier(.5, 0, .3, 1) .35s infinite; }
.hd3 { animation: tumble 2.7s cubic-bezier(.5, 0, .3, 1) .7s infinite; }
@keyframes tumble {
  0%   { transform: translateY(0) rotate(0deg); }
  28%  { transform: translateY(-18px) rotate(115deg); }
  52%  { transform: translateY(0) rotate(198deg); }
  66%  { transform: translateY(-7px) rotate(236deg); }
  100% { transform: translateY(0) rotate(360deg); }
}

/* CTA XL + dé qui roule au survol */
.btn--xl { font-size: 19px; padding: 17px 38px; }
.cta-die { display: inline-flex; width: 1.3em; height: 1.3em; vertical-align: -.32em; }
.cta-die .die { width: 100%; height: 100%; }
.btn:hover .cta-die { animation: ctaroll .55s ease; }
@keyframes ctaroll { from { transform: rotate(0); } to { transform: rotate(360deg); } }

/* ligne de réassurance */
.hero-micro { display: flex; gap: clamp(12px, 2.5vw, 22px); justify-content: center; flex-wrap: wrap; margin-top: 16px; font-size: 13px; font-weight: 600; color: var(--cream-dim); text-shadow: 0 1px 7px rgba(0, 0, 0, .5); }
.hero-micro span { display: inline-flex; align-items: center; gap: 6px; }
.hero-micro .ic { width: 1.15em; height: 1.15em; }

/* lien discret (voir réalisations) */
.link-soft { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; background: none; border: none; cursor: pointer; color: var(--cream-faint); font: 600 13.5px var(--font-body); transition: color .2s; }
.link-soft:hover { color: var(--cream); }
.link-soft .ic { width: 1.1em; height: 1.1em; }

/* showcase réalisations — carrousel éditorial */
/* bande réalisations pleine largeur, en bas du hero */
.showcase {
  align-self: stretch; width: auto; max-width: none;
  margin: clamp(22px, 4vh, 40px) calc(-1 * clamp(16px, 4vw, 40px)) 0;
  padding: clamp(16px, 2.6vh, 24px) clamp(16px, 4vw, 40px) 4px;
  border-top: 1px solid rgba(246, 239, 228, .1);
  background: linear-gradient(to top, rgba(8, 5, 4, .5), transparent);
}
.showcase-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; padding: 0 2px; }
.showcase-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 800; font-size: 18px; letter-spacing: .2px; color: var(--cream);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .55);
}
.showcase-kicker .ic { width: 1.05em; height: 1.05em; }
.showcase-all { background: none; border: none; cursor: pointer; font: 700 13.5px var(--font-body); color: var(--orange-2); transition: color .2s; }
.showcase-all:hover { color: var(--orange); }

.rail {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity;
  padding: 4px 2px 16px; scrollbar-width: none; cursor: grab;
}
.rail::-webkit-scrollbar { display: none; }
.rail:active { cursor: grabbing; }
.rcard {
  position: relative; flex: 0 0 auto; width: clamp(200px, 44vw, 250px); aspect-ratio: 4 / 5;
  border: none; padding: 0; cursor: pointer; border-radius: 20px; overflow: hidden;
  scroll-snap-align: start; background: #0d0a09;
  box-shadow: 0 22px 48px -20px rgba(0, 0, 0, .85);
  transition: transform .3s cubic-bezier(.3, 1, .4, 1), box-shadow .3s;
}
.rcard-img { position: absolute; inset: 0; background-size: cover; background-position: center 54%; transform: scale(1.34); transform-origin: center; transition: transform .55s cubic-bezier(.3, 1, .4, 1); }
.rcard-img2 { opacity: 0; transition: opacity .55s ease, transform .55s cubic-bezier(.3, 1, .4, 1); }
.rcard:hover .rcard-img2 { opacity: 1; }
.rcard::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(10, 6, 4, .92), rgba(10, 6, 4, .15) 46%, transparent 66%); }
.rcard:hover { transform: translateY(-6px); box-shadow: 0 30px 58px -20px rgba(244, 86, 42, .5); }
.rcard:hover .rcard-img { transform: scale(1.42); }
.rcard-tag {
  position: absolute; top: 11px; left: 11px; z-index: 2;
  font: 700 10.5px var(--font-body); letter-spacing: .3px; color: #fff;
  background: var(--grad); padding: 4px 10px; border-radius: 100px; box-shadow: 0 4px 12px rgba(244, 86, 42, .5);
}
.rcard-name {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 14px 14px 15px; text-align: left;
  font-family: var(--font-head); font-weight: 700; font-size: 16px; line-height: 1.15; color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .75);
}
.rcard-count {
  display: inline-block; margin-left: 8px; font: 700 10px var(--font-body); font-style: normal; letter-spacing: .3px;
  color: var(--cream); background: rgba(255, 255, 255, .16); padding: 2px 8px; border-radius: 100px; vertical-align: middle;
}

/* fond vivant : dés + meeples qui flottent */
.life { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.life .piece { position: absolute; opacity: .07; animation: drift var(--dur, 20s) ease-in-out var(--delay, 0s) infinite alternate; }
.life .piece .die, .life .piece .meeple { width: 100%; height: auto; display: block; }
@keyframes drift {
  0%   { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(16px, -30px) rotate(45deg); }
}

/* interactions souris : lissage parallaxe */
.hero-roll { transition: transform .3s ease-out; }
.brand-logo { transition: transform .3s ease-out; }

/* dés du hero cliquables */
.hero-roll .hd { cursor: pointer; }
.hero-roll .hd:hover { filter: drop-shadow(0 13px 28px rgba(244, 86, 42, .6)) brightness(1.08); }
.die.spin { animation: spin .6s cubic-bezier(.3, 1.4, .5, 1) !important; }
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(720deg); } }

/* logo qui bondit + petits dés qui dégringolent */
.brand-logo.hop { animation: hop .6s cubic-bezier(.3, 1.5, .4, 1); }
@keyframes hop {
  0%, 100% { transform: translateY(0) rotate(0); }
  30% { transform: translateY(-16px) rotate(-14deg); }
  55% { transform: translateY(-3px) rotate(10deg); }
  75% { transform: translateY(-6px) rotate(-4deg); }
}
.spawn-die { position: fixed; width: 24px; height: 24px; pointer-events: none; z-index: 60; animation: spawnfall .95s ease-in forwards; }
.spawn-die .die { width: 100%; height: 100%; }
@keyframes spawnfall { to { transform: translate(var(--dx), 74px) rotate(var(--rot)); opacity: 0; } }

/* JACKPOT triple-six */
.jackpot-flash {
  position: fixed; inset: 0; z-index: 70; pointer-events: none;
  background: radial-gradient(circle at 50% 42%, rgba(255, 138, 61, .55), rgba(244, 86, 42, .15) 45%, transparent 66%);
  animation: jflash .95s ease-out forwards;
}
@keyframes jflash { 0% { opacity: 0; } 14% { opacity: 1; } 100% { opacity: 0; } }
.jackpot-banner {
  position: fixed; left: 50%; top: 27%; transform: translate(-50%, -50%);
  z-index: 75; text-align: center; pointer-events: none;
  animation: jpop .55s cubic-bezier(.3, 1.6, .4, 1);
}
/* les vrais dés du hero brillent pendant le jackpot */
.hero-roll .die.celebrate { filter: drop-shadow(0 0 22px rgba(255, 209, 102, .95)) drop-shadow(0 12px 30px rgba(244, 86, 42, .7)) !important; }
.jackpot-banner strong {
  display: block; margin-top: 12px; font-family: var(--font-head); font-weight: 800;
  font-size: clamp(34px, 7vw, 52px); letter-spacing: .5px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 8px 40px rgba(244, 86, 42, .4);
}
.jackpot-banner em { display: block; margin-top: 2px; font-style: normal; font-weight: 700; font-size: 15px; color: var(--cream); }
@keyframes jpop { from { transform: translate(-50%, -50%) scale(.3); opacity: 0; } }
.jackpot-die { position: fixed; top: -8vh; z-index: 72; pointer-events: none; animation: jackfall linear forwards; }
.jackpot-die .die { width: 100%; height: auto; display: block; }
@keyframes jackfall { to { transform: translateY(118vh) rotate(var(--rot)); opacity: .2; } }

@media (prefers-reduced-motion: reduce) {
  .hd1, .hd2, .hd3, .life .piece, .bg-photo, .btn:hover .cta-die { animation: none !important; }
  .life, .hero-roll, .brand-logo { transition: none; }
}

/* toast erreur réseau */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(120%);
  background: #2B211B; color: var(--cream); border: 1px solid var(--card-border-hover);
  padding: 13px 22px; border-radius: 100px; font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow-pop); z-index: 60; transition: transform .35s cubic-bezier(.3, 1.3, .5, 1);
}
.toast.on { transform: translateX(-50%) translateY(0); }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .choices--3, .choices--2 { grid-template-columns: 1fr; }
  .choices--list { grid-template-columns: 1fr; }
  .fields--2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 10px; }
  .stat { display: flex; align-items: baseline; gap: 12px; padding: 15px 18px; text-align: left; }
  .mif { display: none; }
  .screen { padding-bottom: 60px; }
  .choice--photo .ph { aspect-ratio: 16 / 9; }
}
@media (max-height: 700px) {
  .hero-mascotte { width: 64px; margin-bottom: 4px; }
  .gallery img { aspect-ratio: 16/10; }
}
