/* Fitoumi Admin — thème sombre de la marque, mise en page à menu latéral, graphiques sobres */
:root {
  --fond: #060a14; --surface: #0f1626; --surface-2: #162034; --surface-3: #1d283f; --bord: rgba(255, 255, 255, .08);
  --texte: #eef2ff; --texte-2: #c3c9d8; --doux: #8a93a8; --grille: #1f2a40; --axe: #2c3850;
  --serie-1: #3987e5; --serie-2: #d95926; --vert: #22c55e; --rouge: #e66767; --ambre: #f5b84a;
  --accent: #22c55e; --accent-2: #3987e5;
  --seq-0: #1a2338; --seq-1: #173a66; --seq-2: #1f5296; --seq-3: #2c6cc4; --seq-4: #3987e5; --seq-5: #86b9f2;
  --rayon: 16px; --menu: 248px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--fond); color: var(--texte); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
h1 { font-size: 1.45rem; margin: 0; letter-spacing: -.02em; }
h2 { font-size: .92rem; font-weight: 650; margin: 0; color: var(--texte-2); }
a { color: inherit; }
.doux { color: var(--doux); font-size: .86rem; margin: 0; }
.mini { font-size: .76rem; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; border-radius: 6px; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--bord); background: var(--surface-2); color: var(--texte); padding: 8px 14px; border-radius: 10px; font-size: .86rem; font-weight: 600; text-decoration: none; transition: background .15s, transform .1s; }
.btn:hover { background: var(--surface-3); }
.btn:active { transform: scale(.97); }
.btn.principal { background: linear-gradient(135deg, #22c55e, #16a34a); border-color: transparent; color: #04120a; }
.btn.principal:hover { filter: brightness(1.08); }
.btn.danger { color: #ffb4b4; border-color: rgba(230, 103, 103, .35); background: rgba(230, 103, 103, .08); }
.btn.petit { padding: 4px 10px; font-size: .78rem; border-radius: 8px; }
.btn.icone { width: 36px; height: 36px; padding: 0; font-size: 1.1rem; }
.lien { border: 0; background: none; color: var(--doux); font-size: .85rem; padding: 4px; }
.lien:hover { color: var(--texte); }

/* ---------- Connexion ---------- */
.connexion { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 20px; position: relative; overflow: hidden; }
.halo { position: absolute; inset: -30%; background: radial-gradient(circle at 30% 30%, rgba(34, 197, 94, .16), transparent 40%), radial-gradient(circle at 70% 65%, rgba(57, 135, 229, .18), transparent 42%); animation: halo 18s ease-in-out infinite alternate; pointer-events: none; }
@keyframes halo { to { transform: rotate(14deg) scale(1.08); } }
.boite { position: relative; width: min(400px, 100%); background: rgba(15, 22, 38, .82); backdrop-filter: blur(18px); border: 1px solid var(--bord); border-radius: 24px; padding: 30px 26px; text-align: center; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); animation: entree .5s cubic-bezier(.2, .8, .2, 1); }
@keyframes entree { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.boite .logo { width: 64px; height: 64px; border-radius: 18px; margin: 0 auto; }
.etapes { list-style: none; display: flex; justify-content: center; gap: 8px; padding: 0; margin: 0; font-size: .78rem; counter-reset: e; }
.etapes li { counter-increment: e; padding: 4px 10px 4px 6px; border-radius: 99px; background: var(--surface-2); color: var(--doux); display: flex; align-items: center; gap: 6px; }
.etapes li::before { content: counter(e); width: 18px; height: 18px; border-radius: 50%; background: var(--surface-3); display: grid; place-items: center; font-weight: 700; font-size: .7rem; }
.etapes li.active { color: var(--texte); }
.etapes li.active::before { background: var(--accent); color: #04120a; }
.etapes li.fait::before { content: "✓"; background: var(--accent); color: #04120a; }
.bouton-google { display: flex; justify-content: center; min-height: 44px; }
#pas-code { display: flex; flex-direction: column; gap: 10px; }
#pas-code label { font-size: .84rem; color: var(--texte-2); }
.code { text-align: center; font-size: 1.9rem; letter-spacing: .45em; font-variant-numeric: tabular-nums; padding: 10px 0 10px .45em; border-radius: 14px; border: 1px solid var(--axe); background: var(--fond); width: 100%; }
.code.secours-mode { letter-spacing: .2em; font-size: 1.4rem; text-transform: uppercase; }
.code:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 4px rgba(34, 197, 94, .15); }
.qr { width: 196px; height: 196px; margin: 4px auto; border-radius: 14px; background: #fff; padding: 8px; image-rendering: pixelated; display: block; }
.cle { font-size: .8rem; color: var(--doux); }
.cle code { display: block; margin-top: 6px; word-break: break-all; font-size: .9rem; color: var(--texte); background: var(--fond); padding: 8px; border-radius: 8px; letter-spacing: .08em; user-select: all; }
.secours { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 6px 0; }
.secours code { background: var(--fond); border: 1px dashed var(--axe); padding: 6px; border-radius: 8px; font-size: .95rem; letter-spacing: .1em; text-align: center; user-select: all; }
.erreur { color: var(--rouge); margin: 0; font-size: .9rem; }
.secoue { animation: secoue .35s; }
@keyframes secoue { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* ---------- Structure ---------- */
.app { display: grid; grid-template-columns: var(--menu) 1fr; min-height: 100vh; }
.menu { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 18px; padding: 18px 12px; background: #080d1a; border-right: 1px solid var(--bord); }
.marque { display: flex; align-items: center; gap: 10px; padding: 0 8px; }
.marque img { width: 34px; height: 34px; border-radius: 10px; }
.marque small { display: block; font-size: .7rem; color: var(--accent); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; line-height: 1; }
nav { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--doux); text-decoration: none; font-size: .9rem; font-weight: 550; transition: background .15s, color .15s; }
nav a svg { width: 18px; height: 18px; flex: none; }
nav a:hover { background: var(--surface); color: var(--texte); }
nav a[aria-current="page"] { background: var(--surface-2); color: var(--texte); box-shadow: inset 3px 0 0 var(--accent); }
.pastille { margin-left: auto; font-size: .7rem; font-weight: 700; padding: 1px 7px; border-radius: 99px; background: rgba(34, 197, 94, .15); color: #86efac; }
.pastille:empty { display: none; }
.menu-pied { display: flex; flex-direction: column; gap: 4px; padding: 0 8px; }
.externe { font-size: .85rem; color: var(--doux); text-decoration: none; padding: 4px; }
.externe:hover { color: var(--texte); }
.menu-pied .lien { text-align: left; }

.principal-zone { min-width: 0; }
.barre { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 28px; background: rgba(6, 10, 20, .85); backdrop-filter: blur(14px); border-bottom: 1px solid var(--bord); }
.barre-droite { display: flex; gap: 8px; align-items: center; }
.filtres { display: flex; gap: 3px; padding: 3px; border-radius: 12px; background: var(--surface); border: 1px solid var(--bord); }
.filtres button { border: 0; background: none; color: var(--doux); padding: 6px 12px; border-radius: 9px; font-size: .83rem; font-weight: 600; }
.filtres button[aria-pressed="true"] { background: var(--surface-3); color: var(--texte); }
.filtres.petit button { padding: 4px 10px; font-size: .78rem; }
.contenu { padding: 22px 28px 48px; max-width: 1400px; }
section[data-vue] { animation: apparait .35s ease; }
@keyframes apparait { from { opacity: 0; transform: translateY(6px); } }

/* ---------- Tuiles ---------- */
.tuiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 14px; }
.tuile { position: relative; background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 16px 16px 12px; overflow: hidden; }
.tuile .l { color: var(--doux); font-size: .8rem; font-weight: 550; }
.tuile .v { font-size: 1.85rem; font-weight: 750; letter-spacing: -.03em; margin-top: 2px; font-variant-numeric: tabular-nums; }
.tuile .s { color: var(--doux); font-size: .76rem; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.evol { font-weight: 700; padding: 1px 6px; border-radius: 6px; font-size: .74rem; }
.evol.hausse { color: #86efac; background: rgba(34, 197, 94, .12); }
.evol.baisse { color: #fca5a5; background: rgba(230, 103, 103, .12); }
.evol.stable { color: var(--doux); background: var(--surface-2); }
.tuile .mini-courbe { display: block; width: 100%; height: 34px; margin-top: 8px; }

/* ---------- Cartes ---------- */
.grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 12px; }
.carte { background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 18px; min-width: 0; }
.carte.large { grid-column: 1 / -1; }
.carte > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.voir { font-size: .82rem; color: var(--accent-2); text-decoration: none; }
.graphe svg { display: block; width: 100%; height: 220px; overflow: visible; }
.graphe.court svg { height: 160px; }
.vide { color: var(--doux); font-size: .86rem; padding: 26px 0; text-align: center; margin: 0; }
.legende { display: flex; gap: 14px; font-size: .8rem; color: var(--texte-2); }
.legende span { display: inline-flex; align-items: center; gap: 6px; }
.legende i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.legende i.s1 { background: var(--serie-1); } .legende i.s2 { background: var(--serie-2); }
.espace { margin-top: 16px; }

/* Classements */
.barres { display: flex; flex-direction: column; gap: 8px; }
.rang { display: grid; grid-template-columns: minmax(90px, 38%) 1fr auto; align-items: center; gap: 10px; font-size: .85rem; }
.rang .nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--texte-2); }
.rang .piste { height: 10px; background: var(--grille); border-radius: 4px; overflow: hidden; }
.rang .piste i { display: block; height: 100%; width: 0; background: var(--serie-1); border-radius: 4px; transition: width .7s cubic-bezier(.2, .8, .2, 1); }
.rang .val { font-variant-numeric: tabular-nums; color: var(--texte); min-width: 44px; text-align: right; }
.rang .val small { color: var(--doux); margin-left: 4px; }

/* Entonnoir */
.entonnoir { display: flex; flex-direction: column; gap: 10px; }
.marche { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: .85rem; }
.marche .piste { grid-column: 1 / -1; height: 26px; background: var(--grille); border-radius: 6px; overflow: hidden; }
.marche .piste i { display: block; height: 100%; width: 0; background: var(--serie-1); border-radius: 6px; transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.marche b { font-variant-numeric: tabular-nums; }

/* Carte du monde */
.carte-svg svg { display: block; width: 100%; height: auto; max-height: 520px; }
.carte-svg path { stroke: var(--fond); stroke-width: .4; transition: opacity .15s; }
.carte-svg path:hover { opacity: .75; stroke: var(--texte); stroke-width: .8; }
.c0 { fill: var(--seq-0); } .c1 { fill: var(--seq-1); } .c2 { fill: var(--seq-2); } .c3 { fill: var(--seq-3); } .c4 { fill: var(--seq-4); } .c5 { fill: var(--seq-5); }
.legende-seq { display: flex; align-items: center; gap: 4px; font-size: .76rem; color: var(--doux); margin-top: 10px; flex-wrap: wrap; }
.legende-seq i { width: 28px; height: 10px; border-radius: 3px; display: inline-block; }
.legende-seq i.c0 { background: var(--seq-0); } .legende-seq i.c1 { background: var(--seq-1); } .legende-seq i.c2 { background: var(--seq-2); } .legende-seq i.c3 { background: var(--seq-3); } .legende-seq i.c4 { background: var(--seq-4); } .legende-seq i.c5 { background: var(--seq-5); }
.attribution { font-size: .7rem; color: var(--doux); margin: 6px 0 0; text-align: right; }

/* Temps réel */
.en-direct { position: relative; display: flex; flex-direction: column; justify-content: center; }
.en-direct .v { font-size: 3.4rem; font-weight: 800; letter-spacing: -.04em; line-height: 1.1; }
.point-vif { position: absolute; top: 18px; right: 18px; width: 10px; height: 10px; border-radius: 50%; background: var(--vert); box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: pouls 1.8s infinite; }
@keyframes pouls { to { box-shadow: 0 0 0 12px rgba(34, 197, 94, 0); } }
.flux { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.flux li { display: grid; grid-template-columns: 70px 28px 1fr auto; gap: 10px; align-items: center; padding: 8px 4px; border-bottom: 1px solid var(--grille); font-size: .86rem; animation: apparait .4s ease; }
.flux time { color: var(--doux); font-variant-numeric: tabular-nums; }
.flux code { color: var(--doux); font-size: .76rem; }

/* Tableaux */
.defile { overflow-x: auto; max-height: 560px; overflow-y: auto; }
table { width: 100%; border-collapse: collapse; font-size: .85rem; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--grille); white-space: nowrap; }
th { color: var(--doux); font-weight: 600; position: sticky; top: 0; background: var(--surface); z-index: 1; }
tbody tr:hover { background: rgba(255, 255, 255, .025); }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; }
td code { font-size: .78rem; color: var(--texte-2); }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: 1px 8px; border-radius: 99px; }
.badge.ok { background: rgba(34, 197, 94, .14); color: #86efac; }
.badge.non { background: rgba(230, 103, 103, .14); color: #fca5a5; }
.badge.neutre { background: var(--surface-2); color: var(--doux); }
.actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
input[type="search"] { background: var(--fond); border: 1px solid var(--axe); border-radius: 10px; padding: 7px 12px; font-size: .85rem; min-width: 220px; }

/* Formulaires */
.formulaire { display: flex; flex-direction: column; gap: 12px; }
.formulaire label { display: flex; flex-direction: column; gap: 6px; font-size: .84rem; color: var(--texte-2); }
.formulaire input, .formulaire textarea, .formulaire select { background: var(--fond); border: 1px solid var(--axe); border-radius: 10px; padding: 9px 12px; font-size: .9rem; resize: vertical; }
.formulaire input:focus, .formulaire textarea:focus, .formulaire select:focus { border-color: var(--accent-2); outline: none; }
.formulaire .btn { align-self: flex-start; }
.pile { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; margin-top: 12px; }
.telephone { margin: 0 auto; width: 240px; border-radius: 30px; border: 8px solid #1d283f; background: linear-gradient(180deg, #0b1220, #060a14); padding: 40px 14px 80px; }
.annonce-apercu { background: linear-gradient(135deg, rgba(34, 197, 94, .18), rgba(57, 135, 229, .18)); border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px; padding: 12px; font-size: .84rem; }
.annonce-apercu p { margin: 4px 0 0; color: var(--texte-2); white-space: pre-wrap; word-break: break-word; }
.coches { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 8px 18px; font-size: .86rem; color: var(--texte-2); }
.coches li::before { content: "✓"; color: var(--vert); font-weight: 800; margin-right: 8px; }

/* Infobulle & notification */
.infobulle { position: fixed; z-index: 30; pointer-events: none; background: var(--surface-3); border: 1px solid var(--bord); border-radius: 10px; padding: 8px 10px; font-size: .8rem; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); max-width: 260px; }
.infobulle b { display: block; margin-bottom: 2px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 40; background: var(--surface-3); border: 1px solid var(--bord); border-radius: 12px; padding: 10px 16px; font-size: .88rem; box-shadow: 0 14px 40px rgba(0, 0, 0, .5); animation: apparait .25s ease; }

/* Squelette de chargement */
.charge { background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: brille 1.2s infinite; border-radius: 8px; min-height: 120px; }
@keyframes brille { to { background-position: -200% 0; } }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .menu { position: fixed; z-index: 10; bottom: 0; top: auto; left: 0; right: 0; height: auto; flex-direction: row; padding: 6px; border-right: 0; border-top: 1px solid var(--bord); background: rgba(8, 13, 26, .96); backdrop-filter: blur(12px); }
  .marque, .menu-pied { display: none; }
  nav { flex-direction: row; overflow-x: auto; gap: 2px; scrollbar-width: none; }
  nav a { flex-direction: column; gap: 2px; font-size: .66rem; padding: 6px 4px; min-width: 62px; flex: 1 0 62px; text-align: center; white-space: nowrap; }
  nav a .long { display: none; }
  nav a::after { content: attr(data-court); }
  nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }
  .pastille { display: none; }
  .barre { padding: 12px 16px; flex-wrap: wrap; }
  .contenu { padding: 14px 16px 96px; }
  .grille { grid-template-columns: 1fr; }
  .tuiles { grid-template-columns: repeat(2, 1fr); }
  .tuile .v { font-size: 1.45rem; }
  input[type="search"] { min-width: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Équipe d'agents ---------- */
.etat-agents { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.etat-gauche { display: flex; align-items: center; gap: 14px; }
.etat-gauche b { font-size: 1.15rem; }
.voyant { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.voyant.marche { background: var(--vert); box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: pouls 1.8s infinite; }
.voyant.arret { background: var(--rouge); }
.pub-agent { border-bottom: 1px solid var(--grille); padding: 14px 0; display: flex; flex-direction: column; gap: 8px; }
.pub-agent:last-child { border-bottom: 0; }
.pub-tete { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .86rem; }
.pub-texte { margin: 0; white-space: pre-wrap; font-size: .9rem; color: var(--texte-2); }
.pub-agent textarea { width: 100%; background: var(--fond); border: 1px solid var(--axe); border-radius: 10px; padding: 10px 12px; font-size: .9rem; line-height: 1.5; resize: vertical; }
.pub-agent textarea:focus { border-color: var(--accent-2); outline: none; }
.doux.petit { font-size: .78rem; }
.equipe { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.membre { display: flex; flex-direction: column; gap: 4px; background: var(--surface-2); border: 1px solid var(--bord); border-radius: 14px; padding: 14px; }
.membre .em { font-size: 1.6rem; }
.membre b { font-size: .92rem; }
.membre .doux { font-size: .78rem; }

/* ---------- Mon entreprise IA ---------- */
.avatar-emp { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--c); color: #04120a; font-weight: 800; font-size: .85rem; flex: none; box-shadow: 0 0 0 2px var(--surface); }
.avatar-emp.t22 { width: 22px; height: 22px; font-size: .55rem; } .avatar-emp.t24 { width: 24px; height: 24px; font-size: .58rem; }
.avatar-emp.t26 { width: 26px; height: 26px; font-size: .6rem; } .avatar-emp.t28 { width: 28px; height: 28px; font-size: .62rem; }.emp-ines { --c: #3987e5; }
.emp-aicha { --c: #ec4899; }
.emp-moussa { --c: #84cc16; }
.emp-claire { --c: #14b8a6; }
.emp-youssef { --c: #06b6d4; }
.emp-amadou { --c: #22c55e; }
.emp-fatou { --c: #f59e0b; }
.emp-karim { --c: #ef4444; }
.emp-sophie { --c: #a855f7; }
.emp-ibrahim { --c: #64748b; }
.emp-autre { --c: #475569; }
.equipe-mini { display: inline-flex; margin-left: auto; } .equipe-mini .avatar-emp { margin-left: -6px; }
.mission, .doc-ligne { cursor: pointer; } .mission:hover, .doc-ligne:hover { background: rgba(255,255,255,.03); }
.doc-ligne { padding: 8px 4px; border-bottom: 1px solid var(--grille); display: flex; align-items: center; gap: 8px; font-size: .88rem; }
.case { flex-direction: row !important; align-items: center; gap: 8px !important; }
.feuille-fond { position: fixed; inset: 0; z-index: 50; background: rgba(2,5,12,.7); backdrop-filter: blur(4px); display: flex; justify-content: flex-end; }
.feuille-admin { width: min(820px, 100%); height: 100%; overflow-y: auto; background: var(--surface); border-left: 1px solid var(--bord); padding: 24px 28px 60px; animation: apparait .25s ease; }
.feuille-admin h2 { font-size: 1.25rem; color: var(--texte); margin: 8px 0 4px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.feuille-admin h3 { margin: 22px 0 8px; font-size: .95rem; color: var(--texte-2); }
.fermer { float: right; }
.carte-resultat { background: rgba(34,197,94,.08); border: 1px solid rgba(34,197,94,.25); border-radius: 12px; padding: 12px 14px; margin: 12px 0; }
.fil { display: flex; flex-direction: column; gap: 4px; }
.fil-l { display: flex; gap: 10px; padding: 10px 6px; border-bottom: 1px solid var(--grille); font-size: .86rem; }
.fil-l p { margin: 4px 0 0; color: var(--texte-2); white-space: pre-wrap; word-break: break-word; }
.fil-l.resultat p, .fil-l.document p { color: var(--doux); font-size: .8rem; max-height: 220px; overflow: auto; }
.fil-l.question { background: rgba(230,103,103,.08); border-radius: 10px; } .fil-l.reponse { background: rgba(57,135,229,.08); border-radius: 10px; }
.fil-ic { width: 26px; text-align: center; flex: none; }
.document-md { line-height: 1.65; font-size: .95rem; color: var(--texte-2); }
.document-md h2, .document-md h3, .document-md h4 { color: var(--texte); margin: 20px 0 8px; }
.document-md table.md { margin: 10px 0; } .document-md td { white-space: normal; border: 1px solid var(--grille); }
.document-md a { color: var(--accent-2); }

/* ---------- Bureau (sans menu latéral) ---------- */
:root { --accent: #3987e5; --accent-2: #a855f7; }
.contenu.bureau { margin: 0 auto; }
.barre .marque { padding: 0; }
.btn.principal { background: linear-gradient(135deg, #3987e5, #a855f7); color: #fff; }
.equipe .membre { cursor: default; }
@media (max-width: 900px) { .contenu.bureau { padding-bottom: 40px; } }
.non-lu { color: var(--texte); } .lettre { background: rgba(255,255,255,.03); border: 1px solid var(--bord); border-radius: 14px; padding: 18px 22px; }
.champ-cle { flex: 1; min-width: 200px; background: var(--fond); border: 1px solid var(--axe); border-radius: 10px; padding: 8px 12px; } .cle-nouvelle { background: rgba(251,191,36,.08); border: 1px solid rgba(251,191,36,.35); border-radius: 12px; padding: 12px; margin: 10px 0; } .cle-texte { word-break: break-all; user-select: all; } .doc-api pre { background: var(--surface); border: 1px solid var(--bord); border-radius: 12px; padding: 12px; overflow-x: auto; } .doc-api h2 { margin-top: 26px; color: var(--texte); font-size: 1.1rem; } .doc-api h3 { margin: 16px 0 4px; font-family: ui-monospace, monospace; color: var(--accent); }

/* Clients et contrats */
.badge.client { background: rgba(57, 135, 229, .16); color: #93c5fd; }
.deux-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.nouveau-client { margin-top: 12px; }
.nouveau-client > summary { list-style: none; cursor: pointer; display: inline-block; margin-bottom: 12px; }
.nouveau-client > summary::-webkit-details-marker { display: none; }
.choix-employes { border: 1px solid var(--axe); border-radius: 10px; padding: 10px 12px; }
.choix-employes legend { font-size: .84rem; color: var(--texte-2); padding: 0 6px; }
.choix-employes > div { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px; }
.formulaire .choix-employes label { flex-direction: row; align-items: center; gap: 8px; }

/* Éducation de notre IA */
.edu-haut { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 12px; }
.edu-haut select { background: var(--fond); border: 1px solid var(--axe); border-radius: 10px; padding: 8px 10px; color: var(--texte); }
.edu-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.edu-grille h3 { margin: 0 0 8px; font-size: .95rem; }
.edu-grille form { margin-bottom: 10px; }
.edu-grille tr.mission { cursor: pointer; }
.carte-note { margin-top: 20px; padding: 14px; border: 1px solid var(--axe); border-radius: 12px; background: var(--surface-2); }
