/* ==========================================================================
   anesthia-charte.css — charte Encre (Louis, temps 1 : refonte de l'allure)
   Chargé en DERNIER par chaque écran. Ne change que l'allure : couleurs,
   police, angles, barre du haut. Aucune règle ne masque ni ne déplace un
   élément fonctionnel. Pour revenir à l'ancienne allure d'un écran : retirer
   sa ligne <link ... anesthia-charte.css>.
   Les couleurs de triage (--u*) et des dispositifs (--vvp, --picc...) ne
   sont pas touchées : elles portent un sens médical.
   ========================================================================== */

@font-face{font-family:"Public Sans";font-weight:400;font-display:swap;src:url("/polices/public-sans-latin-400-normal.woff2") format("woff2");}
@font-face{font-family:"Public Sans";font-weight:500;font-display:swap;src:url("/polices/public-sans-latin-500-normal.woff2") format("woff2");}
@font-face{font-family:"Public Sans";font-weight:600;font-display:swap;src:url("/polices/public-sans-latin-600-normal.woff2") format("woff2");}
@font-face{font-family:"Public Sans";font-weight:700;font-display:swap;src:url("/polices/public-sans-latin-700-normal.woff2") format("woff2");}

:root{
  /* Encre */
  --encre: #1B2D4E; --encre-fonce: #0D182D; --encre-doux: #EDF3FE; --encre-filet: #2B4472;
  --police-encre: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Écrans au socle (anesthia-shell.css) et écrans qui en reprennent les noms */
  --paper: #F6F7F9; --card: #FFFFFF;
  --ink: #17181A; --ink-soft: #55585D; --line: #D8D9DC;
  --teal: #1B2D4E; --teal-deep: #0D182D; --teal-soft: #EDF3FE;
  --amber: #7D4922; --amber-soft: #FBF0E9;
  --red: #A94949; --red-soft: #FFEEED;
  --green: #457A51; --green-soft: #ECF5EE;
  --blue: #4169B5; --blue-soft: #ECF3FF;
  --grey: #696C72; --grey-soft: #F2F2F3;
  --violet: #6B5B95; --violet-soft: #F1EEF7;
  --radius: 4px; --shadow: none;

  /* Écrans à variables courtes (demande d'examen, prestataires, référentiel, courriers) */
  --bg: #F6F7F9; --ink2: #55585D; --ink3: #696C72; --line2: #E8E9EB;
  --app: #1B2D4E; --head: #1B2D4E; --acc: #1B2D4E; --accbg: #EDF3FE;
  --redbg: #FFEEED; --red-bg: #FFEEED; --redline: #E8ACA9;
  --amb: #955C33; --ambbg: #FBF0E9; --ok: #457A51;
  --prov: #F6F9FF; --provline: #AABFE3;
}

body{font-family:var(--police-encre);}
button, input, select, textarea{font-family:inherit;}

/* --- Barre du haut : en-tête Encre ------------------------------------- */
.appbar{background:var(--encre); color:#FFFFFF; border-bottom:1px solid var(--encre-fonce);}
.appbar .brand{align-items:center;}
.appbar .brand .logo{display:inline-flex; flex-direction:column; align-items:center; justify-content:center;
  min-width:44px; height:40px; padding:0 4px; background:#FFFFFF; color:#000000; border-radius:4px;
  font-family:var(--police-encre); font-weight:700; font-size:12px; line-height:13px; letter-spacing:0; white-space:nowrap;}
.appbar .navbtn{color:rgba(255,255,255,.78); border-radius:4px;}
.appbar .navbtn:hover{background:rgba(255,255,255,.10); color:#FFFFFF;}
.appbar .navbtn.on{background:#FFFFFF; color:var(--encre); border-color:#FFFFFF;}
.appbar .brand .logo b{color:#000000; font-weight:700;}
.appbar .tag{color:rgba(255,255,255,.82) !important; font-size:13px;}
.appbar .brand .tag, .appbar .brand h1, .appbar .brand .title{color:#FFFFFF;}
.appbar a:not(.btn){color:#FFFFFF;}

/* Interfaces : barre en styles en ligne */
.appbar > .logo{display:inline-flex; flex-direction:column; align-items:center; justify-content:center; min-width:44px; height:40px; padding:0 4px; background:#FFFFFF; color:#000000 !important; border-radius:4px; font-size:12px !important; line-height:13px; font-weight:700;}
.appbar > .logo b{color:#000000 !important;}
.appbar > div[style]:not(.logo):not(.role){color:rgba(255,255,255,.85) !important;}
.appbar .live, .appbar .clock, .appbar .sync, .appbar .d{color:rgba(255,255,255,.85);}
.appbar .btn.ghost:not(.role *){color:rgba(255,255,255,.85);}
.appbar .btn.ghost:not(.role *):hover{background:rgba(255,255,255,.10); color:#FFFFFF;}

/* --- Éléments communs posés par anesthia-coeur.js ------------------------ */
#anesthia-avis-btn{background:var(--encre) !important; border-color:var(--encre) !important;}
#anesthia-switch-btn, #toast{background:var(--encre-fonce) !important;}
#anesthia-fic-banner{background:#7D4922 !important;}
#coeur-bar{background:var(--encre-fonce) !important; font-family:var(--police-encre) !important;}
#coeur-bar .mq{background:transparent !important;}
#coeur-bar select{color:var(--encre-fonce) !important;}
#coeur-bar select.nav{color:#FFFFFF !important;}
#coeur-bar select.nav option{color:var(--encre-fonce) !important;}
#coeur-dos, #coeur-dos h3{font-family:var(--police-encre) !important; color:var(--ink);}

/* --- Voiles derrière les fenêtres --------------------------------------- */
#overlay, .overlay, .modal-ov, .qv-ov, .print-ov{background-color:rgba(13,24,45,.42);}

/* --- Boutons : couleurs écrites en dur dans certains écrans -------------- */
.btn.ghost{color:var(--ink-soft);}
.btn.primary{background:var(--encre); border-color:var(--encre); color:#FFFFFF;}
.btn.primary:hover{background:var(--encre-fonce); border-color:var(--encre-fonce); color:#FFFFFF;}

/* --- Formes : angles droits, pas d'ombre décorative --------------------- */
.btn{border-radius:4px;}
.btn.primary:disabled, button.primary:disabled{background:#9C9EA3; border-color:#9C9EA3;}
.card, .panel{border-radius:4px; box-shadow:none;}
input:focus, select:focus, textarea:focus{outline:2px solid #557ECC; outline-offset:1px;}

/* --- Menu Espaces : « Accueil » (page de toutes les apps) en tête -------- */
#anesthia-switch-menu[style*="block"]{display:flex !important; flex-direction:column;}
#anesthia-switch-menu a[href="/"]{order:-1; font-weight:700; color:var(--encre) !important; background:var(--encre-doux); border-bottom:1px solid var(--line) !important;}
