/* Kiki ou Bouba — site vitrine (kikioubouba.app)
   Reprend les tokens du design system « Warm Minimal » (design-system/tokens/*).
   Crème chaud, cartes lait, encre brune ; rouge/bleu réservés au duo. Light only. */

@import "fonts/fonts.css";

:root {
  /* Surfaces */
  --bg: #f3efe9;
  --card: #fdfbf8;
  --card-alt: #f6f2ec;
  --line: #e5dfd5;
  --line-strong: #d8d1c4;

  /* Encre (jamais de noir pur) */
  --ink: #211c15;
  --ink-2: rgba(33, 28, 21, 0.58);
  --ink-3: rgba(33, 28, 21, 0.36);

  /* Duo */
  --red: #e0432c;
  --red-ink: #a92e1e;
  --red-halo: #f6a48f;
  --red-soft: #faece7;
  --blue: #2d5fe0;
  --blue-ink: #2447ac;
  --blue-halo: #aac3f2;
  --blue-soft: #eaf0fa;

  /* Signaux */
  --gold: #d4a33b;
  --gold-soft: #f7ecd8;
  --green: #2e9a60;

  /* Rayons & ombres */
  --r-card: 26px;
  --r-pill: 999px;
  --sh-card: 0 1px 2px rgba(76, 60, 35, 0.04), 0 14px 36px -12px rgba(76, 60, 35, 0.12);
  --sh-key: inset 0 0 0 1px var(--line), inset 0 -3px 6px rgba(76, 60, 35, 0.05),
            inset 0 2px 5px rgba(255, 255, 255, 0.85), 0 2px 5px rgba(76, 60, 35, 0.06);

  --font-display: "Bricolage Grotesque", "Instrument Sans", sans-serif;
  --font-ui: "Instrument Sans", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--blue-halo); color: var(--ink); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
img, svg { display: block; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.site-header { padding: 20px 0; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a:not(.btn) { font-size: 14.5px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.site-nav a:not(.btn):hover { color: var(--ink); }
@media (max-width: 720px) { .site-nav a:not(.btn) { display: none; } }

/* ---------- wordmark ---------- */
.wm {
  display: inline-flex; align-items: center;
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em;
  text-decoration: none; white-space: nowrap;
}
.wm .k { color: var(--red); transform: rotate(-2deg); display: inline-block; }
.wm .b { color: var(--blue); transform: rotate(1.5deg); display: inline-block; }
.wm .ou {
  background: var(--ink); color: var(--card);
  font-weight: 700; font-size: 0.52em; line-height: 1;
  padding: 0.42em 0.62em 0.48em; border-radius: var(--r-pill);
  transform: rotate(-5deg); margin: 0 0.38em; display: inline-block;
}

/* ---------- primitives ---------- */
.tag {
  font-size: 11.5px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--ink-3);
}
.card {
  background: var(--card);
  border-radius: var(--r-card);
  box-shadow: inset 0 0 0 1px var(--line), var(--sh-card);
  padding: 26px;
}
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  height: 30px; padding: 0 13px; border-radius: var(--r-pill);
  font-size: 12.5px; font-weight: 600;
  background: var(--card); color: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line);
  white-space: nowrap;
}
.chip .dot-svg { width: 13px; height: 13px; }
.chip.red { background: var(--red-soft); color: var(--red-ink); box-shadow: inset 0 0 0 1px rgba(169, 46, 30, 0.2); }
.chip.blue { background: var(--blue-soft); color: var(--blue-ink); box-shadow: inset 0 0 0 1px rgba(36, 71, 172, 0.2); }
.chip.gold { background: var(--gold-soft); color: #8a6a24; box-shadow: inset 0 0 0 1px rgba(212, 163, 59, 0.35); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: var(--r-pill);
  font-family: var(--font-ui); font-size: 15.5px; font-weight: 600;
  background: var(--ink); color: var(--card);
  box-shadow: 0 12px 26px -10px rgba(33, 28, 21, 0.55);
  border: 0; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(33, 28, 21, 0.55); }
.btn-ghost { background: var(--card); color: var(--ink); box-shadow: var(--sh-key); }
.btn-ghost:hover { box-shadow: var(--sh-key), 0 6px 14px -6px rgba(76, 60, 35, 0.25); }

/* boutons stores */
.btn-store { height: 60px; padding: 0 22px; gap: 12px; text-align: left; }
.btn-store svg { width: 24px; height: 24px; flex: none; }
.btn-store .txt { display: flex; flex-direction: column; line-height: 1.15; }
.btn-store .txt small { font-size: 10.5px; font-weight: 500; opacity: 0.72; letter-spacing: 0.3px; }
.btn-store .txt strong { font-size: 16.5px; font-weight: 700; letter-spacing: -0.1px; }

/* mascottes */
.mascot { width: 120px; height: 120px; }
.dot-svg { width: 18px; height: 18px; }
.dot-red { color: var(--red); }
.dot-blue { color: var(--blue); }
.dot-paper { color: var(--card); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 34px 0 80px; overflow: visible; }
.hero .container {
  display: grid; grid-template-columns: 1.04fr 0.96fr;
  gap: 48px; align-items: center;
}
.hero-copy { position: relative; z-index: 1; }
.hero h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(40px, 6vw, 64px); line-height: 1.04; letter-spacing: -0.022em;
  margin: 14px 0 18px; text-wrap: balance;
}
.hero h1 .wm { font-size: 1em; }
.hero .lead {
  font-size: 17px; line-height: 1.6; color: var(--ink-2);
  max-width: 46ch; margin: 0 0 26px;
}
.store-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- téléphone ---------- */
.phone-wrap { display: flex; justify-content: center; position: relative; }
.phone {
  position: relative;
  width: min(348px, 86vw); aspect-ratio: 393 / 830;
  background: var(--bg);
  border: 9px solid var(--ink); border-radius: 52px;
  box-shadow: 0 34px 70px -26px rgba(40, 32, 20, 0.45);
  overflow: hidden;
  transform: rotate(1.8deg);
}
.phone-screen {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center;
  padding: 22px 20px 78px; gap: 0;
}
.phone-notch {
  width: 96px; height: 24px; border-radius: var(--r-pill);
  background: var(--ink); flex: none; margin-bottom: 16px;
}
.phone .wm { font-size: 17px; }
.phone-card {
  margin-top: 16px; width: 100%;
  background: var(--card); border-radius: 24px;
  box-shadow: inset 0 0 0 1px var(--line), var(--sh-card);
  padding: 20px 18px 22px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.phone-card .question {
  font-family: var(--font-display); font-weight: 700;
  font-size: 20.5px; line-height: 1.16; letter-spacing: -0.3px;
  margin: 6px 0 14px; text-wrap: balance;
}
.vote-row { display: flex; align-items: center; gap: 10px; }
.vote-side { display: flex; flex-direction: column; align-items: center; gap: 9px; }
.vote-side .mascot { width: 92px; height: 92px; }
.vote-ou {
  background: var(--ink); color: var(--card);
  font-family: var(--font-display); font-weight: 700; font-size: 12px; line-height: 1;
  padding: 6px 9px 7px; border-radius: var(--r-pill); transform: rotate(-5deg);
  margin-top: -18px;
}
.phone-hint { font-size: 11.5px; color: var(--ink-3); margin-top: 12px; }
.phone-yesterday {
  margin-top: 14px; display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.vstag {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--red); color: #fff;
  border-radius: var(--r-pill); padding: 7px 14px;
  font-size: 13px; font-weight: 700; letter-spacing: -0.1px;
}
.vstag .dot-svg { width: 15px; height: 15px; }
.vstag .vs { font-size: 10px; font-weight: 600; opacity: 0.75; margin: 0 2px; }

/* console bar (tab bar « pilule ») */
.console {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 15px;
  background: var(--card); border-radius: var(--r-pill);
  box-shadow: inset 0 0 0 1px var(--line), 0 10px 24px -8px rgba(76, 60, 35, 0.3);
  padding: 7px 15px 7px 7px;
}
.console .sticker {
  background: var(--ink); color: var(--card);
  font-size: 12px; font-weight: 700;
  padding: 8px 14px; border-radius: var(--r-pill);
  transform: rotate(-2deg); white-space: nowrap;
}
.console svg { width: 19px; height: 19px; color: var(--ink-3); }

/* mascottes fantômes décoratives */
.ghost { position: absolute; z-index: 0; pointer-events: none; }

/* flottement doux des mascottes du hero */
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.floaty { animation: floaty 5s ease-in-out infinite; }
.floaty.delay { animation-delay: -2.5s; }
@media (prefers-reduced-motion: reduce) {
  .floaty { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- sections ---------- */
.section { padding: 64px 0; position: relative; }
.sec-head { max-width: 640px; margin-bottom: 34px; }
.sec-head h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(28px, 3.6vw, 38px); line-height: 1.1; letter-spacing: -0.5px;
  margin: 10px 0 12px;
}
.sec-head p { color: var(--ink-2); font-size: 16px; margin: 0; }

/* étapes */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { display: flex; flex-direction: column; gap: 14px; }
.step-top { display: flex; align-items: center; justify-content: space-between; }
.step-n {
  font-family: var(--font-display); font-weight: 800; font-size: 15px;
  width: 38px; height: 38px; border-radius: var(--r-pill);
  display: grid; place-items: center;
  background: var(--card); box-shadow: var(--sh-key);
}
.step h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 21px; letter-spacing: -0.2px; margin: 0;
}
.step p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.step-art { display: flex; align-items: center; gap: 6px; min-height: 40px; }
.step-art .mini { width: 34px; height: 34px; }
.step-art .tilt-l { transform: rotate(-8deg); }
.step-art .tilt-r { transform: rotate(7deg); }

/* pips de pronos */
.pip {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--card); box-shadow: var(--sh-key);
  display: inline-grid; place-items: center;
}
.pip.r { background: var(--red); box-shadow: inset 0 -4px 8px rgba(0, 0, 0, 0.22), inset 0 2px 5px rgba(255, 255, 255, 0.35); }
.pip.b { background: var(--blue); box-shadow: inset 0 -4px 8px rgba(0, 0, 0, 0.22), inset 0 2px 5px rgba(255, 255, 255, 0.35); }
.pip .dot-svg { width: 16px; height: 16px; }

/* mini podium */
.mini-rows { display: flex; flex-direction: column; gap: 4px; width: 100%; }
.mini-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; }
.mini-row .rank { font-family: var(--font-display); font-weight: 800; width: 14px; text-align: center; }
.mini-row .bar { height: 8px; border-radius: 5px; background: var(--line); flex: 1; }
.mini-row .bar i { display: block; height: 100%; border-radius: 5px; background: var(--ink); }
.mini-row .pts { font-family: var(--font-display); font-weight: 700; }

/* bandeau révélation */
.reveal-card {
  margin-top: 22px;
  display: flex; align-items: center; gap: 22px;
  padding: 24px 28px;
}
.reveal-card .ico {
  width: 52px; height: 52px; border-radius: var(--r-pill); flex: none;
  background: var(--card-alt); box-shadow: inset 0 0 0 1px var(--line);
  display: grid; place-items: center;
}
.reveal-card .ico svg { width: 26px; height: 26px; }
.reveal-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 19px; margin: 0 0 4px; letter-spacing: -0.2px; }
.reveal-card p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
@media (max-width: 640px) { .reveal-card { flex-direction: column; align-items: flex-start; gap: 14px; } }

/* ---------- mode soirée ---------- */
.party-card {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 38px; align-items: center;
  padding: 38px 40px; position: relative; overflow: hidden;
}
.party-card h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(26px, 3.2vw, 34px); letter-spacing: -0.5px; margin: 10px 0 12px;
}
.party-card > div > p { color: var(--ink-2); font-size: 15.5px; margin: 0 0 18px; }
.party-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.party-visual {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  background: var(--card-alt); border-radius: 22px;
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 28px 22px;
}
.otp { display: flex; gap: 7px; }
.otp .digit {
  width: 38px; height: 48px; border-radius: 13px;
  background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line-strong);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 21px;
}

/* ---------- téléchargement ---------- */
.download { text-align: center; padding: 78px 0 90px; position: relative; }
.download h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(30px, 4.4vw, 46px); letter-spacing: -0.6px; margin: 16px 0 10px;
}
.download p { color: var(--ink-2); margin: 0 0 28px; }
.download .store-row { justify-content: center; }
.download .duo { display: flex; justify-content: center; gap: 8px; }
.download .duo .mascot { width: 72px; height: 72px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 30px 0 44px; }
.site-footer .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.site-footer .wm { font-size: 17px; }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-nav a { font-size: 13.5px; font-weight: 500; color: var(--ink-2); text-decoration: none; }
.footer-nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.site-footer .copy { font-size: 12.5px; color: var(--ink-3); }

/* ---------- pages légales ---------- */
.legal { max-width: 720px; margin: 0 auto; padding: 26px 24px 90px; }
.legal h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(30px, 4.4vw, 40px); letter-spacing: -0.5px; margin: 8px 0 6px;
}
.legal .updated { font-size: 13px; color: var(--ink-3); margin-bottom: 34px; }
.legal h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 21px; letter-spacing: -0.2px; margin: 38px 0 10px;
}
.legal p, .legal li { font-size: 15.5px; line-height: 1.68; color: var(--ink); }
.legal p { margin: 0 0 14px; }
.legal ul { padding-left: 22px; margin: 0 0 14px; }
.legal li { margin-bottom: 8px; }
.legal li::marker { color: var(--ink-3); }
.legal a { text-underline-offset: 3px; }
.legal strong { font-weight: 700; }
.legal .callout {
  background: var(--card); border-radius: 18px;
  box-shadow: inset 0 0 0 1px var(--line), var(--sh-card);
  padding: 18px 22px; margin: 20px 0;
}
.legal .callout p { margin: 0; }
.legal h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 16.5px; letter-spacing: -0.1px; margin: 22px 0 8px;
}
.legal table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  margin: 0 0 16px; font-size: 14px; line-height: 1.5;
  background: var(--card); border-radius: 16px;
  box-shadow: inset 0 0 0 1px var(--line), var(--sh-card);
  overflow: hidden;
}
.legal th, .legal td { text-align: left; vertical-align: top; padding: 11px 16px; border-bottom: 1px solid var(--line); }
.legal thead th { font-size: 11px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink-3); }
.legal tbody tr:last-child td { border-bottom: 0; }

/* FAQ (support) */
.faq details {
  background: var(--card); border-radius: 18px;
  box-shadow: inset 0 0 0 1px var(--line), var(--sh-card);
  padding: 0 22px; margin-bottom: 12px;
}
.faq details:hover { box-shadow: inset 0 0 0 1px var(--line-strong), var(--sh-card); }
.faq summary {
  cursor: pointer; list-style: none;
  font-weight: 700; font-size: 15.5px; padding: 18px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: var(--font-display); font-weight: 700; font-size: 20px;
  color: var(--ink-3); width: 16px; text-align: center; flex: none;
}
.faq details[open] summary { padding-bottom: 8px; }
.faq details[open] summary::after { content: "–"; }
/* padding (pas margin) : la marge fusionnerait avec celle du details et
   s'échapperait de la carte — le texte collerait au bord bas arrondi */
.faq details p { margin: 0; padding-bottom: 20px; color: var(--ink-2); font-size: 14.5px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; gap: 44px; }
  .hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .hero .lead { margin-inline: auto; }
  .store-row, .hero-chips { justify-content: center; }
  .steps { grid-template-columns: 1fr; }
  .party-card { grid-template-columns: 1fr; padding: 30px 26px; }
  .ghost { display: none; }
}
