/* Ki Ka Raison ? — landing : l'histoire d'un pari le long d'une ligne de temps. Mêmes couleurs et même typo que l'app (DA « Pop, mais sérieux »). */
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('fonts/plus-jakarta-sans-latin-wght-normal.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: italic; font-weight: 200 800; font-display: swap; src: url('fonts/plus-jakarta-sans-latin-wght-italic.woff2') format('woff2'); }
:root {
  --cream: #fbf8f3;
  --paper: #ffffff;
  --ink: #1d1d1f;
  --grey: #5c5955;
  --line: #e8e2d8;
  --lime: #def26b;
  --lime-2: #c9dc58;
  --peri: #8285f5;
  --lav: #c9c6ff;
  --brick: #ee6a42;
  --pink: #f6a6cf;
  --gain: #22806b;
  --f: 'Plus Jakarta Sans', 'Helvetica Neue', Arial, system-ui, sans-serif;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 500 17px/1.5 var(--f); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p, h1, h2, figure, ul { margin: 0; padding: 0; }
ul { list-style: none; }
:focus-visible { outline: 3px solid var(--peri); outline-offset: 3px; }
.wrap { width: 100%; max-width: 1140px; margin-inline: auto; padding-left: var(--gutter); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.stack { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

/* Titres */
h1, h2 { font-weight: 800; letter-spacing: -.045em; line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(44px, 8.2vw, 86px); }
h1 .next { font-style: italic; }
h1 mark { white-space: nowrap; }
h2 { font-size: clamp(34px, 6vw, 62px); }
/* Le surlignage s'arrête avant la ligne du dessus, sinon il mord sur ses lettres. */
mark { --m: var(--lime); background: linear-gradient(transparent 10%, var(--m) 10%, var(--m) 90%, transparent 90%); color: var(--ink); padding: 0 .14em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.lead { font-size: clamp(17px, 2vw, 20px); font-weight: 500; max-width: 34em; opacity: .86; }
.lead s { text-decoration: line-through var(--brick) .1em; }
.fine { font-size: 14px; opacity: .7; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 56px; padding: 8px 8px 8px 24px; border-radius: 99px; border: 0; background: var(--ink); color: #fff; font: 700 17px var(--f); text-decoration: none; cursor: pointer; transition: transform .1s; }
.btn:active { transform: scale(.98); }
.btn .go { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink); font-style: normal; font-weight: 800; flex: none; }
.btn.line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); padding: 8px 24px; }
.btn.lime { background: var(--lime); color: var(--ink); }
.btn.lime .go { background: var(--ink); color: #fff; }
.btn.full { width: 100%; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* En-tête */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 16px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 18px; letter-spacing: -.03em; text-decoration: none; }
.top-link { font-weight: 700; font-size: 15px; text-decoration: underline; text-underline-offset: 4px; }
.kika { display: inline-block; width: 30px; aspect-ratio: 120 / 140; flex: none; }
.kika svg { display: block; width: 100%; height: auto; }
.kika.big { width: 74px; }
.kika.huge { width: clamp(110px, 16vw, 150px); }

/* Ouverture */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-block: 18px 72px; }
.hero-text { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.hero-visual { position: relative; display: flex; justify-content: center; min-width: 0; }
.kika-says { position: absolute; left: 0; bottom: -28px; display: flex; align-items: flex-end; gap: 4px; max-width: 220px; }
.kika-says p { background: var(--paper); border: 2px solid var(--ink); border-radius: 16px 16px 16px 4px; padding: 8px 12px; font-size: 13.5px; font-weight: 700; line-height: 1.3; margin-bottom: 40px; }
@media (min-width: 920px) {
  .hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: center; padding-block: 28px 96px; }
}

/* Téléphones */
.phone-wrap { position: relative; width: min(290px, 74vw); margin-inline: auto; transform: rotate(var(--r, 3deg)); transition: transform .3s; }
.phone-wrap:hover { transform: rotate(0deg); }
.phone-wrap::before { content: ''; position: absolute; z-index: 1; top: -13px; left: 50%; width: 92px; height: 27px; margin-left: -46px; background: var(--lime); opacity: .92; transform: rotate(-3deg); border-radius: 3px; }
.phone { border: 8px solid var(--ink); border-radius: 38px; overflow: hidden; background: var(--ink); box-shadow: 0 34px 60px -30px rgba(29, 29, 31, .6); }
.phone img { width: 100%; }
.dark .phone { border-color: #333338; }

/* Notes griffonnées */
.note { font-style: italic; font-weight: 700; font-size: 15px; line-height: 1.25; color: #bf421d; display: flex; align-items: center; gap: 8px; }
.note svg { width: 34px; height: 26px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.note.light { color: var(--lime); }
.phone-wrap .note { margin-top: 18px; transform: rotate(calc(var(--r, 0deg) * -1)); justify-content: center; }
.peri .note.light, .lav .note, .pink .note { color: var(--ink); }

/* Rubans */
.ribbons { position: relative; height: 120px; overflow: hidden; margin-block: -8px; pointer-events: none; }
.ribbon { position: absolute; left: -6%; width: 112%; padding: 9px 0; white-space: nowrap; overflow: hidden; font-weight: 800; font-size: 14px; letter-spacing: .03em; text-transform: uppercase; }
.ribbon.lime { top: 18px; background: var(--lime); color: var(--ink); transform: rotate(-1.6deg); }
.ribbon.ink { top: 62px; background: var(--ink); color: var(--cream); transform: rotate(1.3deg); }
.track { display: inline-flex; gap: 0; width: max-content; animation: slide 46s linear infinite; }
.rev .track { animation-direction: reverse; }
.track span { padding-inline: 18px; }
.track span::after { content: '✦'; margin-left: 36px; opacity: .6; }
@keyframes slide { to { transform: translateX(-50%); } }

/* Ligne de temps */
.sec { --line-c: var(--ink); --fg: var(--ink); background: var(--bg, transparent); color: var(--fg); }
.sec.peri { --bg: var(--peri); }
.sec.dark { --bg: var(--ink); --fg: var(--cream); --line-c: var(--lime); }
.sec.lav { --bg: var(--lav); }
.sec.pink { --bg: var(--pink); }
.sec.limey { --bg: var(--lime); }
.sec.limey mark { --m: var(--ink); color: var(--lime); }
.timeline { position: relative; padding-block: clamp(52px, 8vw, 104px); display: flex; flex-direction: column; gap: 30px; }
.timeline > * { margin-left: 26px; }
.timeline::before { content: ''; position: absolute; left: calc(var(--gutter) + 5px); top: 0; bottom: 0; width: 3px; background: var(--line-c); border-radius: 2px; opacity: .9; }
.sec.end .timeline::before { bottom: auto; height: clamp(70px, 9vw, 120px); }
.stamp { position: relative; align-self: flex-start; display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 9px; padding: 6px 14px; border-radius: 99px; background: var(--ink); color: var(--cream); font-size: 14px; font-weight: 600; }
.stamp b { font-weight: 800; color: var(--lime); }
.dark .stamp { background: var(--cream); color: var(--ink); }
.dark .stamp b { color: var(--ink); }
.stamp::before { content: ''; position: absolute; left: -27px; top: 50%; width: 15px; height: 15px; margin-top: -7.5px; border-radius: 50%; background: var(--lime); border: 3px solid var(--ink); }
.dark .stamp::before { border-color: var(--cream); background: var(--ink); }
.grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px; align-items: center; }
@media (min-width: 920px) {
  .grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 64px; }
  .grid.rev { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .timeline > * { margin-left: 44px; }
  .stamp::before { left: -45px; }
}
@media (max-width: 919px) { .grid.rev > :first-child { order: 1; } }

/* Conversation */
.chat { display: flex; flex-direction: column; gap: 8px; max-width: 460px; }
.bubble { padding: 11px 16px; border-radius: 20px; font-weight: 600; line-height: 1.35; width: fit-content; max-width: 88%; }
.bubble.left { background: var(--lav); border-bottom-left-radius: 5px; transform: rotate(-.8deg); }
.bubble.right { align-self: flex-end; background: var(--lime); border-bottom-right-radius: 5px; font-weight: 800; transform: rotate(1deg); }

/* Invitation */
.message { background: var(--paper); color: var(--ink); border-radius: 22px 22px 22px 6px; padding: 14px 18px; display: flex; flex-direction: column; gap: 5px; transform: rotate(-1.4deg); box-shadow: 0 24px 40px -28px rgba(29, 29, 31, .6); }
.message small { font-size: 12.5px; font-weight: 700; opacity: .6; }
.message p { font-weight: 600; line-height: 1.35; }
.message-link { font-weight: 700; font-size: 15px; color: #4f52c9; text-decoration: underline; overflow-wrap: anywhere; }
.stickers { display: flex; flex-wrap: wrap; gap: 8px; }
.stickers li { transform: rotate(var(--r)); background: var(--ink); color: #fff; border-radius: 10px; padding: 8px 14px; font-weight: 800; font-size: 15px; letter-spacing: -.01em; }
.stickers li:nth-child(2) { background: var(--lime); color: var(--ink); }
.stickers li:nth-child(3) { background: var(--pink); color: var(--ink); }

/* Essai de pari */
.demo { background: var(--paper); color: var(--ink); border-radius: 28px; padding: 18px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); min-width: 0; }
.demo-q { font-weight: 800; font-size: 19px; letter-spacing: -.02em; line-height: 1.2; }
.demo-opts { display: flex; flex-direction: column; gap: 7px; }
.demo-opt { position: relative; overflow: hidden; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; width: 100%; padding: 11px 14px 15px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); font: 700 15.5px var(--f); text-align: left; cursor: pointer; }
.demo-opt b { font-weight: 800; font-size: 17px; }
.demo-opt i { position: absolute; left: 14px; bottom: 7px; height: 4px; max-width: calc(100% - 28px); border-radius: 9px; background: var(--peri); }
.demo-opt.on { background: #f1f9c6; border-color: var(--lime-2); box-shadow: inset 0 0 0 1px var(--lime-2); }
.demo-amts { display: flex; flex-wrap: wrap; gap: 6px; }
.demo-amts button { padding: 8px 16px; border-radius: 99px; border: 1.5px solid #d8d2c8; background: transparent; color: var(--ink); font: 700 14.5px var(--f); cursor: pointer; }
.demo-amts button.on { background: var(--lime); border-color: var(--lime-2); }
.demo-pay { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: #f3efe8; font-size: 14px; font-weight: 600; color: var(--grey); }
.demo-pay small { display: block; font-size: 12px; font-weight: 500; opacity: .85; }
.demo-pay > b { font-size: clamp(26px, 5vw, 34px); font-weight: 800; letter-spacing: -.04em; color: var(--gain); white-space: nowrap; font-variant-numeric: tabular-nums; }
.demo-done { font-weight: 700; font-size: 15px; text-align: center; }
.confetti { position: fixed; z-index: 50; width: 9px; height: 13px; border-radius: 3px; pointer-events: none; animation: conf 1s cubic-bezier(.2, .7, .3, 1) forwards; }
@keyframes conf { to { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 0; } }

/* Grand chiffre */
.big-num { display: flex; align-items: center; gap: 14px; }
.big-num b { font-size: clamp(64px, 12vw, 116px); font-weight: 800; letter-spacing: -.06em; line-height: .9; font-style: italic; }
.big-num span { font-weight: 700; line-height: 1.25; }

/* Titres de la bande */
.titles { display: flex; flex-wrap: wrap; gap: 7px; }
.titles li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 10px; background: var(--paper); font-weight: 800; font-size: 14.5px; letter-spacing: -.01em; transform: rotate(var(--r, 0deg)); transition: transform .15s; }
.titles li:hover { transform: rotate(0deg) scale(1.05); }
.titles li span { font-size: 17px; line-height: 1; }

/* Comptes */
.debts { gap: 12px; }
.debt { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px 12px; padding: 14px; border-radius: 20px; background: var(--paper); transform: rotate(-1deg); }
.debt.tilt { transform: rotate(1.2deg); }
.debt b { font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.who-dot { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; font-weight: 800; }
.debt-acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.pill { padding: 7px 14px; border-radius: 99px; font-size: 14px; font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--ink); }
.pill.lime { background: var(--lime); box-shadow: none; }
.pill.dark { background: var(--ink); color: #fff; box-shadow: none; }
.sec.limey .note { color: var(--ink); }

/* Encadré */
.callout { padding: 20px 22px; border-radius: 22px; border: 2px solid var(--ink); background: var(--paper); display: flex; flex-direction: column; gap: 6px; transform: rotate(1deg); }
.callout b { font-size: 19px; font-weight: 800; letter-spacing: -.02em; font-style: italic; }

/* Questions fréquentes : des cartes qui s'ouvrent, la réponse reste dans la page pour les moteurs */
.faq { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.faq details { background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: 20px; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 15px 18px 15px 20px; font-size: 17px; font-weight: 800; letter-spacing: -.01em; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; font-size: 21px; font-weight: 700; line-height: 1; padding-bottom: 3px; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 18px; max-width: 40em; font-size: 16px; opacity: .86; }

/* Les apps des stores arrivent : des étiquettes en pointillés, pas des boutons, puisqu'il n'y a rien à télécharger encore */
.soon { display: flex; flex-direction: column; gap: 10px; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.store { display: inline-flex; flex-direction: column; padding: 7px 16px 8px; border: 1.5px dashed currentColor; border-radius: 14px; font-size: 16px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.store small { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; opacity: .7; }
.soon-note { font-style: italic; font-size: 14.5px; opacity: .8; }
.foot .soon { margin-block: 6px 4px; }
.foot .store small { color: var(--lime); opacity: 1; }

/* Fin */
.end .timeline { padding-bottom: clamp(70px, 10vw, 130px); }
.end-box { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.end-title { font-size: clamp(50px, 10vw, 112px); font-style: italic; }
.foot { background: var(--ink); color: var(--cream); border-top: 1px solid #333338; padding-block: 28px max(28px, env(safe-area-inset-bottom, 0px)); }
.foot-in { display: flex; flex-direction: column; gap: 8px; }
.foot p { font-size: 15px; opacity: .85; }
.foot .fine { font-size: 13px; opacity: .6; }
.foot .fine a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
/* Le studio qui fait l'app : une étiquette discrète, citron sur l'encre */
.foot .studio { align-self: flex-start; margin-top: 8px; padding: 5px 13px 6px; border: 1.5px solid var(--lime); border-radius: 99px; color: var(--lime); font-size: 13.5px; font-weight: 600; text-decoration: none; }
.foot .studio b { font-weight: 800; }
.foot .studio:hover { background: var(--lime); color: var(--ink); }

/* Kika de la fin : un pari à chaque clic. La bulle grandit vers le haut, rien ne bouge autour. */
.kika-talk { position: relative; }
.kika-talk .kika { padding: 0; border: 0; border-radius: 40%; background: none; cursor: pointer; transition: transform .15s; }
.kika-talk .kika:hover { transform: rotate(-4deg) scale(1.04); }
.kika-talk .kika:active { transform: scale(.94); }
.kika-bubble { position: absolute; left: calc(100% + 6px); bottom: 48%; width: max-content; max-width: min(360px, calc(100vw - 182px)); padding: 10px 14px; border-radius: 18px 18px 18px 4px; background: var(--paper); color: var(--ink); font-size: 15px; font-weight: 800; line-height: 1.3; letter-spacing: -.01em; transform-origin: 0 100%; }
.kika-bubble.said { animation: said .45s cubic-bezier(.34, 1.56, .64, 1); }
.kika-talk .kika.talking svg { animation: hop .45s ease; }
@keyframes said { from { opacity: 0; scale: .6; } }
@keyframes hop { 40% { translate: 0 -10px; rotate: -5deg; } }
.kika svg [data-part="face"] circle { transition: transform .12s ease-out; }

/* L'ouverture arrive au chargement */
@keyframes rise { from { opacity: 0; translate: 0 28px; } }
@keyframes pop-in { from { opacity: 0; scale: .8; } }
@keyframes sweep { from { background-size: 0 100%; } }
.hero-text > * { animation: rise .8s cubic-bezier(.2, .8, .2, 1) both; }
.hero-text > :nth-child(2) { animation-delay: .1s; }
.hero-text > :nth-child(3) { animation-delay: .2s; }
.hero-text > :nth-child(4) { animation-delay: .3s; }
.hero-text > :nth-child(5) { animation-delay: .4s; }
.hero-text > :nth-child(6) { animation-delay: .5s; }
.hero-visual .phone-wrap { animation: rise 1s .25s cubic-bezier(.2, .8, .2, 1) both; }
.hero-visual .kika-says { animation: pop-in .6s .8s cubic-bezier(.34, 1.56, .64, 1) both; }
.hero h1 mark { background-repeat: no-repeat; background-size: 100% 100%; animation: sweep .7s .45s cubic-bezier(.6, 0, .2, 1) both; }

/* Le reste arrive au défilement (landing.js) : en montant, ou en se collant comme un autocollant. Le surligné se pose après. */
.rv { opacity: 0; translate: 0 28px; transition: opacity .6s ease var(--rd, 0ms), translate .8s cubic-bezier(.2, .8, .2, 1) var(--rd, 0ms), scale .55s cubic-bezier(.34, 1.56, .64, 1) var(--rd, 0ms), transform .3s; }
.rv.rv-pop { translate: none; scale: .82; }
.rv.rv-far { translate: 0 64px; }
.rv.in { opacity: 1; translate: none; scale: none; }
.rv mark { background-repeat: no-repeat; background-size: 0 100%; transition: background-size .7s cubic-bezier(.6, 0, .2, 1) calc(var(--rd, 0ms) + .3s); }
.rv.in mark { background-size: 100% 100%; }
.rv-line::before { transform: scaleY(0); transform-origin: top; transition: transform 1.4s cubic-bezier(.6, 0, .2, 1); }
.rv-line.in::before { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .track { animation: none; }
  .phone-wrap, .btn, .titles li, .kika-talk .kika, .faq summary::after { transition: none; }
  .confetti { display: none; }
  .hero-text > *, .hero-visual .phone-wrap, .hero-visual .kika-says, .hero h1 mark, .kika-bubble.said, .kika-talk .kika.talking svg { animation: none; }
}
