/* ───────────────────────────────────────────────────────────────────────────
   Habillage commun des pages d'information et des pages légales.

   Ces sept pages — à propos, contact, FAQ, mentions légales, confidentialité,
   CGU, cookies — portaient chacune sa propre feuille de style en ligne, de 6 à
   11 Ko, avec des conventions de nommage différentes d'une page à l'autre. Le
   moindre changement d'en-tête devait donc être répété sept fois, et la dérive
   s'était déjà installée.

   Cette feuille reprend les repères visuels de l'accueil — fond #0f0c29,
   panneaux translucides, accents cyan et violet, Inter et Orbitron — sans
   dépendre de Tailwind, que l'accueil charge depuis un CDN. Ces pages sont
   consultées rarement et doivent rester légères.
   ────────────────────────────────────────────────────────────────────────── */

:root {
  color-scheme: dark;
  --fond: #0f0c29;
  --fond-2: #131126;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-forte: rgba(255, 255, 255, 0.06);
  --trait: rgba(255, 255, 255, 0.09);
  --trait-fort: rgba(255, 255, 255, 0.16);
  --texte: #e8e8f2;
  --texte-doux: #a9a7bd;
  --texte-faible: #7d7b92;
  --cyan: #22d3ee;
  --violet: #a78bfa;
  --rayon: 18px;
  --hauteur-entete: 68px;
  --largeur: 780px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding-top: var(--hauteur-entete);
  background: var(--fond);
  color: var(--texte);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* Halos d'ambiance, repris de l'accueil. Purement décoratifs. */
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}
body::before { top: -12%; right: -8%; background: rgba(109, 40, 217, 0.18); }
body::after { bottom: -12%; left: -10%; background: rgba(14, 116, 144, 0.16); }

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* ── En-tête, identique à celui de l'accueil ─────────────────────────────── */

.site-entete {
  position: fixed;
  top: 0; right: 0; left: 0;
  z-index: 50;
  height: var(--hauteur-entete);
  background: rgba(15, 12, 41, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--trait);
}

.site-entete-interieur {
  max-width: 1180px;
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-marque {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: Orbitron, Inter, sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.site-marque:hover { text-decoration: none; }
.site-marque img { width: 30px; height: 30px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav a {
  color: var(--texte-doux);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.site-nav a:hover { color: #fff; text-decoration: none; }

/* Sélecteur renforcé : `.site-nav a` porte un élément en plus et l'emportait
   sur une simple classe, le texte du bouton héritait donc du gris. */
.site-nav a.site-cta {
  padding: 9px 18px;
  color: #0f0c29;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}
.site-nav a.site-cta:hover { text-decoration: none; filter: brightness(1.08); }

/* Sélecteur de langue. Ces pages n'existent qu'en français : chaque entrée
   renvoie donc vers l'accueil de la langue choisie, seule cible qui existe
   réellement. */
.site-langue { position: relative; }

.site-langue summary {
  display: flex;
  align-items: center;
  height: 38px;
  padding: 0 12px;
  background: var(--surface-forte);
  border: 1px solid var(--trait);
  border-radius: 11px;
  font-size: 16px;
  list-style: none;
  cursor: pointer;
}
.site-langue summary::-webkit-details-marker { display: none; }

.site-langue-liste {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 168px;
  padding: 6px;
  background: #17142f;
  border: 1px solid var(--trait-fort);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.site-langue-liste a {
  display: block;
  padding: 8px 10px;
  color: var(--texte-doux);
  border-radius: 9px;
  font-size: 14px;
}
.site-langue-liste a:hover { color: #fff; background: var(--surface-forte); text-decoration: none; }

/* ── Corps de page ───────────────────────────────────────────────────────── */

.page {
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 56px 20px 72px;
}

.page-surtitre {
  margin: 0 0 10px;
  color: var(--violet);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.page h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 5.5vw, 42px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1px;
}

.page-chapeau {
  margin: 0 0 12px;
  color: var(--texte-doux);
  font-size: 17px;
}

.page-date {
  margin: 0 0 40px;
  color: var(--texte-faible);
  font-size: 13px;
}

.page h2 {
  margin: 44px 0 14px;
  padding-top: 8px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.4px;
  scroll-margin-top: calc(var(--hauteur-entete) + 16px);
}

.page h3 {
  margin: 28px 0 10px;
  font-size: 17px;
  font-weight: 650;
}

.page p { margin: 0 0 16px; color: var(--texte); }
.page ul, .page ol { margin: 0 0 16px; padding-left: 22px; }
.page li { margin-bottom: 8px; }
.page strong { color: #fff; font-weight: 650; }

/* Encadré d'avertissement ou de point saillant. */
.encart {
  margin: 0 0 32px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--trait);
  border-left: 3px solid var(--cyan);
  border-radius: 14px;
}
.encart p:last-child { margin-bottom: 0; }
.encart.attention { border-left-color: var(--violet); }

/* Sommaire en tête des pages longues. */
.sommaire {
  margin: 0 0 44px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
}
.sommaire p {
  margin: 0 0 10px;
  color: var(--texte-faible);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.sommaire ol { margin: 0; padding-left: 20px; }
.sommaire li { margin-bottom: 5px; }
.sommaire a { color: var(--texte-doux); }
.sommaire a:hover { color: #fff; }

/* Tableau d'informations, utilisé pour les données de l'éditeur et les
   durées de conservation. */
.tableau {
  width: 100%;
  margin: 0 0 24px;
  border-collapse: collapse;
  font-size: 15px;
}
.tableau th,
.tableau td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--trait);
  vertical-align: top;
}
.tableau th {
  width: 34%;
  color: var(--texte-doux);
  font-weight: 600;
}
.tableau tr:last-child th,
.tableau tr:last-child td { border-bottom: 0; }

.tableau-cadre {
  margin: 0 0 28px;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
}

/* ── Éléments propres à la FAQ ───────────────────────────────────────────── */

.fil-ariane {
  margin: 0 0 26px;
  color: var(--texte-faible);
  font-size: 13px;
}
.fil-ariane a { color: var(--texte-doux); }

/* Chaque question est un bloc distinct : sur une page qui en aligne une
   quinzaine, la séparation visuelle vaut mieux qu'un simple enchaînement de
   titres. */
.faq-bloc {
  margin: 0 0 14px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
}
.faq-bloc h2 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 650;
}
.faq-bloc p { margin: 0; color: var(--texte-doux); }

.bouton-cta {
  display: inline-block;
  margin-top: 24px;
  padding: 13px 26px;
  color: #0f0c29;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  border-radius: 999px;
  font-weight: 700;
}
.bouton-cta:hover { text-decoration: none; filter: brightness(1.08); }

/* ── Pied de page, identique à celui de l'accueil ────────────────────────── */

.site-pied {
  margin-top: 40px;
  padding: 48px 20px 32px;
  border-top: 1px solid var(--trait);
}

.site-pied-interieur {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 36px;
}

.site-pied h2 {
  margin: 0 0 14px;
  color: var(--texte-faible);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.site-pied ul { margin: 0; padding: 0; list-style: none; }
.site-pied li { margin-bottom: 9px; }
.site-pied a { color: var(--texte-doux); font-size: 14px; }
.site-pied a:hover { color: #fff; text-decoration: none; }

.site-pied-marque {
  margin: 0 0 12px;
  color: #fff;
  font-family: Orbitron, Inter, sans-serif;
  font-size: 17px;
  font-weight: 700;
}
.site-pied-texte { margin: 0 0 14px; color: var(--texte-doux); font-size: 14px; max-width: 34ch; }

.site-pied-bas {
  max-width: 1180px;
  margin: 40px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--trait);
  color: var(--texte-faible);
  font-size: 13px;
  text-align: center;
}
.site-pied-bas p { margin: 0 0 4px; }

/* ── Mobile ──────────────────────────────────────────────────────────────── */

@media (max-width: 860px) {
  /* Sur mobile ne restent que la marque, le bouton et la langue. Sans
     white-space le libellé du bouton passait sur deux lignes et débordait de
     la hauteur de la barre. */
  .site-nav a:not(.site-cta) { display: none; }
  .site-entete-interieur { padding: 0 12px; gap: 8px; }
  .site-marque { font-size: 15px; gap: 8px; }
  .site-marque img { width: 26px; height: 26px; }
  .site-nav { gap: 8px; }
  .site-nav a.site-cta { padding: 8px 13px; font-size: 13px; white-space: nowrap; }
  .site-langue summary { height: 36px; padding: 0 9px; }

  .page { padding: 36px 16px 52px; }
  .page h2 { margin-top: 36px; font-size: 20px; }

  .site-pied-interieur { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .site-pied-texte { max-width: none; }
  .tableau th { width: 42%; }
}

@media (max-width: 520px) {
  .site-pied-interieur { grid-template-columns: 1fr; }
  .tableau, .tableau th, .tableau td { display: block; width: auto; }
  .tableau th { padding-bottom: 0; border-bottom: 0; }
  .tableau td { padding-top: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; }
}
