:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --fg: #15171c;
  --muted: #5d6270;
  --line: #e4e6ec;
  --accent: #2d6cdf;
  --accent-ink: #ffffff;
  --accent-soft: #2d6cdf14;
  --warn: #9a6200;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px rgba(16, 24, 40, .06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --surface: #171a21;
    --fg: #eceef3;
    --muted: #9aa0ad;
    --line: #262a33;
    --accent: #5b8ff0;
    --accent-soft: #5b8ff01f;
    --warn: #e3b25a;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
img { max-width: 100%; display: block; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* En-tête */
header { border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 5; }
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--fg); text-decoration: none; }
.brand img { width: 30px; height: 30px; }
nav { display: flex; gap: 20px; }
nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
nav a:hover { color: var(--fg); }
@media (max-width: 600px) { nav { display: none; } }

/* Accroche */
.hero { padding: 72px 0 56px; text-align: center; }
.hero h1 { font-size: clamp(30px, 5vw, 48px); line-height: 1.15; margin: 0 0 16px; letter-spacing: -.02em; }
.hero p.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 640px; margin: 0 auto 32px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 12px; border: 0;
  background: var(--accent); color: var(--accent-ink);
  font: 600 17px/1 inherit; text-decoration: none; cursor: pointer;
}
.btn:hover { filter: brightness(1.08); }
.btn.disabled { background: var(--line); color: var(--muted); pointer-events: none; }
.btn svg { width: 20px; height: 20px; }
.meta { margin-top: 12px; color: var(--muted); font-size: 14px; }
.others { margin-top: 20px; font-size: 15px; color: var(--muted); }
.others a { margin: 0 6px; }

/* Plateformes */
.platforms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 8px 0 72px; }
@media (max-width: 820px) { .platforms { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .platforms { grid-template-columns: 1fr; } }
.platform {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px;
}
.platform.current { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.platform h3 { margin: 0; font-size: 17px; }
.platform p { margin: 0 0 10px; color: var(--muted); font-size: 14px; flex: 1; }
.platform a.dl { font-weight: 600; text-decoration: none; }
.platform .soon { color: var(--muted); font-size: 14px; font-weight: 600; }

/* Sections */
section { padding: 56px 0; border-top: 1px solid var(--line); }
section h2 { font-size: clamp(24px, 3.4vw, 32px); margin: 0 0 8px; letter-spacing: -.01em; }
section p.sub { color: var(--muted); margin: 0 0 32px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 820px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.feature .ico { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 12px; }
.feature .ico svg { width: 20px; height: 20px; }
.feature h3 { margin: 0 0 6px; font-size: 17px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

.shot { margin: 0 auto; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; max-width: 900px; }

/* Guides */
.guides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 820px) { .guides { grid-template-columns: 1fr; } }
.guide { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.guide h3 { margin: 0 0 12px; font-size: 18px; }
.guide ol { margin: 0; padding-left: 20px; }
.guide li { margin-bottom: 8px; }
.guide .note { margin-top: 12px; font-size: 14px; color: var(--muted); }
kbd, .ui { font: 600 .9em/1 inherit; background: var(--accent-soft); color: var(--fg); padding: 2px 6px; border-radius: 5px; white-space: nowrap; }

/* FAQ */
details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 10px 0 0; }

/* Pied de page */
footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer a { color: var(--muted); }

/* Page texte (conditions) */
.doc { max-width: 760px; padding: 48px 20px 72px; }
.doc h1 { font-size: 32px; margin: 0 0 6px; }
.doc h2 { font-size: 20px; margin: 32px 0 8px; }
.doc p, .doc li { color: var(--fg); }
.doc .updated { color: var(--muted); margin: 0 0 24px; }

/* Bandeau « Nouveau » */
.new-badge {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
  padding: 6px 14px 6px 6px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--fg); text-decoration: none; font-size: 14px;
}
.new-badge span { background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: 3px 10px; font-weight: 600; font-size: 13px; }
.new-badge:hover { border-color: var(--accent); }
@media (max-width: 520px) { .new-badge { font-size: 13px; text-align: left; } }

/* Section Android */
.kicker { display: inline-block; color: var(--accent); font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.android-points { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 40px; }
@media (max-width: 900px) { .android-points { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .android-points { grid-template-columns: 1fr; } }
.point { border-left: 3px solid var(--accent); padding: 2px 0 2px 14px; }
.point h3 { margin: 0 0 6px; font-size: 16px; }
.point p { margin: 0; color: var(--muted); font-size: 15px; }

.phones {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 4px 16px; margin: 0 -4px;
}
.phone { flex: 0 0 230px; margin: 0; scroll-snap-align: start; }
.phone img {
  width: 100%; height: auto; border-radius: 26px; border: 6px solid #1b1d23;
  box-shadow: 0 10px 30px rgba(16, 24, 40, .18); background: #fff;
}
.phone figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); text-align: center; }
.center { text-align: center; margin: 28px 0 0; }

/* Nouveautés */
.changelog { display: grid; gap: 16px; }
.release { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.release-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.release .tag { background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 13px; padding: 3px 10px; border-radius: 999px; }
.release .date { color: var(--muted); font-size: 14px; }
.release h3 { margin: 0 0 8px; font-size: 18px; }
.release ul { margin: 0; padding-left: 20px; color: var(--muted); }
.release li { margin-bottom: 4px; }
