/* ==========================================================================
   OPTIX — couleurs et polices centralisées
   C'est le SEUL fichier à modifier pour caler la charte sur le logo officiel.
   - --accent : le rouge OPTIX (boutons principaux, liens actifs, détails).
   - Thème sombre : mêmes noms de variables, valeurs adaptées (2 blocs identiques
     plus bas, l'un pour le réglage système, l'autre pour un choix explicite).
   Après modification, vérifier le contraste du rouge sur --paper et --surface
   (4,5:1 minimum pour du texte).
   ========================================================================== */

:root {
  /* Fonds neutres */
  --paper: #f4f3f1;
  --paper-2: #ebe9e6;
  --surface: #ffffff;
  /* Textes */
  --ink: #1b1a1c;
  --ink-soft: #56535a;
  --line: #dcd9d5;
  /* Accent rouge */
  --accent: #b3202a;          /* contraste 6,6:1 sur blanc, 6,0:1 sur --paper */
  --accent-fill: #b3202a;     /* fond des boutons principaux */
  --accent-ink: #ffffff;      /* texte posé sur --accent-fill */
  --accent-hover: #941820;
  --lens-glint: rgba(255, 255, 255, 0.6);
  /* Bandeaux sombres (entreprises, pied de page) */
  --band: #1b1a1c;
  --band-ink: #f2f0ed;
  --band-soft: #b6b1ac;
  --band-accent: #ff7378;
  --band-line: #3a373b;
  --band-glow: rgba(201, 42, 51, 0.22);   /* halo rouge discret du bandeau Entreprises */
  --footer: #1b1a1c;
  /* Focus clavier */
  --focus: #b3202a;

  /* Polices : latin d'abord, l'arabe est pris en charge par la police suivante */
  --font-display: "Bricolage Grotesque Variable", "Bricolage Grotesque", "Readex Pro Variable", "Readex Pro", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree Variable", "Figtree", "IBM Plex Sans Arabic", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #131214;
    --paper-2: #19181a;
    --surface: #1e1d20;
    --ink: #efedea;
    --ink-soft: #aca8a4;
    --line: #333035;
    --accent: #ff6e73;        /* contraste 6,9:1 sur --paper sombre */
    --accent-fill: #c92a33;   /* bouton : blanc sur rouge, contraste 5,1:1 */
    --accent-ink: #ffffff;
    --accent-hover: #b0232b;
    --lens-glint: rgba(255, 255, 255, 0.07);
    --band: #1f1517;          /* bandeau distinct du fond sombre : noir teinté de rouge */
    --band-ink: #f2f0ed;
    --band-soft: #bdb4b1;
    --band-accent: #ff7378;
    --band-line: #40303a;
    --band-glow: rgba(201, 42, 51, 0.2);
    --footer: #0d0c0e;
    --focus: #ff6e73;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #131214;
  --paper-2: #19181a;
  --surface: #1e1d20;
  --ink: #efedea;
  --ink-soft: #aca8a4;
  --line: #333035;
  --accent: #ff6e73;
  --accent-fill: #c92a33;   /* bouton : blanc sur rouge, contraste 5,1:1 */
  --accent-ink: #ffffff;
  --accent-hover: #b0232b;
  --lens-glint: rgba(255, 255, 255, 0.07);
  --band: #1f1517;
  --band-ink: #f2f0ed;
  --band-soft: #bdb4b1;
  --band-accent: #ff7378;
  --band-line: #40303a;
  --band-glow: rgba(201, 42, 51, 0.2);
  --footer: #0d0c0e;
  --focus: #ff6e73;
  color-scheme: dark;
}
