/* Pilotage Animosteo — charte : bleu foncé #24465c, menthe #4db6ac, orange #ef6c00 (accent seulement) */
:root {
  /* Charte partagée avec le calendrier, la clinique et Patient */
  --bleu: #24465c;
  --bleu-10: rgba(36, 70, 92, .06);
  --menthe: #4db6ac;
  --menthe-10: #e7f5f3;
  --clinique: #27796f;
  --orange: #ef6c00;
  --orange-10: #fdece0;
  --texte: #1a1a1a;
  --gris: #5b6b73;
  --bordure: #e7e2da;
  --fond: #faf8f5;
  --carte: #ffffff;
  --rayon: .875rem;
  --ombre: 0 1px 2px rgba(36, 70, 92, .04), 0 8px 24px -8px rgba(36, 70, 92, .12);
  --police: 'Mulish', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --police-titre: 'Fraunces', Georgia, serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fond); color: var(--texte);
  font-family: var(--police); font-size: 15px; line-height: 1.45;
}
a { color: var(--bleu); }
.entete { background: var(--bleu); color: #fff; }
.entete .barre { max-width: 1180px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.signature { display: flex; align-items: center; gap: .625rem; text-decoration: none; }
.signature__pastille { width: 2.25rem; height: 2.25rem; border-radius: .75rem; background: rgba(255,255,255,.12); display: grid; place-items: center; color: var(--menthe); flex: none; }
.signature__pastille svg { width: 1.25rem; height: 1.25rem; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.signature__texte { font-family: var(--police-titre); font-size: 1.0625rem; letter-spacing: .01em; }
.signature__texte b { color: #fff; font-weight: 600; }
.signature__texte span { color: var(--menthe); font-weight: 500; }
.entete nav { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
.entete nav a { color: #e6eef2; text-decoration: none; padding: 6px 10px; border-radius: 6px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.entete nav a:hover, .entete nav a.actif { background: rgba(255,255,255,.12); color: #fff; }
.entete .moi { font-size: 13px; color: #cfdde5; display: flex; gap: 10px; align-items: center; }
.entete .moi a { color: #fff; }
.icone { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
main { max-width: 1180px; margin: 0 auto; padding: 20px 16px 48px; }
h1 { color: var(--bleu); font-family: var(--police-titre); font-weight: 600; font-size: 26px; margin: 4px 0 14px; }
h2 { color: var(--bleu); font-family: var(--police-titre); font-weight: 600; font-size: 19px; margin: 26px 0 10px; }
h3 { color: var(--bleu); font-size: 15px; margin: 0 0 8px; }
.sous-titre { color: var(--gris); margin: -8px 0 18px; }
.tuiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.tuile { background: var(--carte); border-radius: var(--rayon); padding: 18px; border: 1px solid var(--bordure); border-top: 3px solid var(--menthe); box-shadow: var(--ombre); display: flex; flex-direction: column; gap: 8px; }
.tuile.finances { border-top-color: var(--bleu); }
.tuile .titre { display: flex; align-items: center; gap: 8px; color: var(--bleu); font-weight: 700; }
.tuile .chiffre { font-family: var(--police-titre); font-size: 32px; font-weight: 600; color: var(--bleu); line-height: 1.1; }
.tuile .legende { color: var(--gris); font-size: 13px; }
.tuile ul { margin: 0; padding-left: 18px; }
.tuile .lien { margin-top: auto; font-size: 14px; font-weight: 600; }
.carte { background: var(--carte); border-radius: var(--rayon); padding: 16px; border: 1px solid var(--bordure); box-shadow: var(--ombre); margin-bottom: 14px; overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th { background: var(--bleu); color: #fff; font-family: var(--police); text-align: left; font-weight: 700; padding: 8px 10px; white-space: nowrap; }
td { padding: 7px 10px; border-bottom: 1px solid var(--menthe-10); vertical-align: top; }
tbody tr:nth-child(even) td { background: var(--bleu-10); }
td.nombre, th.nombre { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
tr.total td { font-weight: 800; border-top: 2px solid var(--bleu); background: #fff; }
.sources { font-size: 12.5px; color: var(--gris); display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 4px 0 0; padding: 0; list-style: none; }
.sources li { display: inline; }
.sources li .pastille { margin-right: 4px; vertical-align: middle; }
.sources .ko { color: #9a3f00; font-weight: 700; }
.pastille { width: 8px; height: 8px; border-radius: 50%; background: var(--menthe); display: inline-block; }
.pastille.ko { background: var(--orange); }
.encadre { border-left: 3px solid var(--menthe); background: var(--menthe-10); padding: 10px 12px; border-radius: 0 8px 8px 0; margin: 10px 0; }
.encadre.alerte { border-left-color: var(--orange); background: var(--orange-10); }
.indispo { color: #9a3f00; font-weight: 700; }
.etiquette { display: inline-block; font-size: 12px; padding: 1px 7px; border-radius: 10px; background: var(--bleu-10); color: var(--bleu); margin: 1px 2px 1px 0; }
.etiquette.ko { background: var(--orange-10); color: #9a3f00; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 12px; }
.bouton { display: inline-flex; align-items: center; gap: 6px; background: var(--bleu); color: #fff; border: 0; border-radius: 7px; padding: 7px 12px; font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; }
.bouton.secondaire { background: #fff; color: var(--bleu); border: 1px solid var(--bleu); }
.bouton.accent { background: var(--orange); }
form.ligne { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
input[type=text], input[type=email], select { font: inherit; font-size: 14px; padding: 6px 8px; border: 1px solid #b9c6cd; border-radius: 6px; background: #fff; min-width: 0; }
label.case { display: inline-flex; align-items: center; gap: 6px; }
.flash { padding: 10px 12px; border-radius: 8px; margin-bottom: 12px; }
.flash.info { background: var(--menthe-10); border-left: 3px solid var(--menthe); }
.flash.erreur { background: var(--orange-10); border-left: 3px solid var(--orange); }
.connexion { max-width: 420px; margin: 60px auto; text-align: center; padding: 28px 24px; }
.connexion__signature { display: flex; flex-direction: column; align-items: center; gap: .75rem; margin-bottom: 1.25rem; }
.connexion__signature .signature__pastille { width: 3.25rem; height: 3.25rem; background: var(--bleu); border-radius: var(--rayon); }
.connexion__signature .signature__pastille svg { width: 1.75rem; height: 1.75rem; }
.connexion__signature .signature__texte { font-size: 1.375rem; }
.connexion__signature .signature__texte b { color: var(--bleu); }
.connexion__signature .signature__texte span { color: var(--clinique); }
.connexion h1 { font-size: 18px; font-family: var(--police); font-weight: 700; }
.vide { color: var(--gris); font-style: italic; }
@media (max-width: 640px) {
  .entete nav { order: 3; flex-basis: 100%; }
  .tuile .chiffre { font-size: 26px; }
  h1 { font-size: 21px; }
}
@media print {
  .entete nav, .actions, .bouton { display: none !important; }
  body { background: #fff; }
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
