/* Overkilo — landing page
   Palette Voyage : nuit #1B2A4A · étiquette #FF6B35 · soleil #FFC845 · lagon #2EC4B6 · ciel #A9DEF9 · billet #FFF6E9 · rose #FF4F8B */
:root {
  --nuit: #1B2A4A;
  --orange: #FF6B35;
  --soleil: #FFC845;
  --lagon: #2EC4B6;
  --ciel: #A9DEF9;
  --billet: #FFF6E9;
  --rose: #FF4F8B;
  --blanc: #FFFFFF;
  --f-display: 'Luckiest Guy', 'Fredoka', system-ui, sans-serif;
  --f-title: 'Fredoka', system-ui, sans-serif;
  --f-body: 'Nunito', system-ui, sans-serif;
  --radius: 28px;
  --shadow: 0 6px 0 var(--nuit);
  --wrap: 1180px;
  --header: 76px;
  --sec: clamp(76px, 9vw, 128px);
  --head-gap: clamp(30px, 4vw, 52px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--nuit);
  background: var(--billet);
  overflow-x: clip;
}
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-title); font-weight: 700; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--nuit); color: var(--billet); padding: 10px 16px; border-radius: 12px; font-weight: 800; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 8px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 12px 26px;
  border: 3px solid var(--nuit); border-radius: 999px;
  font-family: var(--f-title); font-weight: 700; font-size: 19px; line-height: 1; text-decoration: none;
  cursor: pointer; box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease, background-color .2s ease;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 9px 0 var(--nuit); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--nuit); }
.btn-primary { background: var(--orange); color: var(--blanc); }
.btn-secondary { background: var(--blanc); color: var(--nuit); }
.btn-small { min-height: 44px; padding: 8px 18px; font-size: 16px; box-shadow: 0 4px 0 var(--nuit); }
.btn-small:hover { box-shadow: 0 6px 0 var(--nuit); }

/* ---------- En-tête ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled { background: rgba(255, 246, 233, .94); backdrop-filter: blur(8px); box-shadow: 0 2px 0 rgba(27, 42, 74, .08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--header); }
.brand { display: block; line-height: 0; transition: transform .2s ease; }
.brand:hover { transform: rotate(-3deg) scale(1.04); }
.brand svg { width: 150px; height: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { font-weight: 800; font-size: 16px; text-decoration: none; position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px; border-radius: 3px; background: var(--orange); transform: scaleX(0); transition: transform .2s ease; }
.nav a:not(.btn):hover::after { transform: scaleX(1); }

/* Tapis à bagages : barre de progression du scroll */
.conveyor { position: absolute; left: 0; right: 0; bottom: -10px; height: 10px; pointer-events: none; }
.conveyor::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 2px; background: repeating-linear-gradient(90deg, rgba(27,42,74,.25) 0 10px, transparent 10px 18px); }
.conveyor-bag { position: absolute; top: -14px; left: 0; width: 22px; height: 26px; transform: translateX(calc(var(--p, 0) * (100vw - 34px))); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh; box-sizing: border-box;
  display: flex; align-items: center;
  padding: calc(var(--header) + 24px) 0 96px;
  background-color: var(--lagon);
}
.hero::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background-image: var(--pattern-sparse); background-size: 300px 300px; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, .78fr); gap: clamp(30px, 4vw, 64px); align-items: center; }
.hero-text { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.ticket {
  display: inline-flex; align-items: center; gap: 9px; margin: 0;
  padding: 8px 18px 8px 13px; border-radius: 999px; background: var(--orange); color: var(--blanc);
  font-family: var(--f-title); font-weight: 600; font-size: 15px; letter-spacing: .01em; line-height: 1;
}
.tag-ic { display: flex; }
.tag-ic svg { width: 18px; height: 18px; transform: rotate(45deg); }
.tag-ic svg path { fill: var(--blanc); }
.hero-logo { width: min(620px, 100%); line-height: 0; margin: -6px 0 -4px -10px; animation: bob 4.5s ease-in-out infinite; transform-origin: 50% 60%; }
.hero-logo svg { width: 100%; height: auto; overflow: visible; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-8px) rotate(1deg); } }
.hero h1 { font-size: clamp(30px, 3.25vw, 47px); max-width: none; color: var(--nuit); }
.hero h1 .hl { background: linear-gradient(transparent 58%, var(--soleil) 58% 92%, transparent 92%); padding: 0 .08em; }
.lead { font-size: clamp(17px, 1.6vw, 20px); max-width: 32em; font-weight: 600; }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 4px; }
.facts { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 28px; }
.facts li { display: flex; align-items: center; gap: 11px; }
.facts svg { width: 40px; height: 40px; padding: 9px; box-sizing: border-box; border-radius: 12px; background: var(--soleil); fill: none; stroke: var(--nuit); stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; transform: rotate(-4deg); box-shadow: 0 3px 0 rgba(27, 42, 74, .2); }
.facts li:nth-child(1) svg { background: var(--soleil); }
.facts li:nth-child(2) svg { background: var(--billet); transform: rotate(3deg); }
.facts li:nth-child(3) svg { background: var(--rose); stroke: var(--blanc); }
.facts span { display: flex; flex-direction: column; line-height: 1.2; }
.facts b { font-family: var(--f-title); font-weight: 700; font-size: 17px; }
.facts small { font-size: 13.5px; font-weight: 600; opacity: .8; }
.pass { display: flex; margin: 6px 0 0; background: var(--billet); border: 3px solid var(--nuit); border-radius: 20px; box-shadow: 0 6px 0 var(--nuit); position: relative; }
.pass > div { padding: 10px 22px 10px; display: flex; flex-direction: column; gap: 2px; }
.pass > div + div { border-left: 2.5px dashed rgba(27,42,74,.35); }
.pass dt { font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.pass dd { margin: 0; font-family: var(--f-display); font-size: 26px; line-height: 1.1; padding-top: 2px; white-space: nowrap; }
.pass > div:nth-child(1) dd { color: var(--orange); }
.pass > div:nth-child(2) dd { color: #1A9C90; }
.pass > div:nth-child(3) dd { color: var(--rose); }
.pills { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
.pills li { background: var(--billet); border: 2.5px solid var(--nuit); border-radius: 999px; padding: 5px 14px; font-weight: 800; font-size: 15px; }

/* Le paquet : boîte valise en 3D + éventail de cartes */
.product { position: relative; height: clamp(380px, 34vw, 460px); display: grid; place-items: center; perspective: 1400px; }
.product::before { content: ""; position: absolute; left: 50%; top: 50%; width: min(84%, 380px); aspect-ratio: 1; transform: translate(-50%, -52%); border-radius: 50%; background: var(--soleil); border: 4px solid var(--nuit); box-shadow: 0 10px 0 var(--nuit); }
.product .fan { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.product .fan .card { position: absolute; left: 0; top: 0; filter: drop-shadow(0 12px 10px rgba(27,42,74,.25)); animation: hover-card var(--dur, 6s) ease-in-out infinite; animation-delay: var(--dl, 0s); }
@keyframes hover-card { 0%, 100% { translate: 0 0; rotate: 0deg; } 30% { translate: 5px -16px; rotate: 2.5deg; } 65% { translate: -4px -6px; rotate: -2deg; } }
.box3d { animation: box-bob 5s ease-in-out infinite; }
@keyframes box-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }
.box3d { --w: clamp(140px, 11.5vw, 168px); left: calc(-22% - 41px); top: calc(12% + 25px); --h: calc(var(--w) * 140 / 93); --d: calc(var(--w) * 20 / 93);
  position: relative; width: var(--w); height: var(--h); transform-style: preserve-3d;
  transform: none; }
.box3d > div { position: absolute; top: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.box3d .face { background: #2EC4B6; border-radius: 3px; left: 0; width: var(--w); height: var(--h); transform: translateZ(calc(var(--d) / 2)); }
.box3d .side { background: #2EC4B6; border-radius: 3px; left: calc((var(--w) - var(--d)) / 2); width: var(--d); height: var(--h); transform: rotateY(-90deg) translateZ(calc(var(--w) / 2)); filter: brightness(.86); }
.box3d .top { left: 0; top: calc((var(--h) - var(--d)) / 2) !important; width: var(--w); height: var(--d); background: #27B0A3; border: 2px solid var(--nuit); border-radius: 10px; transform: rotateX(90deg) translateZ(calc(var(--h) / 2)); }
.box3d svg { display: block; width: 100%; height: 100%; overflow: visible; }
.box3d .face { overflow: visible; }
.product-shadow { position: absolute; left: 50%; bottom: 6%; width: 62%; height: 26px; transform: translateX(-50%); border-radius: 50%; background: rgba(27,42,74,.28); filter: blur(10px); }
.product-label { position: absolute; right: 2%; bottom: 8%; z-index: 5; background: var(--soleil); border: 3px solid var(--nuit); border-radius: 14px; padding: 8px 14px 6px; font-family: var(--f-display); font-size: 19px; line-height: 1.05; transform: rotate(-5deg); box-shadow: 0 5px 0 var(--nuit); text-align: center; }
.product-label small { display: block; font-family: var(--f-body); font-weight: 800; font-size: 12.5px; }

.wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 90px; display: block; z-index: 3; }

/* ---------- Bandeau défilant ---------- */
.marquee { background: var(--soleil); border-block: 3px solid var(--nuit); overflow: hidden; padding: 18px 0; position: relative; z-index: 4; }
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee-item { display: inline-flex; align-items: center; gap: 26px; padding-right: 26px; font-family: var(--f-display); font-size: clamp(26px, 3.4vw, 42px); line-height: 1; white-space: nowrap; letter-spacing: .02em; padding-top: 4px; }
.marquee-item svg { width: 30px; height: 30px; flex-shrink: 0; margin-top: -4px; }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: var(--sec) 0; }
.eyebrow { display: inline-block; font-weight: 800; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; background: var(--nuit); color: var(--billet); padding: 6px 14px; border-radius: 999px; }
.section-head { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: var(--head-gap); max-width: 780px; }
.section-head.center { align-items: center; text-align: center; margin-inline: auto; }
.section-head h2 { font-size: clamp(34px, 4.8vw, 62px); }
.section-head p { font-size: clamp(17px, 1.5vw, 19px); max-width: 36em; }

/* Comment on joue : chaque étape est une « carte » du jeu */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; list-style: none; margin: 0; padding: 0 0 8px; }
.step { --c: var(--lagon); background: var(--c); border: 3px solid var(--nuit); border-radius: 28px; box-shadow: 0 8px 0 var(--nuit); padding: 14px 14px 22px; display: flex; flex-direction: column; gap: 12px; transition: transform .25s ease; }
.step:nth-child(2) { --c: var(--soleil); }
.step:nth-child(3) { --c: var(--orange); }
.step:nth-child(4) { --c: var(--rose); }
.step:nth-child(odd) { rotate: -1deg; }
.step:nth-child(even) { rotate: 1deg; }
.step:hover { transform: translateY(-8px); rotate: 0deg; }
.step-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.step-num { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--nuit); background: var(--billet); display: grid; place-items: center; font-family: var(--f-display); font-size: 24px; line-height: 1; padding-top: 4px; box-sizing: border-box; }
.step-tag { background: var(--billet); border: 2.5px solid var(--nuit); border-radius: 999px; padding: 3px 12px; font-weight: 800; font-size: 13px; letter-spacing: .04em; }
.step-panel { background: var(--billet); border: 3px solid var(--nuit); border-radius: 18px; height: 168px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.step h3 { font-size: 23px; padding: 4px 8px 0; }
.step p { font-size: 16px; line-height: 1.55; padding: 0 8px; }
.backs { display: flex; }
.backs .card { margin: 0 -10px; transition: transform .3s ease; }
.backs .card:nth-child(1) { transform: rotate(-14deg) translateY(8px); }
.backs .card:nth-child(2) { transform: rotate(-5deg); }
.backs .card:nth-child(3) { transform: rotate(5deg) translateY(-14px); }
.backs .card:nth-child(4) { transform: rotate(14deg) translateY(-4px); }
.step:hover .backs .card:nth-child(3) { transform: rotate(5deg) translateY(-26px); }
.step:hover .backs .card:nth-child(4) { transform: rotate(14deg) translateY(-16px); }
.step-panel > .card { transform: rotate(-6deg); transition: transform .3s ease; }
.step:hover .step-panel > .card { transform: rotate(4deg) scale(1.06); }
.stamp { white-space: nowrap; font-family: var(--f-display); font-size: 25px; line-height: 1; color: var(--rose); border: 4px solid var(--rose); border-radius: 14px; padding: 10px 14px 6px; transform: rotate(-8deg); letter-spacing: .03em; }
.step:hover .stamp { animation: thump .5s ease; }
@keyframes thump { 0% { transform: rotate(-8deg) scale(1); } 40% { transform: rotate(-8deg) scale(1.15); } 100% { transform: rotate(-8deg) scale(1); } }
.piles { display: flex; align-items: flex-end; gap: 14px; font-weight: 800; font-size: 13px; text-align: center; }
.piles > div { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.piles > div > svg { width: 62px; height: 70px; }
.stack { position: relative; width: 62px; height: 70px; }
.stack .card { position: absolute; left: 6px; top: 2px; }
.stack .card:nth-child(1) { transform: rotate(-10deg) translate(-6px, 2px); }
.stack .card:nth-child(2) { transform: rotate(-2deg); }
.stack .card:nth-child(3) { transform: rotate(7deg) translate(5px, -2px); }
.arrow { font-family: var(--f-display); font-size: 30px; color: var(--orange); }

/* ---------- La pesée (scroll) ---------- */
.weigh { height: calc(260vh + 2 * var(--sec)); padding: var(--sec) 0; box-sizing: border-box; background: var(--nuit); color: var(--billet); }
.weigh-sticky { position: sticky; top: calc(var(--header) + 24px); }
.weigh-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.weigh h2 { font-size: clamp(32px, 4.2vw, 54px); color: var(--soleil); }
.weigh .intro { margin-top: 14px; font-size: 18px; color: var(--billet); opacity: .9; }
.weigh-steps { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-direction: column; gap: 10px; }
.weigh-steps li { padding: 12px 16px; border-radius: 16px; border: 2px solid rgba(255,246,233,.18); font-size: 16px; line-height: 1.45; opacity: .45; transition: opacity .3s ease, background-color .3s ease, border-color .3s ease, transform .3s ease; }
.weigh-steps li.is-active { opacity: 1; background: rgba(255,246,233,.08); border-color: var(--soleil); transform: translateX(8px); }
.weigh-steps b { color: var(--soleil); }
.weigh-stage { display: flex; flex-direction: column; align-items: center; gap: clamp(14px, 2.4vh, 24px); }
@media (max-height: 860px) { .slot { --s: .46; } .led .scale-value { font-size: 46px; } .weigh-steps li { padding: 9px 14px; font-size: 15px; } .weigh h2 { font-size: clamp(30px, 3.6vw, 46px); } }
@media (max-height: 720px) { .slot { --s: .4; } .weigh-note { display: none; } .weigh-steps { margin-top: 16px; gap: 6px; } }
.checkin { width: min(560px, 100%); background: #10192E; border: 4px solid var(--billet); border-radius: 26px; padding: 16px 20px 18px; box-shadow: 0 10px 0 rgba(0,0,0,.3); }
.checkin-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ciel); }
.checkin-gate { background: var(--soleil); color: var(--nuit); border-radius: 8px; padding: 2px 8px; letter-spacing: .06em; }
.checkin-screen { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; background: #05080F; border: 2px solid #2A3A5E; border-radius: 16px; padding: 12px 18px; }
.led { display: flex; align-items: baseline; gap: 8px; color: var(--soleil); text-shadow: 0 0 14px rgba(255,200,69,.55); font-family: 'Courier New', ui-monospace, monospace; font-weight: 700; }
.led .scale-value { font-size: 58px; line-height: 1; letter-spacing: .04em; }
.led small { font-size: 22px; }
.checkin-status span { display: inline-block; font-weight: 800; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; border-radius: 999px; padding: 6px 12px; }
.st-over { background: var(--rose); color: var(--blanc); animation: blink 1.2s steps(2, start) infinite; }
.st-ok { display: none !important; background: var(--lagon); color: var(--nuit); }
.weigh.is-done .st-over { display: none; }
.weigh.is-done .st-ok { display: inline-block !important; }
.weigh.is-done .led { color: var(--lagon); text-shadow: 0 0 14px rgba(46,196,182,.6); }
@keyframes blink { to { opacity: .45; } }
.checkin .scale-bar { margin-top: 14px; background: #24324F; border-color: #3A4D75; }
.belt-wrap { position: relative; width: min(560px, 100%); display: flex; flex-direction: column; align-items: center; }
.slots { position: relative; z-index: 2; display: flex; gap: 12px; margin-bottom: -10px; }
.belt { position: relative; width: 100%; height: 34px; border-radius: 999px; background: repeating-linear-gradient(90deg, #3A4560 0 18px, #2C3650 18px 36px); border: 4px solid var(--billet); display: flex; justify-content: space-around; align-items: center; padding: 0 18px; box-sizing: border-box; animation: belt 1.6s linear infinite; }
.belt span { width: 14px; height: 14px; border-radius: 50%; background: #8C98B5; border: 2px solid #1A2238; }
@keyframes belt { to { background-position: 36px 0; } }
.slot { --s: .46; } .scale-value { font-size: 46px; } .weigh-steps li { padding: 9px 14px; font-size: 15px; } .weigh h2 { font-size: clamp(30px, 3.6vw, 46px); } }
@media (max-height: 720px) { .slot { --s: .4; } .weigh-note { display: none; } .weigh-steps { margin-top: 16px; gap: 6px; } }
.suitcase-box { position: relative; margin-top: 38px; background: var(--orange); border: 4px solid var(--billet); border-radius: 34px; padding: 34px 26px 26px; box-shadow: 0 12px 0 rgba(0,0,0,.25); }
.suitcase-box::before { content: ""; position: absolute; left: 50%; top: -38px; width: 120px; height: 38px; transform: translateX(-50%); border: 4px solid var(--billet); border-bottom: 0; border-radius: 16px 16px 0 0; }
.suitcase-box::after { content: "TA VALISE"; position: absolute; left: 50%; top: 8px; transform: translateX(-50%); font-family: var(--f-display); font-size: 16px; letter-spacing: .12em; color: var(--nuit); }
.slots { display: flex; gap: 12px; }
.slot { --s: .54; width: calc(238px * var(--s)); height: calc(333px * var(--s)); perspective: 900px; }
.slot-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.slot.is-swapped .slot-inner { transform: rotateY(180deg); }
.slot-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.slot-face.back { transform: rotateY(180deg); }
.scale { width: min(520px, 100%); background: var(--billet); color: var(--nuit); border-radius: 26px; padding: 18px 22px 20px; border: 3px solid var(--soleil); }
.scale-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.scale-label { font-weight: 800; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; }
.scale-value { font-family: var(--f-display); font-size: 56px; line-height: 1; }
.scale-value small { font-size: 26px; margin-left: 4px; }
.scale-bar { position: relative; height: 18px; border-radius: 999px; background: #E9DFCF; margin-top: 12px; overflow: hidden; border: 2px solid var(--nuit); }
.scale-fill { position: absolute; inset: 0 auto 0 0; width: 90%; border-radius: 999px; background: var(--rose); transition: width .5s cubic-bezier(.2,.8,.2,1), background-color .4s ease; }
.scale-ticks { display: flex; justify-content: space-between; font-size: 12px; font-weight: 800; margin-top: 6px; opacity: .7; }
.onboarding-stamp { position: absolute; right: -18px; top: -26px; z-index: 3; font-family: var(--f-display); font-size: 28px; line-height: 1; color: var(--blanc); background: var(--rose); border: 4px solid var(--nuit); border-radius: 16px; padding: 12px 16px 8px; transform: rotate(10deg) scale(0); transition: transform .45s cubic-bezier(.3,1.6,.5,1); white-space: nowrap; }
.weigh.is-done .onboarding-stamp { transform: rotate(10deg) scale(1); }
.weigh-note { font-size: 13.5px; opacity: .7; text-align: center; }
.weigh-caption { display: none; min-height: 3.2em; text-align: center; font-size: 16px; }
.weigh-caption b { color: var(--soleil); }

/* ---------- Galerie des cartes (défilement horizontal) ---------- */
.gallery { background: var(--billet); }
.gallery-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; box-sizing: border-box; padding: calc(var(--header) + clamp(20px, 4vh, 48px)) 0 clamp(20px, 4vh, 40px); display: flex; flex-direction: column; justify-content: center; gap: clamp(20px, 4vh, 44px); overflow: hidden; }
.gallery .section-head { margin-bottom: 0; max-width: 900px; }
.gallery-track { --s: .9; display: flex; gap: clamp(26px, 3vw, 44px); padding: 16px max(32px, calc((100vw - var(--wrap)) / 2)) 24px; width: max-content; will-change: transform; }
.card-item { flex-shrink: 0; width: calc(238px * var(--s)); margin: 0; display: flex; flex-direction: column; gap: 22px; }
.card-item .card { transition: transform .3s ease; filter: drop-shadow(0 10px 0 rgba(27,42,74,.15)); }
.card-item:nth-child(odd) .card { transform: rotate(-2deg); }
.card-item:nth-child(even) .card { transform: rotate(2deg); }
.card-item:hover .card { transform: rotate(0) translateY(-10px) scale(1.03); }
.card-item figcaption { display: flex; flex-direction: column; gap: 6px; }
.card-item .meta { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; }
.badge { border: 2px solid var(--nuit); border-radius: 999px; padding: 1px 10px; font-size: 13px; font-weight: 800; }
.badge.objet { background: var(--lagon); }
.badge.pouvoir { background: var(--orange); color: var(--blanc); }
.badge.tresor { background: var(--soleil); }
.badge.boulet { background: var(--nuit); color: var(--billet); }
.badge.aide { background: var(--blanc); }
.card-item h3 { font-size: 20px; }
.card-item p { font-size: 15px; line-height: 1.45; }
@media (max-height: 860px) { .gallery-track { --s: .76; } .gallery .section-head p { display: none; } }
@media (max-height: 700px) { .gallery-track { --s: .62; } .card-item p { display: none; } }

/* ---------- Le Boulet ---------- */
.boulet { background: var(--rose); color: var(--nuit); overflow: hidden; }
.boulet-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; align-items: center; }
.boulet-cards { position: relative; display: flex; justify-content: center; align-items: center; min-height: 460px; }
.boulet-cards .main { --s: 1.2; position: relative; z-index: 2; filter: drop-shadow(0 18px 0 rgba(27,42,74,.25)); }
.boulet-cards.is-in .main { animation: shake 1.1s ease .2s 2; }
.boulet-cards .side { --s: .78; position: absolute; right: 4%; bottom: 4%; transform: rotate(14deg); filter: drop-shadow(0 12px 0 rgba(27,42,74,.2)); }
@keyframes shake {
  0%, 100% { transform: rotate(0); }
  15% { transform: rotate(-5deg) scale(1.03); } 30% { transform: rotate(4deg); } 45% { transform: rotate(-3deg) scale(1.02); }
  60% { transform: rotate(2deg); } 75% { transform: rotate(-1deg); }
}
.boulet h2 { font-size: clamp(34px, 4.8vw, 62px); }
.boulet .big15 { font-family: var(--f-display); font-size: clamp(90px, 12vw, 160px); line-height: .8; color: var(--blanc); -webkit-text-stroke: 4px var(--nuit); paint-order: stroke fill; text-shadow: 0 8px 0 var(--nuit); display: block; margin-bottom: 18px; }
.boulet p { font-size: clamp(17px, 1.5vw, 19px); margin-top: 18px; font-weight: 600; }
.boulet .perso { margin-top: 26px; background: var(--billet); border: 3px solid var(--nuit); border-radius: 22px; padding: 16px 20px; font-size: 16.5px; box-shadow: 0 6px 0 var(--nuit); }

/* ---------- Chiffres ---------- */
.stats { background: var(--soleil); border-block: 3px solid var(--nuit); padding: clamp(56px, 7vw, 84px) 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0 auto; padding: 0; }
.stats-grid li { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center; gap: 14px; }
.stat-num { display: block; font-family: var(--f-display); font-size: clamp(54px, 6.4vw, 88px); line-height: 1; padding-top: .08em; color: var(--blanc); -webkit-text-stroke: 3px var(--nuit); paint-order: stroke fill; text-shadow: 0 6px 0 var(--nuit); white-space: nowrap; }
.stat-label { display: block; font-weight: 800; font-size: 18px; line-height: 1.3; max-width: 12em; }

/* ---------- Tournois ---------- */
.tournois { background: var(--nuit); color: var(--billet); overflow: hidden; }
.tournois-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 5vw, 72px); align-items: center; }
.trophy { position: relative; display: grid; place-items: center; }
.trophy svg { width: min(360px, 80%); height: auto; filter: drop-shadow(0 14px 0 rgba(0,0,0,.25)); }
.trophy .soon { position: absolute; right: 8%; top: 6%; background: var(--rose); color: var(--blanc); border: 3px solid var(--billet); border-radius: 14px; padding: 8px 14px 4px; font-family: var(--f-display); font-size: 22px; transform: rotate(10deg); }
.tournois h2 { font-size: clamp(34px, 4.8vw, 62px); color: var(--soleil); }
.tournois .lead2 { margin-top: 18px; font-size: clamp(17px, 1.5vw, 19px); }
.ladder { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; counter-reset: l; }
.ladder li { display: flex; align-items: center; gap: 16px; background: rgba(255,246,233,.07); border: 2px solid rgba(255,246,233,.2); border-radius: 18px; padding: 14px 18px; font-size: 17px; }
.ladder li::before { counter-increment: l; content: counter(l); flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--soleil); color: var(--nuit); font-family: var(--f-display); font-size: 22px; padding-top: 3px; box-sizing: border-box; }
.ladder li:nth-child(2)::before { background: var(--orange); color: var(--blanc); }
.ladder li:nth-child(3)::before { background: var(--rose); color: var(--blanc); }
.tournois .ctas { margin-top: 28px; }
.tournois .fine { margin-top: 16px; font-size: 14px; opacity: .7; }

/* ---------- Galerie photos ---------- */
.photos { background: var(--billet); }
.polaroids { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); list-style: none; margin: 0; padding: 0; }
.polaroid { background: var(--blanc); border: 3px solid var(--nuit); border-radius: 10px; padding: 12px 12px 48px; box-shadow: 0 8px 0 var(--nuit); rotate: var(--t, -2deg); transition: transform .3s ease, rotate .3s ease, opacity .7s ease; position: relative; }
.polaroid:hover { rotate: 0deg; }
.polaroid .ph { aspect-ratio: 1; border-radius: 6px; background: repeating-linear-gradient(45deg, #EAF8F6 0 14px, #F6FCFB 14px 28px); border: 2px dashed rgba(27,42,74,.35); display: grid; place-items: center; }
.polaroid .ph svg { width: 44px; height: 44px; opacity: .55; }
.polaroid .tape { position: absolute; left: 50%; top: -14px; width: 74px; height: 24px; transform: translateX(-50%) rotate(-4deg); background: rgba(255, 200, 69, .85); border: 2px solid rgba(27,42,74,.25); }
.photos-note { margin-top: var(--head-gap); text-align: center; font-weight: 700; font-size: 17px; }

/* ---------- Kickstarter ---------- */
.launch { background: var(--lagon); background-image: var(--pattern); background-size: 168px 168px; }
.tag-card { position: relative; max-width: 860px; margin-inline: auto; background: var(--billet); border: 4px solid var(--nuit); border-radius: 36px; padding: clamp(40px, 5vw, 56px) clamp(24px, 5vw, 56px) clamp(36px, 5vw, 50px) clamp(64px, 8vw, 96px); box-shadow: 0 14px 0 var(--nuit); }
.tag-card::before { content: ""; position: absolute; left: clamp(20px, 3vw, 34px); top: 50%; width: 28px; height: 28px; border-radius: 50%; border: 4px solid var(--nuit); background: var(--lagon); transform: translateY(-50%); }
.tag-card h2 { font-size: clamp(32px, 4.4vw, 54px); }
.tag-card .date { display: inline-block; margin-top: 16px; font-family: var(--f-display); font-size: clamp(20px, 2.6vw, 30px); line-height: 1.15; background: var(--soleil); border: 3px solid var(--nuit); border-radius: 14px; padding: 8px 14px 4px; transform: rotate(-2deg); }
.tag-card > p { margin-top: 18px; font-size: clamp(17px, 1.5vw, 18.5px); }
.signup { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.signup label { flex-basis: 100%; font-weight: 800; font-size: 15px; }
.signup input { flex: 1 1 260px; min-width: 0; min-height: 56px; border: 3px solid var(--nuit); border-radius: 999px; padding: 0 22px; font: inherit; font-size: 18px; color: var(--nuit); background: var(--blanc); }
.signup input::placeholder { color: #6B7590; }
.form-msg { flex-basis: 100%; font-weight: 800; min-height: 1.6em; }
.price { margin-top: 10px; font-size: 15px; opacity: .85; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 860px; margin-inline: auto; display: flex; flex-direction: column; gap: 14px; }
.faq-list details { background: var(--blanc); border: 3px solid var(--nuit); border-radius: 22px; box-shadow: 0 5px 0 var(--nuit); overflow: hidden; }
.faq-list summary { cursor: pointer; list-style: none; padding: 20px 66px 20px 24px; font-family: var(--f-title); font-weight: 600; font-size: clamp(18px, 1.7vw, 21px); line-height: 1.3; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 34px; height: 34px; margin-top: -17px; border-radius: 50%; background: var(--soleil) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 4v12M4 10h12' stroke='%231B2A4A' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / 18px no-repeat; border: 2.5px solid var(--nuit); transition: transform .25s ease; }
.faq-list details[open] summary::after { transform: rotate(45deg); background-color: var(--orange); }
.faq-list .answer { padding: 0 24px 22px; font-size: 17px; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--nuit); color: var(--billet); padding: clamp(56px, 7vw, 76px) 0 36px; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 30px; }
.footer-grid svg { width: 210px; height: auto; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 14px 24px; font-weight: 800; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { color: var(--soleil); }
.footer-note { margin-top: 40px; padding-top: 22px; border-top: 2px solid rgba(255,246,233,.2); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; opacity: .8; }

/* ---------- Apparitions au scroll ---------- */
.reveal { opacity: 0; transform: translateY(46px) rotate(var(--rr, 0deg)); transition: opacity .7s ease, transform .8s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.pop { opacity: 0; transform: scale(.6) rotate(-6deg); transition: opacity .5s ease, transform .6s cubic-bezier(.3,1.5,.5,1); transition-delay: var(--d, 0s); }
.pop.is-in { opacity: 1; transform: none; }

/* ---------- Tablette ---------- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .hero-text { align-items: center; }
  .hero-logo { margin-left: 0; }
  .ctas, .pills { justify-content: center; }
  .pass { margin-inline: auto; }
  .facts { justify-content: center; }

  .product { height: 440px; margin-top: 10px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .weigh-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; text-align: center; }
  .weigh-steps { display: none; }
  .weigh-caption { display: block; }
  .boulet-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .tournois-grid { grid-template-columns: minmax(0, 1fr); }
  .trophy svg { width: min(240px, 60%); }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
  .polaroids { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  :root { --header: 64px; }
  body { font-size: 17px; }
  .btn { font-size: 17px; padding: 12px 20px; min-height: 52px; }
  .ctas { width: 100%; justify-content: center; }
  .pass { width: 100%; }
  .facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; }
  .facts li { flex-direction: column; text-align: center; gap: 7px; }
  .facts span { align-items: center; }
  .facts b { font-size: 15px; }
  .facts small { font-size: 12px; }
  .facts svg { width: 36px; height: 36px; padding: 8px; }
  .pass > div { flex: 1; padding: 9px 10px; align-items: center; text-align: center; }
  .pass dd { font-size: 21px; }
  .pass dt { font-size: 11px; letter-spacing: .1em; }
  .nav a:not(.btn) { display: none; }
  .brand svg { width: 118px; }
  .ticket { font-size: 14px; }
  .product { order: -1; height: 280px; margin: -6px 0 -10px; }
  .product::before { width: 250px; }
  .product .fan { transform: scale(.56); }
  .box3d { --w: 104px; left: -11%; top: 14%; }
  .product .fan { left: 56%; }
  .product-label { font-size: 15px; right: 4%; bottom: 6%; }
  .hero-text { gap: 16px; }
  .hero h1 { font-size: 31px; }

  .steps { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .step-panel { height: 150px; }
  .weigh-sticky { padding-top: calc(var(--header) + 10px); }
  .weigh h2 { font-size: 30px; }
  .weigh .intro { font-size: 15.5px; margin-top: 8px; }
  .weigh-stage { gap: 14px; }
  .weigh-note { display: none; }
  .weigh-sticky { top: calc(var(--header) + 12px); }
  .checkin { padding: 12px 14px 14px; }
  .led .scale-value { font-size: 42px; }
  .checkin-status span { font-size: 11.5px; padding: 5px 9px; }
  .checkin-head { font-size: 11px; }
  .belt { height: 26px; }
  .slot { --s: .31; }
  .slots { gap: 7px; }
  .scale { padding: 14px 16px 16px; }
  .scale-value { font-size: 42px; }
  .onboarding-stamp { right: -6px; top: -34px; font-size: 20px; }
  .gallery-track { --s: .8; padding-inline: 20px; gap: 22px; }
  .gallery .section-head p { display: block; font-size: 15.5px; }
  .gallery .section-head { gap: 12px; }
  .gallery-sticky { justify-content: flex-start; padding-top: calc(var(--header) + 28px); gap: 22px; }
  .card-item h3 { font-size: 17px; }
  .card-item p { font-size: 14px; }
  .boulet-cards { min-height: 330px; }
  .boulet-cards .main { --s: .82; }
  .boulet-cards .side { --s: .54; right: 2%; }
  .stat-label { font-size: 16px; }
  .polaroid { padding: 8px 8px 30px; }
  .signup .btn { flex: 1 1 100%; }
  .tag-card { padding: 34px 22px 30px 50px; border-radius: 28px; }
  .tag-card::before { left: 16px; width: 20px; height: 20px; border-width: 3px; }
  .faq-list summary { padding: 18px 60px 18px 20px; }
  .faq-list .answer { padding: 0 20px 20px; font-size: 16px; }
  .footer-grid { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 380px) {
  .facts b { font-size: 14px; }
  .facts small { font-size: 11.5px; }
}
@media (max-width: 640px) and (max-height: 760px) {
  .weigh .intro { display: none; }
  .weigh h2 { font-size: 26px; }
  .slot { --s: .27; }
  .led .scale-value { font-size: 34px; }
  .checkin-screen { padding: 8px 12px; margin-top: 8px; }
  .weigh-caption { font-size: 14.5px; min-height: 0; }
  .gallery-track { --s: .62; }
  .gallery .section-head p { display: none; }
  .gallery-sticky { padding-top: calc(var(--header) + 20px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .pop { opacity: 1; transform: none; }
}

@media (max-width: 640px) { .br-d { display: none; } }
.box3d .side, .box3d .top { display: none; }
.box3d .face { transform: none; border-radius: 10px; outline: 3px solid var(--nuit); box-shadow: 0 7px 0 var(--nuit); }
.product .box3d { left: 0; top: -2%; --w: clamp(170px, 15vw, 210px); }
@media (max-width: 760px) { .product .box3d { --w: 140px; } }
.product .fan { margin-top: 66px; }
@media (max-width: 760px) { .product .fan { margin-top: 40px; } }

/* Sélecteur de langue */
.lang-slot { display: inline-flex; }
.lang { position: relative; font-family: var(--f-title); }
.lang-btn { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px 7px 12px; border-radius: 999px; border: 3px solid var(--nuit); background: var(--billet); color: var(--nuit); font: 700 15px/1 var(--f-title); box-shadow: 0 3px 0 var(--nuit); transition: background .15s ease, transform .15s ease, box-shadow .15s ease; -webkit-tap-highlight-color: transparent; }
.lang-btn:hover, .lang.open .lang-btn { background: var(--soleil); }
.lang-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--nuit); }
.lang-btn svg { width: 18px; height: 18px; flex: none; }
.lang-btn .lang-chev { width: 10px; height: 10px; transition: transform .2s ease; }
.lang.open .lang-chev { transform: rotate(180deg); }
.lang-pop { position: absolute; right: 0; top: calc(100% + 10px); z-index: 80; display: flex; flex-direction: column; gap: 2px; min-width: 170px; max-height: min(70vh, 480px); overflow: auto; overscroll-behavior: contain; padding: 6px; box-sizing: border-box; background: var(--billet); border: 3px solid var(--nuit); border-radius: 16px; box-shadow: 0 6px 0 var(--nuit); text-align: left;
  opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-8px) scale(.96); transform-origin: top right; transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s; }
.lang.open .lang-pop { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition: opacity .18s ease, transform .22s cubic-bezier(.2,.9,.3,1.2), visibility 0s; }
.lang-pop a { display: block; padding: 9px 12px; border-radius: 10px; color: var(--nuit); text-decoration: none; font: 600 15px/1.2 var(--f-title); white-space: nowrap; transition: background .12s ease; }
.lang-pop a:hover { background: var(--ciel); }
.lang-pop a[aria-current] { background: var(--lagon); color: var(--blanc); }
.n-bar-r { display: flex; align-items: center; gap: 10px; }
@media (max-width: 640px) { .lang-btn { padding: 6px 9px 6px 10px; font-size: 14px; } }

/* Même mise en page dans toutes les langues : le titre et l'accroche se replient tout seuls, hauteur réservée */
.br-d { display: none !important; }
.hero h1 { max-width: 12.5em; text-wrap: balance; }
.lead { text-wrap: pretty; }
@media (min-width: 1021px) { .hero h1 { min-height: 2lh; } .lead { min-height: 3lh; } }
/* le menu de langue garde exactement le même style partout (en-tête du site, barre de la notice, mobile) */
.lang-pop a { display: block !important; margin: 0 !important; }
.lang-pop a::before, .lang-pop a::after { content: none !important; }
.lang-btn svg { width: 18px !important; height: 18px !important; }
.lang-btn svg.lang-chev { width: 10px !important; height: 10px !important; }

/* Exemple de manche (mobile/tablette) : l'explication de chaque étape est toujours visible, juste sous le titre */
@media (max-width: 1020px) {
  .weigh-caption { display: block; text-align: center; box-sizing: border-box; margin: 14px auto 0; max-width: 30em; min-height: calc(3 * 1.45em + 26px); padding: 12px 16px; border-radius: 16px; border: 2px solid var(--soleil); background: rgba(255,246,233,.08); font-size: 16px; line-height: 1.45; color: var(--billet); }
}
@media (max-width: 640px) {
  .weigh-sticky { padding-top: 0; }
  .weigh-grid { gap: 16px; }
  .weigh-caption { font-size: 15px; margin-top: 12px; }
}
@media (max-width: 640px) and (max-height: 760px) {
  .weigh-caption { font-size: 14px; min-height: calc(3 * 1.4em + 20px); padding: 9px 12px; line-height: 1.4; }
}

/* ---------- Boutons du héros : côte à côte, aussi sur mobile ---------- */
@media (max-width: 640px) {
  .hero .ctas { flex-wrap: nowrap; gap: 10px; }
  .hero .ctas .btn { flex: 1 1 0; min-width: 0; padding: 12px 10px; font-size: 16px; white-space: nowrap; justify-content: center; text-align: center; }
}
/* ---------- Bouton « J'en veux ! » flottant (mobile) : apparaît quand on descend, disparaît quand on remonte ---------- */
.buy-bar { display: none; }
@media (max-width: 1020px) {
  .buy-bar { display: inline-flex; position: fixed; z-index: 70; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); min-width: 230px; justify-content: center; box-shadow: 0 6px 0 var(--nuit), 0 10px 24px rgba(27,42,74,.25); transform: translate(-50%, calc(100% + 40px)); transition: transform .32s cubic-bezier(.2,.9,.3,1.1); }
  .buy-bar.show { transform: translate(-50%, 0); }
  .buy-bar:hover { transform: translate(-50%, 0); }
}
/* ---------- Carte d'inscription : sans l'œillet rond ---------- */
.tag-card::before { display: none !important; }
.tag-card { padding-left: clamp(24px, 5vw, 56px); }
@media (max-width: 640px) { .tag-card { padding: 32px 22px 28px; } }
/* ---------- Liens légaux du pied de page ---------- */
.legal-links { display: inline-flex; flex-wrap: wrap; gap: 6px 18px; }
.legal-links a { color: inherit; }
/* ---------- Exemple de manche (mobile) : le texte passe sous le tapis roulant ---------- */
@media (max-width: 1020px) {
  .weigh-grid > div:first-child { display: contents; }
  .weigh-grid > div:first-child > .eyebrow { justify-self: center; }
  .weigh-grid > div:first-child > h2 { margin-top: 0 !important; }
  .weigh-grid .weigh-stage { order: 5; }
  .weigh-grid .weigh-caption { order: 6; margin-top: 0; }
}
@media (max-width: 640px) {
  .weigh-grid { gap: 12px; }
  .weigh .intro { margin-top: 0; }
}
