/* Page de téléchargement Kidaura : style indigo clair, mode sombre automatique.
   Polices du système uniquement (aucun téléchargement externe). */

:root {
  --indigo-900: #1a237e;
  --indigo-800: #283593;
  --indigo-700: #303f9f;
  --indigo-600: #3949ab;
  --indigo-400: #5c6bc0;
  --indigo-200: #c5cae9;
  --indigo-50: #eef0fb;
  --accent: #7c8cff;
  --mint: #2e9e6a;

  --bg: #f7f8fc;
  --surface: #ffffff;
  --surface-soft: #f1f3fb;
  --text: #1b1e2e;
  --muted: #5a6075;
  --border: #e3e6f2;
  --shadow: 0 1px 2px rgba(26, 35, 126, .06), 0 12px 32px -12px rgba(26, 35, 126, .18);
  --radius: 22px;

  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1120;
    --surface: #171a2e;
    --surface-soft: #1e2240;
    --text: #e9ebf7;
    --muted: #a3a9c4;
    --border: #2a2f52;
    --indigo-50: #232852;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); }
img { display: block; }
svg { width: 24px; height: 24px; flex: none; }
b, strong { font-weight: 650; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 12px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* ------------------------------------------------------------------ Accueil */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(124, 140, 255, .45), transparent 60%),
    linear-gradient(160deg, var(--indigo-900) 0%, var(--indigo-700) 45%, var(--indigo-400) 100%);
  padding-bottom: 96px;
}
.hero::after { /* fondu vers la page */
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--bg));
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; pointer-events: none; }
.hero-glow-1 { width: 380px; height: 380px; background: #8e99ff; top: 120px; left: -140px; }
.hero-glow-2 { width: 300px; height: 300px; background: #b39dff; bottom: -60px; right: 10%; opacity: .35; }

.topbar { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding-block: 22px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; font-size: 1.25rem; letter-spacing: -.01em; }
.brand img { border-radius: 12px; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.topbar-link {
  text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: 9px 18px; border-radius: 999px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25);
  backdrop-filter: blur(8px);
  transition: background .2s;
}
.topbar-link:hover { background: rgba(255, 255, 255, .24); }

.hero-content {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center;
  padding-top: 40px;
}
.eyebrow {
  margin: 0 0 14px; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--indigo-200);
}
.eyebrow-dark { color: var(--indigo-600); }
@media (prefers-color-scheme: dark) { .eyebrow-dark { color: var(--accent); } }

h1 { margin: 0; font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.04; letter-spacing: -.035em; font-weight: 750; }
h1 span {
  background: linear-gradient(90deg, #ffffff, #c9cfff 55%, #e2d6ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { max-width: 34em; margin: 22px 0 32px; font-size: 1.15rem; color: rgba(255, 255, 255, .86); }

.cta { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  text-decoration: none; font-weight: 650; font-size: 1.02rem;
  padding: 14px 24px; border-radius: 16px; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { fill: currentColor; }
.btn span { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.btn small { font-size: .72rem; font-weight: 600; opacity: .7; letter-spacing: .02em; }
.btn-light { background: #fff; color: var(--indigo-800); box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .45); }
.btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .35); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .2); }
.btn-primary {
  background: linear-gradient(135deg, var(--indigo-600), var(--indigo-400));
  color: #fff; box-shadow: 0 12px 26px -12px rgba(57, 73, 171, .8);
}
.btn-block { width: 100%; margin: 22px 0 8px; padding-block: 16px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 28px 0 0; }
.chips li {
  font-size: .85rem; font-weight: 600; padding: 6px 14px 6px 30px; border-radius: 999px; position: relative;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2);
}
.chips li::before {
  content: ""; position: absolute; left: 12px; top: 50%; width: 8px; height: 8px; margin-top: -4px;
  border-radius: 50%; background: #8ff0c0; box-shadow: 0 0 0 3px rgba(143, 240, 192, .25);
}

/* Maquette du téléphone */
.phone {
  justify-self: center; position: relative;
  width: 290px; padding: 14px; border-radius: 46px;
  background: linear-gradient(145deg, #2b2f4a, #0d0f1d);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), inset 0 0 0 2px rgba(255, 255, 255, .08);
  transform: rotate(3deg);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { transform: rotate(3deg) translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .phone { animation: none; } .btn:hover { transform: none; } }
.phone-notch { position: absolute; top: 24px; left: 50%; width: 84px; height: 22px; margin-left: -42px; border-radius: 12px; background: #000; z-index: 1; }
.phone-screen {
  border-radius: 34px; padding: 52px 16px 28px;
  background: linear-gradient(180deg, #161a33, #1c2142);
  color: #e9ebf7; font-size: .85rem;
}
.phone-bar { display: flex; justify-content: space-between; font-weight: 600; opacity: .75; margin-bottom: 18px; font-size: .78rem; }
.notif {
  display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 20px 20px 6px 6px;
  background: #3a4590;
}
.notif strong { display: block; font-size: .9rem; }
.notif span { color: #c9cff5; font-size: .78rem; }
.notif-icon { width: 40px; height: 40px; border-radius: 50%; background: #c5cae9; display: grid; place-items: center; flex: none; }
.notif-icon svg, .pc-icon svg, .feature-icon svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.notif-icon svg { color: var(--indigo-800); width: 22px; height: 22px; }
.notif-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 10px 14px; background: #3a4590; }
.notif-actions span { white-space: nowrap; text-align: center; padding: 9px 0; border-radius: 12px; background: #c5cae9; color: var(--indigo-900); font-weight: 700; font-size: .78rem; }
.notif-actions .on { background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .35); }
.notif-refuse { padding: 4px 14px 14px; background: #3a4590; border-radius: 0 0 20px 20px; color: #c9cff5; font-weight: 600; font-size: .78rem; }
.pc-card { margin-top: 16px; padding: 14px; border-radius: 20px; background: #252a4d; border: 1px solid #323866; }
.pc-head { display: flex; gap: 12px; align-items: center; }
.pc-head strong { display: block; }
.pc-icon { width: 40px; height: 40px; border-radius: 50%; background: #d5f1e1; color: #1f7a4f; display: grid; place-items: center; }
.pc-icon svg { width: 22px; height: 22px; }
.online { color: #7fdcaa; font-size: .78rem; font-weight: 600; }
.meter { height: 8px; border-radius: 99px; background: #343a6b; margin: 14px 0 8px; overflow: hidden; }
.meter div { height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7c8cff, #a99bff); }
.pc-card p { margin: 0; color: #c9cff5; font-size: .8rem; }

/* ------------------------------------------------------------------ Atouts */
.features {
  position: relative; z-index: 3; margin-top: -56px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.feature h2 { margin: 16px 0 6px; font-size: 1.06rem; letter-spacing: -.01em; }
.feature p { margin: 0; color: var(--muted); font-size: .94rem; }
.feature-icon {
  width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center;
  background: var(--indigo-50); color: var(--indigo-600);
}
@media (prefers-color-scheme: dark) { .feature-icon { color: var(--accent); } }

/* ------------------------------------------------------------------ Sections */
section { scroll-margin-top: 24px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head h2 { margin: 0; font-size: clamp(1.7rem, 3.6vw, 2.5rem); letter-spacing: -.03em; line-height: 1.15; }
.section-head p:not(.eyebrow) { margin: 12px 0 0; color: var(--muted); font-size: 1.05rem; }
.downloads, .link, .faq { padding-top: 104px; }

/* Cartes de téléchargement */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 28px;
  padding: 30px; box-shadow: var(--shadow);
}
.card-top { display: flex; gap: 16px; align-items: center; }
.card h3 { margin: 0; font-size: 1.3rem; letter-spacing: -.015em; }
.meta { margin: 4px 0 0; color: var(--muted); font-size: .9rem; }
.card-icon { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; flex: none; }
.card-icon svg { width: 30px; height: 30px; fill: #fff; }
.card-icon-win { background: linear-gradient(135deg, #2f7cf6, #1f58c9); box-shadow: 0 10px 22px -10px rgba(31, 88, 201, .8); }
.card-icon-android { background: linear-gradient(135deg, #3ddc84, #1fa463); box-shadow: 0 10px 22px -10px rgba(31, 164, 99, .8); }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 18px 0; }
.steps li { counter-increment: step; position: relative; padding: 10px 0 10px 46px; color: var(--muted); }
.steps li b { color: var(--text); }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 9px;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: .85rem; background: var(--indigo-50); color: var(--indigo-600);
}
@media (prefers-color-scheme: dark) { .steps li::before { color: var(--accent); } }

.note {
  padding: 14px 16px; border-radius: 16px; font-size: .92rem; color: var(--muted);
  background: var(--surface-soft); border-left: 4px solid var(--indigo-400);
}
.note b:first-child { display: block; color: var(--text); margin-bottom: 2px; }

.hash { margin-top: 14px; font-size: .85rem; color: var(--muted); }
.hash summary { cursor: pointer; font-weight: 600; }
.hash code {
  display: block; margin-top: 8px; padding: 10px 12px; border-radius: 12px;
  background: var(--surface-soft); word-break: break-all; font-size: .78rem;
  font-family: "Cascadia Mono", Consolas, ui-monospace, monospace;
}

/* Appareil Android de l'enfant : trois façons de l'installer */
.child { padding-top: 104px; }
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.mode { display: flex; flex-direction: column; position: relative; }
.mode h3 { margin-top: 14px; }
.mode .steps { flex: 1; }
.mode .btn-block { margin-top: auto; }
.badge {
  align-self: flex-start; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; background: #e3f6ea; color: #1f7a4f;
}
.badge-strong { background: var(--indigo-50); color: var(--indigo-600); }
@media (prefers-color-scheme: dark) { .badge { background: #1d3a2b; color: #8fe0b4; } .badge-strong { color: var(--accent); } }
.limit { font-size: .88rem; color: var(--muted); padding: 10px 12px; border-radius: 12px; background: var(--surface-soft); margin: 0 0 6px; }
.center { text-align: center; }
.qr-card { margin: 0; text-align: center; }
.qr-card img { margin: 0 auto; width: 100%; max-width: 220px; height: auto; border-radius: 14px; background: #fff; padding: 10px; border: 1px solid var(--border); }
.qr-card figcaption { margin-top: 8px; color: var(--muted); font-size: .85rem; }
.wrap-hash { max-width: 640px; margin: 20px auto 0; text-align: center; }

/* Soutenir Kidaura (dons) */
.topbar-links { display: flex; gap: 10px; align-items: center; }
.topbar-link-soft { background: transparent; border-color: rgba(255, 255, 255, .3); }
.support { padding-top: 104px; }
.gifts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gift {
  display: flex; flex-direction: column; gap: 8px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: 24px;
  padding: 26px; box-shadow: var(--shadow); transition: transform .15s ease, border-color .2s;
}
.gift:hover { transform: translateY(-3px); border-color: var(--indigo-400); }
.gift strong { font-size: 1.15rem; }
.gift span { color: var(--muted); }
.gift-icon { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: #fde8ee; }
.gift-icon svg { fill: #e0456b; }
.gift .gift-amount { font-size: 2rem; font-weight: 750; letter-spacing: -.03em; color: var(--text); }
.gift-amount small { font-size: .95rem; font-weight: 600; color: var(--muted); margin-left: 2px; }
.gift .gift-cta { margin-top: auto; padding-top: 10px; font-weight: 650; color: var(--indigo-600); }
.gift-strong { background: linear-gradient(160deg, var(--indigo-800), var(--indigo-400)); border-color: transparent; }
.gift-strong strong, .gift-strong .gift-amount, .gift-strong span, .gift-strong .gift-cta, .gift-strong small { color: #fff; }
@media (prefers-color-scheme: dark) { .gift .gift-cta { color: var(--accent); } .gift-strong .gift-cta { color: #fff; } }
.support-note { max-width: 680px; margin: 22px auto 0; text-align: center; color: var(--muted); font-size: .9rem; }

/* Étapes de liaison */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; }
.timeline::before {
  content: ""; position: absolute; top: 27px; left: 16%; right: 16%; height: 2px;
  background: linear-gradient(90deg, var(--indigo-200), var(--indigo-400), var(--indigo-200));
}
.timeline li { position: relative; text-align: center; padding: 0 12px; }
.dot {
  position: relative; display: grid; place-items: center; margin: 0 auto 18px;
  width: 56px; height: 56px; border-radius: 50%; font-weight: 750; font-size: 1.3rem; color: #fff;
  background: linear-gradient(135deg, var(--indigo-600), var(--indigo-400));
  box-shadow: 0 0 0 8px var(--bg), 0 14px 26px -10px rgba(57, 73, 171, .8);
}
.timeline h3 { margin: 0 0 6px; font-size: 1.1rem; }
.timeline p { margin: 0; color: var(--muted); }

/* Questions fréquentes */
.faq { max-width: 780px; }
.faq details {
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  padding: 4px 22px; margin-bottom: 12px; box-shadow: var(--shadow);
}
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 32px 16px 0; font-weight: 650; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; font-weight: 400; color: var(--indigo-400); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* Pied de page */
.footer { margin-top: 110px; border-top: 1px solid var(--border); padding: 28px 0 40px; color: var(--muted); font-size: .88rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.brand-small { font-size: 1rem; color: var(--text); }
.brand-small img { border-radius: 7px; box-shadow: none; }
.footer-link { color: inherit; font-weight: 600; }

/* ------------------------------------------------------------------ Petits écrans */
@media (max-width: 1080px) {
  .modes { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .hero-content { grid-template-columns: 1fr; text-align: left; }
  .phone { transform: none; animation: none; width: 270px; }
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .hero { padding-bottom: 80px; }
  .hero-content { padding-top: 16px; gap: 40px; }
  .phone { width: 290px; }
  .btn { flex: 1 1 100%; justify-content: flex-start; }
  .features { grid-template-columns: 1fr; margin-top: -40px; }
  .cards { grid-template-columns: 1fr; }
  .modes { grid-template-columns: 1fr; }
  .gifts { grid-template-columns: 1fr; }
  .support { padding-top: 72px; }
  .topbar-link-soft { display: none; }
  .child { padding-top: 72px; }
  .card { padding: 22px; }
  .timeline { grid-template-columns: 1fr; gap: 28px; }
  .timeline::before { display: none; }
  .downloads, .link, .faq { padding-top: 72px; }
}

/* Nous écrire (formulaire de contact) */
.contact { padding-top: 104px; }
.contact-form {
  max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 650; font-size: .95rem; }
.contact-form label small { font-weight: 500; color: var(--muted); }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; font-weight: 400; color: var(--text); background: var(--surface-soft);
  border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; width: 100%;
}
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form input:focus-visible, .contact-form select:focus-visible, .contact-form textarea:focus-visible {
  outline: 3px solid var(--indigo-400); outline-offset: 1px;
}
.contact-form .btn { align-self: flex-start; border: 0; cursor: pointer; }
.contact-note { margin: 0; color: var(--muted); font-size: .88rem; }
/* Champ piège : hors de l'écran (pas display:none, que certains robots repèrent). */
.contact-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) {
  .contact-row { grid-template-columns: 1fr; }
  .contact-form { padding: 20px; }
  .contact-form .btn { align-self: stretch; justify-content: center; }
}
