/* FastDrive — site public.
   Aucune règle inline : la CSP (style-src 'self') interdit style="…" et <style>.
   Thème sombre fixe, accent rouge, repris de l'identité du jeu. */

:root {
  color-scheme: dark;
  --bg: #0b0d10;
  --bg-2: #121519;
  --surface: #16191e;
  --surface-2: #1d2127;
  --border: #272c33;
  --border-strong: #3a414a;
  --text: #f2f4f6;
  --text-2: #b9c0c9;
  --text-3: #8b939d;
  --accent: #e01424;
  --accent-hover: #ff2b3b;
  --accent-soft: rgba(224, 20, 36, .14);
  --accent-text: #ffffff;
  --radius: 10px;
  --radius-sm: 6px;
  --maxw: 1080px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  overflow-wrap: break-word;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

a { color: var(--accent-hover); }
a:hover { color: #ff6572; }

:focus-visible {
  outline: 2px solid var(--accent-hover);
  outline-offset: 2px;
}

img { max-width: 100%; height: auto; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 16px;
}

/* Lien d'évitement (clavier / lecteurs d'écran) */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-text);
  padding: 10px 16px;
  z-index: 10;
}
.skip:focus { left: 0; }

/* ----------------------------------------------------------------- */
/* En-tête                                                            */
/* ----------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(11, 13, 16, .92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 60px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: .5px;
  color: var(--text);
  text-decoration: none;
}
.brand img { width: 28px; height: 28px; display: block; }
.brand .brand-fast { color: var(--text); }
.brand .brand-drive { color: var(--accent-hover); }

.site-nav {
  margin-left: auto;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.site-nav a {
  display: inline-block;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  text-decoration: none;
  font-size: 15px;
}
.site-nav a:hover { background: var(--surface-2); color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--text); background: var(--accent-soft); }

/* ----------------------------------------------------------------- */
/* Héros                                                              */
/* ----------------------------------------------------------------- */
.hero {
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(900px 420px at 15% -10%, rgba(224, 20, 36, .22), transparent 70%),
    linear-gradient(180deg, #14171c 0%, var(--bg) 100%);
}

.hero .wrap {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-top: 52px;
  padding-bottom: 52px;
  flex-wrap: wrap;
}

.hero-text { flex: 1 1 320px; min-width: 0; }

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 7vw, 50px);
  line-height: 1.1;
  letter-spacing: -.5px;
  font-weight: 800;
}
.hero h1 .accent { color: var(--accent-hover); }

.hero .lede {
  margin: 0 0 24px;
  font-size: clamp(17px, 2.4vw, 20px);
  color: var(--text-2);
  max-width: 46ch;
}

.hero-visual {
  flex: 0 1 300px;
  display: flex;
  justify-content: center;
}
.hero-visual img {
  width: 280px;
  max-width: 100%;
  border-radius: 24px;
}

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-text); }
.btn-ghost { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }

/* ----------------------------------------------------------------- */
/* Sections                                                           */
/* ----------------------------------------------------------------- */
.section { padding: 56px 0; border-bottom: 1px solid var(--border); }
.section:last-of-type { border-bottom: 0; }

.section h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 4.5vw, 32px);
  line-height: 1.2;
  font-weight: 750;
}
.section h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 10px;
  background: var(--accent);
  border-radius: 2px;
}
.section > .wrap > p { color: var(--text-2); max-width: 70ch; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 28px;
  padding: 0;
  list-style: none;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
}
.card p { margin: 0; color: var(--text-2); font-size: 15.5px; }

/* Bandeau de téléchargement */
.download {
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
}
.download-box {
  margin-top: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.store-row {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 0 14px;
}
/* Emplacement du badge Google Play : garde la taille officielle du badge
   (646×250, soit 1 pour 0,387) pour que l'insertion ne change pas la mise en page. */
.store-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 78px;
  padding: 0 14px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text-3);
  font-size: 14px;
  text-align: center;
  line-height: 1.3;
}
.store-slot img { width: 100%; height: auto; display: block; }
.store-note { margin: 0; color: var(--text-3); font-size: 14.5px; }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #ff8d97;
  border: 1px solid rgba(224, 20, 36, .35);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .3px;
}

/* ----------------------------------------------------------------- */
/* Pages de contenu (confidentialité, support)                        */
/* ----------------------------------------------------------------- */
.page { padding: 44px 0 64px; }
.page h1 {
  margin: 0 0 6px;
  font-size: clamp(27px, 5.5vw, 38px);
  line-height: 1.15;
  font-weight: 800;
}
.page .updated { margin: 0 0 28px; color: var(--text-3); font-size: 14.5px; }
.page h2 {
  margin: 36px 0 10px;
  font-size: 21px;
  font-weight: 700;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.page h3 { margin: 24px 0 6px; font-size: 17px; font-weight: 700; }
.page p, .page li { color: var(--text-2); }
.page ul, .page ol { padding-left: 22px; }
.page li { margin-bottom: 6px; }
.page strong { color: var(--text); }

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 16px 16px 34px;
  margin-bottom: 28px;
}
.toc li { margin-bottom: 4px; }

.table-wrap { overflow-x: auto; margin: 16px 0; }
table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 15.5px;
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border: 1px solid var(--border);
}
th { background: var(--surface-2); color: var(--text); font-weight: 650; }
td { color: var(--text-2); }

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 20px 0;
}
.callout p { margin: 0; }

.contact-list { list-style: none; padding: 0; }
.contact-list li { margin-bottom: 14px; }

/* ----------------------------------------------------------------- */
/* Pied de page                                                       */
/* ----------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  padding: 28px 0;
  font-size: 15px;
  color: var(--text-3);
}
.site-footer .wrap {
  display: flex;
  gap: 12px 24px;
  align-items: center;
  flex-wrap: wrap;
}
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; margin-left: auto; }
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero .wrap { padding-top: 36px; padding-bottom: 36px; gap: 28px; }
  .section { padding: 40px 0; }
  .btn { width: 100%; }
  .site-footer nav { margin-left: 0; }
}
