/* -------------------------------------------------------------------------- */
/*  Electronix — page de pré-lancement (site statique).                        */
/*                                                                             */
/*  Aucune dépendance : pas de framework, pas de CDN, pas de police distante.  */
/*  Les couleurs reprennent le thème sombre de l'application Next.js           */
/*  (app/globals.css, data-theme="dark"), recopiées ici en variables CSS.      */
/* -------------------------------------------------------------------------- */

:root {
  color-scheme: dark;

  --background: #090b10;
  --surface: #11151d;
  --surface-2: #171c26;
  --surface-3: #1f2532;
  --foreground: #eef2f7;
  --muted: #98a2b3;
  --faint: #7d8798;
  --border: #242b38;
  --accent: #6aa5ff;
  --accent-hover: #8abaff;
  --accent-foreground: #080b12;

  /* Pile système : identique au rendu local, sans requête réseau. */
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;

  --radius: 16px;
  --max-width: 72rem;
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font);
  /* 17px de base : rien de minuscule, y compris sur mobile. */
  font-size: 17px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

a {
  color: var(--accent);
  text-underline-offset: 2px;
}

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

/* Focus clavier toujours visible, sur tous les éléments interactifs. */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 20px;
}

/* Lien d'évitement : visible dès qu'il reçoit le focus. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
  background: var(--surface);
  color: var(--foreground);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* ------------------------------- En-tête ---------------------------------- */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 5;
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 14px;
}

.wordmark {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  color: var(--foreground);
  text-decoration: none;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--foreground);
}

/* -------------------------------- Sections -------------------------------- */

main {
  display: block;
}

section {
  padding-block: 56px;
  border-top: 1px solid var(--border);
}

section:first-of-type {
  border-top: 0;
}

.section-title {
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
  font-weight: 650;
}

.section-intro {
  margin-top: 10px;
  max-width: 62ch;
  color: var(--muted);
}

/* Sous-titre d'une section : remplace un style en ligne, interdit par la CSP. */
.section-title--sub {
  margin-top: 36px;
  font-size: 1.1rem;
}

/* --------------------------------- Hero ----------------------------------- */

.hero {
  padding-block: clamp(56px, 10vw, 96px);
}

.status-pill {
  display: inline-block;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 14px;
  /* Jamais sous 14px : les rem suivent la racine (16px), pas le corps. */
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero h1 {
  margin-top: 20px;
  font-size: clamp(1.9rem, 1.2rem + 3vw, 3rem);
  font-weight: 700;
  max-width: 20ch;
}

.hero__lead {
  margin-top: 18px;
  max-width: 62ch;
  font-size: 1.05rem;
  color: var(--muted);
}

.hero__note {
  margin-top: 14px;
  max-width: 62ch;
  color: var(--foreground);
  font-weight: 600;
}

.button {
  display: inline-block;
  margin-top: 28px;
  background: var(--accent);
  color: var(--accent-foreground);
  border-radius: 12px;
  padding: 12px 22px;
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  background: var(--accent-hover);
  color: var(--accent-foreground);
}

/* --------------------------------- Cartes --------------------------------- */

.grid {
  display: grid;
  gap: 16px;
  margin-top: 28px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 640px) and (max-width: 899px) {
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 650;
}

.card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.97rem;
}

.card__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--foreground);
  font-weight: 700;
  margin-bottom: 12px;
}

/* Catégories : de simples repères de périmètre, jamais des offres. */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.tag {
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.95rem;
  color: var(--foreground);
}

.list {
  margin-top: 20px;
  display: grid;
  gap: 12px;
  max-width: 68ch;
}

.list li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
}

.list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.65em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

/* ------------------------------ Encadré texte ------------------------------ */

.panel {
  margin-top: 24px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  max-width: 76ch;
}

.panel p + p {
  margin-top: 12px;
}

.panel p {
  color: var(--muted);
}

.panel strong {
  color: var(--foreground);
}

/* -------------------------------- Contact --------------------------------- */

.contact-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 1.05rem;
  font-weight: 600;
  word-break: break-word;
}

/* --------------------------------- Pied ----------------------------------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding-block: 32px;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: space-between;
  align-items: flex-start;
}

.site-footer__brand {
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--foreground);
}

.site-footer p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 6px;
  max-width: 62ch;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.site-footer a {
  font-size: 0.95rem;
}

/* ------------------------- Page de confidentialité ------------------------- */

.prose {
  max-width: 72ch;
}

.prose h2 {
  margin-top: 36px;
  font-size: 1.2rem;
  font-weight: 650;
}

.prose p,
.prose li {
  margin-top: 12px;
  color: var(--muted);
}

.prose .list {
  margin-top: 12px;
}

.updated {
  margin-top: 12px;
  color: var(--faint);
  font-size: 0.92rem;
}
