/* BigBrain — site vitrine
   Direction artistique « le carnet » reprise de l'app (BigBrain/Theme/Theme.swift) :
   encre, ombres pleines, fond beige crème uni, boutons verts. */

@font-face { font-family: "Fredoka"; src: url("../fonts/Fredoka-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("../fonts/Fredoka-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("../fonts/Fredoka-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/Nunito-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/Nunito-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/Nunito-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/Nunito-ExtraBold.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --ink: #1B2340;
  --paper: #F1EDE4;
  --paper-deep: #E9E3D6;
  --card: #FFFFFF;
  --muted: #52525A;
  --faint: #98979B;
  --line: #E3E8F2;
  --green: #1E7A4C;
  --green-dark: #17633D;
  --green-tint: #DDF0E4;
  --rust: #C4461F;
  --rust-tint: #FBE2D6;
  --sky: #3D6FB6;
  --sky-tint: #E3ECF9;
  --pink: #F48FB1;
  --pink-tint: #FDE7EF;
  --yellow: #FFC94A;
  --yellow-tint: #FFF0C2;
  --lavender: #ECE5FA;
  --violet: #6B4FC8;
  --bibi-blue: #3FA9F5;

  --radius: 20px;
  --radius-sm: 14px;
  --border: 2px;
  --shadow: 0 4px 0 var(--ink);
  --shadow-lg: 0 6px 0 var(--ink);

  --display: "Fredoka", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --text: "Nunito", ui-rounded, system-ui, -apple-system, sans-serif;

  --max: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; text-decoration: none; }
.skip:focus { top: 16px; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  transition: background .3s, box-shadow .3s;
}
.nav.is-scrolled { background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(27,35,64,.08); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 24px; }
.brand img { width: 40px; height: 40px; border-radius: 11px; border: var(--border) solid var(--ink); box-shadow: 0 3px 0 var(--ink); }
.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__links a:not(.btn) { text-decoration: none; font-weight: 700; padding: 8px 12px; border-radius: 12px; transition: background .2s; }
.nav__links a:not(.btn):hover { background: rgba(27,35,64,.06); }
@media (max-width: 860px) { .nav__links a:not(.btn) { display: none; } }

/* ---------- Boutons ---------- */
.btn {
  --bg: var(--green); --fg: #fff; --edge: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; min-height: 52px;
  font-family: var(--display); font-weight: 600; font-size: 19px; text-decoration: none;
  color: var(--fg); background: var(--bg);
  border: var(--border) solid var(--edge); border-radius: 16px;
  box-shadow: 0 4px 0 var(--edge);
  transform: translateY(0);
  transition: transform .15s var(--ease-out), box-shadow .15s var(--ease-out), background .2s;
  cursor: pointer; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--edge); }
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--edge); }
.btn--small { padding: 9px 16px; min-height: 42px; font-size: 16px; border-radius: 13px; box-shadow: 0 3px 0 var(--edge); }
.btn--ghost { --bg: var(--card); --fg: var(--ink); }

/* Bouton de téléchargement (à remplacer par le badge officiel Apple une fois l'app en ligne) */
.store {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 24px 10px 18px; min-height: 60px;
  background: var(--ink); color: #fff; text-decoration: none;
  border-radius: 16px; border: var(--border) solid var(--ink);
  box-shadow: 0 4px 0 #0b1022;
  transition: transform .15s var(--ease-out), box-shadow .15s var(--ease-out);
}
.store:hover { transform: translateY(-2px); box-shadow: 0 6px 0 #0b1022; }
.store:active { transform: translateY(4px); box-shadow: 0 0 0 #0b1022; }
.store svg { width: 28px; height: 28px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.store small { font-size: 13px; font-weight: 700; opacity: .8; }
.store strong { font-family: var(--display); font-size: 22px; font-weight: 600; }
.store--light { background: #fff; color: var(--ink); box-shadow: 0 4px 0 var(--ink); }
.store--light:hover { box-shadow: 0 6px 0 var(--ink); }
.store--light:active { box-shadow: 0 0 0 var(--ink); }

/* ---------- Cartes « carnet » ---------- */
.card {
  background: var(--card);
  border: var(--border) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  font-size: 14px; font-weight: 800; letter-spacing: .02em;
  border: var(--border) solid var(--ink); background: var(--card);
}
.eyebrow { font-size: 14px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }

.section { padding-block: clamp(72px, 10vw, 128px); position: relative; }
.section__head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section__head h2 { font-size: clamp(34px, 5.2vw, 56px); margin-top: 10px; }
.section__head p { margin-top: 16px; font-size: clamp(17px, 2vw, 20px); color: var(--muted); }
.section__head--center { margin-inline: auto; text-align: center; }

/* ---------- Bulle de Bibi ---------- */
.bubble {
  position: relative; display: inline-block;
  background: var(--card); border: var(--border) solid var(--ink); border-radius: 18px;
  box-shadow: var(--shadow); padding: 12px 18px; font-weight: 800; font-size: 17px; line-height: 1.35;
}
.bubble::before {
  content: ""; position: absolute; left: -11px; top: 22px; width: 18px; height: 18px;
  background: var(--card); border-left: var(--border) solid var(--ink); border-bottom: var(--border) solid var(--ink);
  transform: rotate(45deg);
}
.bubble--top::before { left: 34px; top: auto; bottom: -11px; transform: rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; padding-top: clamp(24px, 4vw, 48px); padding-bottom: clamp(64px, 9vw, 120px); overflow: clip; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 920px) { .hero__grid { grid-template-columns: 1fr; text-align: center; } }
.hero__title { font-size: clamp(42px, 6vw, 76px); line-height: .98; letter-spacing: -.02em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; }
.hero__title .line--small { font-size: .6em; margin-top: .12em; }
.hero__title em { font-style: normal; color: var(--green); position: relative; white-space: nowrap; }
.hero__title em svg { position: absolute; left: -2%; bottom: -.12em; width: 104%; height: .32em; overflow: visible; }
.hero__title em svg path { stroke: var(--yellow); stroke-width: 9; fill: none; stroke-linecap: round; }
.hero__lead { margin-top: 22px; font-size: clamp(18px, 2.2vw, 22px); color: var(--muted); max-width: 540px; }
@media (max-width: 920px) { .hero__lead { margin-inline: auto; } }
.hero__cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
@media (max-width: 920px) { .hero__cta { justify-content: center; } }
.hero__meta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 18px; font-size: 15px; color: var(--muted); }
.hero__meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero__meta svg { width: 18px; height: 18px; color: var(--green); }
@media (max-width: 920px) { .hero__meta { justify-content: center; } }

/* Le téléphone */
.stage { position: relative; display: grid; place-items: center; min-height: 600px; }
@media (max-width: 920px) { .stage { min-height: 560px; margin-top: 12px; } }
.phone {
  position: relative; z-index: 2;
  width: min(300px, 74vw); aspect-ratio: 540 / 1174;
  border-radius: 46px; padding: 10px;
  background: var(--ink);
  box-shadow: 0 10px 0 #0e1428, 0 40px 80px -30px rgba(27,35,64,.55);
}
.phone__screen { width: 100%; height: 100%; border-radius: 37px; overflow: hidden; background: var(--paper); position: relative; }
.phone::after { /* reflet */
  content: ""; position: absolute; inset: 10px; border-radius: 37px; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.22) 0%, rgba(255,255,255,0) 28%);
}

.blob { position: absolute; z-index: 0; border-radius: 50%; filter: blur(0); }
.blob--green { width: 440px; height: 440px; background: var(--green-tint); top: 50%; left: 50%; translate: -50% -50%; border: var(--border) dashed rgba(27,35,64,.18); }
@media (max-width: 520px) { .blob--green { width: 340px; height: 340px; } }

.float {
  position: absolute; z-index: 3;
  width: 74px; height: 74px; border-radius: 20px; padding: 8px;
  background: var(--card); border: var(--border) solid var(--ink); box-shadow: var(--shadow);
  will-change: transform;
}
.float img { width: 100%; height: 100%; }
.float--1 { top: 6%; left: 4%; background: var(--lavender); }
.float--2 { top: 14%; right: 2%; background: var(--rust-tint); }
.float--3 { top: 40%; left: -3%; background: var(--green-tint); }
.float--4 { bottom: 8%; right: 6%; background: var(--yellow-tint); }
.float--5 { top: 44%; right: -2%; background: var(--sky-tint); width: 62px; height: 62px; }
@media (max-width: 520px) {
  .float { width: 58px; height: 58px; border-radius: 16px; padding: 6px; }
  .float--5 { display: none; }
}

.age-pill {
  position: absolute; z-index: 4; left: -4%; top: 30%;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 12px; background: var(--card);
  border: var(--border) solid var(--ink); border-radius: 18px; box-shadow: var(--shadow);
  text-align: left;
}
.age-pill img { width: 44px; height: 44px; }
.age-pill b { display: block; font-family: var(--display); font-size: 28px; line-height: 1; }
.age-pill small { display: block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.streak-pill {
  position: absolute; z-index: 4; right: -2%; bottom: 30%;
  display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px;
  background: var(--card); border: var(--border) solid var(--ink); border-radius: 999px; box-shadow: var(--shadow);
  font-family: var(--display); font-size: 22px; font-weight: 700;
}
.streak-pill img { width: 30px; height: 30px; }
@media (max-width: 520px) { .age-pill { left: 0; top: 4%; transform: scale(.86); transform-origin: left top; } .streak-pill { right: 0; bottom: 4%; } }

.hero__bibi {
  position: absolute; z-index: 5; width: 150px; left: -6%; bottom: -2%;
  filter: drop-shadow(0 8px 0 rgba(27,35,64,.08));
}
@media (max-width: 920px) { .hero__bibi { display: none; } }

/* Défilé d'icônes */
.marquee { border-block: var(--border) solid var(--ink); background: var(--yellow); overflow: hidden; padding-block: 14px; }
.marquee__track { display: flex; gap: 40px; width: max-content; animation: marquee 48s linear infinite; }
.marquee__item { display: inline-flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 600; font-size: 22px; white-space: nowrap; }
.marquee__item img { width: 40px; height: 40px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   CONCEPT : 3 étapes
   ========================================================= */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 28px; position: relative; overflow: hidden; }
.step__num {
  position: absolute; top: 20px; right: 22px;
  width: 38px; height: 38px; display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 20px;
  border-radius: 50%; border: var(--border) solid var(--ink); background: var(--paper);
}
.step__bibi { width: 128px; height: 128px; margin: -8px 0 8px -10px; }
.step h3 { font-size: 26px; }
.step p { margin-top: 10px; color: var(--muted); }
.step--1 { background: var(--sky-tint); }
.step--2 { background: var(--green-tint); }
.step--3 { background: var(--yellow-tint); }

/* =========================================================
   CHECK-UP / ÂGE DU CERVEAU
   ========================================================= */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--rev > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split--rev > :first-child { order: 0; } }
.split h2 { font-size: clamp(34px, 5vw, 54px); margin-top: 10px; }
.split p.lead { margin-top: 16px; font-size: clamp(17px, 2vw, 20px); color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks li::before {
  content: ""; flex: none; width: 26px; height: 26px; margin-top: 1px; border-radius: 50%;
  border: var(--border) solid var(--ink); background: var(--green-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%231B2340' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.agecard {
  background: var(--green); color: #fff; border: var(--border) solid var(--ink);
  border-radius: 28px; box-shadow: var(--shadow-lg); padding: 30px 30px 0; position: relative; overflow: hidden;
}
.agecard__label { font-size: 14px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.agecard__value { display: flex; align-items: baseline; gap: 10px; margin-top: 6px; font-family: var(--display); font-weight: 700; }
.agecard__value b { font-size: clamp(84px, 12vw, 128px); line-height: .9; text-shadow: 0 5px 0 var(--ink); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; }
.agecard__value span { font-size: 34px; text-shadow: 0 3px 0 var(--ink); -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; }
.agecard__delta { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 6px 14px; background: var(--green-tint); color: var(--ink); border: var(--border) solid var(--ink); border-radius: 999px; font-weight: 800; font-size: 15px; }
.agecard__bibi { position: absolute; right: 10px; top: 26px; width: 42%; max-width: 220px; }
.agecard__foot { margin: 28px -30px 0; padding: 18px 30px; background: var(--card); color: var(--ink); border-top: var(--border) solid var(--ink); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; position: relative; z-index: 2; }
.agecard__foot img { width: 40px; height: 40px; }
.agecard__foot strong { font-family: var(--display); font-size: 18px; }
.agecard__foot small { display: block; color: var(--muted); font-size: 14px; }
.agecard__space { height: 40px; }


/* =========================================================
   JEUX
   ========================================================= */
.domains { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.domain-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px; cursor: pointer;
  border: var(--border) solid var(--ink); background: var(--card); box-shadow: 0 3px 0 var(--ink);
  font-weight: 800; font-size: 15px; transition: transform .15s var(--ease-out), box-shadow .15s, background .2s;
}
.domain-btn i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ink); background: var(--c, var(--green)); }
.domain-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--ink); }
.domain-btn[aria-pressed="true"] { background: var(--ink); color: #fff; }
.domain-btn[aria-pressed="true"] i { border-color: #fff; }

.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.game {
  display: flex; flex-direction: column; gap: 10px; padding: 16px;
  background: var(--card); border: var(--border) solid var(--ink); border-radius: 18px; box-shadow: var(--shadow);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), opacity .3s;
}
.game:hover { transform: translateY(-4px) rotate(-.6deg); box-shadow: 0 8px 0 var(--ink); }
.game__icon { width: 64px; height: 64px; border-radius: 16px; padding: 6px; background: var(--tint, var(--paper)); border: var(--border) solid var(--ink); }
.game__icon img { width: 100%; height: 100%; }
.game h3 { font-size: 19px; }
.game p { font-size: 15px; color: var(--muted); line-height: 1.4; }
.game__tag { margin-top: auto; align-self: flex-start; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; background: var(--tint); border: 1.5px solid var(--ink); }
.game.is-hidden { display: none; }
.games__more { margin-top: 28px; text-align: center; }
.games.is-collapsed .game:nth-child(n+13) { display: none; }
.plan__cta { margin-top: auto; }
.plan__list { margin-bottom: 26px; }

/* Mini-jeu « Couleurs piégées » */
.demo { padding: clamp(24px, 4vw, 40px); background: var(--lavender); display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: center; margin-top: 56px; }
@media (max-width: 860px) { .demo { grid-template-columns: 1fr; } }
.demo h3 { font-size: clamp(28px, 4vw, 38px); }
.demo__intro p { margin-top: 12px; color: var(--muted); }
.demo__bibi { display: flex; align-items: flex-end; gap: 14px; margin-top: 22px; }
.demo__bibi img { width: 96px; height: 96px; flex: none; transition: transform .3s var(--ease-spring); }
.demo__bibi .bubble { font-size: 15px; }
.demo__board { background: var(--card); border: var(--border) solid var(--ink); border-radius: 22px; box-shadow: var(--shadow); padding: 22px; text-align: center; position: relative; }
.demo__top { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 15px; color: var(--muted); }
.demo__bar { height: 10px; border-radius: 99px; background: var(--line); border: 2px solid var(--ink); margin-top: 12px; overflow: hidden; }
.demo__bar > i { display: block; height: 100%; width: 100%; background: var(--green); transform-origin: left; }
.demo__word { font-family: var(--display); font-weight: 700; font-size: clamp(54px, 9vw, 84px); letter-spacing: .02em; margin: 26px 0 8px; min-height: 1.2em; }
.demo__choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.demo__choice { padding: 14px 10px; border-radius: 14px; border: var(--border) solid var(--ink); box-shadow: 0 4px 0 var(--ink); cursor: pointer; font-family: var(--display); font-weight: 600; font-size: 19px; color: #fff; background: var(--c); transition: transform .12s, box-shadow .12s; }
.demo__choice:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.demo__choice:active { transform: translateY(4px); box-shadow: 0 0 0 var(--ink); }
.demo__choice[data-c="jaune"] { color: var(--ink); }
.shake { animation: shake .35s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* =========================================================
   PROGRAMMES
   ========================================================= */
.programs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 960px) { .programs { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }
.program { padding: 26px; display: flex; flex-direction: column; gap: 14px; transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out); }
.program:hover { transform: translateY(-6px); box-shadow: 0 10px 0 var(--ink); }
.program__head { display: flex; align-items: center; gap: 14px; }
.program__icon { width: 72px; height: 72px; padding: 6px; border-radius: 18px; background: var(--tint); border: var(--border) solid var(--ink); flex: none; }
.program__kicker { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.program h3 { font-size: 25px; }
.program p { color: var(--muted); }
.program__lessons { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.program__lessons li { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 15px; }
.program__lessons img { width: 44px; height: 44px; border-radius: 12px; border: 2px solid var(--ink); background: var(--paper); flex: none; }
.program__bar { margin-top: auto; display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 14px; }
.program__bar span { flex: 1; height: 14px; border-radius: 99px; border: var(--border) solid var(--ink); background: var(--card); overflow: hidden; }
.program__bar span i { display: block; height: 100%; width: var(--p, 30%); background: var(--green); border-right: 2px solid var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease-out) .2s; }
.is-in .program__bar span i { transform: scaleX(1); }

/* =========================================================
   TESTS
   ========================================================= */
.tests-band { background: var(--ink); color: #fff; border-block: var(--border) solid var(--ink); overflow: hidden; }
.tests-band .eyebrow { color: var(--yellow); }
.tests-band .section__head p { color: rgba(255,255,255,.72); }
.tests { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.test { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: rgba(255,255,255,.06); border: 2px solid rgba(255,255,255,.14); transition: background .2s, transform .25s var(--ease-out); }
.test:hover { background: rgba(255,255,255,.12); transform: translateY(-3px); }
.test img { width: 52px; height: 52px; flex: none; border-radius: 14px; background: var(--paper); padding: 4px; }
.test b { display: block; font-family: var(--display); font-weight: 600; font-size: 18px; }
.test small { display: block; color: rgba(255,255,255,.65); font-size: 14px; }

/* =========================================================
   MOTIVATION : série & succès
   ========================================================= */
.badges { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.badges img { width: 100%; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 6px 0 rgba(27,35,64,.12)); transition: transform .4s var(--ease-spring); }
.badges img:hover { transform: rotate(-8deg) scale(1.08); }
.streak-week { display: flex; gap: 8px; margin-top: 26px; flex-wrap: wrap; }
.streak-week span { width: 44px; height: 52px; display: grid; place-items: center; border-radius: 14px; border: var(--border) solid var(--ink); background: var(--card); font-weight: 800; font-size: 14px; box-shadow: 0 3px 0 var(--ink); }
.streak-week span.on { background: var(--rust-tint); }
.streak-week span.on::after { content: ""; width: 22px; height: 22px; background: url("../img/icones/flamme-serie.svg") center/contain no-repeat; display: block; }
.streak-week span.on { grid-template-rows: auto auto; padding-top: 4px; }

/* =========================================================
   PREMIUM
   ========================================================= */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 900px; margin-inline: auto; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.plan { padding: 30px; position: relative; display: flex; flex-direction: column; }
.plan--premium { background: var(--ink); color: #fff; }
.plan--premium .plan__list li { color: rgba(255,255,255,.88); }
.plan__crown { position: absolute; top: -26px; right: 22px; width: 64px; height: 64px; animation: bob 3.2s ease-in-out infinite; }
.plan h3 { font-size: 30px; display: flex; align-items: center; gap: 10px; }
.plan__price { margin-top: 6px; font-weight: 800; color: var(--muted); }
.plan--premium .plan__price { color: var(--yellow); }
.plan__list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.plan__list li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; }
.plan__list li svg { flex: none; width: 22px; height: 22px; margin-top: 2px; }
.plan__note { margin-top: 20px; font-size: 14px; color: var(--muted); }
.plan--premium .plan__note { color: rgba(255,255,255,.6); }
.prices { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.price { flex: 1 1 120px; padding: 12px 14px; border-radius: 16px; border: 2px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06); }
.price b { display: block; font-family: var(--display); font-size: 22px; color: #fff; }
.price small { color: rgba(255,255,255,.7); font-size: 13px; font-weight: 700; }
.price.is-best { border-color: var(--yellow); background: rgba(255,201,74,.12); position: relative; }
.price.is-best::before { content: attr(data-flag); position: absolute; top: -12px; left: 12px; background: var(--yellow); color: var(--ink); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 99px; border: 2px solid var(--ink); }

/* =========================================================
   FAQ
   ========================================================= */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 14px; }
.faq details { background: var(--card); border: var(--border) solid var(--ink); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 64px 20px 22px; font-family: var(--display); font-weight: 600; font-size: 19px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 30px; height: 30px; margin-top: -15px;
  border-radius: 50%; border: 2px solid var(--ink); background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' stroke='%231B2340' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center/16px no-repeat;
  transition: transform .3s var(--ease-spring), background-color .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--yellow-tint); }
.faq .answer { padding: 0 22px 22px; color: var(--muted); }
.faq .answer p + p { margin-top: 10px; }
.faq .answer a { color: var(--green); font-weight: 800; }

/* =========================================================
   CTA FINAL & FOOTER
   ========================================================= */
.final { text-align: center; }
.final__card { background: var(--green); color: #fff; padding: clamp(40px, 6vw, 72px) var(--gutter); border-radius: 32px; border: var(--border) solid var(--ink); box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.final__card h2 { font-size: clamp(36px, 6vw, 64px); }
.final__card p { margin: 16px auto 0; max-width: 560px; font-size: 19px; opacity: .9; }
.final__card .appstore { margin-top: 30px; }
.final__bibi { width: 170px; margin: 0 auto 10px; }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 10px; height: 16px; border-radius: 3px; border: 1.5px solid var(--ink); opacity: .95; }

.footer { padding: 56px 0 40px; margin-top: clamp(64px, 8vw, 104px); border-top: var(--border) solid var(--ink); background: var(--paper-deep); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; } }
.footer h4 { font-size: 16px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; color: var(--muted); font-family: var(--text); font-weight: 800; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; font-weight: 700; }
.footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer__about p { margin-top: 12px; color: var(--muted); max-width: 360px; font-size: 15px; }
.footer__legal { margin-top: 40px; padding-top: 20px; border-top: 1.5px solid rgba(27,35,64,.15); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); }

/* =========================================================
   PAGES DE TEXTE (confidentialité, conditions, support)
   ========================================================= */
.doc-hero { padding: clamp(32px, 6vw, 72px) 0 clamp(24px, 4vw, 40px); }
.doc-hero__inner { display: flex; align-items: center; gap: 24px; }
.doc-hero img { width: clamp(96px, 14vw, 150px); flex: none; animation: bob 3.6s ease-in-out infinite; }
.doc-hero h1 { font-size: clamp(38px, 6vw, 64px); }
.doc-hero p { margin-top: 10px; color: var(--muted); font-size: 18px; }
@media (max-width: 600px) { .doc-hero__inner { flex-direction: column; align-items: flex-start; } }
.doc { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .doc { grid-template-columns: 1fr; } .toc { display: none; } }
.toc { position: sticky; top: 96px; padding: 18px; font-size: 15px; }
.toc b { display: block; font-family: var(--display); margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.toc a { text-decoration: none; font-weight: 700; color: var(--muted); }
.toc a:hover, .toc a.is-active { color: var(--green); }
.prose { padding: clamp(24px, 4vw, 44px); font-weight: 500; }
.prose h2 { font-size: 28px; margin: 40px 0 14px; scroll-margin-top: 96px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 21px; margin: 26px 0 10px; }
.prose p, .prose li { color: #2c3350; }
.prose p + p { margin-top: 12px; }
.prose ul, .prose ol { padding-left: 22px; margin: 12px 0; display: grid; gap: 6px; }
.prose a { color: var(--green); font-weight: 800; }
.prose strong { font-weight: 800; color: var(--ink); }
.prose .callout { margin: 18px 0; padding: 16px 18px; border-radius: 16px; background: var(--green-tint); border: 2px solid var(--ink); }
.prose .callout--warn { background: var(--yellow-tint); }
.prose table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 16px 0; font-size: 15px; border: 2px solid var(--ink); border-radius: 14px; overflow: hidden; }
.prose th, .prose td { text-align: left; padding: 10px 12px; vertical-align: top; border-bottom: 1.5px solid var(--line); }
.prose th { background: var(--paper); font-family: var(--display); font-weight: 600; }
.prose tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.updated { display: inline-flex; margin-top: 14px; }

.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 48px; }
@media (max-width: 860px) { .support-grid { grid-template-columns: 1fr; } }
.support-card { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.support-card img { width: 72px; height: 72px; }
.support-card h2 { font-size: 22px; }
.support-card p { color: var(--muted); font-size: 16px; }
.support-card .btn { margin-top: auto; align-self: flex-start; }

/* =========================================================
   MOTION
   ========================================================= */
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-6deg); } 75% { transform: rotate(6deg); } }
@keyframes run-bounce { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-14px) rotate(2deg); } }
.bob { animation: bob 3.4s ease-in-out infinite; }
.wiggle:hover { animation: wiggle .5s ease-in-out; }

/* Apparitions au défilement */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal--pop { transform: scale(.85) translateY(20px); transition-timing-function: var(--ease-spring); }
.reveal--left { transform: translateX(-40px); }
.reveal--right { transform: translateX(40px); }

/* Bibi qui traverse la page en courant */
.runner { position: relative; height: 120px; overflow: hidden; pointer-events: none; }
.runner img { position: absolute; bottom: 0; width: 110px; left: 0; animation: run-bounce .42s ease-in-out infinite; will-change: transform; }
.runner__track { position: absolute; bottom: 10px; left: 0; right: 0; height: 0; border-top: 3px dashed rgba(27,35,64,.18); }

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

/* =========================================================
   COMPLÉMENTS : hero animé, écran de l'app, sections
   ========================================================= */

/* Entrée du hero au chargement */
.hero-up { transform: translateY(105%); animation: hero-up .9s var(--ease-out) forwards; animation-delay: var(--d, 0s); }
.hero-in { opacity: 0; transform: translateY(18px); animation: hero-in .9s var(--ease-out) forwards; animation-delay: var(--d, 0s); }
@keyframes hero-up { to { transform: none; } }
@keyframes hero-in { to { opacity: 1; transform: none; } }
.squiggle { stroke-dasharray: 340; stroke-dashoffset: 340; animation: draw 1s var(--ease-out) .75s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.chip img { width: 22px; height: 22px; }

/* Bulle de Bibi à côté du téléphone */
.hero__bubble { position: absolute; z-index: 6; left: -6%; bottom: 0; display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 8px; }
.hero__bubble img { width: 108px; height: 108px; animation: bob 3s ease-in-out infinite; }
.hero__bubble .bubble { max-width: 210px; font-size: 15px; transition: opacity .3s, transform .3s var(--ease-spring); }
.hero__bubble .bubble::before { left: 40px; top: auto; bottom: -11px; transform: rotate(-45deg); }
.hero__bubble .bubble.is-swap { opacity: 0; transform: scale(.9); }
@media (max-width: 1100px) { .hero__bubble { left: -2%; } }
@media (max-width: 920px) { .hero__bubble { left: 2%; } .hero__bubble img { width: 84px; height: 84px; } }
@media (max-width: 520px) { .hero__bubble { display: none; } }

/* ---- L'écran de l'app, dessiné en unités d'iPhone (390 points de large) ---- */
.phone { transform-style: preserve-3d; transition: transform .5s var(--ease-out); }
.app { container-type: inline-size; --u: calc(100cqw / 390); font-family: var(--text); color: var(--ink); text-align: left; }
.app * { --u: calc(100cqw / 390); }
.app__status { position: absolute; z-index: 5; top: 0; left: 0; right: 0; height: calc(54 * var(--u)); display: flex; align-items: center; justify-content: space-between; padding: 0 calc(30 * var(--u)) 0 calc(42 * var(--u)); color: #fff; }
.app__status b { font-family: -apple-system, var(--text); font-weight: 700; font-size: calc(16 * var(--u)); }
.app__island { position: absolute; left: 50%; top: calc(11 * var(--u)); width: calc(122 * var(--u)); height: calc(36 * var(--u)); translate: -50% 0; background: #000; border-radius: 99px; }
.app__sys { display: flex; gap: calc(6 * var(--u)); align-items: center; }
.app__sys svg { height: calc(12 * var(--u)); width: auto; fill: currentColor; }
.app__header { position: relative; background: var(--green); color: #fff; padding: calc(64 * var(--u)) calc(20 * var(--u)) calc(70 * var(--u)); border-bottom: calc(2 * var(--u)) solid var(--ink); border-radius: 0 0 calc(36 * var(--u)) calc(36 * var(--u)); box-shadow: 0 calc(4 * var(--u)) 0 var(--ink); }
.app__pills { display: flex; gap: calc(8 * var(--u)); align-items: center; }
.app__pill { display: inline-flex; align-items: center; gap: calc(6 * var(--u)); height: calc(44 * var(--u)); padding: 0 calc(14 * var(--u)) 0 calc(10 * var(--u)); background: #fff; color: var(--ink); border: calc(2 * var(--u)) solid var(--ink); border-radius: 99px; box-shadow: 0 calc(3 * var(--u)) 0 var(--ink); font-family: var(--display); font-weight: 700; font-size: calc(20 * var(--u)); }
.app__pill img { width: calc(26 * var(--u)); height: calc(26 * var(--u)); }
.app__pill--round { width: calc(44 * var(--u)); padding: 0; justify-content: center; }
.app__gear { margin-left: auto; }
.app__gear svg { width: calc(22 * var(--u)); height: calc(22 * var(--u)); }
.app__label { margin-top: calc(18 * var(--u)); font-size: calc(13 * var(--u)); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .9; }
.app__age { display: flex; align-items: baseline; gap: calc(6 * var(--u)); font-family: var(--display); font-weight: 700; text-shadow: 0 calc(4 * var(--u)) 0 var(--ink); margin: calc(-6 * var(--u)) 0 calc(-4 * var(--u)); }
.app__age b { font-size: calc(88 * var(--u)); line-height: 1; display: inline-block; min-width: 1.15em; }
.app__age b.is-roll { animation: roll .5s var(--ease-spring); }
@keyframes roll { 0% { transform: translateY(40%); opacity: 0; } 100% { transform: none; opacity: 1; } }
.app__age span { font-size: calc(26 * var(--u)); font-weight: 600; }
.app__delta { display: inline-flex; align-items: center; gap: calc(5 * var(--u)); padding: calc(4 * var(--u)) calc(10 * var(--u)); background: var(--green-tint); color: var(--ink); border: calc(2 * var(--u)) solid var(--ink); border-radius: 99px; font-size: calc(13 * var(--u)); font-weight: 800; }
.app__delta svg { width: calc(12 * var(--u)); height: calc(12 * var(--u)); }
.app__goal { margin-top: calc(6 * var(--u)); font-size: calc(13 * var(--u)); font-weight: 700; opacity: .85; }
.app__bibi { position: absolute; right: calc(10 * var(--u)); bottom: calc(40 * var(--u)); width: calc(170 * var(--u)); height: calc(170 * var(--u)); animation: lift 1.6s ease-in-out infinite; }
@keyframes lift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(calc(-8 * var(--u))); } }
.app__bibi.is-jump { animation: jump .7s var(--ease-spring); }
@keyframes jump { 0% { transform: translateY(0) scale(1); } 40% { transform: translateY(calc(-28 * var(--u))) scale(1.06) rotate(-4deg); } 100% { transform: none; } }
.app__ticket { position: relative; z-index: 2; margin: calc(-52 * var(--u)) calc(16 * var(--u)) 0; padding: calc(14 * var(--u)); background: #fff; border: calc(2 * var(--u)) solid var(--ink); border-radius: calc(24 * var(--u)); box-shadow: 0 calc(4 * var(--u)) 0 var(--ink); }
.app__ticket-head { display: flex; align-items: center; justify-content: space-between; }
.app__ticket-head b { font-family: var(--display); font-weight: 600; font-size: calc(19 * var(--u)); }
.app__ticket > small { display: block; font-size: calc(13 * var(--u)); font-weight: 600; color: var(--muted); }
.app__count { padding: calc(2 * var(--u)) calc(10 * var(--u)); border: calc(2 * var(--u)) solid var(--ink); border-radius: 99px; font-weight: 800; font-size: calc(13 * var(--u)); transition: background .3s; }
.app__count.is-full { background: var(--green-tint); color: var(--green-dark); }
.app__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(8 * var(--u)); margin: calc(14 * var(--u)) 0 calc(12 * var(--u)); position: relative; }
.app__steps::before { content: ""; position: absolute; top: calc(28 * var(--u)); left: 18%; right: 18%; border-top: calc(2 * var(--u)) dashed var(--faint); }
.app__step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: calc(3 * var(--u)); }
.app__step img { position: relative; width: calc(56 * var(--u)); height: calc(56 * var(--u)); padding: calc(5 * var(--u)); background: var(--tint); border: calc(2 * var(--u)) solid var(--ink); border-radius: calc(14 * var(--u)); transition: transform .3s var(--ease-spring); }
.app__step b { font-family: var(--display); font-weight: 600; font-size: calc(13.5 * var(--u)); line-height: 1.15; margin-top: calc(2 * var(--u)); }
.app__step small { font-size: calc(11.5 * var(--u)); font-weight: 700; color: var(--muted); line-height: 1.2; }
.app__step.is-done small { color: var(--green-dark); font-weight: 800; }
.app__step.is-done img { transform: scale(1.06); }
.app__badge { position: absolute; z-index: 2; top: calc(-8 * var(--u)); left: calc(50% - 38 * var(--u)); width: calc(24 * var(--u)); height: calc(24 * var(--u)); display: grid; place-items: center; font-style: normal; font-family: var(--display); font-weight: 700; font-size: calc(13 * var(--u)); background: #fff; border: calc(2 * var(--u)) solid var(--ink); border-radius: 50%; transition: background .25s, color .25s, transform .3s var(--ease-spring); }
.app__step.is-done .app__badge { background: var(--green); color: transparent; transform: scale(1.15); }
.app__step.is-done .app__badge::after { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/70% no-repeat; }
.app__btn { display: grid; place-items: center; height: calc(46 * var(--u)); background: var(--green); color: #fff; border: calc(2 * var(--u)) solid var(--ink); border-radius: calc(16 * var(--u)); box-shadow: 0 calc(4 * var(--u)) 0 var(--ink); font-family: var(--display); font-weight: 600; font-size: calc(18 * var(--u)); transition: transform .12s, box-shadow .12s, background .3s, color .3s; }
.app__btn.is-pressed { transform: translateY(calc(4 * var(--u))); box-shadow: 0 0 0 var(--ink); }
.app__btn.is-done { background: #fff; color: var(--ink); }
.app__section { padding: calc(26 * var(--u)) calc(20 * var(--u)) 0; }
.app__section > b { font-family: var(--display); font-weight: 700; font-size: calc(22 * var(--u)); }
.app__radar { width: 64%; margin: calc(10 * var(--u)) auto 0; overflow: visible; }
.app__radar polygon[data-app-radar] { transition: all .8s var(--ease-spring); }
.app__tabbar { position: absolute; left: calc(14 * var(--u)); right: calc(14 * var(--u)); bottom: calc(26 * var(--u)); display: flex; justify-content: space-between; padding: calc(6 * var(--u)); background: rgba(255,253,247,.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 99px; box-shadow: 0 calc(6 * var(--u)) calc(20 * var(--u)) rgba(27,35,64,.18); }
.app__tabbar span { flex: 1; display: flex; flex-direction: column; align-items: center; gap: calc(2 * var(--u)); padding: calc(6 * var(--u)) 0; border-radius: 99px; font-size: calc(12.5 * var(--u)); font-weight: 800; color: var(--muted); }
.app__tabbar span.is-on { background: var(--green-tint); color: var(--green-dark); }
.app__tabbar img { width: calc(26 * var(--u)); height: calc(26 * var(--u)); }
.app__confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 4; }
.app__confetti i { position: absolute; top: 18%; left: 50%; width: calc(9 * var(--u)); height: calc(14 * var(--u)); border-radius: calc(3 * var(--u)); border: calc(1.5 * var(--u)) solid var(--ink); animation: burst 1.3s var(--ease-out) forwards; }
@keyframes burst { 0% { transform: translate(0,0) rotate(0); opacity: 1; } 100% { transform: translate(var(--x), var(--y)) rotate(var(--r)); opacity: 0; } }

/* ---- Sections ---- */
.section--tint { background: var(--paper-deep); border-block: var(--border) solid rgba(27,35,64,.08); }
.note { margin-top: 18px; font-size: 14px; font-weight: 700; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 10px; background: rgba(27,35,64,.05); }


/* Cartes de jeu : complément */
.games { grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.game__icon { width: 64px; height: 64px; }
.game__foot { margin-top: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.game__tag { margin-top: 0; }
.game__flag { font-size: 12px; font-weight: 800; letter-spacing: .04em; padding: 3px 10px; border-radius: 999px; background: var(--card); border: 1.5px dashed var(--ink); }
.domain-btn b { font-weight: 800; opacity: .55; font-size: 13px; }
.domain-btn[aria-pressed="true"] b { opacity: .8; }
.game.is-filtered-in { animation: pop-in .45s var(--ease-spring) both; animation-delay: var(--fd, 0s); }
@keyframes pop-in { from { opacity: 0; transform: scale(.9) translateY(10px); } to { opacity: 1; transform: none; } }
.demo__word { -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 0 4px 0 var(--ink); transition: transform .15s; }
.demo__word.is-new { animation: word-in .3s var(--ease-spring); }
@keyframes word-in { from { transform: scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }
.demo__choices button:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: 0 4px 0 var(--ink); }
.demo__bar > i { transition: transform .1s linear; }

/* Science */
.science { display: flex; align-items: center; gap: 22px; max-width: 760px; margin: 56px auto 0; padding: 22px 26px; background: var(--yellow-tint); border: var(--border) solid var(--ink); border-radius: 22px; box-shadow: var(--shadow); }
.science img { width: 110px; height: 110px; flex: none; }
.science p { margin-top: 6px; font-family: var(--display); font-weight: 600; font-size: clamp(18px, 2.2vw, 22px); line-height: 1.3; }
.science small { display: block; margin-top: 8px; color: var(--muted); font-size: 14px; }
@media (max-width: 600px) { .science { flex-direction: column; text-align: center; } }

/* Tests : défilé sur deux rangées */
.test-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 600px) { .test-cats { grid-template-columns: repeat(2, 1fr); } }
.test-cats div { padding: 16px; border-radius: 18px; background: rgba(255,255,255,.06); border: 2px solid rgba(255,255,255,.14); text-align: center; }
.test-cats img { width: 56px; height: 56px; margin: 0 auto 8px; padding: 6px; border-radius: 16px; background: var(--paper); }
.test-cats span { font-weight: 800; font-size: 14px; color: rgba(255,255,255,.8); }
.tests-rows { margin-top: 48px; display: grid; gap: 14px; }
.tests-row { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.tests-row__track { display: flex; gap: 14px; width: max-content; animation: marquee 70s linear infinite; }
.tests-row--rev .tests-row__track { animation-direction: reverse; animation-duration: 64s; }
.tests-row:hover .tests-row__track { animation-play-state: paused; }
.tests-row__dup { display: flex; gap: 14px; }
.test { width: 300px; flex: none; color: #fff; }
.test img { padding: 6px; }
.test__meta { display: block; margin-top: 4px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--yellow); }
.tests-note { margin-top: 36px; font-size: 14px; color: rgba(255,255,255,.65); max-width: 760px; }

/* Motivation */
.coach { display: flex; align-items: flex-end; gap: 12px; margin-top: 30px; }
.coach img { width: 120px; height: 120px; flex: none; transition: transform .4s var(--ease-spring); }
.coach .bubble { margin-bottom: 40px; transition: opacity .3s, transform .3s var(--ease-spring); }
.coach .bubble.is-swap { opacity: 0; transform: translateY(6px) scale(.96); }
.streak-week span { transition: transform .4s var(--ease-spring), background .3s; }
.streak-week span.on { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; padding-top: 0; }
.streak-week span.on::after { width: 20px; height: 20px; }
.is-in .streak-week span.on { animation: pop-in .5s var(--ease-spring) both; }
.is-in .streak-week span:nth-child(2) { animation-delay: .1s; } .is-in .streak-week span:nth-child(3) { animation-delay: .2s; }
.is-in .streak-week span:nth-child(4) { animation-delay: .3s; } .is-in .streak-week span:nth-child(5) { animation-delay: .4s; }
.badges img { transform: rotate(var(--r, 0deg)); }
.badges.is-in img { animation: badge-in .7s var(--ease-spring) both; }
.badges.is-in img:nth-child(2) { animation-delay: .06s; } .badges.is-in img:nth-child(3) { animation-delay: .12s; } .badges.is-in img:nth-child(4) { animation-delay: .18s; }
.badges.is-in img:nth-child(5) { animation-delay: .24s; } .badges.is-in img:nth-child(6) { animation-delay: .3s; } .badges.is-in img:nth-child(7) { animation-delay: .36s; } .badges.is-in img:nth-child(8) { animation-delay: .42s; }
@keyframes badge-in { from { opacity: 0; transform: scale(.4) rotate(-30deg); } to { opacity: 1; transform: rotate(var(--r, 0deg)); } }
.badges img:hover { transform: rotate(calc(var(--r, 0deg) * -1)) scale(1.1); }
@media (max-width: 520px) { .badges { grid-template-columns: repeat(4, 1fr); gap: 8px; } }

.final__soon { margin-top: 18px !important; font-weight: 800; }
.final__card .store { margin-top: 30px; }

/* Repère visuel des infos à compléter avant la mise en ligne */
.todo { background: #FFE58A; outline: 2px dashed var(--rust); border-radius: 6px; padding: 0 4px; font-weight: 800; color: var(--ink); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 90; translate: -50% 0; display: flex; align-items: center; gap: 10px; padding: 10px 18px 10px 10px; background: var(--card); border: var(--border) solid var(--ink); border-radius: 18px; box-shadow: var(--shadow); font-weight: 800; transform: translateY(140%); transition: transform .45s var(--ease-spring); max-width: calc(100vw - 32px); }
.toast.is-on { transform: none; }
.toast img { width: 48px; height: 48px; }
@keyframes fall { 0% { transform: translate3d(0, -30px, 0) rotate(0); } 100% { transform: translate3d(var(--sway, 0), 760px, 0) rotate(720deg); } }

/* ---- Ajustements téléphone ---- */
.price.is-best::before { white-space: nowrap; }
.price.is-best { padding-top: 18px; }
@media (max-width: 640px) {
  .games { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .game { padding: 12px; gap: 8px; border-radius: 16px; }
  .game__icon { width: 52px; height: 52px; border-radius: 14px; }
  .game h3 { font-size: 17px; }
  .game p { font-size: 14px; }
  .game__flag { display: none; }
  .domains { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 10px; scrollbar-width: none; }
  .domains::-webkit-scrollbar { display: none; }
  .domain-btn { flex: none; }
  .step { display: grid; grid-template-columns: 96px 1fr; column-gap: 14px; align-items: center; padding: 20px; }
  .step__bibi { width: 96px; height: 96px; margin: 0; grid-row: span 2; }
  .step p { margin-top: 4px; }
  .agecard { padding: 24px 22px 0; }
  .agecard__foot { margin-inline: -22px; padding-inline: 22px; }
}
main { overflow-x: clip; }
@media (max-width: 900px) { .reveal--left, .reveal--right { transform: translateY(32px); } }
[hidden] { display: none !important; }
.plan .plan__list { margin-bottom: 26px; }

/* =========================================================
   PROFIL COGNITIF : le bandeau vert et la constellation
   ========================================================= */
.profile-band { position: relative; overflow: hidden; background: var(--green); color: #fff; border-block: var(--border) solid var(--ink); padding-block: clamp(72px, 10vw, 128px); }
.profile-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(rgba(255,255,255,.13) 2px, transparent 2.5px) 0 0 / 30px 30px; pointer-events: none; }
.profile-band .wrap { position: relative; }
.profile-band .eyebrow { color: var(--yellow); }
.profile-band .section__head h2 { color: #fff; font-size: clamp(40px, 6.4vw, 72px); text-shadow: 0 5px 0 var(--ink); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; }
.profile-band .section__head p { color: rgba(255,255,255,.92); }

.pcard { display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(20px, 4vw, 52px); align-items: center; padding: clamp(18px, 3.4vw, 40px); background: #fff; color: var(--ink); border: var(--border) solid var(--ink); border-radius: 32px; box-shadow: 0 8px 0 var(--ink); }
@media (max-width: 940px) { .pcard { grid-template-columns: 1fr; } }
.pcard__viz { display: flex; flex-direction: column; align-items: center; }
.seg { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px; background: var(--paper); border: var(--border) solid var(--ink); border-radius: 999px; box-shadow: 0 3px 0 var(--ink); }
.seg button { position: relative; z-index: 1; min-width: 108px; padding: 9px 18px; border: 0; background: none; border-radius: 999px; cursor: pointer; font-family: var(--display); font-weight: 600; font-size: 17px; color: var(--muted); transition: color .3s; }
.seg button[aria-pressed="true"] { color: #fff; }
.seg__thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); background: var(--green); border: var(--border) solid var(--ink); border-radius: 999px; transition: transform .5s var(--ease-spring); }
.seg[data-at="1"] .seg__thumb { transform: translateX(100%); }
.constel { width: 100%; max-width: 580px; margin-top: 8px; overflow: visible; }
.pcard__legend { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 8px; font-size: 14px; font-weight: 800; color: var(--muted); }
.lg { display: inline-block; width: 24px; border-top: 4px solid var(--green); border-radius: 2px; margin-left: 6px; }
.lg--start { border-top: 3px dashed rgba(27,35,64,.6); }
.pcard__ex { font-weight: 700; }

/* La constellation (dessinée par main.js) */
.constel .plate-shadow { fill: var(--ink); }
.constel .plate { fill: #fff; stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.constel .web { fill: none; stroke: rgba(27,35,64,.2); stroke-width: 1.5; stroke-linejoin: round; }
.constel .area { fill: rgba(30,122,76,.3); }
.constel .outline { fill: none; stroke: var(--green); stroke-width: 5; stroke-linejoin: round; }
.constel .ghost { fill: none; stroke: rgba(27,35,64,.6); stroke-width: 2.5; stroke-dasharray: 8 7; stroke-linejoin: round; transition: opacity .4s; }
.constel.is-start .ghost { opacity: 0; }
.constel .vdot { fill: #fff; stroke: var(--ink); stroke-width: 2.5; transition: r .25s; }
.constel .link { stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1 7; }
.constel .axis { stroke: rgba(27,35,64,.2); stroke-width: 1.5; transition: stroke .25s, stroke-width .25s; }
.constel .node { transform-box: fill-box; transform-origin: center; transition: opacity .25s, transform .35s var(--ease-spring); cursor: default; }
.constel.is-dim .node:not(.is-focus) { opacity: .3; }
.constel .node.is-focus { transform: scale(1.14); }
.constel .ring-track { fill: none; stroke: var(--ink); stroke-width: 15; }
.constel .ring-bg { fill: none; stroke: #fff; stroke-width: 10; }
.constel .ring-arc { fill: none; stroke-width: 10; }
.constel .s-score { font-family: var(--display); font-weight: 700; font-size: 28px; fill: var(--ink); text-anchor: middle; }
.constel .s-score.is-full { fill: var(--green-dark); }
.constel .s-name { font-family: var(--text); font-weight: 800; font-size: 17px; fill: var(--muted); text-anchor: middle; }
.constel .delta { transform-box: fill-box; transform-origin: center; opacity: 0; transform: scale(.3); transition: opacity .3s, transform .45s var(--ease-spring); }
.constel.is-now .delta { opacity: 1; transform: none; }
.constel .delta rect { fill: var(--green); stroke: var(--ink); stroke-width: 2; }
.constel .delta text { font-family: var(--text); font-weight: 800; font-size: 16px; fill: #fff; text-anchor: middle; }
@media (max-width: 600px) {
  .constel .s-score { font-size: 40px; }
  .constel .s-name { font-size: 25px; }
  .constel .delta text { font-size: 20px; }
  .seg button { min-width: 96px; font-size: 16px; }
}

/* La liste des compétences */
.skills { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.skill { display: grid; grid-template-columns: 48px 1fr auto; column-gap: 12px; row-gap: 6px; align-items: center; padding: 9px 12px; border: var(--border) solid transparent; border-radius: 16px; transition: background .2s, border-color .2s, transform .25s var(--ease-out); outline: none; }
.skill:hover, .skill:focus-visible, .skill.is-focus { background: var(--t); border-color: var(--ink); transform: translateX(4px); }
.skill img { grid-row: span 2; width: 48px; height: 48px; padding: 4px; background: var(--t); border: var(--border) solid var(--ink); border-radius: 14px; }
.skill b { display: flex; align-items: center; gap: 6px; font-family: var(--display); font-weight: 600; font-size: 18px; line-height: 1.1; }
.skill small { display: block; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.skill__delta { font-family: var(--text); font-size: 12px; font-weight: 800; color: #fff; background: var(--green); border: 1.5px solid var(--ink); border-radius: 99px; padding: 0 7px; opacity: 0; transform: scale(.4); transition: opacity .3s, transform .45s var(--ease-spring); }
[data-profile].is-now .skill__delta { opacity: 1; transform: none; }
.skill__val { font-family: var(--display); font-weight: 700; font-size: 24px; color: var(--c); min-width: 2.1em; text-align: right; }
.skill__bar { grid-column: 2 / -1; height: 10px; overflow: hidden; background: var(--paper); border: var(--border) solid var(--ink); border-radius: 99px; }
.skill__bar i { display: block; height: 100%; background: var(--c); transform-origin: left; transform: scaleX(var(--f, 0)); }
.tier { margin-top: 16px; padding: 16px; background: var(--paper); border: var(--border) solid var(--ink); border-radius: 20px; }
.tier__head { display: flex; align-items: center; gap: 8px; }
.tier__head img { width: 30px; height: 30px; }
.tier__head b { font-weight: 800; }
.tier__head span { margin-left: auto; font-size: 14px; font-weight: 800; color: var(--muted); }
.tier__bar { height: 14px; margin-top: 10px; overflow: hidden; background: #fff; border: var(--border) solid var(--ink); border-radius: 99px; }
.tier__bar i { display: block; height: 100%; width: var(--w, 0%); background: var(--green); transition: width .9s var(--ease-out); }
.ladder { position: relative; list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ladder::before { content: ""; position: absolute; top: 21px; left: 12.5%; right: 12.5%; border-top: 2px dashed var(--faint); }
.ladder li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 13px; font-weight: 800; color: var(--muted); }
.ladder img { width: 44px; height: 44px; padding: 6px; background: #fff; border: var(--border) solid var(--ink); border-radius: 50%; filter: grayscale(1); opacity: .5; }
.ladder li.is-on { color: var(--ink); }
.ladder li.is-on img { filter: none; opacity: 1; background: var(--yellow-tint); box-shadow: 0 3px 0 var(--ink); }

/* =========================================================
   MINI-JEU : retours clairs et résultats détaillés
   ========================================================= */
.demo__top { gap: 10px; }
.demo__count { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 6px; border: var(--border) solid var(--ink); border-radius: 99px; font-family: var(--display); font-size: 17px; color: var(--ink); }
.demo__count svg { width: 18px; height: 18px; padding: 2px; border-radius: 50%; color: #fff; }
.demo__count--good { background: var(--green-tint); }
.demo__count--good svg { background: var(--green); }
.demo__count--bad { background: var(--rust-tint); }
.demo__count--bad svg { background: var(--rust); }
.demo__count.is-bump { animation: bump .35s var(--ease-spring); }
@keyframes bump { 50% { transform: scale(1.22); } }
.demo__combo { padding: 3px 10px; background: var(--yellow); border: var(--border) solid var(--ink); border-radius: 99px; font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--ink); animation: bump .35s var(--ease-spring); }
.demo__time { margin-left: auto; font-family: var(--display); font-size: 18px; color: var(--ink); }
.demo__time.is-hurt { color: var(--rust); animation: bump .4s var(--ease-spring); }
.demo__trail { display: flex; gap: 5px; flex-wrap: wrap; justify-content: center; min-height: 12px; margin-top: 12px; }
.demo__trail i { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--ink); animation: pop-in .3s var(--ease-spring) both; }
.demo__trail i.good { background: var(--green); }
.demo__trail i.bad { background: var(--rust); }
.demo__stage { position: relative; margin: 16px 0 4px; }
.demo__word { margin: 0; }
.demo__mark { position: absolute; top: 50%; right: 4%; width: 56px; height: 56px; margin-top: -28px; display: grid; place-items: center; border: var(--border) solid var(--ink); border-radius: 50%; color: #fff; opacity: 0; transform: scale(.3) rotate(-20deg); pointer-events: none; }
.demo__mark svg { width: 30px; height: 30px; }
.demo__mark.good { background: var(--green); animation: mark .7s var(--ease-spring) both; }
.demo__mark.bad { background: var(--rust); animation: mark 1s var(--ease-spring) both; }
@keyframes mark { 0% { opacity: 0; transform: scale(.3) rotate(-20deg); } 25% { opacity: 1; transform: scale(1.1) rotate(0); } 75% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(.9); } }
.demo__pop { position: absolute; left: 50%; top: 0; font-family: var(--display); font-weight: 700; font-size: 26px; opacity: 0; pointer-events: none; -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; }
.demo__pop.good { color: var(--green); animation: float-up .8s var(--ease-out) both; }
.demo__pop.bad { color: var(--rust); animation: float-up 1s var(--ease-out) both; }
@keyframes float-up { 0% { opacity: 0; transform: translate(-50%, 10px) scale(.8); } 20% { opacity: 1; transform: translate(-50%, -6px) scale(1.1); } 100% { opacity: 0; transform: translate(-50%, -46px) scale(1); } }
.demo__feedback { min-height: 1.5em; margin-bottom: 16px; font-weight: 800; font-size: 16px; color: var(--muted); transition: color .2s; }
.demo__feedback.good { color: var(--green-dark); }
.demo__feedback.bad { color: var(--rust); }
.demo__choice { position: relative; }
.demo__choice.is-good { outline: 4px solid var(--green); outline-offset: 3px; }
.demo__choice.is-bad { outline: 4px solid var(--rust); outline-offset: 3px; animation: shake .35s; }
.demo__choice.is-answer { animation: answer .7s ease-in-out; outline: 4px dashed var(--green); outline-offset: 3px; }
@keyframes answer { 30%, 70% { transform: translateY(-4px) scale(1.04); } }
.demo__choice.is-good::after, .demo__choice.is-bad::after { content: ""; position: absolute; top: -12px; right: -10px; width: 28px; height: 28px; border: 2px solid var(--ink); border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; animation: pop-in .3s var(--ease-spring) both; }
.demo__choice.is-bad::after { background: var(--rust) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 7l10 10M17 7 7 17' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.demo__start { margin-top: 16px; width: 100%; }
.demo__keys { margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--faint); }
@media (pointer: coarse) { .demo__keys { display: none; } }

/* L'écran de résultats */
.demo.is-done { grid-template-columns: 1fr; }
.demo.is-done .demo__intro, .demo.is-done .demo__board { display: none; }
.demo__results { animation: hero-in .6s var(--ease-out) both; }
.res__head { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; }
@media (max-width: 760px) { .res__head { grid-template-columns: auto 1fr; } .res__bibi { grid-column: 1 / -1; } }
.res__medal { width: 128px; height: 128px; object-fit: contain; animation: medal 1s var(--ease-spring) both .15s; }
@keyframes medal { 0% { opacity: 0; transform: scale(.2) rotate(-40deg); } 100% { opacity: 1; transform: none; } }
.res__score { display: flex; align-items: baseline; gap: 8px; margin-top: 2px; font-family: var(--display); font-weight: 700; }
.res__score b { font-size: clamp(60px, 9vw, 88px); line-height: .95; color: var(--green); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 0 4px 0 var(--ink); }
.res__score span { font-size: 22px; }
.res__formula { margin-top: 6px; font-weight: 800; color: var(--muted); }
.res__record { margin-top: 10px; background: var(--yellow); }
.res__bibi { display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 260px; }
@media (max-width: 760px) { .res__bibi { flex-direction: row-reverse; max-width: none; justify-content: flex-end; } }
.res__bibi img { width: 110px; height: 110px; animation: bob 3s ease-in-out infinite; }
.res__bibi .bubble { font-size: 15px; }
@media (max-width: 760px) { .res__bibi .bubble::before { left: -11px; top: 22px; bottom: auto; transform: rotate(45deg); } }
.res__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 26px; }
@media (max-width: 760px) { .res__stats { grid-template-columns: repeat(2, 1fr); } }
.res__stats div { padding: 14px; text-align: center; background: #fff; border: var(--border) solid var(--ink); border-radius: 18px; box-shadow: 0 3px 0 var(--ink); animation: pop-in .5s var(--ease-spring) both; }
.res__stats div:nth-child(2) { animation-delay: .08s; } .res__stats div:nth-child(3) { animation-delay: .16s; } .res__stats div:nth-child(4) { animation-delay: .24s; }
.res__stats b { display: block; font-family: var(--display); font-weight: 700; font-size: 30px; line-height: 1.1; }
.res__stats span { font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.res__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
@media (max-width: 760px) { .res__grid { grid-template-columns: 1fr; } }
.res__card { padding: 18px; background: #fff; border: var(--border) solid var(--ink); border-radius: 18px; }
.res__card h4 { font-size: 19px; margin-bottom: 12px; }
.res__card p { margin-top: 12px; font-size: 15px; color: var(--muted); }
.res__cmp { display: grid; gap: 10px; }
.res__row { display: grid; grid-template-columns: 112px 1fr 58px; gap: 10px; align-items: center; font-size: 14px; font-weight: 800; }
.res__row b { font-family: var(--display); font-size: 17px; text-align: right; }
.res__track { display: block; height: 16px; overflow: hidden; background: var(--paper); border: var(--border) solid var(--ink); border-radius: 99px; }
.res__track > i { display: block; height: 100%; width: var(--w, 0%); background: var(--sky); transition: width 1s var(--ease-out) .2s; }
.res__row--trap .res__track > i { background: var(--rust); }
.res__chart { display: flex; align-items: flex-end; gap: 4px; height: 110px; padding: 0 2px; border-bottom: 2px solid var(--ink); }
.res__chart i { flex: 1; max-width: 22px; min-height: 6px; height: var(--h); border: 1.5px solid var(--ink); border-bottom: 0; border-radius: 5px 5px 0 0; background: var(--green); transform-origin: bottom; animation: grow .6s var(--ease-spring) both; animation-delay: var(--d, 0s); }
.res__chart i.bad { background: var(--rust); }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.res__legend { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px !important; font-weight: 700; }
.res__legend .dot { width: 12px; height: 12px; border-radius: 3px; border: 1.5px solid var(--ink); margin-left: 4px; }
.dot--good { background: var(--green); } .dot--bad { background: var(--rust); }
.res__legend-note { color: var(--faint); }
.res__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 20px; }
.res__foot p { font-weight: 700; color: var(--muted); }
.res__btns { display: flex; gap: 10px; flex-wrap: wrap; }
