/* Page d'accueil publique — SPEC-SITE-001.
 *
 * 🔴 Feuille AUTONOME, servie depuis `public/`. Elle n'est JAMAIS importée depuis `src/` :
 * y toucher ne doit pas pouvoir entrer dans le graphe de dépendances de l'application, ni faire
 * apparaître un chunk Vite (quatre écrans noirs déjà payés sur ce projet).
 *
 * Palette reprise de l'application (`App.css`) : fond #0f0f0f, accent #4fc3f7. La mise en page,
 * elle, est volontairement AÉRÉE — le mixeur est un plan de travail à hauteur fixe, cette page
 * est une page web qui respire.
 *
 * Aucune police distante : exposer l'IP du visiteur à un tiers sur la page même qui annonce
 * « aucun traceur » serait se contredire à voix haute.
 */

:root {
  --bg: #0f0f0f;
  --surface: #1a1a1a;
  --border: #2a2a2a;
  --text: #ececec;
  --muted: #9a9a9a;
  --accent: #4fc3f7;
  --accent-ink: #06232f;
  --measure: 46rem;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  /* ⚠️ PAS de `overflow: hidden` ici — c'est la règle du bureau, et elle a déjà bloqué le
     défilement de la page mobile pendant trois signalements. */
}

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

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(15, 15, 15, 0.92);
  backdrop-filter: blur(8px);
  z-index: 10;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4rem;
}

.brand {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
}

.lang {
  display: flex;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.lang a { color: var(--muted); text-decoration: none; }
.lang a:hover { color: var(--text); }
.lang [aria-current="true"] { color: var(--text); font-weight: 600; }

/* ---------- Bouton ---------- */

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 650;
  font-size: 1rem;
  padding: 0.7rem 1.4rem;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover { filter: brightness(1.1); }
.btn:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }

.btn--lg { font-size: 1.1rem; padding: 0.9rem 1.8rem; }

/* ---------- Rythme vertical ---------- */

section { padding: 5rem 0; }
section + section { border-top: 1px solid var(--border); }

h1 {
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 2.5rem;
}

h3 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
  color: var(--accent);
}

p { margin: 0 0 1.25rem; }

.lead { font-size: 1.15rem; color: var(--text); }
.claim { font-size: 1.3rem; font-weight: 600; line-height: 1.4; }
.note { color: var(--muted); font-size: 0.95rem; }

/* SPEC-SITE-001 — exigé par la vérification OAuth : le nom de l'application doit figurer sur la
 * page d'accueil EN TANT QUE nom. Le <h1> est un chiasme (« Tu as le goût. DekkR a la technique. »)
 * — une accroche, pas un nom. `.appname` porte donc le nom seul, `.tagline` dit ce que fait
 * l'application en une phrase.
 * ⚠️ Classes NEUVES et sans autre consommateur : cette feuille sert les 4 pages publiques, et
 * modifier une règle existante aurait porté sur toutes. Ne pas les fusionner avec .claim/.lead. */
.appname {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin: 0 0 0.6rem;
}
.tagline { font-size: 1.2rem; font-weight: 600; color: var(--text); margin: 0 0 1.2rem; }

.cta { margin-top: 2.5rem; }
.cta .note { margin: 0.9rem 0 0; }

/* ---------- Les trois frictions / les trois étapes ---------- */

.steps { display: grid; gap: 3rem; }
.step p:last-child { margin-bottom: 0; }

.friction { margin-bottom: 2rem; }
.friction:last-child { margin-bottom: 0; }
.friction strong { color: var(--text); }

/* 🖼️ Emplacement de capture — RÉSERVÉ mais vide en v1 (décision PO).
   La règle est écrite dans SPEC-SITE-001 : ajouter une capture doit rester une INSERTION.
   Le style existe déjà ; il suffit de décommenter le <figure> dans le HTML. */
.shot {
  margin: 1.5rem 0 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

.shot img { width: 100%; }

.shot figcaption {
  padding: 0.6rem 0.9rem;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

/* ---------- Pages légales (SPEC-SITE-002) ---------- */

.legal { padding: 3.5rem 0 1rem; }
.legal h1 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); margin-bottom: 0.75rem; }
.legal h2 { font-size: 1.3rem; margin: 3rem 0 1rem; letter-spacing: 0; }
.legal h2:first-of-type { margin-top: 2.5rem; }
.legal p, .legal li { color: #d4d4d4; }
.legal strong { color: var(--text); }
.legal a { color: var(--accent); }
.legal ul { margin: 0 0 1.25rem; padding-left: 1.25rem; }
.legal li { margin-bottom: 0.6rem; }
.legal .updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 2rem; }

/* Le tableau des tiers doit défiler seul sur petit écran : c'est la page entière qui ne doit
   jamais partir en défilement horizontal. */
.legal .table-wrap { overflow-x: auto; margin: 0 0 1.5rem; }

.legal table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: 0.95rem; }
.legal th, .legal td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.legal th { color: var(--text); font-weight: 650; white-space: nowrap; }
.legal td { color: #d4d4d4; }

/* ---------- Pied de page ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 4rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer strong { color: var(--text); }
.site-footer p { margin: 0 0 0.9rem; }
.site-footer a { color: var(--accent); }

/* ---------- Petits écrans ---------- */

@media (max-width: 34rem) {
  body { font-size: 16px; }
  section { padding: 3.5rem 0; }
  .site-header .wrap { gap: 0.75rem; }
  .brand { font-size: 1.1rem; }
  .btn { padding: 0.6rem 1rem; font-size: 0.95rem; }
}
