/* LAAFI — habillage. Principes Tabler : cartes à bordure fine, badges doux, icônes au trait, clair et sombre. */
:root {
  --p: #0b7a5f; --p-f: #086350; --p-c: #e3f5ee; --p-t: #0b7a5f;
  --fond: #f4f6f4; --carte: #fff; --bord: #e3e6e3; --bord-f: #cfd4cf; --txt: #1b211e; --txt2: #66706b; --txt3: #98a19c; --survol: #f1f4f1;
  --rouge: #d63939; --rouge-c: #fbebeb; --orange: #e8590c; --orange-c: #fdefe4; --vert: #2f9e44; --vert-c: #e6f5e9; --bleu: #066fd1; --bleu-c: #e6f1fb; --violet: #7048c9; --violet-c: #efeafa; --gris-c: #eef0ee;
  --ombre: 0 1px 2px rgba(20, 30, 25, .05); --ombre-g: 0 18px 50px rgba(15, 30, 25, .18);
  --r: 10px; --r2: 7px; --nav: 244px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 14.5px; line-height: 1.45; color: var(--txt);
}
:root[data-theme=sombre] {
  --p: #2fc49a; --p-f: #49d3ab; --p-c: #12382e; --p-t: #5fdcb7;
  --fond: #111614; --carte: #1a211e; --bord: #2a332f; --bord-f: #3a4540; --txt: #e8ecea; --txt2: #a2ada8; --txt3: #6f7a75; --survol: #212a26;
  --rouge: #f06565; --rouge-c: #3a1c1c; --orange: #ff8f4d; --orange-c: #3a2415; --vert: #51cf66; --vert-c: #173021; --bleu: #5aa9f0; --bleu-c: #152a40; --violet: #a488ee; --violet-c: #272040; --gris-c: #252d29;
  --ombre: none; --ombre-g: 0 18px 50px rgba(0, 0, 0, .5);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--fond); }
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: 23px; font-weight: 700; letter-spacing: -.015em; }
h2 { font-size: 15px; font-weight: 650; }
a { color: var(--p-t); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.ti { width: 1.15em; height: 1.15em; display: inline-block; vertical-align: -.2em; flex: none; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .92em; letter-spacing: -.01em; }
.aide { color: var(--txt2); font-size: 13px; } .aide .ti { margin-right: 5px; }
.centre { text-align: center; } .pad { padding: 14px 18px; } .espace { flex: 1; }
.pile { display: flex; flex-direction: column; gap: 14px; }
.ligne { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.grille { display: grid; gap: 12px 14px; } .g2 { grid-template-columns: 1fr 1fr; } .g3 { grid-template-columns: repeat(3, 1fr); } .col2 { grid-column: span 2; }
.texte { color: var(--txt2); line-height: 1.55; }

/* Animations */
@keyframes entre { from { opacity: 0; transform: translateY(10px); } }
@keyframes fondu { from { opacity: 0; } }
@keyframes secoue { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
@keyframes tourne { to { transform: rotate(360deg); } }
@keyframes pouls { 0%, 100% { transform: scale(1); opacity: .75; } 18% { transform: scale(1.22); opacity: 1; } 36% { transform: scale(.98); } 50% { transform: scale(1.12); } }
@keyframes trace { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes ecg { 0% { stroke-dashoffset: 1; opacity: 0; } 8% { opacity: .9; } 70% { stroke-dashoffset: 0; opacity: .9; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes pousse { from { width: 0; } }
@keyframes pop { 0% { transform: scale(.4); } 70% { transform: scale(1.25); } }
@keyframes monte { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes glisse { from { transform: translateX(100%); } }
@keyframes points { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }
.entre { animation: entre .35s cubic-bezier(.2, .7, .2, 1) both; }
.secoue { animation: secoue .4s; }
.tourne { animation: tourne 1s linear infinite; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; } }

/* Boutons, champs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px; border: 1px solid var(--bord-f); border-radius: var(--r2); background: var(--carte); font-weight: 550; white-space: nowrap; transition: background .15s, border-color .15s, transform .08s, box-shadow .15s; }
.btn:hover { background: var(--survol); } .btn:active { transform: scale(.97); } .btn:disabled { opacity: .55; pointer-events: none; }
.btn-p { background: var(--p); border-color: var(--p); color: #fff; } .btn-p:hover { background: var(--p-f); border-color: var(--p-f); box-shadow: 0 4px 14px color-mix(in srgb, var(--p) 30%, transparent); }
:root[data-theme=sombre] .btn-p { color: #06231b; }
.btn-d { background: var(--rouge); border-color: var(--rouge); color: #fff; }
.btn-g { border-color: transparent; background: transparent; color: var(--txt2); } .btn-g:hover { color: var(--txt); }
.btn-s { height: 30px; padding: 0 10px; font-size: 13px; } .btn-l { height: 44px; font-size: 15.5px; } .btn.large { width: 100%; }
.btn-icone { width: 36px; padding: 0; border-color: transparent; background: transparent; color: var(--txt2); } .btn-icone:hover { color: var(--txt); }
.btn-ia { border-color: color-mix(in srgb, var(--violet) 40%, var(--bord)); color: var(--violet); background: var(--violet-c); } .btn-ia:hover { background: color-mix(in srgb, var(--violet) 18%, var(--carte)); }
.champ { display: flex; flex-direction: column; gap: 5px; min-width: 0; } .champ > span { font-size: 12.5px; font-weight: 600; color: var(--txt2); } .champ small { font-weight: 400; } .champ i { color: var(--rouge); font-style: normal; }
input, select, textarea { width: 100%; min-height: 36px; padding: 7px 10px; border: 1px solid var(--bord-f); border-radius: var(--r2); background: var(--carte); outline: none; transition: border-color .15s, box-shadow .15s; }
textarea { resize: vertical; line-height: 1.5; } input[type=checkbox] { width: 17px; min-height: 17px; height: 17px; accent-color: var(--p); flex: none; }
input:focus, select:focus, textarea:focus { border-color: var(--p); box-shadow: 0 0 0 3px color-mix(in srgb, var(--p) 18%, transparent); }
:focus-visible { outline: 2px solid var(--p); outline-offset: 2px; } input:focus-visible, textarea:focus-visible, select:focus-visible { outline: none; }
input.mal { border-color: var(--rouge); color: var(--rouge); font-weight: 650; background: var(--rouge-c); }
.coche { display: flex; gap: 9px; align-items: flex-start; cursor: pointer; } .coche .ti { margin-right: 5px; color: var(--rouge); }
.err { color: var(--rouge); font-size: 13px; font-weight: 550; min-height: 18px; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; vertical-align: middle; }
.b-gris { background: var(--gris-c); color: var(--txt2); } .b-vert { background: var(--vert-c); color: var(--vert); } .b-rouge { background: var(--rouge-c); color: var(--rouge); } .b-orange { background: var(--orange-c); color: var(--orange); } .b-bleu { background: var(--bleu-c); color: var(--bleu); } .b-violet { background: var(--violet-c); color: var(--violet); }
.avatar { --t: 34px; width: var(--t); height: var(--t); border-radius: 50%; display: inline-grid; place-items: center; flex: none; font-size: calc(var(--t) * .38); font-weight: 700; color: var(--c); background: color-mix(in srgb, var(--c) 16%, var(--carte)); position: relative; letter-spacing: .02em; }
.av-xs { --t: 20px; margin-right: 5px; } .av-s { --t: 28px; } .av-l { --t: 56px; } .av-xl { --t: 72px; }
.avatar.en-ligne::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 28%; height: 28%; min-width: 8px; min-height: 8px; border-radius: 50%; background: var(--vert); border: 2px solid var(--carte); }
.logo { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: #fff; background: linear-gradient(140deg, #12a37f, #075a47); font-size: 21px; box-shadow: 0 4px 12px rgba(7, 90, 71, .35); flex: none; }

/* Entrée : installation, poste, profils, PIN */
.entree { min-height: 100vh; display: grid; grid-template-columns: minmax(380px, 1fr) minmax(480px, 1.15fr); }
.entree-g { position: relative; overflow: hidden; padding: 44px 48px; display: flex; flex-direction: column; justify-content: space-between; color: #eafaf4; background: radial-gradient(120% 90% at 0% 0%, #12956f 0%, #0a5f4b 45%, #063b30 100%); }
.entree-g .ecg { position: absolute; left: 0; right: 0; top: 20%; width: 100%; height: 150px; fill: none; stroke: #7ff0cd; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 10px rgba(127, 240, 205, .6)); }
.ecg path { stroke-dasharray: 1; animation: ecg 4.2s ease-in-out infinite; }
.entree-marque { display: flex; gap: 12px; align-items: center; position: relative; } .entree-marque .logo { background: rgba(255, 255, 255, .14); box-shadow: none; backdrop-filter: blur(4px); }
.entree-marque strong { display: block; font-size: 20px; letter-spacing: -.01em; } .entree-marque div span { font-size: 13px; opacity: .75; }
.entree-txt { position: relative; margin-top: 150px; } .entree-txt h1 { font-size: 36px; line-height: 1.1; margin-bottom: 12px; color: #fff; } .entree-txt p { max-width: 400px; opacity: .82; font-size: 15.5px; }
.entree-pts { display: flex; flex-direction: column; gap: 9px; font-size: 13.5px; opacity: .9; position: relative; } .entree-pts .ti { margin-right: 8px; color: #7ff0cd; }
.entree-d { display: grid; place-items: center; padding: 40px; } .entree-c { width: min(100%, 500px); } .entree-c h2 { font-size: 24px; letter-spacing: -.015em; }
.profils { display: grid; grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 12px; margin-top: 22px; }
.profil { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px 10px 16px; border: 1px solid var(--bord); border-radius: 14px; background: var(--carte); text-align: center; transition: transform .18s, box-shadow .18s, border-color .18s; animation: entre .4s both; animation-delay: calc(var(--i) * 50ms); }
.profil:hover { transform: translateY(-4px); border-color: var(--p); box-shadow: 0 12px 28px color-mix(in srgb, var(--p) 16%, transparent); } .profil strong { font-size: 14.5px; margin-top: 4px; } .profil span:last-child { font-size: 12.5px; color: var(--txt2); }
.pin { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; } .pin h2 { margin-top: 8px; font-size: 22px; }
.pin-pts { display: flex; gap: 14px; margin: 18px 0 2px; height: 16px; } .pin-pts i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--bord-f); transition: background .12s, border-color .12s; } .pin-pts i.plein { background: var(--p); border-color: var(--p); animation: pop .22s; }
.pin-pave { display: grid; grid-template-columns: repeat(3, 68px); gap: 12px; margin: 6px 0 12px; }
.pin-pave button { height: 68px; border-radius: 50%; border: 1px solid var(--bord); background: var(--carte); font-size: 23px; font-weight: 550; transition: transform .08s, background .12s, border-color .12s; display: grid; place-items: center; }
.pin-pave button:hover { border-color: var(--p); background: var(--p-c); } .pin-pave button:active { transform: scale(.9); background: var(--p); color: #fff; } .pin-pave .ok { background: var(--p); color: #fff; border-color: var(--p); }
.pin.attente, .attente .pin { opacity: .6; pointer-events: none; } .lien { margin-top: 4px; }
.verrou { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: color-mix(in srgb, var(--fond) 72%, transparent); backdrop-filter: blur(18px) saturate(1.2); animation: fondu .25s; } .verrou.sort { opacity: 0; transition: opacity .25s; }
.verrou-c { padding: 34px 44px; border-radius: 22px; background: var(--carte); border: 1px solid var(--bord); box-shadow: var(--ombre-g); }
body.floute #ecran { filter: blur(6px); pointer-events: none; user-select: none; }

/* Cadre */
.app { display: grid; grid-template-columns: var(--nav) 1fr; min-height: 100vh; }
.nav { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 16px 12px; background: var(--carte); border-right: 1px solid var(--bord); }
.nav-marque { display: flex; gap: 11px; align-items: center; padding: 4px 8px 18px; } .nav-marque strong { display: block; font-size: 17px; letter-spacing: -.01em; } .nav-marque div span { font-size: 12px; color: var(--txt2); display: block; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 8px; color: var(--txt2); font-weight: 550; position: relative; transition: background .15s, color .15s; } .nav a .ti { font-size: 18px; }
.nav a:hover { background: var(--survol); color: var(--txt); } .nav a.on { background: var(--p-c); color: var(--p-t); } .nav a.on::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--p); animation: fondu .3s; }
.nav-bas { border-top: 1px solid var(--bord); padding-top: 12px; } .moi { display: flex; gap: 10px; align-items: center; padding: 0 6px 8px; min-width: 0; } .moi strong { display: block; font-size: 13.5px; } .moi span:not(.avatar) { font-size: 12px; color: var(--txt2); }
.moi-actions { display: flex; justify-content: space-between; }
.corps { min-width: 0; display: flex; flex-direction: column; }
.haut { position: sticky; top: 0; z-index: 20; height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 28px; background: color-mix(in srgb, var(--fond) 86%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--bord); }
.recherche { display: flex; align-items: center; gap: 9px; width: min(440px, 46vw); height: 36px; padding: 0 12px; border: 1px solid var(--bord); border-radius: 9px; background: var(--carte); color: var(--txt3); transition: border-color .15s; } .recherche:hover { border-color: var(--p); } .recherche span { flex: 1; text-align: left; }
kbd { font: 600 11px system-ui; padding: 2px 6px; border-radius: 5px; border: 1px solid var(--bord-f); color: var(--txt2); background: var(--fond); }
.haut-d { display: flex; align-items: center; gap: 16px; } .presence { display: flex; align-items: center; } .presence .avatar { margin-left: -6px; border: 2px solid var(--fond); animation: pop .3s; } .presence-t { font-size: 12.5px; color: var(--txt2); margin-right: 14px; }
.sync { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 5px 10px; border-radius: 999px; transition: background .3s, color .3s; } .sync.ok { color: var(--vert); background: var(--vert-c); } .sync.envoi { color: var(--bleu); background: var(--bleu-c); } .sync.coupe { color: var(--orange); background: var(--orange-c); }
.vue { flex: 1; } .page { padding: 26px 28px 60px; max-width: 1380px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; } .page.etroite { max-width: 820px; }
.titre-page { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; } .titre-page p { color: var(--txt2); margin-top: 3px; max-width: 760px; } .titre-page p::first-letter { text-transform: uppercase; }
.chargement { display: grid; place-items: center; gap: 10px; padding: 90px 0; color: var(--txt2); text-align: center; } .chargement.plein { min-height: 100vh; } .chargement.petit { padding: 34px 0; }
.pouls { font-size: 38px; color: var(--p); display: inline-block; animation: pouls 1.3s ease-in-out infinite; } .petit .pouls { font-size: 26px; }

/* Cartes, listes, tableaux */
.carte { background: var(--carte); border: 1px solid var(--bord); border-radius: var(--r); box-shadow: var(--ombre); min-width: 0; animation: entre .4s both; }
.carte-t { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--bord); min-height: 52px; } .carte-t h2 .ti { margin-right: 8px; color: var(--p); } .compte { font-size: 12.5px; color: var(--txt2); }
.deux-col { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 18px; align-items: start; } .deux-col.egal { grid-template-columns: 1fr 1fr; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--r); background: var(--carte); border: 1px solid var(--bord); color: inherit; box-shadow: var(--ombre); transition: transform .18s, box-shadow .18s; animation: entre .45s both; }
.stat:nth-child(2) { animation-delay: 60ms; } .stat:nth-child(3) { animation-delay: 120ms; } .stat:nth-child(4) { animation-delay: 180ms; } a.stat:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(15, 30, 25, .09); }
.stat-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: var(--cc); color: var(--cf); } .stat strong { display: block; font-size: 27px; line-height: 1.05; font-weight: 700; font-variant-numeric: tabular-nums; } .stat div span { font-size: 13px; color: var(--txt2); }
.c-vert { --cf: var(--vert); --cc: var(--vert-c); } .c-bleu { --cf: var(--bleu); --cc: var(--bleu-c); } .c-orange { --cf: var(--orange); --cc: var(--orange-c); } .c-violet { --cf: var(--violet); --cc: var(--violet-c); } .c-rouge { --cf: var(--rouge); --cc: var(--rouge-c); }
.vide { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 40px 24px; } .vide-ic { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; font-size: 27px; color: var(--p); background: var(--p-c); margin-bottom: 4px; } .vide h3 { font-size: 16px; } .vide p { color: var(--txt2); max-width: 420px; margin-bottom: 8px; }
.file-l { display: flex; align-items: center; gap: 12px; padding: 11px 18px; border-bottom: 1px solid var(--bord); animation: entre .3s both; transition: background .15s; } .file-l:last-child { border: 0; } .file-l:hover { background: var(--survol); }
.file-l.urgent { box-shadow: inset 3px 0 var(--rouge); } .file-l.termine { opacity: .55; } .file-i { flex: 1; min-width: 0; } .file-i strong { display: block; } .file-i span { font-size: 13px; color: var(--txt2); } .file-a { display: flex; gap: 6px; }
.attente-t { font-size: 13px; color: var(--orange); font-weight: 600; font-variant-numeric: tabular-nums; } .attente-t .ti { margin-right: 3px; }
.liste li + li { border-top: 1px solid var(--bord); } .liste button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 18px; border: 0; background: none; text-align: left; transition: background .15s; } .liste button:hover { background: var(--survol); }
.liste button > div { flex: 1; min-width: 0; } .liste button > div > strong { display: block; } .liste button > div > span { font-size: 13px; color: var(--txt2); display: block; } .liste button > .ti { color: var(--txt3); } .liste.bord { border: 1px solid var(--bord); border-radius: var(--r2); }
.simple li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; } .simple li + li { border-top: 1px dashed var(--bord); } .simple small { color: var(--txt2); white-space: nowrap; }
.fiche { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; } .fiche dt { color: var(--txt2); font-size: 13px; } .fiche dd { margin: 0; white-space: pre-wrap; }
.barre { display: flex; gap: 12px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--bord); flex-wrap: wrap; } .barre select { width: auto; } .date-f { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--txt2); } .date-f input { width: 150px; }
.filtre { position: relative; flex: 1; min-width: 220px; } .filtre.etroit { flex: 0 1 260px; } .filtre .ti { position: absolute; left: 11px; top: 10px; color: var(--txt3); } .filtre input { padding-left: 34px; }
.table { width: 100%; border-collapse: collapse; } .table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--txt2); font-weight: 650; padding: 9px 18px; border-bottom: 1px solid var(--bord); background: color-mix(in srgb, var(--fond) 55%, var(--carte)); white-space: nowrap; }
.table td { padding: 10px 18px; border-bottom: 1px solid var(--bord); vertical-align: middle; } .table tr:last-child td { border-bottom: 0; } .table.cliquable tbody tr { cursor: pointer; transition: background .12s; } .table.cliquable tbody tr:hover { background: var(--survol); }
.table .fin { text-align: right; color: var(--txt3); white-space: nowrap; } tr.inactif, .inactif { opacity: .55; } .res { font-size: 13px; max-width: 380px; } .res-mal, .res-mal strong { color: var(--rouge); } tr.ligne-mal td:first-child { box-shadow: inset 3px 0 var(--rouge); } .res-t input { max-width: 150px; }
.segs { display: inline-flex; padding: 3px; gap: 2px; border-radius: 9px; background: var(--gris-c); } .segs button { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 0; border-radius: 7px; background: none; color: var(--txt2); font-weight: 600; font-size: 13px; transition: background .15s, color .15s; }
.segs button.on { background: var(--carte); color: var(--txt); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); } .segs i { font-style: normal; font-size: 11px; padding: 1px 6px; border-radius: 99px; background: var(--p); color: #fff; }

/* Dossier patient */
.bandeau { display: flex; gap: 18px; align-items: center; padding: 20px 22px; border-radius: 14px; background: linear-gradient(120deg, var(--carte), color-mix(in srgb, var(--p-c) 60%, var(--carte))); border: 1px solid var(--bord); animation: entre .4s both; flex-wrap: wrap; }
.bandeau-i { flex: 1 1 460px; min-width: 0; } .bandeau-i p { color: var(--txt2); margin: 3px 0 8px; } .bandeau-i p .ti { margin: 0 3px 0 1px; } .bandeau-a { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; }
.puces { gap: 6px; } .alerte-al { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--rouge); color: #fff; font-size: 12.5px; font-weight: 650; } .aussi { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--txt2); animation: entre .3s; }
.onglets { display: flex; gap: 4px; border-bottom: 1px solid var(--bord); } .onglets a { display: flex; align-items: center; gap: 7px; padding: 10px 14px; color: var(--txt2); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .15s, border-color .15s; } .onglets a:hover { color: var(--txt); } .onglets a.on { color: var(--p-t); border-color: var(--p); }
.onglets i { font-style: normal; font-size: 11.5px; padding: 0 6px; border-radius: 99px; background: var(--gris-c); color: var(--txt2); } .onglets i:empty { display: none; }
.frise { padding: 18px 18px 6px; } .frise li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; position: relative; padding-bottom: 14px; animation: entre .35s both; animation-delay: calc(var(--i) * 35ms); } .frise li::before { content: ""; position: absolute; left: 16px; top: 34px; bottom: 0; width: 2px; background: var(--bord); } .frise li:last-child::before { display: none; }
.frise-ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--cc); color: var(--cf); z-index: 1; } .frise-c { display: block; width: 100%; text-align: left; border: 1px solid var(--bord); border-radius: var(--r2); background: var(--carte); padding: 9px 13px; transition: border-color .15s, transform .15s, box-shadow .15s; } button.frise-c:hover { border-color: var(--p); transform: translateX(3px); box-shadow: var(--ombre); }
.frise-t { display: flex; justify-content: space-between; gap: 10px; } .frise time { font-size: 12.5px; color: var(--txt2); white-space: nowrap; } .frise p { color: var(--txt2); font-size: 13.5px; margin: 2px 0; } .frise small { color: var(--txt3); font-size: 12px; }
.mesures { display: flex; flex-wrap: wrap; gap: 8px; } .mesure { display: inline-flex; flex-direction: column; padding: 6px 11px; border-radius: 8px; background: var(--gris-c); font-size: 12px; color: var(--txt2); line-height: 1.25; } .mesure small { font-size: 11px; } .mesure strong { font-size: 15.5px; color: var(--txt); font-variant-numeric: tabular-nums; } .mesure.mal { background: var(--rouge-c); } .mesure.mal strong { color: var(--rouge); } .frise .mesure { padding: 3px 8px; }
.tendance { display: grid; grid-template-columns: 110px 1fr 50px; align-items: center; gap: 10px; padding: 6px 18px; border-top: 1px dashed var(--bord); font-size: 13px; color: var(--txt2); } .tendance strong { text-align: right; color: var(--txt); font-variant-numeric: tabular-nums; }
.courbe { width: 100%; height: auto; display: block; overflow: visible; } .courbe .trait { fill: none; stroke: var(--c); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; animation: trace 1s ease-out both; vector-effect: non-scaling-stroke; } .courbe .aire { fill: var(--c); opacity: .1; animation: fondu 1.2s both; } .courbe circle { fill: var(--carte); stroke: var(--c); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.tendance .courbe { height: 40px; } .grande-courbe .courbe { height: 140px; } .axe { display: flex; justify-content: space-between; font-size: 12px; color: var(--txt3); margin-top: 4px; }
.cartes-l li + li { border-top: 1px solid var(--bord); } .cartes-l button { width: 100%; display: flex; align-items: center; gap: 14px; padding: 12px 18px; border: 0; background: none; text-align: left; transition: background .15s; } .cartes-l button:hover { background: var(--survol); } .cartes-l button > .ti { color: var(--txt3); }
.date-b { width: 50px; text-align: center; padding: 5px 0; border-radius: 9px; background: var(--p-c); color: var(--p-t); flex: none; } .date-b strong { display: block; font-size: 18px; line-height: 1; } .date-b span { font-size: 11px; } .cl-i { flex: 1; min-width: 0; } .cl-i p { color: var(--txt2); font-size: 13.5px; } .cl-i small { color: var(--txt3); display: flex; align-items: center; margin-top: 2px; }
.const-g { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; } .const { padding: 9px 11px; border-radius: 9px; border: 1px solid var(--bord); background: color-mix(in srgb, var(--fond) 50%, var(--carte)); transition: border-color .2s, background .2s; } .const > span { font-size: 12px; color: var(--txt2); font-weight: 600; } .const > div { display: flex; align-items: baseline; gap: 5px; } .const input, .const output { border: 0; background: none; padding: 2px 0; min-height: 0; font-size: 20px; font-weight: 650; width: 100%; box-shadow: none !important; font-variant-numeric: tabular-nums; } .const small { color: var(--txt3); white-space: nowrap; }
.const.mal { border-color: var(--rouge); background: var(--rouge-c); } .const.mal input { color: var(--rouge); } .const:focus-within { border-color: var(--p); }

/* Consultation */
.consult-t { position: sticky; top: 58px; z-index: 15; display: flex; align-items: center; gap: 12px; padding: 10px 28px; background: var(--carte); border-bottom: 1px solid var(--bord); flex-wrap: wrap; } .consult-p strong { display: block; font-size: 15.5px; } .consult-p span { font-size: 12.5px; color: var(--txt2); } .c-etat { font-size: 12.5px; color: var(--txt2); display: flex; gap: 6px; align-items: center; }
.consult-c { display: grid; grid-template-columns: 210px minmax(0, 880px); gap: 26px; padding: 22px 28px 80px; justify-content: center; } .sommaire { position: sticky; top: 132px; align-self: start; display: flex; flex-direction: column; gap: 2px; }
.sommaire a { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 8px; color: var(--txt2); font-weight: 550; font-size: 13.5px; transition: background .15s; } .sommaire a:hover { background: var(--carte); color: var(--txt); } .sommaire a span { flex: 1; } .sommaire i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--bord-f); transition: all .3s; } .sommaire a.fait i { background: var(--vert); border-color: var(--vert); box-shadow: 0 0 0 3px var(--vert-c); }
.rappel { margin-top: 14px; padding: 10px 12px; border-radius: 9px; background: var(--orange-c); font-size: 12.5px; } .rappel strong { color: var(--orange); }
.consult-s { display: flex; flex-direction: column; gap: 16px; } .sec { scroll-margin-top: 140px; }
.rapides { display: flex; flex-wrap: wrap; gap: 6px; } .rapides button { padding: 4px 11px; border-radius: 999px; border: 1px solid var(--bord); background: var(--carte); font-size: 12.5px; color: var(--txt2); transition: all .15s; } .rapides button:hover { border-color: var(--p); color: var(--p-t); background: var(--p-c); }
.epi-l { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 7px 0; border-bottom: 1px dashed var(--bord); } .seg { display: inline-flex; border: 1px solid var(--bord-f); border-radius: 8px; overflow: hidden; flex: none; flex-wrap: wrap; } .seg button { height: 30px; padding: 0 13px; border: 0; background: var(--carte); font-size: 13px; font-weight: 600; color: var(--txt2); transition: background .15s, color .15s; } .seg button + button { border-left: 1px solid var(--bord-f); } .seg button.on { background: var(--p); color: #fff; }
.appareil { display: grid; grid-template-columns: 180px 1fr; gap: 10px; align-items: start; } .appareil-t { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 13.5px; padding-top: 3px; } .appareil textarea { min-height: 36px; resize: none; overflow: hidden; }
.diag-z { display: flex; flex-direction: column; gap: 8px; } .sugg { display: flex; flex-direction: column; border: 1px solid var(--bord); border-radius: var(--r2); overflow: hidden; } .sugg:empty { display: none; } .sugg button { display: flex; gap: 10px; align-items: center; padding: 8px 12px; border: 0; background: var(--carte); text-align: left; } .sugg button:hover, .sugg button:first-child { background: var(--p-c); } .sugg .mono { color: var(--txt2); min-width: 48px; }
.puce-d { display: inline-flex; align-items: center; gap: 7px; padding: 5px 6px 5px 11px; border-radius: 999px; background: var(--gris-c); font-weight: 600; animation: pop .25s; } .puce-d.principal { background: var(--p-c); color: var(--p-t); } .puce-d small { font-weight: 500; opacity: .7; } .puce-d button { width: 20px; height: 20px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .08); display: grid; place-items: center; font-size: 11px; }
.ordo-l { display: grid; grid-template-columns: 2.1fr .7fr 2fr 1.1fr 36px; gap: 8px; animation: entre .25s both; } .ordo-e { font-size: 12px; font-weight: 600; color: var(--txt2); animation: none; }
.alerte { display: flex; gap: 10px; padding: 11px 14px; border-radius: 9px; background: var(--orange-c); color: var(--txt); font-size: 13.5px; animation: entre .3s; } .alerte > .ti { color: var(--orange); font-size: 19px; margin-top: 1px; } .alerte.rouge { background: var(--rouge-c); } .alerte.rouge > .ti, .alerte.rouge strong { color: var(--rouge); } span.alerte { margin-bottom: 10px; }
.consult-fin { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 2px; }
.choix { display: flex; flex-wrap: wrap; gap: 7px; margin: 8px 0 14px; } #pe-l h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--txt2); margin-top: 12px; } .choix-b { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 8px; border: 1px solid var(--bord); background: var(--carte); font-size: 13.5px; transition: all .12s; } .choix-b:hover { border-color: var(--p); } .choix-b.on { background: var(--p-c); border-color: var(--p); color: var(--p-t); font-weight: 600; }
.etapes { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 18px; } .etapes li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 12.5px; color: var(--txt3); } .etapes li::before { content: ""; position: absolute; top: 14px; right: 50%; width: 100%; height: 2px; background: var(--bord); } .etapes li:first-child::before { display: none; }
.etapes li > span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--carte); border: 2px solid var(--bord); font-weight: 700; z-index: 1; } .etapes strong { display: block; } .etapes small { display: block; font-size: 11.5px; } .etapes .fait, .etapes .encours { color: var(--txt); } .etapes .fait > span, .etapes .encours > span { background: var(--p); border-color: var(--p); color: #fff; } .etapes .fait::before, .etapes .encours::before { background: var(--p); } .etapes .encours > span { box-shadow: 0 0 0 5px var(--p-c); }
.bloc { margin-bottom: 14px; } .bloc h4, .cr h4 { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--txt2); margin-bottom: 4px; } .bloc ul { list-style: disc; padding-left: 20px; } .bloc li { margin: 2px 0; } .addendum { padding: 10px 14px; border-left: 3px solid var(--violet); background: var(--violet-c); border-radius: 0 8px 8px 0; }
.rp { list-style: decimal; padding-left: 22px; margin-bottom: 12px; } .rp li { margin-bottom: 9px; } .signature { margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--bord); color: var(--violet); font-weight: 600; font-size: 13px; } .signature .ti { margin-right: 6px; }

/* Fenêtres, tiroir, messages */
.fond { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; background: rgba(12, 22, 18, .42); backdrop-filter: blur(3px); animation: fondu .2s; } .fond.sort { opacity: 0; transition: opacity .2s; }
.modal { width: min(100%, 520px); max-height: calc(100vh - 48px); display: flex; flex-direction: column; background: var(--carte); border-radius: 14px; box-shadow: var(--ombre-g); animation: monte .28s cubic-bezier(.2, .8, .2, 1); } .modal.large { width: min(100%, 860px); }
.modal-t { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 16px 20px 12px; border-bottom: 1px solid var(--bord); } .modal-t h2 { font-size: 17px; } .modal-t p { font-size: 13px; color: var(--txt2); margin-top: 2px; }
.modal-c { padding: 18px 20px; overflow: auto; } .modal-p { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--bord); flex-wrap: wrap; }
.sections h3 { display: flex; align-items: center; gap: 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--p-t); margin: 18px 0 10px; } .sections h3:first-child { margin-top: 0; }
.fond-tiroir { place-items: stretch end; padding: 0; } .tiroir { width: min(100%, 480px); height: 100vh; display: flex; flex-direction: column; background: var(--carte); box-shadow: var(--ombre-g); animation: glisse .3s cubic-bezier(.2, .8, .2, 1); } .tiroir .modal-c { flex: 1; display: flex; flex-direction: column; padding: 0; } .tiroir .modal-t h2 .ti { color: var(--violet); }
.ia { flex: 1; display: flex; flex-direction: column; min-height: 0; } .ia-info { display: flex; gap: 9px; margin: 14px 16px 0; padding: 10px 12px; border-radius: 9px; background: var(--violet-c); font-size: 12.5px; color: var(--txt2); } .ia-info .ti { color: var(--violet); font-size: 17px; }
.ia-actions { display: flex; flex-wrap: wrap; gap: 7px; padding: 12px 16px; } .ia-actions button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--violet) 35%, var(--bord)); background: var(--carte); color: var(--violet); font-size: 13px; font-weight: 600; transition: all .15s; } .ia-actions button:hover { background: var(--violet-c); transform: translateY(-1px); }
.ia-fil { flex: 1; overflow: auto; padding: 4px 16px 12px; display: flex; flex-direction: column; gap: 10px; } .ia-m { max-width: 94%; padding: 10px 13px; border-radius: 12px; animation: entre .3s; font-size: 14px; line-height: 1.5; } .ia-m.user { align-self: flex-end; background: var(--p); color: #fff; border-bottom-right-radius: 3px; } .ia-m.assistant { background: var(--gris-c); border-bottom-left-radius: 3px; }
.ia-m h4 { margin: 8px 0 3px; font-size: 13.5px; } .ia-m ul { list-style: disc; padding-left: 18px; margin: 4px 0; } .ia-m p { margin: 3px 0; } .ia-m .btn { margin-top: 6px; } .ia-m.attente { display: flex; gap: 5px; padding: 14px; } .ia-m.attente span { width: 7px; height: 7px; border-radius: 50%; background: var(--violet); animation: points 1.2s infinite; } .ia-m.attente span:nth-child(2) { animation-delay: .15s; } .ia-m.attente span:nth-child(3) { animation-delay: .3s; }
.ia-q { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--bord); align-items: flex-end; } .ia-q .btn { height: 40px; width: 40px; color: #fff; background: var(--violet); }
.palette-s { position: relative; } .palette-s .ti { position: absolute; left: 13px; top: 13px; color: var(--txt3); } .palette-s input { height: 44px; padding-left: 38px; font-size: 15.5px; } .palette { display: flex; flex-direction: column; gap: 10px; } .palette-r { display: flex; flex-direction: column; gap: 2px; min-height: 60px; }
.pal-l { display: flex; align-items: center; gap: 11px; padding: 9px 11px; border: 0; border-radius: 9px; background: none; text-align: left; } .pal-l > span:not(.avatar) { flex: 1; } .pal-l strong { display: block; } .pal-l small { color: var(--txt2); } .pal-l > .ti { color: var(--txt3); opacity: 0; } .pal-l.on, .pal-l:hover { background: var(--p-c); } .pal-l.on > .ti, .pal-l:hover > .ti { opacity: 1; }
#toasts { position: fixed; right: 22px; bottom: 22px; z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; } .toast { display: flex; gap: 9px; align-items: flex-start; max-width: 420px; padding: 11px 15px; border-radius: 11px; background: #1d2622; color: #f1f5f3; box-shadow: var(--ombre-g); animation: monte .3s cubic-bezier(.2, .8, .2, 1); font-size: 13.5px; transition: opacity .3s, transform .3s; } .toast.sort { opacity: 0; transform: translateX(30px); }
.toast .ti { font-size: 18px; margin-top: 1px; } .t-ok .ti { color: #63e6be; } .t-erreur .ti { color: #ff8787; } .t-alerte .ti { color: #ffc078; } .t-info .ti { color: #74c0fc; }

/* Épidémiologie, journal, équipe */
.barres li { display: grid; grid-template-columns: minmax(120px, 1.2fr) 2fr 34px auto; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 7px; font-size: 13.5px; } .barres.cliquable li { cursor: pointer; } .barres.cliquable li:hover, .barres li.on { background: var(--p-c); } .barres strong { text-align: right; font-variant-numeric: tabular-nums; }
.bar { height: 10px; border-radius: 99px; background: var(--gris-c); overflow: hidden; display: flex; } .bar i { width: var(--w); background: var(--p); border-radius: 99px; animation: pousse .8s cubic-bezier(.2, .8, .2, 1) both; } .bar.double i { border-radius: 0; } .bar .f, .legende .f { background: #d6336c; } .bar .m, .legende .m { background: #066fd1; } .legende { font-size: 12.5px; color: var(--txt2); } .legende i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin: 0 4px 0 10px; }
.journal li { border-bottom: 1px solid var(--bord); animation: entre .25s both; } .journal li:last-child { border: 0; } .j-l, .journal summary { display: flex; align-items: center; gap: 12px; padding: 10px 18px; } .journal summary { cursor: pointer; list-style: none; } .journal summary::-webkit-details-marker { display: none; } .journal summary:hover { background: var(--survol); }
.j-ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; } .j-i { flex: 1; min-width: 0; } .j-i p { color: var(--txt2); font-size: 13.5px; } .journal time { font-size: 12.5px; color: var(--txt2); white-space: nowrap; font-variant-numeric: tabular-nums; } .j-ch { color: var(--txt3); transition: transform .2s; } details[open] .j-ch { transform: rotate(180deg); }
.diff { width: calc(100% - 80px); margin: 0 18px 14px 62px; border-collapse: collapse; font-size: 13px; animation: entre .25s; } .diff th { text-align: left; font-size: 11px; text-transform: uppercase; color: var(--txt3); padding: 4px 8px; } .diff td { padding: 5px 8px; border-top: 1px solid var(--bord); vertical-align: top; word-break: break-word; } .diff td:first-child { font-weight: 600; white-space: nowrap; } .diff .av { background: var(--rouge-c); width: 40%; } .diff .ap { background: var(--vert-c); width: 40%; } .diff i { color: var(--txt3); }
.membres { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; } .membre { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 20px 12px; border: 1px solid var(--bord); border-radius: var(--r); background: var(--carte); text-align: center; transition: transform .18s, border-color .18s, box-shadow .18s; animation: entre .4s both; animation-delay: calc(var(--i) * 40ms); } .membre:hover { transform: translateY(-3px); border-color: var(--p); box-shadow: 0 10px 24px rgba(15, 30, 25, .08); } .membre > span:not(.avatar) { font-size: 13px; color: var(--txt2); } .membre .ligne { justify-content: center; margin-top: 4px; }

/* Impression */
#impression { display: none; }
@media print {
  body > *:not(#impression) { display: none !important; } html, body { background: #fff; height: auto; }
  #impression { display: block; color: #000; font-size: 12.5pt; padding: 6mm 8mm; } #impression .badge { border: 1px solid #999; background: none; color: #000; } #impression .aide { color: #444; }
  .imp-t { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 2px solid #000; padding-bottom: 8px; margin-bottom: 14px; } .imp-t div { display: flex; flex-direction: column; font-size: 10.5pt; } .imp-t strong { font-size: 15pt; } .imp-t h1 { font-size: 15pt; text-transform: uppercase; letter-spacing: .05em; }
  .imp-pat { display: flex; justify-content: space-between; padding: 8px 10px; border: 1px solid #999; border-radius: 6px; margin-bottom: 10px; } .imp-date { text-align: right; margin-bottom: 16px; } .imp-sig { margin-top: 50px; margin-left: 58%; display: flex; flex-direction: column; text-align: center; border-top: 1px solid #000; padding-top: 6px; }
  .imp-p { position: fixed; bottom: 4mm; left: 8mm; right: 8mm; font-size: 8.5pt; color: #666; text-align: center; } .courbe, .signature .ti { display: none; } #impression .mesure { border: 1px solid #bbb; background: none; } #impression .table th { background: none; } #impression .rp li { margin-bottom: 14px; }
}
@media (max-width: 1180px) { :root { --nav: 68px; } .nav-marque div, .nav a span, .moi div, #b-pin, #b-theme { display: none; } .nav a { justify-content: center; } .moi, .moi-actions { justify-content: center; flex-direction: column; align-items: center; } .deux-col, .deux-col.egal { grid-template-columns: 1fr; } .stats { grid-template-columns: 1fr 1fr; } .consult-c { grid-template-columns: 1fr; } .sommaire { display: none; } .const-g { grid-template-columns: repeat(3, 1fr); } .presence-t { display: none; } }
@media (max-width: 760px) { .entree { grid-template-columns: 1fr; } .entree-g { display: none; } .g2, .g3 { grid-template-columns: 1fr; } .col2 { grid-column: auto; } .page { padding: 18px 14px 50px; } .haut { padding: 0 14px; } .appareil { grid-template-columns: 1fr; } .ordo-l { grid-template-columns: 1fr 1fr; } .table th:nth-child(n+4), .table td:nth-child(n+4):not(.fin) { display: none; } .etapes small { display: none; } .consult-t, .consult-c { padding-left: 14px; padding-right: 14px; } .consult-t { top: 58px; } }

/* Mode hors ligne */
button.sync { border: 0; cursor: pointer; } button.sync:hover { filter: brightness(.96); } .sync.conflit { color: var(--rouge); background: var(--rouge-c); }
.hl-b { margin-bottom: 22px; } .alerte.verte { background: var(--vert-c); } .alerte.verte > .ti { color: var(--vert); }
.profil.indispo { opacity: .45; cursor: not-allowed; } .profil.indispo:hover { transform: none; border-color: var(--bord); box-shadow: none; }
.st { display: flex; align-items: center; gap: 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--txt2); margin: 18px 0 8px; }
.att-l { display: flex; align-items: center; gap: 10px; padding: 10px 14px; } .att-l > div { flex: 1; min-width: 0; } .att-l span:not(.badge) { display: block; font-size: 13px; color: var(--txt2); }
.diff.plein { width: 100%; margin: 14px 0; } .diff.plein td:first-child { white-space: normal; }
.liste .att-l .btn { width: auto; flex: none; padding: 0 10px; } .liste .att-l .btn-p:hover { background: var(--p-f); }
