/* Squirrel — landing page. Couleurs issues de squirrel_tokens.dart. */
:root {
  --orange: #CF5418;      /* orange500 */
  --orange-ink: #B4470F;  /* orange600 : texte et boutons sur clair */
  --orange-press: #8F370B;
  --orange-soft: #FCE3D2;
  --navy: #102354;        /* navy900 */
  --navy-deep: #0A173A;
  --cream: #FBECC8;
  --cream-soft: #FEF9EE;

  --bg: #FFFFFF;
  --bg-alt: #FEF9EE;
  --fg: #102354;
  --muted: #5C6478;
  --line: #E2E8F4;
  --card: #FFFFFF;
  --accent: var(--orange-ink);
  --shadow: 0 1px 2px rgb(16 35 84 / .06), 0 8px 24px rgb(16 35 84 / .08);

  --radius: 16px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A173A;
    --bg-alt: #102354;
    --fg: #F1F4FA;
    --muted: #C7CEDD;
    --line: #223A75;
    --card: #182D63;
    --accent: #F08A4B;     /* orange300 */
    --shadow: 0 8px 24px rgb(0 0 0 / .3);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); }
code { font-size: .88em; background: var(--orange-soft); color: var(--orange-press); padding: .1em .35em; border-radius: 6px; }

h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .6rem; }
h1 { font-size: clamp(2.3rem, 5.5vw, 3.9rem); font-weight: 850; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 750; }
p { margin: 0 0 1rem; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.wrap--narrow { max-width: 760px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.kicker {
  color: var(--accent);
  font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: .5rem;
}
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34rem; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85rem 1.4rem; border-radius: 999px; border: 2px solid var(--orange-ink);
  background: var(--orange-ink); color: #fff; font: inherit; font-weight: 700;
  text-decoration: none; cursor: pointer; transition: background .15s, transform .15s;
}
.btn:hover { background: var(--orange-press); border-color: var(--orange-press); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn--ghost:hover { background: var(--bg-alt); border-color: var(--fg); }
.btn--light { color: #fff; border-color: rgb(255 255 255 / .35); }
.btn--light:hover { background: rgb(255 255 255 / .1); border-color: #fff; }
.btn--small { padding: .5rem 1rem; font-size: .92rem; }
.btn--block { width: 100%; }

/* En-tête */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; gap: 1.5rem; height: 64px; }
.brand { display: flex; align-items: center; gap: .55rem; color: var(--fg); text-decoration: none; font-weight: 850; font-size: 1.2rem; }
.topnav { display: none; gap: 1.5rem; margin-left: auto; }
.topnav a { color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 600; }
.topnav a:hover { color: var(--fg); }
.topbar .btn { margin-left: auto; }
@media (min-width: 900px) { .topnav { display: flex; } .topbar .btn { margin-left: 0; } }

/* Hero */
.hero { padding: 56px 0 72px; background: radial-gradient(1200px 500px at 85% 10%, color-mix(in srgb, var(--orange) 14%, transparent), transparent 60%); }
.hero__grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero { padding: 88px 0 104px; } .hero__grid { grid-template-columns: 1.05fr 1fr; } }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 1rem; }
.hero__cta--center { justify-content: center; }
.hero__note { color: var(--muted); font-size: .92rem; }

/* Illustration du hero */
.hero__visual { position: relative; min-height: 380px; }
.laptop {
  position: absolute; right: 0; top: 24px; width: min(440px, 88%);
  background: #1C1E22; border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; color: #E6E7EA;
}
.laptop__bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: #27292E; font-size: .75rem; color: #A1A5AE; }
.laptop__bar i { width: 10px; height: 10px; border-radius: 50%; background: #363940; }
.laptop__bar span { margin-left: 8px; }
.laptop__video { aspect-ratio: 16 / 8; margin: 12px; border-radius: 8px; display: grid; place-items: center;
  background: linear-gradient(160deg, #3a5a8c 0%, #8fb3d9 55%, #eef3f8 56%, #dfe7ef 100%); }
.play { width: 0; height: 0; border-left: 20px solid rgb(255 255 255 / .9); border-top: 12px solid transparent; border-bottom: 12px solid transparent; margin-left: 6px; }
.timeline { position: relative; height: 26px; margin: 0 12px; background: #27292E; border-radius: 6px; }
.mk { position: absolute; top: 4px; width: 4px; height: 18px; border-radius: 2px; }
.mk--a { left: 8%; background: #F08A4B; } .mk--b { left: 19%; background: #8E9BBB; }
.mk--c { left: 31%; background: #2E9A5A; } .mk--d { left: 47%; background: #FBECC8; }
.mk--a.mk--2 { left: 55%; } .mk--b.mk--2 { left: 66%; } .mk--c.mk--2 { left: 78%; } .mk--a.mk--3 { left: 90%; }
.folders { list-style: none; margin: 12px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; font-size: .75rem; color: #A1A5AE; }
.folders li { background: #27292E; border-radius: 8px; padding: 8px 10px; }
.folders b { display: block; color: #E6E7EA; font-size: .85rem; }
.folders b::before { content: "▸ "; color: #F08A4B; }

.phone {
  position: absolute; left: 0; bottom: 0; width: 200px; z-index: 2;
  padding: 10px; background: #102354; border-radius: 34px; box-shadow: var(--shadow), 0 0 0 1px rgb(255 255 255 / .06) inset;
}
.phone__screen { background: #FEF9EE; color: #102354; border-radius: 26px; padding: 18px 14px 16px; min-height: 330px; }
.phone__status { display: flex; align-items: center; gap: 6px; font-weight: 800; font-variant-numeric: tabular-nums; font-size: 1.15rem; }
.rec { width: 10px; height: 10px; border-radius: 50%; background: #DC3A40; animation: blink 1.2s infinite; }
.phone__title { font-size: .72rem; color: #5C6478; margin: 2px 0 14px; }
.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chip { display: block; text-align: center; padding: 14px 4px; border-radius: 12px; background: #fff; border: 1.5px solid #E2E8F4; font-weight: 700; font-size: .9rem; }
.chip--hit { background: #B4470F; border-color: #B4470F; color: #fff; animation: tap 2.4s infinite; }
.phone__log { display: flex; justify-content: space-between; margin-top: 14px; padding: 8px 10px; border-radius: 10px; background: #FCE3D2; font-size: .72rem; font-weight: 700; color: #8F370B; }
@keyframes blink { 50% { opacity: .25; } }
@keyframes tap { 0%, 70%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgb(207 84 24 / .5); } 78% { transform: scale(.94); } 86% { transform: scale(1); box-shadow: 0 0 0 10px rgb(207 84 24 / 0); } }
@media (prefers-reduced-motion: reduce) { .rec, .chip--hit { animation: none; } html { scroll-behavior: auto; } }
@media (max-width: 480px) { .hero__visual { min-height: 400px; } .phone { width: 172px; } .laptop { width: 92%; } }

/* Bandeau problème */
.band { background: var(--navy); color: #F1F4FA; padding: 72px 0; }
.band__title { color: #fff; max-width: 46rem; }
.pains { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 16px; }
@media (min-width: 800px) { .pains { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.pains li { padding: 20px; border-radius: var(--radius); background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .1); color: #C7CEDD; }
.pains strong { color: var(--cream); display: block; margin-bottom: .25rem; }

/* Sections */
.section { padding: 80px 0; }
.section--alt { background: var(--bg-alt); }
@media (min-width: 960px) { .section { padding: 104px 0; } }

/* Étapes */
.steps { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; gap: 24px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; display: flex; flex-direction: column; }
.step p { color: var(--muted); }
.step__n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--orange-ink); color: #fff; font-weight: 800; margin-bottom: 1rem; }
.shot { display: block; width: 100%; height: auto; margin-top: auto; aspect-ratio: 4 / 3; border-radius: var(--radius); box-shadow: var(--shadow); }

/* Cartes sports */
.cards { display: grid; gap: 16px; margin-top: 2.5rem; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--card); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); border-top: 4px solid var(--orange); }
.card p { color: var(--muted); margin: 0; }

/* Fonctionnalités */
.features { display: grid; gap: 1px; margin-top: 2.5rem; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { background: var(--bg); padding: 28px; }
.feature h3::before { content: ""; display: block; width: 28px; height: 4px; border-radius: 2px; background: var(--orange); margin-bottom: 14px; }
.feature p { color: var(--muted); margin: 0; }

/* Confiance */
.trust { background: var(--cream); color: #102354; padding: 64px 0; }
.trust__inner { display: grid; gap: 24px; align-items: start; }
@media (min-width: 760px) { .trust__inner { grid-template-columns: 64px 1fr; } }
.trust__icon { width: 56px; height: 56px; color: #B4470F; }
.trust h2 { max-width: 40rem; }
.trust p { max-width: 44rem; color: #30364A; margin: 0; }

/* Accès */
.access { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .access { grid-template-columns: 1fr 440px; gap: 64px; } }
.access__text > p { color: var(--muted); font-size: 1.1rem; }
.platforms { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 10px; }
.platforms li { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); }
.soon { color: var(--accent); font-weight: 700; }
.form { background: var(--card); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); border: 1px solid var(--line); display: grid; gap: 6px; }
.form label { font-weight: 700; font-size: .9rem; margin-top: 8px; }
.form input, .form select {
  font: inherit; width: 100%; padding: .75rem .9rem; border-radius: 10px;
  border: 1.5px solid var(--line); background: var(--bg); color: var(--fg);
}
.form .btn { margin-top: 16px; }
.form .btn:disabled { opacity: .6; cursor: wait; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
.form__msg { min-height: 1.4em; margin: 6px 0 0; font-weight: 700; font-size: .92rem; }
.form__msg--ok { color: #2E9A5A; }
.form__msg--err { color: #DC3A40; }
.form__legal { font-size: .8rem; color: var(--muted); margin: 0; }

/* FAQ */
details { border-bottom: 1px solid var(--line); }
details:first-of-type { margin-top: 2rem; border-top: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 700; font-size: 1.05rem; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--accent); transition: transform .2s; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { color: var(--muted); padding-bottom: 12px; }

/* Final */
.final { background: var(--navy); color: #F1F4FA; padding: 88px 0; text-align: center; }
.final h2 { color: #fff; }
.final p { color: #C7CEDD; }
.final__inner { display: flex; flex-direction: column; align-items: center; }
.final img { margin-bottom: 1rem; }

/* Pied de page */
.footer { background: var(--navy-deep); color: #8E9BBB; padding: 32px 0; font-size: .88rem; }
.footer a { color: #C7CEDD; }
.footer__legal { font-size: .8rem; margin: 0; }
