/* Documents légaux et assistance de Reflex Master.
 *
 * Une seule feuille pour toutes les pages : elles doivent se ressembler, et
 * une correction de lisibilité ne doit pas avoir à être recopiée quatre fois.
 * Les couleurs reprennent le bleu de l'app ; le mode sombre suit le système. */

:root {
  color-scheme: light dark;
  --ink: #1b2233;
  --muted: #5b6478;
  --accent: #2251b5;
  --rule: #d9dde6;
  --panel: #f3f5fa;
  --bg: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8ebf2;
    --muted: #9aa3b5;
    --accent: #8fb0ff;
    --rule: #2e3548;
    --panel: #1a2030;
    --bg: #11151f;
  }
}

* { box-sizing: border-box; }

html { scroll-padding-top: 4.5rem; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

/* Barre du haut : nom de l'app et bascule de langue, toujours visibles. */
.bar {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 1.25rem;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--rule);
}

.bar .brand {
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -.01em;
}

.bar nav a {
  margin-left: .9rem;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  font-size: .95rem;
}

main {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 5rem;
}

h1 {
  font-size: 1.85rem;
  line-height: 1.2;
  letter-spacing: -.02em;
  margin: 1rem 0 .35rem;
}

h2 {
  font-size: 1.2rem;
  line-height: 1.3;
  margin: 2.6rem 0 .6rem;
  padding-top: .2rem;
}

h3 {
  font-size: 1.02rem;
  margin: 1.6rem 0 .4rem;
}

p, ul, ol { margin: .6rem 0; }
ul, ol { padding-left: 1.3rem; }
li { margin: .3rem 0; }

a { color: var(--accent); overflow-wrap: anywhere; }

.updated {
  color: var(--muted);
  margin-top: 0;
  font-size: .95rem;
}

.lead {
  font-size: 1.05rem;
}

/* Encadré : ce qu'il faut retenir, en tête de document. */
.summary {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  margin: 1.4rem 0 2rem;
}

.summary h2 {
  margin: 0 0 .4rem;
  font-size: 1.05rem;
}

.summary ul { margin: .2rem 0; }

/* Tableaux : défilement horizontal sur petit écran, jamais de débordement
   de la page. */
.table {
  overflow-x: auto;
  margin: .8rem 0 1.2rem;
  border: 1px solid var(--rule);
  border-radius: 12px;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 34rem;
  font-size: .94rem;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: .6rem .75rem;
  border-bottom: 1px solid var(--rule);
}

tr:last-child td { border-bottom: 0; }

th {
  background: var(--panel);
  font-weight: 600;
}

/* Bloc d'identité : deux colonnes sur grand écran, empilé sur téléphone.
   `minmax(0, 1fr)` autorise la colonne à rétrécir sous la largeur de son
   contenu ; sans cela, une adresse e-mail insécable élargissait la grille et
   faisait défiler toute la page horizontalement. */
.identity {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: .25rem 1rem;
  margin: .8rem 0;
}

.identity dt { color: var(--muted); }
.identity dd { margin: 0; overflow-wrap: anywhere; }

@media (max-width: 30rem) {
  .identity { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .identity dt { margin-top: .55rem; font-size: .88rem; }
}

dl.faq dt { font-weight: 600; margin-top: 1.2rem; }
dl.faq dd { margin: .25rem 0 0; }

code {
  overflow-wrap: anywhere;
  background: var(--panel);
  padding: .1em .35em;
  border-radius: .3em;
  font-size: .92em;
}

.lang-rule {
  border: 0;
  border-top: 2px solid var(--rule);
  margin: 4.5rem 0 1rem;
}

footer {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
  color: var(--muted);
  font-size: .9rem;
  border-top: 1px solid var(--rule);
}

footer a { color: var(--muted); }
