/* Socle de l'audit et des pages de connexion : couleurs, police Inter, boutons et champs,
   alignés sur le dashboard dont l'audit prolonge l'usage. Police servie par l'application :
   aucune requête vers Google. L'admin garde sa propre charte (theme.css). */
@font-face{font-family:"Inter";font-style:normal;font-weight:100 900;font-display:swap;src:url("/assets/inter-variable.woff2") format("woff2")}

:root{
  /* Gris (slate) */
  --slate-1:#fcfcfd; --slate-2:#f9f9fb; --slate-3:#f0f0f3; --slate-4:#e8e8ec; --slate-5:#e0e1e6;
  --slate-6:#d9d9e0; --slate-7:#cdced6; --slate-8:#b9bbc6; --slate-9:#8b8d98; --slate-10:#80838d;
  --slate-11:#60646c; --slate-12:#1c2024;
  /* Bleu de marque (n-brand = blue-9) */
  --blue-2:#f5f9ff; --blue-3:#e9f3ff; --blue-4:#daecff; --blue-6:#b5d5ff; --blue-9:#2781f6; --blue-10:#1073e9; --blue-survol:#2b8eff; /* survol : brightness(1.1) du bleu */ --blue-11:#086de0;
  /* Rouge (ruby) et vert (teal) pour les erreurs et les ajouts */
  --ruby-3:#feeaed; --ruby-9:#e54666; --ruby-11:#ca244d;
  --teal-3:#e0f8f3; --teal-9:#12a594; --teal-11:#008573;
  /* Surfaces et filets */
  --background:#f7f7f7;        /* n-background : barre latérale, fond des pages de connexion */
  --surface-1:#fefefe;         /* n-surface-1 : zone principale */
  --solid-1:#ffffff;           /* n-solid-1/2 : cartes, menus */
  --solid-blue:#daecff;        /* bulles des réponses envoyées */
  --alpha-1:rgba(215,215,215,.22);
  --alpha-2:rgba(196,197,198,.22);   /* survol, élément actif de la barre latérale */
  --alpha-black2:rgba(0,0,0,.04);    /* fond des champs */
  --border-weak:#eaeaea;
  --border-container:#ececec;
  --border-strong:#e2e3e7;
  --shadow-sm:0 1px 2px rgba(0,0,0,.05);

  --police:"Inter",-apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  color-scheme:light;
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--surface-1);color:var(--slate-12);font:400 14px/1.5 var(--police);-webkit-font-smoothing:antialiased}
a{color:var(--blue-11);text-decoration:none}
a:hover{text-decoration:underline}
:focus-visible{outline:2px solid var(--blue-9);outline-offset:1px;border-radius:8px}
h1,h2,h3{font-weight:600;color:var(--slate-12)}

/* ---------------------------------------------------------------- marque (badge du symbole + nom) */
.marque{display:inline-flex;align-items:center;gap:8px;min-width:0;color:var(--slate-12);font-weight:500;text-decoration:none}
.marque:hover{text-decoration:none}
.marque img{flex:none;width:24px;height:24px;border-radius:6px}
.marque b{font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ---------------------------------------------------------------- boutons  */
.btn,button.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:32px;padding:0 12px;border:0;border-radius:8px;
  background:var(--blue-9);color:#fff;font:500 14px/1 var(--police);text-decoration:none;cursor:pointer;white-space:nowrap;transition:background-color .15s}
.btn:hover{background:var(--blue-survol);text-decoration:none}
/* Bouton discret (variante « faded » / « ghost ») */
.btn--second,button.btn--second{background:var(--alpha-2);color:var(--slate-12)}
.btn--second:hover{background:var(--slate-4)}
.btn--petit,button.btn--petit{height:28px;padding:0 10px;font-size:13px}
.btn--grand,button.btn--grand{height:40px;padding:0 16px}
.btn:disabled{opacity:.5;cursor:default}
.btn:disabled:hover{background:var(--blue-9)}
.btn--second:disabled:hover{background:var(--alpha-2)}
.etiq{display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:6px;background:var(--alpha-2);color:var(--slate-11);font:500 12px/1 var(--police);white-space:nowrap}

/* ---------------------------------------------------------------- champs */
input[type=email],input[type=password],input[type=text],input[type=number],select,textarea{
  font:400 14px/1.4 var(--police);color:var(--slate-12);background:var(--alpha-black2);
  border:0;outline:1px solid var(--border-weak);outline-offset:-1px;border-radius:8px;padding:9px 12px}
input::placeholder,textarea::placeholder{color:var(--slate-10)}
input:focus,select:focus,textarea:focus{outline:1px solid var(--blue-9);background:var(--solid-1)}
label{font-size:14px;font-weight:500;color:var(--slate-12)}

/* ---------------------------------------------------------------- surfaces */
.carte{background:var(--solid-1);border-radius:12px;outline:1px solid var(--border-container);outline-offset:-1px;box-shadow:var(--shadow-sm)}
.error{background:var(--ruby-3);color:var(--ruby-11);padding:10px 12px;border-radius:8px;font-size:14px}
.muted{color:var(--slate-11);font-size:14px}
