/* Charte BleuLemon, appliquée par défaut à tout tenant (E7.10).
   Seul endroit où les couleurs, la typographie et le logo sont définis : les autres feuilles n'utilisent que ces variables.
   La charte d'un client (E9.6) redéfinit ces variables dans /charte/client.css, chargée juste après, sans toucher au code :
   --brand (couleur principale), --brand2 (secondaire), --lemon (accent), --logo, et leurs variantes sombres.
   Contrastes WCAG AA vérifiés par tests/static-checks.mjs, en clair et en sombre. */
@font-face { font-family: Montserrat; font-style: normal; font-weight: 400 600; font-display: swap; src: url("montserrat-latin.woff2") format("woff2"); }
:root {
  color-scheme: light;
  --font: Montserrat, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --logo: url("/charte/logo.svg"); --logo-ratio: 171 / 79;   /* largeur / hauteur du logo */
  --r: 14px;
  /* surfaces et textes */
  --bg: #eef3f9; --card: #ffffff; --ink: #082c4e; --mut: #4f6780; --line: #d6e0ea;
  --shadow: 0 1px 2px rgba(8, 44, 78, .06), 0 6px 20px rgba(8, 44, 78, .06);
  /* marque : principale, secondaire, accent */
  --brand: #0b3f70; --brand-hover: #082c4e; --brand-ink: #ffffff;
  --brand2: #1f6f96;
  --lemon: #dcde54; --lemon-hover: #e8ea86; --lemon-ink: #082c4e; --lemon-d: #5c5d00;
  /* états */
  --ok: #0f7042; --okbg: #dcf5ea; --on-ok: #ffffff;
  --bad: #b3261e; --badbg: #fde4e1; --on-bad: #ffffff;
  --wait: #6b5200; --waitbg: #f7f5cf; --warnbg: #f7f7d6; --warn: #b9a800;
  /* bandeau (accordé au logo, blanc et menthe : fond bleu nuit, accents menthe), héros, code */
  --hdr-bg: #0b3f70; --hdr-ink: #ffffff; --hdr-mut: #c9d9e8; --hdr-line: #4a7099; --hdr-accent: #87ceb5; --hdr-accent-ink: #082c4e;
  --hero-a: #082c4e; --hero-b: #1f6f96; --hero-ink: #ffffff;
  --code-bg: #082c4e; --code-ink: #dbe7f3; --code-mut: #8fa9c2;
  /* attestation : toujours imprimée sur fond clair */
  --cert-bg: #ffffff; --cert-ink: #082c4e; --cert-brand: #0b3f70; --cert-accent: #dcde54; --cert-kick: #5c5d00;
}
/* Les deux blocs suivants sont identiques (préférence du système, ou choix de l'utilisateur) : le contrôle statique le vérifie. */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  color-scheme: dark;
  --bg: #061f38; --card: #0c2d4c; --ink: #eef3f9; --mut: #a9bfd3; --line: #234a6e;
  --shadow: none;
  --brand: #70bae0; --brand-hover: #a3d4ee; --brand-ink: #082c4e;
  --brand2: #70bae0;
  --lemon: #dcde54; --lemon-hover: #e8ea86; --lemon-ink: #082c4e; --lemon-d: #dcde54;
  --ok: #8bd6b5; --okbg: #10403c; --on-ok: #082c4e;
  --bad: #ffab9c; --badbg: #46211f; --on-bad: #3b0f0a;
  --wait: #e6e07a; --waitbg: #393a14; --warnbg: #34360f; --warn: #dcde54;
  --hdr-bg: #082c4e; --hdr-ink: #ffffff; --hdr-mut: #c9d9e8; --hdr-line: #4a7099; --hdr-accent: #87ceb5; --hdr-accent-ink: #082c4e;
  --hero-a: #082c4e; --hero-b: #1f6f96; --hero-ink: #ffffff;
  --code-bg: #04172a; --code-ink: #dbe7f3; --code-mut: #8fa9c2;
} }
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #061f38; --card: #0c2d4c; --ink: #eef3f9; --mut: #a9bfd3; --line: #234a6e;
  --shadow: none;
  --brand: #70bae0; --brand-hover: #a3d4ee; --brand-ink: #082c4e;
  --brand2: #70bae0;
  --lemon: #dcde54; --lemon-hover: #e8ea86; --lemon-ink: #082c4e; --lemon-d: #dcde54;
  --ok: #8bd6b5; --okbg: #10403c; --on-ok: #082c4e;
  --bad: #ffab9c; --badbg: #46211f; --on-bad: #3b0f0a;
  --wait: #e6e07a; --waitbg: #393a14; --warnbg: #34360f; --warn: #dcde54;
  --hdr-bg: #082c4e; --hdr-ink: #ffffff; --hdr-mut: #c9d9e8; --hdr-line: #4a7099; --hdr-accent: #87ceb5; --hdr-accent-ink: #082c4e;
  --hero-a: #082c4e; --hero-b: #1f6f96; --hero-ink: #ffffff;
  --code-bg: #04172a; --code-ink: #dbe7f3; --code-mut: #8fa9c2;
}
/* Lien vers les mentions légales et les conditions d'utilisation, en bas des pages de l'espace (E12.5) */
.legal-foot { max-width: 1180px; margin: 0 auto; padding: 8px 16px 28px; text-align: center; font: 12px/1.5 var(--font); color: var(--mut); }
.legal-foot a { color: inherit; }
/* Accessibilité (E7.5, RGAA 4.1) : focus toujours visible, texte réservé aux lecteurs d'écran, lien d'évitement */
:focus-visible { outline: 3px solid var(--brand2); outline-offset: 2px; }
.app-hdr :focus-visible, .hero :focus-visible { outline-color: var(--hdr-accent); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.evitement { position: absolute; left: 12px; top: -60px; z-index: 1000; padding: 10px 16px; border-radius: 10px; background: var(--card); color: var(--ink); font: 600 15px var(--font); text-decoration: underline; box-shadow: var(--shadow); }
.evitement:focus { top: 10px; }
