/* Tiboum — site de présentation. Toutes les valeurs viennent de ds/tokens.css. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; padding: 0; font-family: var(--font-body); font-weight: 700; line-height: 1.5; color: var(--ink); overflow-x: hidden;
  background-color: var(--paper); background-image: radial-gradient(rgba(43, 34, 56, .09) 1.3px, transparent 1.4px); background-size: 22px 22px; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px dashed var(--ink); outline-offset: 3px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--card); border: var(--line) solid var(--ink); border-radius: var(--radius-pill); padding: 8px 16px; }
.skip:focus { left: 12px; }

/* ─── Typo ─── */
.h-hero { font-family: var(--font-display); font-weight: 900; font-size: clamp(2.6rem, 6.4vw, 4.8rem); line-height: 1.02; letter-spacing: -.015em; margin: 18px 0 20px; }
.h-sec { font-family: var(--font-display); font-weight: 900; font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.04; letter-spacing: -.01em; margin: 16px 0 14px; }
.h-sub { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; line-height: 1.15; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 660px; }
.eyebrow { font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.mark { display: inline-block; background: var(--butter); border: 4px solid var(--ink); border-radius: 20px; padding: 0 16px 6px; box-shadow: var(--shadow); rotate: -2deg; margin: 4px 0; }

/* ─── Briques ─── */
.card { background: var(--bg, var(--card)); border: var(--line) solid var(--ink); border-radius: var(--radius-sticker); box-shadow: var(--shadow); }
.tilt-l { rotate: -1.2deg; } .tilt-r { rotate: 1deg; }
.tilt-l, .tilt-r { transition: rotate .2s; }
.tilt-l:hover, .tilt-r:hover { rotate: 0deg; }
.tag { display: inline-block; font-family: var(--font-display); font-weight: 900; font-size: 1.02rem; background: var(--card); border: var(--line) solid var(--ink);
  border-radius: var(--radius-pill); padding: 5px 16px; box-shadow: var(--shadow-sm); rotate: -2deg; }
.tag--butter { background: var(--butter); } .tag--mint { background: var(--mint); } .tag--sky { background: var(--sky); }
.tag--coral { background: var(--coral); } .tag--lilac { background: var(--lilac); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border: var(--line) solid var(--ink); border-radius: var(--radius-pill);
  background: var(--card); box-shadow: var(--shadow-sm); font: inherit; font-weight: 900; font-size: 1rem; color: var(--ink); text-decoration: none; cursor: pointer;
  transition: transform .08s, box-shadow .08s; white-space: nowrap; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: var(--shadow-none); }
.btn--primary { background: var(--coral); }
.btn--lg { font-size: 1.1rem; padding: 15px 28px; box-shadow: var(--shadow); }
.btn--lg:hover { box-shadow: 6px 6px 0 var(--ink); } .btn--lg:active { transform: translate(5px, 5px); }
.btn--sm { padding: 8px 16px; font-size: .92rem; }
.sticker-sm { background: var(--card); border: var(--line) solid var(--ink); border-radius: var(--radius-pill); box-shadow: var(--shadow-sm); }
.checks { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 1.05rem; }
.checks li::before { content: "✓"; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--mint); border: var(--line-thin) solid var(--ink);
  display: grid; place-items: center; font-weight: 900; font-size: .9rem; margin-top: 1px; }
.sec { padding: 80px 0; }
.band { padding: 84px 0; border-block: var(--line) solid var(--ink); }
.band--lilac { background-color: var(--lilac); background-image: radial-gradient(rgba(255, 255, 255, .38) 3px, transparent 3.5px); background-size: 26px 26px; }
.band--butter { background-color: var(--butter-tint); }
.band .lead { color: var(--ink); }

/* ─── En-tête ─── */
.top { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: var(--line) solid var(--ink); }
.top-in { display: flex; align-items: center; gap: 20px; height: 76px; }
.brand img { height: 52px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 800; font-size: .95rem; padding: 7px 10px; white-space: nowrap; border-radius: var(--radius-pill); border: var(--line-thin) solid transparent; }
.nav a:hover { background: var(--card); border-color: var(--ink); }

/* ─── Accroche ─── */
.hero { padding: 56px 0 72px; }
.hero-in { display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-note { margin-top: 16px; font-size: .95rem; color: var(--ink-2); }
.hero-art { position: relative; padding: 26px 18px 30px; }
.hero-stage .td-stage { border-radius: 36px; box-shadow: var(--shadow-xl); border-width: 4px; }
.hero-stage .td-stage-figure { display: flex; align-items: flex-end; justify-content: center; gap: 0; }
.hero-stage .td-chibi { cursor: pointer; }
.float { position: absolute; z-index: 2; font-weight: 900; }
.f-amount { top: 0; left: -6px; padding: 6px 16px; rotate: -6deg; }
.f-tadam { top: 26px; right: -4px; font-family: var(--font-display); font-size: 1.6rem; background: var(--mint); border: var(--line) solid var(--ink); border-radius: 18px;
  padding: 4px 16px 6px; box-shadow: var(--shadow-sm); rotate: 5deg; }
.f-mission { bottom: 2px; left: -20px; display: flex; align-items: center; gap: 10px; padding: 9px 14px; background: var(--coral-tint); border: var(--line) solid var(--ink);
  border-radius: var(--radius-mission); box-shadow: var(--shadow-sm); rotate: -2deg; max-width: 92%; }
.fm-chk { width: 28px; height: 28px; border-radius: 50%; background: var(--coral); border: var(--line) solid var(--ink); display: grid; place-items: center; font-size: .85rem; }
.fm-ico { font-size: 1.3rem; } .fm-t { font-weight: 800; text-decoration: line-through; color: var(--ink-2); }
.fm-r { font-family: var(--font-display); background: var(--butter); border: var(--line-thin) solid var(--ink); border-radius: var(--radius-pill); padding: 1px 10px; }
.hero-hint { position: absolute; right: 8px; bottom: -6px; font-family: var(--font-display); font-weight: 800; color: var(--ink-2); rotate: -4deg; }

/* ─── Citations ─── */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.quote { padding: 26px; }
.quote blockquote { font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; line-height: 1.15; }
.quote figcaption { margin-top: 10px; color: var(--ink-2); font-size: .95rem; }

/* ─── Étapes ─── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 36px; align-items: start; }
.step { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.step:nth-child(1) { rotate: -.8deg; } .step:nth-child(3) { rotate: .8deg; }
.step > p { color: var(--ink-2); }
.step-n { width: 46px; height: 46px; border-radius: 50%; background: var(--butter); border: var(--line) solid var(--ink); display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 900; font-size: 1.35rem; box-shadow: var(--shadow-sm); }
.demo-missions { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.dm-top { display: flex; align-items: center; gap: 12px; }
.dm-top .td-stage { flex-shrink: 0; }
.dm-top .dm-amount { display: flex; flex-direction: column; gap: 2px; }
.try { font-size: .85rem; color: var(--ink-3); font-weight: 800; }
.wallet { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 12px; margin-top: 6px; background: var(--butter-tint);
  border: var(--line) solid var(--ink); border-radius: var(--radius-mission); }
.wallet .td-amount { font-size: 3.4rem; line-height: 1; }
.wallet-sub { font-size: .9rem; color: var(--ink-2); }
.shop { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.shop li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--bg); border: var(--line) solid var(--ink); border-radius: var(--radius-mission); box-shadow: var(--shadow-sm); }
.sh-ico { font-size: 1.4rem; } .sh-t { flex: 1; font-weight: 800; line-height: 1.2; } .sh-t small { display: block; font-size: .78rem; color: var(--ink-2); }
.sh-p { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; color: var(--ink-2); white-space: nowrap; }
.sh-p .td-amount { font-size: 1.1rem; color: var(--ink); }

/* ─── Minuteur ─── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.timer { --bg: var(--alarm-bg); display: flex; align-items: center; justify-content: center; gap: 18px; padding: 26px; rotate: -1deg;
  background-image: radial-gradient(rgba(255, 255, 255, .4) 3px, transparent 3.5px); background-size: 24px 24px; }
.timer-stage { width: 46%; max-width: 220px; }
.timer-txt { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.timer .eyebrow { color: var(--ink); }
.clock { font-family: var(--font-display); font-weight: 900; font-size: clamp(3rem, 7vw, 5rem); line-height: 1; color: var(--alarm); font-variant-numeric: tabular-nums; }
.over { display: inline-block; background: var(--card); border: var(--line) solid var(--ink); border-radius: var(--radius-input); padding: 6px 12px; font-weight: 900; rotate: -2deg; box-shadow: var(--shadow-sm); }

/* ─── Quêtes et coffres ─── */
.flow { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 34px 0 44px; counter-reset: f; }
.flow-step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 24px 20px; }
.flow-step:not(:last-child)::after { content: "→"; position: absolute; right: -24px; top: 50%; width: 38px; height: 38px; translate: 0 -50%; z-index: 1;
  display: grid; place-items: center; font-weight: 900; font-size: 1.3rem; line-height: 1;
  background: var(--butter); border: var(--line) solid var(--ink); border-radius: 50%; box-shadow: var(--shadow-sm); }
.flow-n { font-family: var(--font-display); font-weight: 900; font-size: 3.4rem; line-height: 1; height: 72px; display: grid; place-items: center; }
.flow-ico { height: 72px; display: grid; place-items: center; }
.flow-k { font-family: var(--font-display); font-weight: 900; font-size: 1.25rem; line-height: 1.15; }
.flow-d { color: var(--ink-2); font-size: .98rem; }
.quest-demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.qd-h { margin-bottom: 12px; } .qd-h small { font-family: var(--font-body); font-size: .85rem; font-weight: 800; color: var(--ink); opacity: .75; }
.reveal-wait { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding: 34px 20px; }
.reveal-wait p { color: var(--ink-2); max-width: 300px; }
.reveal-again { display: flex; justify-content: center; margin-top: 16px; }
#demo-reveal .td-reveal { border-radius: var(--radius-sticker); }
.rules { padding: 26px 28px; margin-top: 44px; }
.checks--grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; margin-top: 16px; }
.checks--grid li { font-size: 1rem; }
.checks--grid b { font-weight: 900; }

/* ─── Garde-robe ─── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 32px 0 40px; }
.stat { display: flex; flex-direction: column; padding: 16px 18px; }
.stat b { font-family: var(--font-display); font-weight: 900; font-size: 2.6rem; line-height: 1; }
.stat span { font-weight: 800; }
.looks { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px 18px; }
.look { display: flex; flex-direction: column; gap: 8px; }
.look:nth-child(odd) { rotate: -1.5deg; } .look:nth-child(even) { rotate: 1.5deg; }
.look .td-stage { cursor: pointer; }
.look-name { align-self: center; font-family: var(--font-display); font-weight: 800; font-size: 1.02rem; background: var(--card); border: var(--line-thin) solid var(--ink);
  border-radius: var(--radius-pill); padding: 1px 12px; }
.rarity-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 34px 0 0; }
.rarities { display: flex; gap: 10px; flex-wrap: wrap; }
.wardrobe-demo { margin-top: 48px; }
.wd-head { display: flex; align-items: baseline; gap: 6px 16px; flex-wrap: wrap; margin-bottom: 16px; }
.wd-head p { color: var(--ink-2); }
#demo-wardrobe .td-wardrobe { grid-template-columns: 260px minmax(0, 1fr); }
@media (max-width: 560px) { #demo-wardrobe .td-wardrobe { grid-template-columns: minmax(0, 1fr); } }

/* ─── Accueil famille ─── */
.split--rev { grid-template-columns: .9fr 1.1fr; }
.kids { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.kids .td-kidcard { width: 230px; }
.kids > :nth-child(1) { rotate: -1.2deg; } .kids > :nth-child(2) { rotate: 1deg; translate: 0 18px; }

/* ─── Parents ─── */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 32px; }
.feature { padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.feature:nth-child(3n+1) { rotate: -.6deg; } .feature:nth-child(3n) { rotate: .6deg; }
.feature p { color: var(--ink-2); }
.fi { width: 52px; height: 52px; border-radius: 16px; background: var(--bg); border: var(--line) solid var(--ink); box-shadow: var(--shadow-sm);
  display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 4px; }

/* ─── FAQ ─── */
.faq { max-width: 800px; margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
details { background: var(--card); border: var(--line) solid var(--ink); border-radius: var(--radius-sticker); box-shadow: var(--shadow-sm); padding: 16px 20px; }
summary { cursor: pointer; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; border: var(--line-thin) solid var(--ink); background: var(--butter);
  display: grid; place-items: center; font-size: 1.1rem; line-height: 1; }
details[open] summary::after { content: "−"; background: var(--mint); }
details p { margin-top: 10px; color: var(--ink-2); }

/* ─── Appel final ─── */
.final { text-align: center; }
.final-card { --bg: var(--mint); padding: 34px 24px 44px; background-image: radial-gradient(rgba(255, 255, 255, .4) 3px, transparent 3.5px); background-size: 26px 26px; }
.final-stage { display: flex; justify-content: center; gap: 4px; margin-bottom: 6px; min-height: 150px; }
.final-card .h-sec { margin-top: 4px; }
.final-card .lead { margin: 0 auto 26px; color: var(--ink); }

/* ─── Pied de page ─── */
.foot { padding: 40px 0 56px; text-align: center; color: var(--ink-2); font-size: .95rem; border-top: var(--line) solid var(--ink); background: var(--card); }
.foot img { margin: 0 auto 12px; height: 52px; width: auto; }
.legal { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; margin-top: 16px; font-size: .88rem; }

.foot-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 22px; margin-top: 14px; font-weight: 900; color: var(--ink); }

/* ─── Barre du haut : deux boutons ─── */
.top-cta { display: flex; gap: 10px; flex-shrink: 0; }
.hero-note a { font-weight: 900; color: var(--ink); }

/* ─── Défi du mois ─── */
.flow-extra { --bg: var(--card); display: flex; gap: 14px; align-items: center; max-width: 760px; margin: -14px auto 40px; padding: 16px 20px; font-size: 1.02rem; rotate: -.5deg; }
.fe-ico { font-size: 1.8rem; flex-shrink: 0; }

/* ─── Installer ─── */
.install { --bg: var(--sky-tint); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 34px 24px; rotate: 1deg; }
.install img { width: 150px; height: 150px; border: var(--line) solid var(--ink); border-radius: 34px; box-shadow: var(--shadow); }
.install-url { font-family: var(--font-display); font-weight: 900; font-size: 2rem; line-height: 1; }
.install-note { font-size: .92rem; color: var(--ink-2); }

/* ─── Notre histoire ─── */
.story { --bg: var(--coral-tint); max-width: 860px; margin: 0 auto; padding: 34px 34px 38px; display: flex; flex-direction: column; gap: 14px; rotate: -.6deg; }
.story .lead { color: var(--ink); max-width: none; }
.story .tag { align-self: flex-start; }

/* ─── La bêta ─── */
.beta-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 34px; }
.beta-note { text-align: center; margin: 22px auto 0; max-width: 620px; color: var(--ink); font-size: .98rem; }

/* ─── Confettis ─── */
.confetti { position: fixed; z-index: 100; pointer-events: none; width: 10px; height: 14px; border: var(--line-thin) solid var(--ink); border-radius: 3px; }

/* ─── Petits écrans ─── */
@media (max-width: 1200px) {
  .nav { display: none; }
  .top-in { justify-content: space-between; }
  .looks { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .hero-in, .split, .split--rev, .quest-demo { grid-template-columns: 1fr; }
  .hero-art { max-width: 480px; margin: 0 auto; width: 100%; }
  .quotes, .steps, .features, .flow { grid-template-columns: 1fr; }
  .flow-step:not(:last-child)::after { content: "↓"; right: auto; left: 50%; top: auto; bottom: -26px; translate: -50% 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .checks--grid { grid-template-columns: 1fr; }
  .sec { padding: 60px 0; } .band { padding: 64px 0; }
  .step { rotate: 0deg !important; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .top-in { height: 66px; }
  .brand img { height: 42px; }
  .btn--sm { padding: 7px 12px; font-size: .85rem; }
  .looks { grid-template-columns: repeat(2, 1fr); }
  .hero-cta .btn, .beta-cta .btn { width: 100%; }
  .top-app { display: none; }
  .story { padding: 26px 20px 30px; }
  .f-mission { left: -6px; }
  .hero-hint { display: none; }
  .fm-t { font-size: .9rem; }
  .kids .td-kidcard { width: min(230px, 100%); }
  .kids > :nth-child(2) { translate: none; }
  .timer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
