/* charte-oenovae.css — Look commun des applis Oenovae (feuille de route, étape 2).
 * Source : commun/charte/ du dépôt VitiFlux ; chaque appli en garde une COPIE
 * identique (node commun/sync-applis.cjs --charte). Ne pas modifier la copie.
 *
 * Base = look « Moderne » de VitiFlux ; seule la couleur principale change
 * d'une appli à l'autre (celle de son logo). Brancher une appli :
 *   1. <html data-appli="vitiscan"> (vitiflux, vitiscan, vitisample, vitivente, vitiblend) ;
 *   2. charger ce fichier AVANT la feuille de l'appli ; polices dans ./polices/ ;
 *   3. dans la feuille de l'appli, faire pointer ses propres variables sur les
 *      --oe-* (ex. --primary: var(--oe-primaire)). Mode sombre : classe
 *      « oe-sombre » sur <html>, ou data-theme finissant par « sombre ».
 * Règles d'usage (tailles, cartes, boutons) : CHARTE.md, à côté.
 */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("polices/manrope-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("polices/manrope-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("polices/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("polices/bricolage-grotesque-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* Couleur de l'appli (logo) — défaut : bordeaux Oenovae */
  --oe-primaire: #8e2a3c; --oe-primaire-fonce: #6a1f2d; --oe-primaire-doux: #c98593; --oe-primaire-fond: #f6e9ec;
  --oe-sur-primaire: #ffffff;   /* texte posé sur la couleur de l'appli */

  /* Polices */
  --oe-police: "Manrope", "Segoe UI Variable", "Segoe UI", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --oe-police-titres: "Bricolage Grotesque", "Manrope", "Segoe UI", sans-serif;
  --oe-police-chiffres: "SF Mono", Menlo, Monaco, "Cascadia Mono", "Roboto Mono", monospace;

  /* Tailles de texte */
  --oe-texte-ecran: 28px; --oe-texte-titre-1: 22px; --oe-texte-titre-2: 17px;
  --oe-texte: 15px; --oe-texte-dense: 14px; --oe-texte-petit: 13px; --oe-texte-legende: 11px;

  /* Fonds, encres, bordures (identiques dans toutes les applis) */
  --oe-fond: #f4f5f2; --oe-fond-carte: #ffffff; --oe-fond-doux: #f8f9f6; --oe-fond-muet: #eef0ec;
  --oe-encre: #15171c; --oe-encre-2: #3b414c; --oe-encre-3: #5e6470; --oe-encre-4: #8a909a;
  --oe-bord: #e4e6e1; --oe-bord-fort: #c5c9cf;

  /* États (identiques partout : ne jamais les remplacer par la couleur de l'appli) */
  --oe-succes: #0f7a4c; --oe-succes-fond: #e3f4ec;
  --oe-alerte: #8f5200; --oe-alerte-fond: #fbf0dd;
  --oe-danger: #b3261e; --oe-danger-fond: #fbe6e5;
  --oe-info: #2f55d4;   --oe-info-fond: #e8edfc;

  /* Formes */
  --oe-rayon-s: 8px; --oe-rayon-m: 12px; --oe-rayon-l: 16px; --oe-rayon-xl: 20px; --oe-rayon-pilule: 9999px;
  --oe-ombre-1: 0 1px 2px rgba(21,23,28,.05); --oe-ombre-2: 0 6px 20px rgba(21,23,28,.08); --oe-ombre-3: 0 16px 48px rgba(21,23,28,.16);
  --oe-entete: 56px; --oe-barre-laterale: 240px;
  --oe-transition: 150ms cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Couleur de chaque appli (celle de son logo, commun/oenovae-applis.js) */
:root[data-appli="vitiflux"]   { --oe-primaire: #6b1d3a; --oe-primaire-fonce: #4f1229; --oe-primaire-doux: #b06a85; --oe-primaire-fond: #f5e8ed; }
:root[data-appli="vitiscan"]   { --oe-primaire: #1f6f8b; --oe-primaire-fonce: #14526a; --oe-primaire-doux: #6aa9c0; --oe-primaire-fond: #e4f1f5; }
:root[data-appli="vitisample"] { --oe-primaire: #8a5a12; --oe-primaire-fonce: #6a440b; --oe-primaire-doux: #c49a55; --oe-primaire-fond: #f7eedf; }
:root[data-appli="vitivente"]  { --oe-primaire: #2f6b45; --oe-primaire-fonce: #214f32; --oe-primaire-doux: #73a886; --oe-primaire-fond: #e5f1e9; }
:root[data-appli="vitiblend"]  { --oe-primaire: #5d4690; --oe-primaire-fonce: #45336e; --oe-primaire-doux: #9a88c6; --oe-primaire-fond: #ece8f5; }

/* Mode sombre */
:root.oe-sombre, :root[data-theme$="sombre"] {
  --oe-fond: #0f1115; --oe-fond-carte: #181b21; --oe-fond-doux: #1d2027; --oe-fond-muet: #272b33;
  --oe-encre: #eceef2; --oe-encre-2: #c6cad2; --oe-encre-3: #9aa1ad; --oe-encre-4: #6b717c;
  --oe-bord: #272b33; --oe-bord-fort: #3a3f49;
  --oe-succes: #4cc38a; --oe-succes-fond: #12301f; --oe-alerte: #f2b45a; --oe-alerte-fond: #3a2c12;
  --oe-danger: #ff7a72; --oe-danger-fond: #3a1716; --oe-info: #7c9bff; --oe-info-fond: #1d2847;
  --oe-ombre-1: 0 1px 3px rgba(0,0,0,.35); --oe-ombre-2: 0 6px 20px rgba(0,0,0,.45); --oe-ombre-3: 0 16px 48px rgba(0,0,0,.6);
  --oe-sur-primaire: #15171c;
  --oe-primaire: #d97a8f; --oe-primaire-fonce: #c25f75; --oe-primaire-doux: #8e2a3c; --oe-primaire-fond: #3a1c23;
}
:root.oe-sombre[data-appli="vitiflux"],   :root[data-theme$="sombre"][data-appli="vitiflux"]   { --oe-primaire: #d77fa0; --oe-primaire-fonce: #c0628a; --oe-primaire-doux: #6b1d3a; --oe-primaire-fond: #3a1826; }
:root.oe-sombre[data-appli="vitiscan"],   :root[data-theme$="sombre"][data-appli="vitiscan"]   { --oe-primaire: #6cc0de; --oe-primaire-fonce: #4aa6c6; --oe-primaire-doux: #1f6f8b; --oe-primaire-fond: #13303b; }
:root.oe-sombre[data-appli="vitisample"], :root[data-theme$="sombre"][data-appli="vitisample"] { --oe-primaire: #e0b066; --oe-primaire-fonce: #c9964a; --oe-primaire-doux: #8a5a12; --oe-primaire-fond: #36290f; }
:root.oe-sombre[data-appli="vitivente"],  :root[data-theme$="sombre"][data-appli="vitivente"]  { --oe-primaire: #7cc796; --oe-primaire-fonce: #5eae7b; --oe-primaire-doux: #2f6b45; --oe-primaire-fond: #16301f; }
:root.oe-sombre[data-appli="vitiblend"],  :root[data-theme$="sombre"][data-appli="vitiblend"]  { --oe-primaire: #a996e0; --oe-primaire-fonce: #8f7ad0; --oe-primaire-doux: #5d4690; --oe-primaire-fond: #2a2240; }

/* Base minimale, commune à toutes les applis */
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--oe-police); background: var(--oe-fond); color: var(--oe-encre); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font-family: inherit; }
:focus-visible { outline: 2px solid var(--oe-primaire); outline-offset: 2px; }
::selection { background: var(--oe-primaire-fond); color: var(--oe-encre); }
