/* Hi! · proposition 4, « Pop » : des aplats de couleur, des stickers, un bento qui bouge.
   Polices auto-hébergées, aucune requête externe. Mobile d'abord. */

@font-face { font-family: 'Fredoka'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/fredoka-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fredoka'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/fredoka-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Lexend'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/lexend-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Lexend'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/lexend-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Lexend'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/lexend-latin-600-normal.woff2') format('woff2'); }

:root {
  color-scheme: light;
  --bg: #fff4e6;
  --ink: #1b1640;
  --ink-2: #4b4672;
  --orange: #ff8a1f;
  --orange-d: #d9660a;
  --pink: #ff6f7d;
  --pink-d: #de4a5e;
  --violet: #7a4df0;
  --violet-d: #5a2fd0;
  --indigo: #5b4df0;
  --indigo-d: #4032c7;
  --indigo-soft: #ecebfe;
  --gold: #f7b928;
  --gold-d: #d49508;
  --mint: #6ee7b7;
  --mint-d: #2fbf8a;
  --green: #17a673;
  --amber-bg: #fff4d6;
  --amber-edge: #f0c24b;
  --amber-ink: #6b4600;
  --grad: linear-gradient(120deg, #ffb347 0%, #ff6f7d 50%, #7a4df0 100%);
  --grad-text: linear-gradient(100deg, #e8620a 0%, #ec3f6c 46%, #7a4df0 100%);
  --fd: 'Fredoka', 'Lexend', system-ui, sans-serif;
  --ft: 'Lexend', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gutter: 16px;
  --maxw: 1240px;
  --r: 30px;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --out: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image: radial-gradient(rgb(27 22 64 / 7%) 1.3px, transparent 1.7px);
  background-size: 26px 26px;
  color: var(--ink);
  font: 400 17px/1.55 var(--ft);
  -webkit-font-smoothing: antialiased;
}

main { display: block; overflow-x: clip; }
img { max-width: 100%; }
svg { fill: currentColor; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 3px solid var(--indigo); outline-offset: 4px; border-radius: 14px; }

.sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.nw { white-space: nowrap; }

.grad {
  font-style: normal;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* pas de mot tout seul en fin de paragraphe (« amis. », « par jour. ») : les textes centrés s'équilibrent */
.hero-sub, .lead, .compare th, .way p, .ticks li { text-wrap: pretty; }
.sec-sub, .free-sub, .final-sub, .final-note, .sec-title, .card h3, .way h3 { text-wrap: balance; }

/* ---------- les boutons en relief de l'appli : un bord plus sombre, qui s'écrase à l'appui ---------- */

.btn {
  --c: var(--indigo);
  --d: var(--indigo-d);
  --t: #fff;
  --glow: rgb(64 50 199 / 45%);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 20px;
  border-radius: 18px;
  background: var(--c);
  color: var(--t);
  text-decoration: none;
  font: 600 17px/1.1 var(--fd);
  letter-spacing: .01em;
  box-shadow: 0 5px 0 var(--d), 0 14px 24px -12px var(--glow);
  transition: transform .12s ease, box-shadow .12s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.btn svg { width: 20px; height: 20px; flex: none; }

@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--d), 0 18px 28px -12px var(--glow); }
}

.btn:active {
  transform: translateY(5px);
  box-shadow: 0 0 0 var(--d), 0 6px 12px -8px var(--glow);
  transition-duration: .05s;
}

/* l'appui en haut d'un bouton qui s'enfonce ne perd jamais le clic */
.btn:active::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 10px;
}

.btn-sm { min-height: 48px; padding: 6px 16px 6px 18px; border-radius: 16px; }

.btn-web {
  justify-content: flex-start;
  gap: 12px;
  min-height: 68px;
  padding: 9px 22px 9px 10px;
  border-radius: 21px;
  text-align: left;
  box-shadow: 0 6px 0 var(--d), 0 16px 28px -12px var(--glow);
}

.btn-web:active { transform: translateY(6px); }

.btn-ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 50px;
  height: 50px;
  border-radius: 15px;
  background: rgb(255 255 255 / 17%);
}

.btn-ico svg { width: 27px; height: 27px; }
.btn-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.btn-txt b { font: 600 clamp(16px, 4.6vw, 19px)/1.1 var(--fd); text-wrap: balance; }
.btn-txt small { font: 500 13.5px/1.2 var(--ft); opacity: .9; }

/* petit téléphone : le bouton se serre pour tenir sur une ligne */
@media (max-width: 400px) {
  .btn-web { gap: 10px; padding: 8px 14px 8px 9px; }
  .btn-ico { width: 46px; height: 46px; border-radius: 14px; }
  .btn-ico svg { width: 25px; height: 25px; }
}

.btn-white {
  --c: #fff;
  --d: #cfc6ff;
  --t: var(--indigo-d);
  --glow: rgb(40 20 120 / 45%);
}

.btn-white .btn-ico { background: var(--indigo-soft); }

.store {
  display: inline-flex;
  border-radius: 10px;
  -webkit-tap-highlight-color: transparent;
}

.store img { display: block; width: auto; height: 52px; }
.store[hidden] { display: none; }

@media (max-width: 400px) {
  .store img { height: 48px; }
  .stores { column-gap: 8px; }
}

/* ---------- la barre du haut ---------- */

.nav {
  position: sticky;
  top: 10px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(var(--maxw), 100% - 2 * var(--gutter));
  height: 62px;
  margin: 10px auto 0;
  padding: 0 7px 0 10px;
  border-radius: 22px;
  background: rgb(255 255 255 / 94%);
  box-shadow: 0 4px 0 rgb(27 22 64 / 7%), 0 14px 30px -16px rgb(27 22 64 / 30%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding-right: 6px;
  text-decoration: none;
  font: 700 25px/1 var(--fd);
  color: var(--ink);
}

.brand img { width: 40px; height: 40px; border-radius: 22.5%; }

.nav-links { display: none; margin-left: auto; gap: 4px; }

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  font: 600 16px var(--fd);
  text-decoration: none;
  color: var(--ink-2);
  transition: background-color .2s, color .2s;
}

.nav-links a:hover { background: var(--indigo-soft); color: var(--indigo-d); }
.nav .btn { margin-left: auto; }

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav .btn { margin-left: 6px; }
}

/* ---------- héros ---------- */

.hero {
  position: relative;
  display: grid;
  width: min(var(--maxw), 100% - 2 * var(--gutter));
  margin: 0 auto;
  padding: 18px 0 8px;
  --mx: 0;
  --my: 0;
}

/* --u : un point du logo, en pixels ; les lettres et la bulle s'y calent */
.hero-copy { position: relative; z-index: 3; --u: clamp(.86px, calc((100vw - 40px) / 318), 1.18px); }

/* le grand Hi! : les lettres du logo, une par une */
.hi {
  position: relative;
  width: calc(288 * var(--u));
  height: calc(210 * var(--u));
  margin: 4px 0 0 calc(6 * var(--u));
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* les lettres passent devant la bulle : elles s'y posent, sa pointe se cache derrière le H */
.L {
  position: absolute;
  z-index: 2;
  left: calc(var(--x) * var(--u));
  top: calc(var(--y) * var(--u));
  width: calc(var(--w) * var(--u));
  height: calc(var(--h) * var(--u));
  transform-origin: 50% 100%;
  cursor: pointer;
  touch-action: manipulation;
}

.L svg { display: block; width: 100%; height: 100%; overflow: visible; }
.L-fl { transform-origin: 50% 80%; }

.hi-shadow {
  position: absolute;
  left: calc((var(--x) - 6) * var(--u));
  width: calc((var(--w) + 12) * var(--u));
  top: calc(198 * var(--u));
  height: calc(14 * var(--u));
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(27 22 64 / 24%), rgb(27 22 64 / 0%));
  pointer-events: none;
}

.hi-shadow[data-for='x'] { top: calc(201 * var(--u)); }

.flick {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: flick 2.4s ease-in-out infinite;
}

@keyframes flick {
  0%, 100% { transform: scale(1, 1) skewX(0deg); }
  25% { transform: scale(.97, 1.04) skewX(-2deg); }
  50% { transform: scale(1.02, .97) skewX(1.5deg); }
  75% { transform: scale(.98, 1.03) skewX(-1deg); }
}

.flick .core {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: core 1.2s ease-in-out infinite alternate;
}

@keyframes core {
  from { transform: scale(.9, .86); }
  to { transform: scale(1.04, 1.08); }
}

/* la bulle blanche, encre indigo, les mots clés en dégradé.
   isolation : sa pointe (z-index -1) passe sous son texte, jamais dessus */
.bubble {
  --tail: .8em;
  --tail-x: 1.5em;
  position: relative;
  isolation: isolate;
  display: inline-block;
  padding: .36em .6em .44em;
  border-radius: .62em;
  background: #fff;
  color: #3a2bb8;
  font-family: var(--fd);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.01em;
  box-shadow: 0 6px 0 rgb(58 43 184 / 13%), 0 22px 40px -18px rgb(58 43 184 / 40%);
}

/* la pointe : un carré tourné, centré sur le bord du haut ; seule sa moitié au-dessus du bord existe
   (un cheveu de plus vers le bas, caché sous le blanc, pour ne laisser aucune couture) */
.bubble::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: calc(var(--tail-x) - var(--tail) / 2);
  top: calc(var(--tail) / -2);
  width: var(--tail);
  height: var(--tail);
  border-top-left-radius: 24%;
  background: #fff;
  transform: rotate(45deg);
  clip-path: polygon(0 0, 100% 0, 100% 8%, 8% 100%, 0 100%);
}

/* la bulle sous les lettres : sa pointe se glisse derrière la jambe droite du H */
.hero-title { position: relative; z-index: 1; display: block; margin-top: calc(7 * var(--u)); }

.hero-bubble {
  --tail: .74em;
  --tail-x: calc((125 - 26) * var(--u));
  width: max-content;
  max-width: 100%;
  margin-left: calc(26 * var(--u));
  font-size: clamp(30px, min(9.4vw, 6.4vh), 62px);
  transform-origin: 18% 0;
  rotate: -2deg;
}

.hero-sub {
  max-width: 31em;
  margin-top: 18px;
  color: var(--ink-2);
  font-size: 16.5px;
  line-height: 1.55;
}

.ways-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 12px;
  margin-top: 22px;
}

.ways-in .btn-web { width: 100%; }

.stores { display: flex; flex-wrap: wrap; gap: 10px 12px; }

.hero-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 14px;
}

.hero-note svg { width: 18px; height: 18px; flex: none; color: var(--indigo); }

/* la scène : un soleil qui tourne, trois téléphones, des stickers. Pas de z-index ici : un sticker
   qu'on décolle passe au-dessus du texte du héros, comme un vrai sticker */
.hero-stage {
  position: relative;
  height: clamp(420px, 122vw, 560px);
  margin-top: 18px;
}

.burst {
  position: absolute;
  left: 50%;
  top: 47%;
  width: min(118%, 680px);
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: repeating-conic-gradient(#ffcf70 0deg 7.5deg, #ffe7b5 7.5deg 15deg);
  -webkit-mask: radial-gradient(closest-side, #000 58%, transparent 100%);
  mask: radial-gradient(closest-side, #000 58%, transparent 100%);
  animation: spin 80s linear infinite;
}

@keyframes spin { to { rotate: 360deg; } }

.phone {
  position: absolute;
  left: var(--px);
  top: var(--py);
  rotate: var(--pr);
  transition: opacity .5s ease, translate 1.1s var(--spring);
  transition-delay: var(--pd, 0s);
}

.ph-1 { --pw: clamp(132px, 40vw, 200px); --px: 0%; --py: 15%; --pr: -10deg; --pd: .35s; z-index: 1; }
.ph-2 { --pw: clamp(152px, 46vw, 232px); --px: calc(50% - var(--pw) / 2); --py: 4%; --pr: 2.5deg; --pd: .22s; z-index: 3; }
.ph-3 { --pw: clamp(132px, 40vw, 200px); --px: calc(100% - var(--pw)); --py: 17%; --pr: 10deg; --pd: .48s; z-index: 2; }

.ph-par {
  translate: calc(var(--mx) * var(--d) * 12px) calc(var(--my) * var(--d) * 9px);
  transition: translate .7s var(--out);
}

.ph-float { animation: float 6s ease-in-out infinite; }
.ph-1 .ph-float { animation-delay: -2s; animation-duration: 6.6s; }
.ph-3 .ph-float { animation-delay: -4s; animation-duration: 7.2s; }

@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

/* le téléphone, dessiné : un cadre de couleur, un bord plus sombre en dessous */
.device {
  --pw: 220px;
  --fc: #1b1640;
  --fcd: #0b0822;
  position: relative;
  width: var(--pw);
  padding: calc(var(--pw) * .034);
  border-radius: calc(var(--pw) * .165);
  background: var(--fc);
  box-shadow:
    inset 0 0 0 calc(var(--pw) * .007) rgb(255 255 255 / 16%),
    0 calc(var(--pw) * .028) 0 var(--fcd),
    0 calc(var(--pw) * .12) calc(var(--pw) * .2) calc(var(--pw) * -.08) rgb(27 22 64 / 42%);
}

.phone .device { --pw: inherit; }
.ph-1 .device { --fc: #ff6f7d; --fcd: #c9435a; }
.ph-3 .device { --fc: #7a4df0; --fcd: #4f2bc2; }

.device img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 390 / 844;
  border-radius: calc(var(--pw) * .132);
  background: #f4f5fb;
}

.device.dark img { background: #15122e; }

/* les stickers : ils se décollent, se lancent et retombent */
.sticker {
  position: absolute;
  z-index: 6;
  left: var(--sx);
  top: var(--sy);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  rotate: var(--r);
  scale: var(--ss, 1);
  font-family: var(--fd);
  font-weight: 700;
  white-space: nowrap;
  color: var(--ink);
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  filter: drop-shadow(0 4px 0 rgb(27 22 64 / 13%)) drop-shadow(0 12px 14px rgb(27 22 64 / 18%));
  transition: opacity .3s ease, scale .55s cubic-bezier(.3, 1.9, .6, 1), filter .25s ease;
  transition-delay: var(--sd, 0s);
}

.sticker.lift {
  cursor: grabbing;
  z-index: 8;
  scale: calc(var(--ss, 1) * 1.1);
  filter: drop-shadow(0 6px 0 rgb(27 22 64 / 10%)) drop-shadow(0 26px 22px rgb(27 22 64 / 26%));
  transition-delay: 0s;
  transition-duration: .3s, .25s, .25s;
}

.st-free {
  --sx: -2%;
  --sy: -3%;
  --sd: 1.05s;
  justify-content: center;
  width: 118px;
  height: 118px;
}

.st-free svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.st-free path { fill: var(--gold); stroke: #fff; stroke-width: 9; stroke-linejoin: round; paint-order: stroke; }
.st-free span { position: relative; font-size: 22px; rotate: -4deg; }

.st-ads {
  --sx: calc(100% - 170px);
  --sy: 0%;
  --sd: 1.2s;
  padding: 9px 17px 9px 11px;
  border: 5px solid #fff;
  border-radius: 999px;
  background: var(--pink);
  font-size: 20px;
}

.st-ads .no {
  position: relative;
  width: 24px;
  height: 24px;
  border: 3.5px solid var(--ink);
  border-radius: 50%;
}

.st-ads .no::after {
  content: '';
  position: absolute;
  left: 50%;
  top: -2px;
  width: 3.5px;
  height: calc(100% + 4px);
  translate: -50% 0;
  rotate: -45deg;
  border-radius: 2px;
  background: var(--ink);
}

.st-lvl {
  --sx: 1%;
  --sy: 74%;
  --sd: 1.35s;
  padding: 9px 12px 10px 15px;
  border: 5px solid #fff;
  border-radius: 22px;
  background: var(--mint);
  font-size: 19px;
  line-height: 1;
}

.st-lvl svg { width: 24px; height: 24px; rotate: -40deg; }

.st-web {
  --sx: calc(100% - 188px);
  --sy: 86%;
  --sd: 1.5s;
  padding: 9px 14px 10px 11px;
  border: 5px solid #fff;
  border-radius: 20px;
  background: var(--indigo);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.05;
}

.st-web svg { width: 26px; height: 26px; }

.drag-hint {
  position: absolute;
  z-index: 5;
  left: 2%;
  top: 102%;
  display: none;
  align-items: center;
  gap: 6px;
  color: var(--ink-2);
  font: 600 14px var(--fd);
  rotate: -3deg;
  transition: opacity .4s ease;
  transition-delay: 2.2s;
}

.drag-hint svg { width: 20px; height: 20px; }
.hero.touched .drag-hint { opacity: 0; transition-delay: 0s; }

/* l'entrée du héros : hors des téléphones et des stickers, rien n'est caché sans le script */
.hero-bubble,
.hero-sub,
.hero .ways-in,
.hero-note {
  transition: opacity .5s ease, translate .8s var(--spring), scale .7s var(--spring), rotate .7s var(--spring);
}

.hero-bubble { transition-delay: .55s; }
.hero-sub { transition-delay: .75s; }
.hero .ways-in { transition-delay: .88s; }
.hero-note { transition-delay: 1s; }

.js .hero:not(.go) .L,
.js .hero:not(.go) .hi-shadow { opacity: 0; }
.js .hero:not(.go) .hero-bubble { opacity: 0; scale: .4; rotate: -12deg; }
.js .hero:not(.go) :is(.hero-sub, .ways-in, .hero-note) { opacity: 0; translate: 0 22px; }
.js .hero:not(.go) .phone { opacity: 0; translate: 0 140px; }
.js .hero:not(.go) .sticker { opacity: 0; scale: 1.9; }
.js .hero:not(.go) .drag-hint { opacity: 0; }

/* filet de sécurité : sans script.js, tout se montre quand même */
.js .hero:not(.go) :is(.L, .hi-shadow, .hero-bubble, .hero-sub, .ways-in, .hero-note, .phone, .sticker) {
  animation: failsafe .01s 2.4s forwards;
}

@keyframes failsafe {
  to { opacity: 1; translate: none; scale: none; rotate: none; }
}

.js .hero:not(.go) .hero-bubble { animation-name: failsafe-bubble; }

@keyframes failsafe-bubble {
  to { opacity: 1; translate: none; scale: none; rotate: -2deg; }
}

.js .hero:not(.go) .sticker { animation-name: failsafe-sticker; }

@keyframes failsafe-sticker {
  to { opacity: 1; scale: var(--ss, 1); }
}

@media (min-width: 560px) {
  .ways-in .btn-web { width: auto; }
  .hero-sub { font-size: 18px; }
}

@media (min-width: 1000px) {
  .hero {
    grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
    align-items: center;
    gap: 24px;
    min-height: min(calc(100vh - 72px), 900px);
    padding: 10px 0 36px;
  }

  .hero-copy { --u: clamp(1.15px, min(calc(33vw / 288), calc(36vh / 210)), 1.95px); }
  .hi { margin-top: 0; }
  .hero-bubble { --tail-x: calc((125 - 54) * var(--u)); margin-left: calc(54 * var(--u)); }
  .hero-sub { font-size: 19px; margin-top: 22px; }
  .ways-in { margin-top: 26px; }

  .hero-stage { height: min(690px, calc(100vh - 150px)); min-height: 560px; margin: 0; }
  .ph-1 { --pw: min(222px, 25vh); --px: 1%; --py: 13%; }
  .ph-2 { --pw: min(262px, 29.5vh); --py: 3%; }
  .ph-3 { --pw: min(222px, 25vh); --px: calc(99% - var(--pw)); --py: 16%; }

  .st-free { --sx: -7%; --sy: 2%; width: 136px; height: 136px; }
  .st-free span { font-size: 25px; }
  .st-ads { --sx: calc(100% - 178px); --sy: 1%; font-size: 22px; }
  .st-lvl { --sx: -4%; --sy: 72%; font-size: 21px; }
  .st-web { --sx: calc(100% - 204px); --sy: 84%; font-size: 17px; }
  .drag-hint { display: inline-flex; left: auto; right: 2%; top: auto; bottom: -6%; }
}

/* ---------- les bandes de phrases, en croix ---------- */

/* jusqu'à 1200 px, deux rubans à peine penchés, l'un au-dessus de l'autre (en croix, sur un écran étroit,
   le ruban du dessous restait presque entier sous l'autre) ; en croix franche à partir de 1200 px */
.bands {
  position: relative;
  height: 290px;
  margin-top: 6px;
  overflow: clip;
}

.band {
  position: absolute;
  left: -6%;
  right: -6%;
  top: 50%;
  padding: 14px 0 15px;
  overflow: hidden;
  white-space: nowrap;
}

.band-a {
  z-index: 2;
  top: 70%;
  background: var(--orange);
  color: var(--ink);
  transform: translateY(-50%) rotate(-2deg);
  box-shadow: 0 6px 0 var(--orange-d), 0 18px 30px -16px rgb(120 50 0 / 45%);
}

.band-b {
  top: 26%;
  background: var(--indigo);
  color: #fff;
  transform: translateY(-50%) rotate(1.6deg);
  box-shadow: 0 6px 0 var(--indigo-d);
}

.track {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding-left: 22px;
  will-change: transform;
}

.ph { display: inline-flex; align-items: baseline; gap: 12px; }
.ph b { font: 700 clamp(22px, 3.2vw, 34px)/1.1 var(--fd); letter-spacing: -.005em; }
.ph i { font: 500 clamp(14px, 1.5vw, 18px)/1.1 var(--ft); font-style: normal; opacity: .8; }

.sep {
  width: 22px;
  height: 22px;
  flex: none;
  background: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0c.8 6.2 4.8 10.6 12 12-7.2 1.4-11.2 5.8-12 12-.8-6.2-4.8-10.6-12-12C7.2 10.6 11.2 6.2 12 0Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0c.8 6.2 4.8 10.6 12 12-7.2 1.4-11.2 5.8-12 12-.8-6.2-4.8-10.6-12-12C7.2 10.6 11.2 6.2 12 0Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.band-b .sep { background: var(--gold); }

@media (min-width: 1000px) {
  .bands { margin-top: 0; }
}

@media (min-width: 1200px) {
  /* en croix, la pente monte avec la largeur de l'écran (la bande fait 112 % de large) : la hauteur suit, pour que
     ses coins et son ombre ne soient jamais coupés (demande de Pierre) */
  .bands { height: calc(150px + 11.8vw); }
  .band { padding: 18px 0 19px; }
  .band-a { top: 50%; transform: translateY(-50%) rotate(-6deg); }
  .band-b { top: 50%; transform: translateY(-50%) rotate(5.4deg); }
}

/* ---------- titres de section ---------- */

.sec-head { text-align: center; }

.kicker {
  display: inline-block;
  padding: 8px 15px;
  border-radius: 999px;
  background: #fff;
  color: var(--indigo-d);
  font: 600 14px/1 var(--fd);
  letter-spacing: .08em;
  text-transform: uppercase;
  rotate: -3deg;
  box-shadow: 0 3px 0 rgb(27 22 64 / 9%);
}

.sec-title {
  max-width: 12.5ch;
  margin: 16px auto 0;
  font: 700 clamp(40px, 10.4vw, 100px)/.96 var(--fd);
  letter-spacing: -.02em;
  text-wrap: balance;
}

/* le dégradé ne peint que la boîte du mot : sans ce rembourrage, la ligne serrée (.96) coupait le bas du j et du p */
.sec-title .hl.wd { display: inline-block; padding-bottom: .18em; margin-bottom: -.18em; }

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

.sec-sub {
  max-width: 30em;
  margin: 16px auto 0;
  color: var(--ink-2);
  font-size: clamp(16px, 1.6vw, 19px);
}

/* ---------- le bento ---------- */

.features {
  width: min(var(--maxw), 100% - 2 * var(--gutter));
  margin: 0 auto;
  padding: 56px 0 30px;
}

.bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.card { grid-column: span 2; min-width: 0; }
/* sur téléphone, les deux cartes courtes (TOEIC et flamme) côte à côte, le défi en pleine largeur ;
   dense : la flamme remonte à côté du TOEIC */
@media (min-width: 380px) and (max-width: 699px) {
  .bento { grid-auto-flow: row dense; }
  .c-toeic, .c-flame { grid-column: span 1; }
}

.card-in {
  --rx: 0deg;
  --ry: 0deg;
  --gx: 50%;
  --gy: 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 20px 18px 22px;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--cbg);
  color: var(--cfg);
  box-shadow: 0 7px 0 var(--cd), 0 26px 40px -26px rgb(27 22 64 / 55%);
  transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .6s var(--out);
  container-type: inline-size;
  isolation: isolate;
}

.card-in.tilting { transition-duration: .15s; }

/* le reflet qui suit le pointeur */
.card-in::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 20;
  border-radius: inherit;
  background: radial-gradient(circle at var(--gx) var(--gy), rgb(255 255 255 / 30%), rgb(255 255 255 / 0%) 46%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
}

.card-in.tilting::after { opacity: 1; }

.c-err { --cbg: var(--violet); --cd: var(--violet-d); --cfg: #fff; }
.c-talk { --cbg: var(--pink); --cd: var(--pink-d); --cfg: var(--ink); }
.c-toeic { --cbg: var(--indigo); --cd: var(--indigo-d); --cfg: #fff; }
.c-pron { --cbg: var(--mint); --cd: var(--mint-d); --cfg: var(--ink); }
.c-path { --cbg: var(--gold); --cd: var(--gold-d); --cfg: var(--ink); }
.c-duel { --cbg: var(--orange); --cd: var(--orange-d); --cfg: var(--ink); }
.c-flame { --cbg: #fff; --cd: #ead9c3; --cfg: var(--ink); }
.c-car { --cbg: #1b1640; --cd: #08061c; --cfg: #fff; }

.num {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 30px;
  padding: 0 9px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: 700 14px/1 var(--fd);
  rotate: 6deg;
  box-shadow: 0 3px 0 rgb(27 22 64 / 14%);
}

.c-flame .num { background: var(--bg); }

.card h3 {
  position: relative;
  z-index: 2;
  max-width: calc(100% - 46px);
  font: 700 clamp(22px, 8.4cqw, 46px)/1.02 var(--fd);
  letter-spacing: -.012em;
  text-wrap: balance;
}

.lead {
  position: relative;
  z-index: 2;
  max-width: 32em;
  margin-top: 10px;
  font-size: clamp(14px, 4.3cqw, 16.5px);
  line-height: 1.5;
}

.c-err .lead, .c-toeic .lead, .c-car .lead { color: #fff; }

.chips {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 7px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 6px 12px 7px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: 600 14px/1.1 var(--fd);
  box-shadow: 0 3px 0 rgb(27 22 64 / 13%);
}

.chips li:nth-child(odd) { rotate: -2deg; }
.chips li:nth-child(even) { rotate: 1.6deg; }

.tag-note {
  position: relative;
  z-index: 3;
  align-self: flex-start;
  margin-top: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: 600 13.5px/1.2 var(--fd);
  rotate: -2deg;
}

/* une capture qui dépasse, coupée par le bord de la carte */
.peek { position: absolute; z-index: 1; }

/* ----- 1. ton erreur, expliquée ----- */

.c-err .card-in::before {
  content: '';
  position: absolute;
  right: -18%;
  bottom: -26%;
  z-index: 0;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(255 255 255 / 0%) 58%, rgb(255 255 255 / 9%) 59%, rgb(255 255 255 / 9%) 74%, rgb(255 255 255 / 0%) 75%);
}

.err-viz {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex: 1;
  margin-top: 20px;
  padding: 6px 0 18px;
}

.app-card {
  position: relative;
  width: min(100%, 480px);
  padding: 18px 16px 16px;
  border-radius: 24px;
  background: #f4f5fb;
  color: #16162a;
  rotate: -1.6deg;
  box-shadow: 0 8px 0 rgb(20 8 70 / 28%), 0 34px 50px -24px rgb(20 8 70 / 70%);
}

.ex-ins { color: #6b6e8a; font-size: 13px; }

.ex-q {
  margin: 6px 0 14px;
  font: 600 clamp(19px, 4.8cqw, 26px)/1.2 var(--fd);
}

.field {
  --fb: #e0e3ef;
  position: relative;
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 10px 14px;
  border: 2.5px solid var(--fb);
  border-radius: 16px;
  background: #fff;
  font: 600 clamp(17px, 4.3cqw, 22px)/1.3 var(--fd);
  color: #16162a;
  transition: border-color .3s ease, background-color .3s ease;
}

.field.almost, .field:not(.typing):not(.ok) { --fb: var(--amber-edge); background: #fffaf0; color: #5c3d00; }
.field.typing { --fb: #c9c5f5; background: #fff; color: #16162a; }
.field.ok { --fb: var(--green); background: #f3fcf8; color: #0b5a3c; }

.f-text { white-space: nowrap; }

.look {
  display: inline-block;
  padding: 0 .26em;
  border-radius: .32em;
  transform-origin: 50% 60%;
  transition: transform .5s cubic-bezier(.3, 1.9, .55, 1), box-shadow .5s ease, background-color .3s ease;
}

.look.on {
  background: var(--amber-bg);
  box-shadow: inset 0 0 0 2.5px var(--amber-edge), 0 0 0 4px rgb(247 185 40 / 22%), 0 0 22px 5px rgb(247 185 40 / 55%);
  transform: scale(1.2);
  animation: glow 1.6s ease-in-out .6s infinite alternate;
}

@keyframes glow {
  from { box-shadow: inset 0 0 0 2.5px var(--amber-edge), 0 0 0 4px rgb(247 185 40 / 22%), 0 0 16px 3px rgb(247 185 40 / 42%); }
  to { box-shadow: inset 0 0 0 2.5px var(--amber-edge), 0 0 0 6px rgb(247 185 40 / 26%), 0 0 30px 8px rgb(247 185 40 / 68%); }
}

.caret {
  display: none;
  width: 2.5px;
  height: 1.15em;
  margin-left: 2px;
  border-radius: 2px;
  background: var(--indigo);
  animation: blink 1s steps(1) infinite;
}

.field.typing .caret { display: inline-block; }

@keyframes blink { 50% { opacity: 0; } }

.verdicts { display: grid; margin-top: 14px; }

.verdict {
  grid-area: 1 / 1;
  padding: 14px;
  border-radius: 18px;
  opacity: 0;
  translate: 0 14px;
  scale: .97;
  transition: opacity .3s ease, translate .55s var(--spring), scale .55s var(--spring);
  pointer-events: none;
}

.verdict.on { opacity: 1; translate: 0 0; scale: 1; }

.v-check { align-self: end; padding: 0; }

.mini-btn {
  display: grid;
  place-items: center;
  min-height: 54px;
  border-radius: 16px;
  background: var(--indigo);
  color: #fff;
  font: 700 17px/1 var(--fd);
  letter-spacing: .05em;
  text-transform: uppercase;
  box-shadow: 0 5px 0 var(--indigo-d);
  transition: translate .08s ease, box-shadow .08s ease;
}

.v-check.press .mini-btn { translate: 0 5px; box-shadow: 0 0 0 var(--indigo-d); }
.v-almost { background: var(--amber-bg); color: #4a3500; }
.v-ok { background: #e2f7ee; color: #0b4a33; }

.v-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 700 19px/1.1 var(--fd);
}

.v-almost .v-title { color: #8a5a00; }
.v-ok .v-title { color: #0f7f57; }
.v-title svg { width: 18px; height: 18px; }
.v-text { margin-top: 6px; font-size: 14.5px; line-height: 1.45; }
.v-text i { font-style: normal; font-weight: 600; }

.var-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 9px 12px;
  border: 2px solid transparent;
  border-radius: 14px;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(100deg, #ffa53a, #9b5cf6 55%, #5b4df0) border-box;
  color: #16162a;
}

.var-btn .ai { width: 22px; height: 22px; flex: none; fill: url(#g-logo); animation: twinkle 2.2s ease-in-out infinite; }

@keyframes twinkle {
  0%, 100% { scale: 1; rotate: 0deg; }
  50% { scale: 1.25; rotate: 45deg; }
}

.var-btn b { display: block; font: 600 15px/1.2 var(--fd); }
.var-btn small { display: block; color: #6b6e8a; font-size: 12px; line-height: 1.3; }

.xp {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font: 700 14px var(--fd);
}

.sticky-note {
  position: absolute;
  right: -10px;
  top: -22px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 6px 6px 6px 18px;
  background: var(--gold);
  color: var(--ink);
  font: 700 15px/1.05 var(--fd);
  rotate: 7deg;
  box-shadow: 0 4px 0 var(--gold-d), 0 12px 18px -8px rgb(20 8 70 / 50%);
}

.sticky-note svg { width: 18px; height: 18px; flex: none; }

/* ----- 2. discute avec Hi! ----- */

.talk-viz {
  position: relative;
  flex: 1;
  min-height: 330px;
  margin: 14px -18px -22px;
}

.pk-talk { --pw: min(232px, 66cqw); left: 50%; top: 22px; translate: -50% 0; rotate: 4deg; }
.pk-talk .device { --pw: inherit; --fc: #1b1640; }

.orb-ring {
  position: absolute;
  left: 50%;
  top: 26%;
  width: 35%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border: 2px solid rgb(255 255 255 / 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: orb 2.8s ease-out infinite;
}

.orb-ring.r2 { animation-delay: 1.4s; }

@keyframes orb {
  0% { scale: .92; opacity: .9; }
  100% { scale: 1.9; opacity: 0; }
}

/* ce que dit Hi! : une bulle posée dans le vide de l'écran, entre « Hi! parle... » (38 %) et la discussion
   (50 %), sa pointe vers l'orbe. Placée dans le repère du téléphone (en % de sa hauteur, en fonction de
   --pw) : elle ne couvre aucun texte de la capture, à toutes les tailles */
.pop-bubble {
  --tail: .66em;
  --tail-x: 31%;
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 42%;
  isolation: isolate;
  width: max-content;
  padding: .45em .8em .5em;
  border-radius: 1.1em;
  background: #fff;
  color: var(--ink);
  font: 600 calc(var(--pw) * .06)/1.2 var(--fd);
  translate: -50% 0;
  rotate: -2deg;
  filter: drop-shadow(0 3px 0 rgb(27 22 64 / 22%));
  transform-origin: var(--tail-x) 0;
  animation: popin 5s var(--spring) 1s infinite both;
}

.pop-bubble::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: calc(var(--tail-x) - var(--tail) / 2);
  top: calc(var(--tail) / -2);
  width: var(--tail);
  height: var(--tail);
  border-top-left-radius: 24%;
  background: #fff;
  transform: rotate(45deg);
  clip-path: polygon(0 0, 100% 0, 100% 8%, 8% 100%, 0 100%);
}

.pop-bubble b { color: var(--green); }

@keyframes popin {
  0% { scale: 0; opacity: 0; }
  9% { scale: 1.08; opacity: 1; }
  14%, 82% { scale: 1; opacity: 1; }
  92%, 100% { scale: 0; opacity: 0; }
}

/* la voix de Hi! : à droite de l'orbe, à cheval sur le bord du téléphone, dans la marge vide de l'écran
   (ni la barre d'état ni le bouton Aa) */
.eq {
  position: absolute;
  z-index: 3;
  right: calc(var(--pw) * -.11);
  top: 21.5%;
  display: flex;
  align-items: center;
  gap: 3px;
  height: 38px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--ink);
  rotate: 2deg;
  box-shadow: 0 0 0 3px rgb(255 255 255 / 85%), 0 4px 0 3px rgb(0 0 0 / 18%);
}

.eq i {
  width: 4px;
  height: 18px;
  border-radius: 3px;
  background: linear-gradient(#ffb347, #ff6f7d 55%, #9b5cf6);
  animation: eq 1s ease-in-out infinite alternate;
}

.eq i:nth-child(2) { animation-delay: -.3s; height: 23px; }
.eq i:nth-child(3) { animation-delay: -.6s; height: 15px; }
.eq i:nth-child(4) { animation-delay: -.15s; height: 21px; }
.eq i:nth-child(5) { animation-delay: -.45s; }

@keyframes eq {
  from { scale: 1 .35; }
  to { scale: 1 1; }
}

/* l'étiquette suit les situations, au-dessus du téléphone : plus rien ne couvre l'écran */
.c-talk .tag-note { margin-top: 14px; }

/* ----- 3. vise ton score ----- */

.score { position: relative; z-index: 2; margin-top: 12px; }

.sc-num {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font: 700 clamp(54px, 25cqw, 84px)/.95 var(--fd);
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}

.sc-num small { font: 600 clamp(16px, 6cqw, 22px) var(--fd); letter-spacing: 0; opacity: .8; }

.sc-lbl {
  margin-top: 6px;
  font: 600 12.5px/1 var(--fd);
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: 1;
}

.tiers {
  --p: 61.7;
  position: relative;
  display: flex;
  gap: 3px;
  height: 12px;
  margin-top: 30px;
}

.tiers span { flex: var(--w); border-radius: 6px; background: var(--c); }

.tiers::after {
  content: '';
  position: absolute;
  top: -1px;
  bottom: -1px;
  right: -1px;
  left: calc(var(--p) * 1%);
  border-radius: 0 7px 7px 0;
  background: rgb(91 77 240 / 62%);
}

.tiers i { position: absolute; z-index: 2; left: calc((var(--at) - 10) / 980 * 100%); }

.tiers .you {
  top: 50%;
  width: 22px;
  height: 22px;
  translate: -50% -50%;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--indigo-d);
  box-shadow: 0 0 0 5px rgb(255 255 255 / 25%);
  left: calc(var(--p) * 1%);
}

/* le drapeau de l'objectif est planté dans la barre (son mât descend dedans), pas posé au-dessus */
.tiers .goal {
  bottom: 8px;
  translate: -4.2px 0;
  color: #fff;
}

.tiers .goal svg { display: block; width: 20px; height: 20px; }

.c-toeic .lead { margin-top: 16px; }

/* ----- 4. ta prononciation ----- */

.pron-viz {
  position: relative;
  z-index: 2;
  flex: 1;
  margin-top: 16px;
}

/* --sf : la taille de la phrase ; la pointe de « Tu as dit sink » s'y cale (think est à 1,69 em du début) */
.pron-card {
  --sf: clamp(21px, 6cqw, 29px);
  position: relative;
  z-index: 2;
  max-width: 440px;
  padding: 16px 16px 14px;
  border-radius: 22px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 6px 0 rgb(27 22 64 / 12%), 0 24px 30px -22px rgb(27 22 64 / 45%);
}

.sentence { font: 700 var(--sf)/1.55 var(--fd); }

.w { position: relative; display: inline-block; }

.w.ok::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: .06em;
  height: .13em;
  border-radius: 3px;
  background: var(--green);
  transform-origin: 0 50%;
  animation: uline 7s var(--out) infinite both;
  animation-delay: calc(var(--i) * .22s);
}

.w.redo {
  padding: 0 .16em;
  border-radius: .28em;
  background: var(--amber-bg);
  color: #6b4600;
  box-shadow: inset 0 0 0 2.5px var(--amber-edge);
  animation: redo 7s var(--spring) infinite both;
  animation-delay: calc(var(--i) * .22s);
}

@keyframes uline {
  0%, 4% { scale: 0 1; }
  12%, 88% { scale: 1 1; }
  96%, 100% { scale: 0 1; }
}

@keyframes redo {
  0%, 4% { background-color: rgb(255 244 214 / 0%); box-shadow: inset 0 0 0 2.5px rgb(240 194 75 / 0%); color: var(--ink); scale: 1; }
  10% { scale: 1.12; }
  14%, 88% { background-color: var(--amber-bg); box-shadow: inset 0 0 0 2.5px var(--amber-edge); color: #6b4600; scale: 1; }
  96%, 100% { background-color: rgb(255 244 214 / 0%); box-shadow: inset 0 0 0 2.5px rgb(240 194 75 / 0%); color: var(--ink); scale: 1; }
}

.pron-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.mini-ring { position: relative; display: grid; place-items: center; width: 44px; height: 44px; flex: none; }
.mini-ring svg { position: absolute; inset: 0; rotate: -90deg; }
.mini-ring circle { fill: none; stroke-width: 4.5; stroke: #ece8ff; }

.mini-ring .arc {
  stroke: var(--violet);
  stroke-linecap: round;
  stroke-dasharray: 94.25;
  stroke-dashoffset: 28.3;
  animation: ring7 7s var(--out) infinite both;
}

@keyframes ring7 {
  0%, 18% { stroke-dashoffset: 94.25; }
  34%, 88% { stroke-dashoffset: 28.3; }
  96%, 100% { stroke-dashoffset: 94.25; }
}

.mini-ring b { font: 700 18px var(--fd); color: var(--violet-d); }
.pron-foot p { display: flex; flex-direction: column; font: 600 16px/1.2 var(--fd); }
.pron-foot small { color: var(--ink-2); font: 400 13px/1.3 var(--ft); }

/* « Tu as dit sink » : la bulle de la feuille du mot, au-dessus de la phrase, sa pointe sur think */
.said {
  --tail: 13px;
  --tail-x: calc(var(--sf) * 1.69);
  position: relative;
  isolation: isolate;
  width: max-content;
  max-width: 100%;
  margin: 0 0 7px;
  padding: 9px 13px;
  border-radius: 16px;
  background: var(--ink);
  color: #fff;
  font: 600 15px/1.25 var(--fd);
  filter: drop-shadow(0 3px 0 rgb(27 22 64 / 18%));
  transform-origin: var(--tail-x) calc(100% + 9px);
  animation: said 7s var(--spring) infinite both;
}

.said::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: calc(var(--tail-x) - var(--tail) / 2);
  bottom: calc(var(--tail) / -2);
  width: var(--tail);
  height: var(--tail);
  border-bottom-right-radius: 24%;
  background: inherit;
  transform: rotate(45deg);
  clip-path: polygon(100% 0, 100% 100%, 0 100%, 0 92%, 92% 0);
}

.said b { color: var(--gold); }

/* toujours là (sa place ne reste jamais vide) : elle rebondit quand think passe en ambre */
@keyframes said {
  0%, 14% { scale: 1; }
  19% { scale: 1.09; }
  25%, 100% { scale: 1; }
}

.pk-pron { display: none; }

/* ----- 5. du A1 au C1 ----- */

.path-viz {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 118px;
  margin: 16px 2px 2px;
}

/* le chemin pointillé : le script le trace par le centre de chaque niveau (sans script, une vague posée
   sous les ronds) */
.trail { position: absolute; left: 4%; top: 50%; width: 92%; height: 64px; translate: 0 -50%; overflow: visible; }
.trail.drawn { left: 0; top: 0; width: 100%; height: 100%; translate: none; }

.trail path {
  fill: none;
  stroke: rgb(27 22 64 / 30%);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 1 11;
  vector-effect: non-scaling-stroke;
  animation: trail 1.4s linear infinite;
}

@keyframes trail { to { stroke-dashoffset: -24; } }

.lvl {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  align-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font: 700 18px/1 var(--fd);
  box-shadow: 0 4px 0 rgb(27 22 64 / 16%);
}

.lvl:nth-of-type(odd) { translate: 0 14px; }
.lvl:nth-of-type(even) { translate: 0 -14px; }

.lvl.done { background: var(--green); color: #fff; box-shadow: 0 4px 0 #0f7f57; }
.lvl.done svg { position: absolute; right: -4px; top: -4px; width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: #fff; color: var(--green); }

.lvl.now {
  width: 74px;
  height: 74px;
  background: var(--indigo);
  color: #fff;
  box-shadow: 0 5px 0 var(--indigo-d), 0 0 0 6px rgb(255 255 255 / 55%);
  animation: hop 1.6s var(--out) infinite;
}

.lvl.now small { margin-top: 3px; font: 600 11.5px/1 var(--fd); opacity: .9; }
.lvl.now .ring { position: absolute; inset: 5px; rotate: -90deg; }
.lvl.now .ring circle { fill: none; stroke: rgb(255 255 255 / 22%); stroke-width: 4; }

.lvl.now .ring .arc {
  stroke: #fff;
  stroke-linecap: round;
  stroke-dasharray: 169.6;
  stroke-dashoffset: 98.4;
  animation: ring42 5s var(--out) infinite both;
}

@keyframes ring42 {
  0%, 8% { stroke-dashoffset: 169.6; }
  40%, 90% { stroke-dashoffset: 98.4; }
  100% { stroke-dashoffset: 169.6; }
}

@keyframes hop {
  0%, 60%, 100% { translate: 0 -14px; }
  30% { translate: 0 -24px; }
}

.lvl.goal { box-shadow: 0 4px 0 rgb(27 22 64 / 16%), 0 0 0 4px var(--ink); }
.lvl.goal svg { position: absolute; top: -24px; left: 50%; width: 24px; height: 24px; translate: -20% 0; color: var(--ink); }

.nerd {
  position: relative;
  z-index: 2;
  margin-top: 12px;
  color: rgb(27 22 64 / 78%);
  font-size: 12.5px;
}

@container (max-width: 340px) {
  .lvl { width: 46px; height: 46px; font-size: 16px; }
  .lvl.now { width: 64px; height: 64px; }
  .lvl.now small { font-size: 10.5px; }
  .lvl.done svg { width: 19px; height: 19px; }
}

/* ----- 6. défie tes amis ----- */

.duel-viz { position: relative; z-index: 2; margin-top: 18px; }

.vs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  padding: 16px 8px 12px;
  border-radius: 24px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 6px 0 rgb(27 22 64 / 14%);
}

.pl { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; }

.pl i {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 3px solid var(--indigo);
  border-radius: 50%;
  color: var(--indigo);
  font: 700 18px/1 var(--fd);
  font-style: normal;
}

.pl.her i { border-color: var(--orange); color: var(--orange-d); }
.pl b { font: 700 28px/1 var(--fd); font-variant-numeric: tabular-nums; }
.pl small { color: var(--ink-2); font: 600 12px/1 var(--fd); }

.pl b.bump { animation: bump .45s var(--spring); }

@keyframes bump {
  0% { scale: 1; }
  40% { scale: 1.35; color: var(--green); }
  100% { scale: 1; }
}

.crown {
  position: absolute;
  top: -22px;
  color: var(--gold);
  opacity: 0;
  translate: 0 8px;
  scale: .5;
  transition: opacity .25s ease, translate .5s var(--spring), scale .5s var(--spring);
}

.crown svg { display: block; width: 26px; height: 26px; filter: drop-shadow(0 2px 0 var(--gold-d)); }
.pl.win .crown { opacity: 1; translate: 0 0; scale: 1; }

.timer {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  width: 92px;
  height: 92px;
}

.timer svg { position: absolute; inset: 0; rotate: -90deg; }
.timer circle { fill: none; stroke: #ffe6cc; stroke-width: 9; }

.timer .arc {
  stroke: var(--orange);
  stroke-linecap: round;
  stroke-dasharray: 276.5;
  stroke-dashoffset: 101.4;
}

.timer b { font: 700 32px/1 var(--fd); font-variant-numeric: tabular-nums; }
.timer small { color: var(--ink-2); font: 600 11px/1 var(--fd); }
.timer.low .arc { stroke: var(--pink-d); }

.duel-end {
  margin-top: 10px;
  text-align: center;
  font: 700 18px/1.2 var(--fd);
  opacity: 0;
  translate: 0 6px;
  transition: opacity .3s ease, translate .4s var(--spring);
}

.duel-end.on { opacity: 1; translate: 0 0; }

/* la question du duel : la même, à la même seconde, chez les deux */
.duel-q {
  margin-top: 6px;
  padding: 14px 14px 16px;
  border-radius: 22px;
  background: rgb(255 255 255 / 94%);
  color: var(--ink);
  box-shadow: 0 6px 0 rgb(27 22 64 / 12%);
}

.duel-q p { font: 700 19px/1.35 var(--fd); }

.duel-q .gap {
  display: inline-block;
  min-width: 3.3em;
  border-bottom: 3px solid var(--green);
  color: var(--green);
  text-align: center;
  animation: gap-fill 3.2s var(--out) infinite;
}

@keyframes gap-fill {
  0%, 40% { color: transparent; border-color: var(--indigo); }
  48%, 88% { color: var(--green); border-color: var(--green); }
  100% { color: transparent; border-color: var(--indigo); }
}

.opts { display: grid; gap: 8px; margin-top: 12px; }

.opts span {
  position: relative;
  padding: 9px 14px;
  border: 2px solid #e0e3ef;
  border-radius: 14px;
  background: #fff;
  font: 600 16px/1.1 var(--fd);
  box-shadow: 0 3px 0 #e0e3ef;
}

.opts .ok {
  border-color: var(--green);
  background: #e2f7ee;
  color: #0b5a3c;
  box-shadow: 0 3px 0 var(--green);
  animation: pick 3.2s var(--out) infinite;
}

.opts b {
  position: absolute;
  right: 10px;
  top: 50%;
  translate: 0 -50%;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font: 700 12px/1 var(--fd);
  animation: plus10 3.2s var(--spring) infinite;
}

@keyframes pick {
  0%, 36% { border-color: #e0e3ef; background: #fff; color: var(--ink); box-shadow: 0 3px 0 #e0e3ef; }
  42%, 88% { border-color: var(--green); background: #e2f7ee; color: #0b5a3c; box-shadow: 0 3px 0 var(--green); }
  96%, 100% { border-color: #e0e3ef; background: #fff; color: var(--ink); box-shadow: 0 3px 0 #e0e3ef; }
}

@keyframes plus10 {
  0%, 40% { opacity: 0; scale: .4; }
  48%, 86% { opacity: 1; scale: 1; }
  94%, 100% { opacity: 0; scale: .4; }
}

@container (max-width: 200px) {
  .duel-q { display: none; }
  .vs { grid-template-columns: 1fr 1fr; gap: 10px 4px; padding: 12px 6px 10px; }
  .timer { grid-column: 1 / -1; order: -1; justify-self: center; width: 84px; height: 84px; }
  .pl i { width: 34px; height: 34px; font-size: 15px; }
  .pl b { font-size: 23px; }
  .crown { top: -18px; }
  .crown svg { width: 20px; height: 20px; }
  .duel-end { font-size: 15px; }
}

/* en pleine largeur : le chrono et les scores à gauche, la question à droite */
@container (min-width: 600px) {
  .duel-viz { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; column-gap: 18px; }
  .duel-viz .vs { grid-area: 1 / 1; }
  .duel-viz .duel-end { grid-area: 2 / 1; }
  .duel-viz .duel-q { grid-area: 1 / 2 / 3 / 3; margin-top: 0; }
}

/* ----- 7. garde ta flamme ----- */

.flame-viz {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
}

.fl-ring { position: relative; width: 108px; height: 108px; flex: none; }
.fl-ring .ring { position: absolute; inset: 0; rotate: -90deg; }
.fl-ring .ring circle { fill: none; stroke: #ffe8d1; stroke-width: 7; }

.fl-ring .ring .arc {
  stroke: var(--orange);
  stroke-linecap: round;
  stroke-dasharray: 276.5;
  stroke-dashoffset: 0;
}

.bigfl {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 64%;
  height: auto;
  aspect-ratio: 20 / 23;
  translate: -50% -52%;
  overflow: visible;
}

.ember-base { fill: #ffe9d6; }
.bigfl .level { transform: translateY(var(--lv, -2px)); }
.fire-back { animation: fire-drift 1.2s linear infinite reverse; }
.fire-front { animation: fire-drift .9s linear infinite; }
.fire-lick { transform-box: fill-box; transform-origin: 50% 100%; animation: fire-lick .5s ease-in-out infinite alternate; }
.fire-back .fire-lick { animation-duration: .7s; animation-direction: alternate-reverse; }

@keyframes fire-drift { to { transform: translateX(3px); } }

@keyframes fire-lick {
  from { transform: scaleY(.75); }
  to { transform: scaleY(1.2); }
}

.bigfl .halo { transform-box: fill-box; transform-origin: center; animation: halo 3.2s ease-in-out infinite; }

@keyframes halo {
  0%, 100% { transform: scale(.94); }
  50% { transform: scale(1.06); }
}

.bigfl .core { transition: opacity .4s ease; }
.bigfl .sparks circle { fill: #ffc24a; transform-box: fill-box; animation: rise 1.8s ease-out infinite; }
.bigfl .sparks circle:nth-child(2) { animation-delay: .6s; }
.bigfl .sparks circle:nth-child(3) { animation-delay: 1.2s; }

@keyframes rise {
  0% { transform: translateY(0); opacity: 0; }
  25% { opacity: 1; }
  100% { transform: translateY(-5px); opacity: 0; }
}

.flame-viz.dim .core, .flame-viz.dim .sparks { opacity: 0; }

.streak { display: flex; flex-direction: column; align-items: flex-start; }
.streak b { font: 700 50px/.95 var(--fd); color: var(--orange-d); font-variant-numeric: tabular-nums; }
.streak b.bump { animation: bump2 .6s var(--spring); }

@keyframes bump2 {
  0% { scale: 1; }
  40% { scale: 1.3; }
  100% { scale: 1; }
}

.streak > span { color: var(--ink-2); font: 600 14px/1.2 var(--fd); }

.kept {
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--ink) !important;
  font: 700 13px/1.2 var(--fd) !important;
  white-space: nowrap;
  rotate: -3deg;
  transition: opacity .3s ease, scale .45s var(--spring);
}

.flame-viz.dim .kept { opacity: 0; scale: .4; }

.week {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.week li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: var(--ink-2);
  font: 600 11px/1 var(--fd);
}

.week abbr { text-decoration: none; }

.week li::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f1e4d4;
  transition: background-color .3s ease, scale .4s var(--spring);
}

.week li.on::before { background: var(--orange); box-shadow: 0 2px 0 var(--orange-d); }

.week li.joker::before {
  border-radius: 0;
  background: var(--indigo);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 4 5.5v6.2c0 4.5 3.3 8.4 8 10.3 4.7-1.9 8-5.8 8-10.3V5.5L12 2Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 4 5.5v6.2c0 4.5 3.3 8.4 8 10.3 4.7-1.9 8-5.8 8-10.3V5.5L12 2Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.week li.today { color: #a64b06; }
.flame-viz.dim ~ .week li.today::before { background: #f1e4d4; box-shadow: none; scale: .8; }
.c-flame .lead { margin-top: 14px; color: var(--ink-2); }

@container (max-width: 200px) {
  .flame-viz { flex-direction: column; align-items: flex-start; gap: 8px; }
  .fl-ring { width: 96px; height: 96px; }
  .streak b { font-size: 40px; }
  .week li::before { width: 13px; height: 13px; }
  .week li { gap: 0; }
  .week abbr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* ----- 8. parle, même en voiture ----- */

.plus-chip {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  margin-top: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font: 700 14px/1.1 var(--fd);
  rotate: -3deg;
  box-shadow: 0 3px 0 var(--gold-d);
}

.car-viz {
  position: relative;
  flex: 1;
  min-height: 300px;
  margin: 14px -18px -22px;
  overflow: hidden;
  background: linear-gradient(#1b1640 0%, #2a2070 100%);
}

.sky {
  position: absolute;
  inset: 0 0 40%;
  background-image:
    radial-gradient(1.6px 1.6px at 12% 22%, #fff9 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 34% 12%, #fff8 50%, transparent 51%),
    radial-gradient(1.8px 1.8px at 58% 30%, #fffa 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 78% 16%, #fff7 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 90% 40%, #fff8 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 22% 46%, #fff6 50%, transparent 51%);
}

.moon {
  position: absolute;
  right: 14%;
  top: 9%;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  box-shadow: inset -9px 3px 0 0 #ffe28a;
  rotate: -18deg;
}

.city {
  position: absolute;
  left: 0;
  bottom: 62px;
  width: 200%;
  height: 92px;
  display: flex;
  animation: slide 22s linear infinite;
}

.city span {
  flex: 1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 92' preserveAspectRatio='none'%3E%3Cpath fill='%23342a86' d='M0 92V52h22V30h30v22h14V40h26v52zM92 92V22h34v20h18V8h30v84zM174 92V44h26V30h22v62zM222 92V18h38v32h16v42zM276 92V36h28V24h26v26h20v42zM350 92V48h22V34h28v58z'/%3E%3Cg fill='%23ffd166' opacity='.75'%3E%3Crect x='30' y='40' width='6' height='7' rx='1'/%3E%3Crect x='102' y='34' width='6' height='7' rx='1'/%3E%3Crect x='154' y='22' width='6' height='7' rx='1'/%3E%3Crect x='154' y='52' width='6' height='7' rx='1'/%3E%3Crect x='236' y='30' width='6' height='7' rx='1'/%3E%3Crect x='290' y='48' width='6' height='7' rx='1'/%3E%3Crect x='362' y='58' width='6' height='7' rx='1'/%3E%3C/g%3E%3C/svg%3E") 0 100% / 100% 100% no-repeat;
}

.city.far {
  bottom: 70px;
  height: 140px;
  opacity: .5;
  transform: scaleX(-1);
  animation-duration: 46s;
}

@keyframes slide { to { translate: -50% 0; } }

.car-viz .road {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 62px;
  background: #120e33;
  border-top: 4px solid #3b3190;
}

.dashes {
  position: absolute;
  left: 0;
  top: 26px;
  width: 200%;
  height: 5px;
  background: repeating-linear-gradient(90deg, #ffd166 0 28px, transparent 28px 60px);
  animation: dash .7s linear infinite;
}

@keyframes dash { to { translate: -60px 0; } }

/* la voix de Hi! qui remplit la nuit */
.radio { position: absolute; left: 46%; bottom: 128px; width: 0; height: 0; }

.radio i {
  position: absolute;
  left: -170px;
  top: -170px;
  width: 340px;
  height: 340px;
  border: 3px solid rgb(255 179 71 / 45%);
  border-radius: 50%;
  opacity: 0;
  animation: radio 4.8s ease-out infinite;
}

.radio i:nth-child(2) { border-color: rgb(255 111 125 / 45%); animation-delay: 1.6s; }
.radio i:nth-child(3) { border-color: rgb(155 92 246 / 55%); animation-delay: 3.2s; }

@keyframes radio {
  0% { scale: .12; opacity: 0; }
  14% { opacity: 1; }
  100% { scale: 1.35; opacity: 0; }
}

.car {
  position: absolute;
  left: 50%;
  bottom: 30px;
  width: min(232px, 74%);
  translate: -56% 0;
  animation: bob .42s ease-in-out infinite alternate;
}

.car svg { display: block; width: 100%; height: auto; overflow: visible; }
.wheel { animation: wheel .5s linear infinite; }

@keyframes wheel { to { transform: rotate(360deg); } }

@keyframes bob {
  from { translate: -56% 0; }
  to { translate: -56% -2px; }
}

.waves { position: absolute; left: 44%; top: -6px; width: 0; height: 0; }

.waves i {
  position: absolute;
  left: -14px;
  top: -14px;
  width: 28px;
  height: 28px;
  border: 3px solid transparent;
  border-top-color: rgb(255 255 255 / 85%);
  border-radius: 50%;
  animation: wave 1.8s ease-out infinite;
}

.waves i:nth-child(2) { animation-delay: .6s; }
.waves i:nth-child(3) { animation-delay: 1.2s; }

@keyframes wave {
  0% { scale: .6; opacity: 0; }
  20% { opacity: 1; }
  100% { scale: 2.6; opacity: 0; }
}

/* les deux bulles partent de la voiture, dans son repère (en % de sa largeur) : Hi! par la radio (les ondes
   du toit, à 44 %), toi par le pare-brise. Leur pointe vise chacune sa source, à toutes les tailles */
.say {
  --tail: 13px;
  position: absolute;
  z-index: 3;
  isolation: isolate;
  padding: 8px 13px 9px;
  border-radius: 16px;
  font: 700 17px/1.1 var(--fd);
  white-space: nowrap;
  filter: drop-shadow(0 4px 0 rgb(0 0 0 / 25%));
  transform-origin: var(--tail-x) calc(100% + 9px);
}

.say::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: calc(var(--tail-x) - var(--tail) / 2);
  bottom: calc(var(--tail) / -2);
  width: var(--tail);
  height: var(--tail);
  border-bottom-right-radius: 24%;
  background: inherit;
  transform: rotate(45deg);
  clip-path: polygon(100% 0, 100% 100%, 0 100%, 0 92%, 92% 0);
}

.say-q {
  --tail-x: calc(100% - 15px);
  right: 50%;
  bottom: calc(100% + 34px);
  background: #fff;
  color: var(--ink);
  rotate: -4deg;
  animation: say-q 6s var(--spring) infinite both;
}

.say-a {
  --tail-x: 20px;
  left: 57%;
  bottom: calc(100% + 2px);
  background: var(--mint);
  color: var(--ink);
  rotate: 4deg;
  animation: say-a 6s var(--spring) infinite both;
}

@keyframes say-q {
  0% { scale: 0; opacity: 0; }
  6% { scale: 1.08; opacity: 1; }
  10%, 70% { scale: 1; opacity: 1; }
  78%, 100% { scale: 0; opacity: 0; }
}

@keyframes say-a {
  0%, 30% { scale: 0; opacity: 0; }
  36% { scale: 1.08; opacity: 1; }
  40%, 82% { scale: 1; opacity: 1; }
  90%, 100% { scale: 0; opacity: 0; }
}

/* ----- tablette et ordinateur ----- */

/* tablette : TOEIC et flamme empilés à côté de la conversation (aussi haute qu'eux deux), le reste en pleine
   largeur ; dense : la flamme remonte sous le TOEIC */
@media (min-width: 700px) {
  .bento { gap: 18px; grid-auto-flow: row dense; }
  .c-err { grid-column: span 2; }
  .c-talk { grid-column: 1; grid-row: span 2; }
  .c-toeic, .c-flame { grid-column: 2; }
  .c-pron, .c-path, .c-duel, .c-car { grid-column: span 2; }
  .card-in { padding: 24px 22px 24px; }
  .talk-viz { margin: 14px -22px -24px; }
  .car-viz { margin: 14px -22px -24px; }
}

@media (min-width: 1080px) {
  .bento {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(4, minmax(316px, auto));
    gap: 20px;
  }

  .c-err { grid-area: 1 / 1 / 3 / 3; }
  .c-talk { grid-area: 1 / 3 / 3 / 4; }
  .c-toeic { grid-area: 1 / 4 / 2 / 5; }
  .c-flame { grid-area: 2 / 4 / 3 / 5; }
  .c-duel { grid-area: 3 / 1 / 5 / 2; }
  .c-pron { grid-area: 3 / 2 / 4 / 4; }
  .c-path { grid-area: 4 / 2 / 5 / 4; }
  .c-car { grid-area: 3 / 4 / 5 / 5; }

  .card-in { padding: 26px 24px; }
  .talk-viz, .car-viz { margin: 14px -24px -26px; }

  .c-err h3 { font-size: 52px; }
  .c-err .lead { font-size: 17.5px; max-width: 27em; }
  .c-err .err-viz { align-items: center; padding-top: 18px; }
  .c-err .app-card { width: min(100%, 520px); padding: 22px 22px 20px; }
  .c-err .ex-ins { font-size: 14px; }
  .c-err .ex-q { font-size: 28px; margin-bottom: 16px; }
  .c-err .field { min-height: 66px; font-size: 24px; }
  .c-err .v-title { font-size: 21px; }
  .c-err .v-text { font-size: 16px; }
  .c-err .var-btn b { font-size: 16px; }
  .c-err .var-btn small { font-size: 13px; }

  .c-car h3 { font-size: 34px; }
  .c-duel .duel-viz { margin-top: auto; padding-top: 18px; }

  .c-pron h3, .c-path h3 { font-size: 36px; max-width: 13em; }
  .c-toeic h3, .c-flame h3 { font-size: 30px; }
  .c-duel h3, .c-talk h3 { font-size: 38px; }

}

/* la prononciation en grand : la capture du mot à reprendre à droite */
@container (min-width: 540px) {
  .pron-viz { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 14px; }

  .pk-pron {
    --pw: 168px;
    display: block;
    position: relative;
    align-self: start;
    margin: -6px 0 -140px;
    rotate: 7deg;
  }

  .pk-pron .device { --pw: inherit; }
}

/* ---------- gratuit, sans pub ---------- */

.free {
  --pad-top: 80px;
  position: relative;
  margin-top: 70px;
  padding: var(--pad-top) var(--gutter) 90px;
  overflow: clip;
  background: var(--indigo);
  color: #fff;
}

/* deux pilules décoratives, toujours sous le contenu */
.free::before,
.free::after {
  content: '';
  position: absolute;
  z-index: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 7%);
}

.free::before { left: -60px; top: 40px; width: 240px; height: 72px; rotate: -24deg; }
.free::after { right: -40px; bottom: 50px; width: 300px; height: 80px; rotate: 18deg; }

.free-in {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  width: min(var(--maxw), 100%);
  margin: 0 auto;
  text-align: center;
}

.free-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .1em;
  font: 700 clamp(58px, 17vw, 176px)/.95 var(--fd);
  letter-spacing: -.025em;
}

.tape {
  display: inline-block;
  padding: .03em .3em .11em;
  border-radius: .16em;
  color: var(--ink);
  box-shadow: 0 .06em 0 rgb(0 0 0 / 22%);
}

.t1 { background: var(--gold); rotate: -3.5deg; }
.t2 { background: var(--pink); rotate: 2.5deg; margin-left: .5em; }

/* l'étiquette pend du bord du haut de la bande : le haut de sa ficelle est ce bord, à toutes les tailles
   (lié au padding de la bande), et elle se balance autour de son clou */
.price-tag {
  --drop: 4px;
  position: absolute;
  right: 2%;
  top: calc(-1 * var(--pad-top));
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-origin: 50% 0;
  animation: swing 3.4s ease-in-out infinite alternate;
}

.price-tag::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 0 rgb(0 0 0 / 18%);
}

.price-tag .string { width: 3px; height: calc(var(--pad-top) + var(--drop)); border-radius: 0 0 2px 2px; background: rgb(255 255 255 / 80%); }

.price-tag .tag {
  position: relative;
  display: grid;
  place-items: center;
  width: 104px;
  padding: 22px 10px 14px;
  border-radius: 18px 18px 26px 26px;
  background: var(--mint);
  color: var(--ink);
  box-shadow: 0 5px 0 var(--mint-d), 0 18px 24px -10px rgb(0 0 0 / 35%);
}

.price-tag .tag::before {
  content: '';
  position: absolute;
  top: 9px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--indigo);
}

.price-tag b { font: 700 36px/1 var(--fd); }
.price-tag small { margin-top: 4px; font: 600 12px/1.1 var(--fd); }

@keyframes swing {
  from { rotate: -9deg; }
  to { rotate: 9deg; }
}

.free-sub {
  max-width: 34em;
  margin-top: 30px;
  color: rgb(255 255 255 / 92%);
  font-size: clamp(16.5px, 1.9vw, 21px);
  line-height: 1.55;
}

/* Hi! et Hi!+ côte à côte : tout ce qui fait apprendre est des deux côtés, Hi!+ n'ajoute que du temps
   avec l'IA, du TOEIC à volonté et des bonus (demande de Pierre : ne jamais laisser croire que la
   correction est payante) */
.compare {
  width: min(820px, 100%);
  margin-top: 34px;
  padding: 10px 10px 14px;
  border-radius: 28px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  rotate: -.6deg;
  box-shadow: 0 7px 0 #c9c3ff, 0 30px 46px -22px rgb(10 5 50 / 60%);
}

.compare table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15.5px; }

.compare th, .compare td { padding: 11px 12px; vertical-align: middle; }
.compare tbody th { font-weight: 500; line-height: 1.3; }
.compare tbody th small { display: block; color: var(--ink-2); font-size: 12.5px; font-weight: 500; }
.compare tbody td { width: 27%; text-align: center; font: 600 15px/1.2 var(--fd); color: var(--ink-2); }
.compare tbody tr:not(.c-group) + tr:not(.c-group) > * { border-top: 2px solid #f1eefc; }

/* la colonne Hi!+ : un fond doré du haut en bas, comme une carte posée sur le tableau */
.compare .c-plus,
.compare tbody td:last-child { background: #fff8e3; }
.compare thead .c-plus { border-radius: 20px 20px 0 0; }
.compare tbody tr:last-child td:last-child { border-radius: 0 0 20px 20px; }
.compare tbody td.more { color: #9a6a00; }
/* la durée, sous la limite : une seconde ligne, plus petite */
.compare tbody td small { display: block; margin-top: 4px; font: 500 12.5px/1.3 var(--ft); color: var(--ink-2); }
.compare tbody td.more small { color: #8a6a1c; }

.compare thead th { padding: 16px 10px 14px; text-align: center; vertical-align: bottom; }
.c-name { display: flex; align-items: center; justify-content: center; gap: 8px; font: 700 30px/1 var(--fd); color: var(--ink); }
.c-name img { border-radius: 22.5%; box-shadow: 0 3px 8px rgb(122 77 240 / 25%); }
.c-plus .c-name { color: #b07800; }
.c-price {
  display: inline-block;
  margin-top: 9px;
  padding: 5px 11px 6px;
  border-radius: 999px;
  font: 700 13.5px/1.1 var(--fd);
}
.c-free .c-price { background: var(--mint); color: #0b4d36; box-shadow: 0 3px 0 var(--mint-d); }
.c-plus .c-price { background: var(--gold); color: #3a2a00; box-shadow: 0 3px 0 var(--gold-d); }
.c-price b { font-size: 16px; }
.c-alt { display: block; margin-top: 7px; color: var(--ink-2); font: 500 12px/1.3 var(--ft); }

/* les titres de groupe : une étiquette, pas une ligne de plus */
.compare .c-group th {
  padding: 18px 12px 6px;
  color: var(--indigo);
  font: 700 13px/1.2 var(--fd);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.compare .c-group:first-child th { padding-top: 8px; }

/* oui : une coche dans une pastille ; non : un trait gris (maquette web du 28/10/2026 : Hi! ne montre jamais de rouge) */
.compare i { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; vertical-align: middle; }
.compare i.ok { background: var(--mint); box-shadow: 0 3px 0 var(--mint-d); }
.compare td:last-child i.ok { background: var(--gold); box-shadow: 0 3px 0 var(--gold-d); }
.compare i.ok::after { content: ''; width: 11px; height: 6px; margin-top: -3px; border: solid #1b1640; border-width: 0 0 3px 3px; rotate: -45deg; }
.compare i.no { width: 22px; height: 4px; border-radius: 2px; background: #cfcbe2; }

@media (max-width: 599px) {
  .compare { padding: 6px 4px 10px; border-radius: 22px; rotate: none; }
  .compare table { font-size: 14px; }
  .compare th, .compare td { padding: 10px 7px; }
  .compare tbody td { width: 25%; font-size: 13px; }
  .compare tbody th small { font-size: 11.5px; }
  .compare tbody td small { font-size: 11px; }
  .compare thead th { padding: 12px 4px 10px; }
  .c-name { gap: 5px; font-size: 22px; }
  .c-name img { width: 22px; height: 22px; }
  .c-price { margin-top: 7px; padding: 4px 7px 5px; font-size: 11.5px; }
  .c-price b { font-size: 13px; }
  .c-alt { font-size: 10.5px; }
  .compare .c-group th { padding: 16px 7px 4px; font-size: 11.5px; }
  .compare i { width: 24px; height: 24px; }
  .compare i.ok::after { width: 9px; height: 5px; border-width: 0 0 2.5px 2.5px; }
  .compare i.no { width: 18px; height: 3.5px; }
}

/* jusqu'à 1240 px, l'étiquette pend au-dessus du titre (à côté, elle frôlait « Gratuit. » en se balançant) :
   la bande s'ouvre plus haut, la ficelle reste courte */
@media (max-width: 1239px) {
  .free { --pad-top: 182px; }
  .price-tag { --drop: -128px; }
}

@media (max-width: 699px) {
  .free { --pad-top: 174px; }
  .price-tag { --drop: -130px; right: 8px; }
  .price-tag .tag { width: 88px; padding: 19px 8px 12px; border-radius: 16px 16px 22px 22px; }
  .price-tag .tag::before { top: 7px; width: 10px; height: 10px; }
  .price-tag b { font-size: 30px; }
  .price-tag small { font-size: 11px; }
}

/* ---------- 3 façons de jouer ---------- */

.ways {
  width: min(var(--maxw), 100% - 2 * var(--gutter));
  margin: 0 auto;
  padding: 84px 0 20px;
}

.ways-grid {
  display: grid;
  gap: 30px 18px;
  margin-top: 40px;
}

.way {
  position: relative;
  padding: 34px 20px 24px;
  border-radius: var(--r);
  background: var(--wb);
  color: var(--ink);
  box-shadow: 0 7px 0 var(--wd), 0 26px 40px -26px rgb(27 22 64 / 50%);
}

.w-web { --wb: #fff; --wd: #ead9c3; display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; }
.w-ios { --wb: var(--pink); --wd: var(--pink-d); }
.w-play { --wb: var(--mint); --wd: var(--mint-d); }

.way-n {
  position: absolute;
  top: -18px;
  left: 18px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font: 700 25px/1 var(--fd);
  rotate: -8deg;
  box-shadow: 0 4px 0 rgb(0 0 0 / 22%);
}

.way h3 { font: 700 clamp(28px, 7.6vw, 42px)/1.02 var(--fd); letter-spacing: -.01em; }
.way > p, .way-copy > p { margin-top: 8px; color: var(--ink-2); font-size: 16.5px; }
.w-ios > p, .w-play > p { color: rgb(27 22 64 / 82%); }

.ticks {
  display: grid;
  gap: 10px;
  margin: 18px 0 22px;
  padding: 0;
  list-style: none;
}

.ticks li { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 15.5px; }

.ticks svg {
  width: 26px;
  height: 26px;
  flex: none;
  padding: 5px;
  border-radius: 50%;
  background: #e2f7ee;
  color: var(--green);
}

.way-copy .btn-web { width: 100%; }

/* le portable, le téléphone devant lui, et « Même progression » posé dessous (sans le toucher) */
.way-viz { position: relative; padding: 4px 0 0; }

/* le portable laisse la place à son socle (plus large que lui) : jamais contre le bord de la carte */
.laptop { position: relative; width: 90%; max-width: 580px; margin: 0 auto; }

.lap-screen {
  padding: 9px 9px 11px;
  border-radius: 18px 18px 8px 8px;
  background: var(--ink);
  box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 12%);
}

.browser {
  display: flex;
  flex-direction: column;
  aspect-ratio: 16 / 10.4;
  overflow: hidden;
  border-radius: 10px;
  background: #f4f5fb;
}

.br-top { display: flex; align-items: flex-end; gap: 10px; padding: 8px 10px 0; background: #e8e5f6; }
.br-dots { display: flex; gap: 5px; padding-bottom: 9px; }
.br-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--pink); }
.br-dots i:nth-child(2) { background: var(--gold); }
.br-dots i:nth-child(3) { background: var(--mint); }

.br-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 7px 14px 7px 10px;
  border-radius: 10px 10px 0 0;
  background: #f4f5fb;
  font: 600 11.5px/1 var(--fd);
  white-space: nowrap;
  overflow: hidden;
}

.br-tab img { width: 14px; height: 14px; border-radius: 4px; }

.br-url {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 10px 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--green);
}

.br-url svg { width: 12px; height: 12px; }
.br-url span { width: 34%; height: 7px; border-radius: 4px; background: #e3e1f0; }

.br-view {
  position: relative;
  flex: 1;
  display: flex;
  justify-content: center;
  margin-top: 6px;
  overflow: hidden;
  background: linear-gradient(90deg, #eceafb, #f4f5fb 30%, #f4f5fb 70%, #eceafb);
}

.app-col {
  position: relative;
  width: 40%;
  height: 100%;
  overflow: hidden;
  background: #f4f5fb;
  box-shadow: 0 0 0 1px #e3e5f1, 0 10px 30px -10px rgb(27 22 64 / 25%);
}

.app-col img {
  position: absolute;
  left: -3%;
  top: 0;
  width: 106%;
  max-width: none;
  height: auto;
  margin-top: -16.4%;
}

.lap-base {
  position: relative;
  height: 14px;
  margin: 0 -6%;
  border-radius: 2px 2px 14px 14px;
  background: linear-gradient(#d8d3f2, #b9b2e6);
  box-shadow: 0 10px 20px -8px rgb(27 22 64 / 40%);
}

.lap-base::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 18%;
  height: 6px;
  translate: -50% 0;
  border-radius: 0 0 8px 8px;
  background: #a69ddc;
}

.sync-phone {
  position: absolute;
  right: 5%;
  bottom: 6px;
  --pw: clamp(88px, 24vw, 152px);
  rotate: 8deg;
}

.sync-phone .device { --pw: inherit; }

.sync-chip {
  position: relative;
  display: inline-flex;
  margin: 26px 0 4px 6px;
  align-items: center;
  gap: 7px;
  padding: 8px 13px 8px 9px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font: 700 14px/1 var(--fd);
  rotate: -4deg;
  box-shadow: 0 4px 0 var(--gold-d);
}

.sync-chip svg { width: 20px; height: 20px; animation: spin 3s linear infinite; }

.home {
  --hs: 42px;
  display: grid;
  grid-template-columns: repeat(3, var(--hs));
  gap: 10px;
  width: max-content;
  margin: 20px auto 22px;
  padding: 14px;
  border-radius: 26px;
  background: rgb(255 255 255 / 30%);
}

@media (min-width: 760px) { .home { --hs: 52px; gap: 12px; padding: 16px; } }

.home i { width: var(--hs); height: var(--hs); border-radius: 30%; background: rgb(255 255 255 / 45%); }
.home.round i { border-radius: 50%; }

.home img {
  width: var(--hs);
  height: var(--hs);
  border-radius: 22.5%;
  box-shadow: 0 4px 0 rgb(27 22 64 / 18%);
  animation: jiggle 2.6s ease-in-out infinite;
}

.home.round img { border-radius: 50%; }

@keyframes jiggle {
  0%, 62%, 100% { translate: 0 0; rotate: 0deg; }
  70% { translate: 0 -10px; rotate: -6deg; }
  78% { translate: 0 0; rotate: 5deg; }
  86% { rotate: -2deg; }
}

/* les téléphones des stores (demande de Pierre) : le dernier iPhone, bords plats, l'île et ses boutons ; un
   Android, bords plats, la caméra en trou (l'écran rendu en Android, ecran-duel-android.webp). La carte garde sa
   taille. À gauche, le texte, le faux dossier et le badge ; à droite, une zone (--zone) où le téléphone (--pw) est
   centré : il part sous le texte (--pt) et la carte coupe le bas (on voit le haut de l'écran) */
.way.w-ios, .way.w-play { --zone: 158px; --pw: 124px; --pt: 22px; --px: 8px; padding-right: var(--zone); }
.w-ios > :not(.way-peek, .way-n), .w-play > :not(.way-peek, .way-n) { position: relative; z-index: 1; }
/* sur téléphone et tablette (demande de Pierre), toute la carte mène au store : le lien du badge s'étend sur
   elle (un seul lien, nommé par son badge), et la carte s'enfonce sous le doigt comme un bouton de l'appli */
@media (max-width: 759px), (hover: none) {
  .w-ios > .store, .w-play > .store { position: static; }
  .w-ios > .store::after, .w-play > .store::after { content: ''; position: absolute; inset: 0; z-index: 3; border-radius: inherit; }
  .w-ios, .w-play { cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .12s ease, box-shadow .12s ease; }
  .w-ios:has(.store:active), .w-play:has(.store:active) { transform: translateY(5px); box-shadow: 0 2px 0 var(--wd), 0 14px 26px -18px rgb(27 22 64 / 50%); }
  .w-ios:has(.store:focus-visible), .w-play:has(.store:focus-visible) { outline: 3px solid var(--ink); outline-offset: 4px; }
}
.w-ios .way-n, .w-play .way-n { z-index: 2; }
/* le titre et sa ligne passent au-dessus du téléphone : ils gardent toute la largeur de la carte */
.way.w-ios > h3, .way.w-play > h3 { margin-right: calc(16px - var(--zone)); }

.way-peek { position: absolute; inset: 0; z-index: 0; overflow: hidden; border-radius: inherit; pointer-events: none; }

/* centré dans sa zone (penché autour de son centre, il y reste centré ; --pw laisse la place de la pente) */
/* le téléphone, assez petit pour qu'on le voie presque entier (demande de Pierre : son haut et les réponses),
   penche vers la droite ; la carte coupe à peine le bas et le bord droit (--px) ; il ne touche jamais le titre */
.iphone, .pixel { position: absolute; top: var(--pt); right: calc((var(--zone) - var(--pw)) / 2 - var(--px)); width: var(--pw); --w: var(--pw); rotate: 8deg; }

@media (max-width: 379px) { .way.w-ios, .way.w-play { --zone: 142px; --pw: 112px; --pt: 64px; --px: 8px; } }
@media (min-width: 760px) { .way.w-ios, .way.w-play { --zone: 172px; --pw: 128px; --pt: 22px; --px: 10px; } }
/* deux cartes côte à côte sur une tablette : le titre déborde sur la zone du téléphone, qui part donc sous lui */
@media (min-width: 760px) and (max-width: 959px) { .way.w-ios, .way.w-play { --pw: 118px; --pt: 96px; --px: 12px; } }
/* deux cartes côte à côte : le titre tient sur une ligne */
@media (min-width: 760px) and (max-width: 1079px) { .way.w-ios > h3, .way.w-play > h3 { font-size: 34px; } }
@media (min-width: 960px) { .way.w-ios, .way.w-play { --zone: 206px; --pw: 140px; --pt: 22px; --px: 12px; } }
@media (min-width: 1080px) { .way.w-ios, .way.w-play { --zone: 240px; --pw: 150px; --pt: 22px; --px: 14px; } }
@media (min-width: 1280px) { .way.w-ios, .way.w-play { --zone: 300px; --pw: 158px; --pt: 22px; --px: 20px; } }
.iphone img, .pixel img { display: block; width: 100%; height: auto; aspect-ratio: 390 / 844; background: #f4f5fb; }

.iphone {
  padding: calc(var(--w) * .02);
  border-radius: calc(var(--w) * .2);
  background: linear-gradient(145deg, #55669f, #27305a 50%, #44548c);
  box-shadow:
    inset 0 0 0 calc(var(--w) * .006) rgb(255 255 255 / 40%),
    0 calc(var(--w) * .03) 0 #1b2140,
    0 22px 36px -16px rgb(27 22 64 / 55%);
}
.iphone .scr { padding: calc(var(--w) * .026); border-radius: calc(var(--w) * .182); background: #07070c; }
.iphone img { border-radius: calc(var(--w) * .156); }

.pixel {
  padding: calc(var(--w) * .032);
  border-radius: calc(var(--w) * .13);
  background: linear-gradient(160deg, #343944, #15171c);
  box-shadow:
    inset 0 0 0 calc(var(--w) * .008) rgb(255 255 255 / 20%),
    0 calc(var(--w) * .03) 0 #0a0b0e,
    0 22px 36px -16px rgb(8 40 28 / 55%);
}
.pixel img { border-radius: calc(var(--w) * .1); }

/* les boutons sur la tranche : à gauche l'action et le volume (iPhone), à droite l'alimentation */
.iphone::before,
.iphone::after,
.pixel::after {
  content: '';
  position: absolute;
  width: calc(var(--w) * .016);
  border-radius: 2px;
  background: #313c6c;
}
.iphone::before { left: calc(var(--w) * -.012); top: 19%; height: 5%; box-shadow: 0 calc(var(--w) * .16) 0 #313c6c, 0 calc(var(--w) * .3) 0 #313c6c; }
.iphone::after { right: calc(var(--w) * -.012); top: 28%; height: 11%; }
.pixel::after { right: calc(var(--w) * -.014); top: 22%; height: 7%; background: #2b2f38; box-shadow: 0 calc(var(--w) * .2) 0 #2b2f38; }

.home.mini {
  --hs: 24px;
  gap: 7px;
  margin: 12px 0 14px 4px;
  padding: 9px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 0 var(--wd), 0 14px 24px -12px rgb(27 22 64 / 40%);
  rotate: -8deg;
}
/* le dossier ne touche que le bord du téléphone, jamais son écran */
.home.mini i { background: color-mix(in srgb, var(--wb) 30%, #fff); }
.home.mini img { box-shadow: 0 2px 0 rgb(27 22 64 / 18%); animation-name: jiggle-s; }

@keyframes jiggle-s {
  0%, 62%, 100% { translate: 0 0; rotate: 0deg; }
  70% { translate: 0 -5px; rotate: -6deg; }
  78% { translate: 0 0; rotate: 5deg; }
  86% { rotate: -2deg; }
}

.w-ios, .w-play { display: flex; flex-direction: column; align-items: flex-start; }
.w-ios .store, .w-play .store { margin-top: auto; }

@media (min-width: 760px) {
  .ways-grid { grid-template-columns: 1fr 1fr; }
  .w-web { grid-column: 1 / -1; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; padding: 40px 30px 32px; }
  .way-copy .btn-web { width: auto; }
  .way { padding: 40px 28px 28px; }
}

@media (min-width: 1080px) {
  .w-web { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; padding: 48px 40px 40px; }

  .way.w-ios, .way.w-play { padding: 44px var(--zone) 32px 32px; }
}

/* ---------- l'appel final ---------- */

.final {
  position: relative;
  margin-top: 80px;
  padding: 80px var(--gutter) 90px;
  overflow: clip;
  background: var(--grad);
  text-align: center;
}

.final-shapes i {
  position: absolute;
  border-radius: 999px;
  background: rgb(255 255 255 / 16%);
  animation: drift 9s ease-in-out infinite alternate;
}

.final-shapes i:nth-child(1) { left: 4%; top: 12%; width: 46px; height: 150px; rotate: 18deg; }
.final-shapes i:nth-child(2) { left: 12%; bottom: 10%; width: 150px; height: 44px; rotate: -12deg; animation-delay: -3s; }
.final-shapes i:nth-child(3) { right: 6%; top: 14%; width: 46px; height: 120px; rotate: -16deg; animation-delay: -5s; }
.final-shapes i:nth-child(4) { right: 14%; bottom: 14%; width: 56px; height: 56px; animation-delay: -2s; }
.final-shapes i:nth-child(5) { left: 30%; top: 6%; width: 32px; height: 32px; animation-delay: -6s; }
.final-shapes i:nth-child(6) { right: 32%; bottom: 6%; width: 120px; height: 38px; rotate: 8deg; animation-delay: -4s; }
.final-shapes i:nth-child(7) { left: 46%; top: 44%; width: 22px; height: 22px; background: rgb(255 255 255 / 12%); animation-delay: -1s; }

@keyframes drift {
  from { translate: 0 0; }
  to { translate: 14px -22px; }
}

.final-in { position: relative; z-index: 1; display: grid; justify-items: center; width: min(var(--maxw), 100%); margin: 0 auto; }

/* le logo parle : la pointe de la bulle se glisse sous lui. Il se dandine depuis sa base, sans jamais
   s'éloigner de la pointe */
.final-logo {
  position: relative;
  z-index: 2;
  width: 104px;
  height: 104px;
  border-radius: 22.5%;
  box-shadow: 0 7px 0 rgb(27 22 64 / 18%), 0 26px 40px -16px rgb(27 22 64 / 55%);
  transform-origin: 50% 100%;
  animation: logo-wiggle 3.2s ease-in-out infinite;
}

@keyframes logo-wiggle {
  0%, 100% { rotate: -4deg; }
  50% { rotate: 4deg; }
}

.final-bubble {
  --tail: .42em;
  --tail-x: 50%;
  z-index: 1;
  margin-top: .2em;
  font-size: clamp(42px, 11.5vw, 120px);
  rotate: -1.5deg;
}

.final-sub {
  max-width: 26em;
  margin-top: 28px;
  color: var(--ink);
  font: 600 clamp(17px, 2vw, 22px)/1.4 var(--ft);
}

.final .ways-in { justify-content: center; margin-top: 30px; }

.final-note {
  display: inline-block;
  margin-top: 22px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgb(255 255 255 / 88%);
  color: var(--ink);
  font: 600 14.5px/1.3 var(--ft);
}

/* ---------- pied ---------- */

.foot {
  padding: 40px var(--gutter) calc(32px + env(safe-area-inset-bottom));
  background: var(--ink);
  color: #fff;
}

.foot-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  width: min(var(--maxw), 100%);
  margin: 0 auto;
}

.foot .brand { color: #fff; }
.foot-tag { color: rgb(255 255 255 / 75%); font: 600 16px var(--fd); }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 6px; margin-left: auto; }

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 10px;
  border-radius: 12px;
  color: #fff;
  font-weight: 500;
  text-underline-offset: 4px;
}

.foot-links a:hover { background: rgb(255 255 255 / 10%); }
.foot :focus-visible, .c-car :focus-visible, .free :focus-visible { outline-color: var(--gold); }

.foot-legal {
  width: min(var(--maxw), 100%);
  margin: 18px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgb(255 255 255 / 14%);
  color: rgb(255 255 255 / 74%);
  font-size: 13.5px;
  line-height: 1.65;
}

@media (max-width: 599px) {
  .foot-links { margin-left: -10px; width: 100%; }
}

/* ---------- les apparitions au défilement (seulement quand le script tourne) ---------- */

.js-ok .rv {
  opacity: 0;
  translate: 0 44px;
  scale: .94;
  transition: opacity .55s ease, translate .95s var(--spring), scale .95s var(--spring);
  transition-delay: var(--dl, 0s);
}

.js-ok .rv.in { opacity: 1; translate: 0 0; scale: 1; }

.js-ok .tape.rv { scale: .6; translate: 0 30px; }
.js-ok .tape.rv.in { scale: 1; translate: 0 0; }

/* l'étiquette ne monte pas : elle descend du bord, au bout de sa ficelle */
.js-ok .price-tag.rv:not(.in) { opacity: 1; scale: 1; translate: 0 -100%; }

/* les mots d'un titre, un par un */
.wd { display: inline-block; transition: translate .8s var(--spring), opacity .4s ease, rotate .8s var(--spring); transition-delay: calc(var(--i) * 70ms); }
.js-ok .sec-title.rv { opacity: 1; translate: none; scale: none; }
.js-ok .sec-title.rv .wd { opacity: 0; translate: 0 .5em; rotate: 8deg; }
.js-ok .sec-title.rv.in .wd { opacity: 1; translate: 0 0; rotate: 0deg; }

/* une carte hors de l'écran ne fait pas tourner ses animations */
.card:not(.playing) .card-in *,
.card:not(.playing) .card-in *::before,
.card:not(.playing) .card-in *::after { animation-play-state: paused !important; }

/* les éclats de points (un toucher sur une lettre, un sticker posé) */
.fx { position: fixed; inset: 0; z-index: 70; pointer-events: none; overflow: hidden; }
.fx i { position: absolute; left: 0; top: 0; width: 10px; height: 10px; border-radius: 999px; }

/* ---------- mouvement réduit : tout est là, rien ne bouge ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }

  .js-ok .rv, .js-ok .sec-title.rv .wd, .js-ok .tape.rv { opacity: 1; translate: none; scale: none; rotate: none; }
  .js .hero:not(.go) :is(.L, .hi-shadow, .hero-sub, .ways-in, .hero-note, .phone, .drag-hint) { opacity: 1; translate: none; scale: none; }
  .js .hero:not(.go) .hero-bubble { opacity: 1; scale: none; rotate: -2deg; }
  .js .hero:not(.go) .sticker { opacity: 1; scale: var(--ss, 1); }
  .pop-bubble, .said, .say { opacity: 1; scale: 1; }
  .w.ok::after { scale: 1 1; }
}
