/* ==========================================================================
   Le Conteur — pages de documents (confidentialité, assistance, compte)
   Même monde visuel que le site vitrine (DESIGN.md, variante sombre), mais
   en registre LECTURE : mesure confortable, hiérarchie calme, pas d'objet
   de démonstration.

   Ce fichier vit dans `web/`, donc `flutter build web` le recopie toujours,
   en dev comme en prod. Les pages ne dépendent pas de la copie du site
   vitrine, qui n'a lieu qu'au déploiement.
   ========================================================================== */

@font-face {
  font-family: 'Bebas Neue';
  src: url('fonts/bebas-neue-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  src: url('fonts/roboto-latin.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  --ground: #061226;
  --surface: #0f2347;
  --surface-2: #0b1b39;
  --ink: #ffffff;
  --muted: #93a6c9;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --accent: #4f7ce8;
  --energy: #f7aa12;
  --energy-ink: #1a1300;
  --fault: #ef4444;

  --display: 'Bebas Neue', 'Haettenschweiler', 'Arial Narrow', sans-serif;
  --body: 'Roboto', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

/* Les surfaces que le navigateur dessine à notre place portent aussi la
   marque : c'est ce qui distingue une page habillée d'une page assemblée. */
::selection {
  background: var(--energy);
  color: var(--energy-ink);
}

:where(a, button, summary):focus-visible {
  outline: 3px solid var(--energy);
  outline-offset: 3px;
  border-radius: 4px;
}

@supports (scrollbar-color: red blue) {
  html {
    scrollbar-color: #1d365f var(--ground);
    scrollbar-width: thin;
  }
}

.doc {
  max-width: 720px;
  margin-inline: auto;
  padding: 0 16px 56px;
}

@media (min-width: 720px) {
  .doc { padding: 0 24px 72px; }
}

/* --- En-tête : le chemin du retour ---------------------------------------- */
.doc-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 0 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 30px;
}

.doc-head a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.doc-head img.mark { width: 36px; height: 36px; }
.doc-head img.word { width: 110px; height: auto; }

/* --- Typographie ---------------------------------------------------------- */
h1 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2.125rem, 7vw, 3rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  margin: 0 0 6px;
  text-wrap: balance;
}

h2 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.375rem, 4vw, 1.75rem);
  line-height: 1;
  letter-spacing: 0.03em;
  margin: 44px 0 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

h3 {
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin: 26px 0 6px;
}

p, li { max-width: 68ch; }

p { margin: 0 0 14px; }

ul, ol { padding-left: 1.2rem; margin: 0 0 16px; }

li { margin-bottom: 6px; }

strong { font-weight: 700; }

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

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

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: var(--surface-2);
  border-radius: 6px;
  padding: 0.12em 0.4em;
}

/* --- Les trois classes que ces pages utilisaient déjà ---------------------- */
.meta {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 26px;
}

.contact {
  background: var(--surface);
  border-radius: 18px;
  padding: 18px 20px;
  font-size: 1.0625rem;
  margin-bottom: 18px;
}

.contact p:last-child { margin-bottom: 0; }

.steps {
  background: var(--surface);
  border-radius: 18px;
  padding: 18px 20px 18px 38px;
  margin-bottom: 18px;
}

.steps li::marker {
  color: var(--accent);
  font-weight: 700;
}

.steps li:last-child { margin-bottom: 0; }

/* --- Pied --------------------------------------------------------------- */
.doc-foot {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--muted);
}

.doc-foot a { color: var(--muted); }
.doc-foot a:hover { color: var(--ink); }

.doc-foot .sep { opacity: 0.4; }

/* Le pied des pages gardait un `footer` nu avec sa propre couleur ; il hérite
   maintenant du même registre. */
footer {
  margin-top: 40px;
  color: var(--muted);
  font-size: 0.8125rem;
}
