/* Portail Inatum SMS — feuille de style unique (CSP : aucun style en ligne). */
/* Design system Inatum (refonte 2026) : bleu nuit / ardoise, accent cyan.
   Le thème sombre est le thème par défaut ; le thème clair reste au choix (data-theme). */
:root:not([data-theme="light"]) {
  --bg: #0B1220; --card: #111827; --surface-2: #1F2937; --sidebar: #0F172A;
  --ink: #F9FAFB; --muted: #9CA3AF; --faint: #6B7280; --line: #263244; --border: #374151;
  --brand: #22D3EE; --brand-hover: #67E8F9; --brand-ink: #0B1220;
  --good: #34D399; --good-bg: rgba(52, 211, 153, .13);
  --warn: #FBBF24; --warn-bg: rgba(251, 191, 36, .13);
  --bad: #F87171; --bad-bg: rgba(248, 113, 113, .13);
  --info: #22D3EE; --info-bg: rgba(34, 211, 238, .11);
  --trust: #60A5FA; --health: #2DD4BF; --agri: #A3D65C; --shadow: 0 16px 40px rgba(0, 0, 0, .45);
  color-scheme: dark;
}
:root[data-theme="dark"] { color-scheme: dark; }
:root[data-theme="light"] {
  --bg: #F3F6FA; --card: #FFFFFF; --surface-2: #EEF2F7; --sidebar: #FFFFFF;
  --ink: #0B1220; --muted: #4B5563; --faint: #6B7280; --line: #E2E8F0; --border: #CBD5E1;
  --brand: #0E7490; --brand-hover: #155E75; --brand-ink: #FFFFFF;
  --good: #047857; --good-bg: #D1FAE5; --warn: #B45309; --warn-bg: #FEF3C7;
  --bad: #B91C1C; --bad-bg: #FEE2E2; --info: #0E7490; --info-bg: #E0F7FB;
  --trust: #2563EB; --health: #0F766E; --agri: #3F7D20; --shadow: 0 16px 40px rgba(15, 23, 42, .12);
  color-scheme: light;
}
:root { --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px; --side-w: 232px; }
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.55 Inter, "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
a { color: var(--brand); }
main { max-width: 1100px; margin: 0 auto; padding: 24px 16px 48px; }
h1 { font-size: 1.9rem; font-weight: 800; letter-spacing: -.01em; margin: 0 0 16px; }
h2 { font-size: 1.2rem; margin: 0 0 12px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; }
.muted { color: var(--muted); }

/* En-tête : logo + menu à trois barres (sans JavaScript, case à cocher). */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; background: var(--card); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand img { display: block; }
.brand .name { font-size: 1.45rem; font-weight: 800; letter-spacing: -.01em; }
.brand b { color: var(--brand); font-weight: 800; }
.menu-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; }
.burger { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 46px; height: 46px; padding: 0 11px; margin: 0; border-radius: 10px; cursor: pointer; }
.burger:hover, .menu-toggle:focus-visible + .burger { background: var(--bg); }
.burger span { display: block; height: 3px; border-radius: 3px; background: var(--ink); transition: transform .2s, opacity .2s; }
.menu-toggle:checked + .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle:checked + .burger span:nth-child(2) { opacity: 0; }
.menu-toggle:checked + .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.menu { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 8px 12px 16px; background: var(--card); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0,0,0,.25); max-height: calc(100vh - 70px); overflow-y: auto; }
.menu-toggle:checked ~ .menu { display: block; }
.menu > a, .menu .account { display: flex; align-items: center; gap: 12px; padding: 8px 14px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 1.05rem; font-weight: 500; }
.menu > a:hover { background: var(--bg); }
.menu > a.active { background: var(--good-bg); color: var(--brand); font-weight: 700; }
.ico { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.who { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.who .account { padding: 8px 14px; font-size: 1rem; }
.who small { display: block; color: var(--muted); font-size: .85rem; font-weight: 400; }
@media (min-width: 1000px) {
  .top { padding: 12px 28px; }
  .menu { left: auto; right: 16px; width: 340px; border: 1px solid var(--line); border-radius: 14px; }
}

.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.page-head h1 { margin: 0; }
.page-head p { margin: 4px 0 0; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
a.button { display: inline-block; padding: 11px 20px; border-radius: 10px; background: var(--brand); color: var(--brand-ink); font-weight: 700; text-decoration: none; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin-bottom: 18px; overflow-x: auto; }
.card.narrow { max-width: 420px; margin: 48px auto; }
.card.secret { border-color: var(--warn); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 18px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.tile .ico { display: block; margin-bottom: 10px; width: 26px; height: 26px; padding: 6px; border-radius: 10px; background: var(--good-bg); color: var(--brand); stroke-width: 2; box-sizing: content-box; }
.tile span { display: block; color: var(--muted); font-size: .95rem; }
.tile strong { white-space: nowrap; font-size: 1.45rem; font-weight: 800; letter-spacing: -.01em; }
.tile.accent { border-color: var(--brand); }
.tile.warn { border-color: var(--warn); }
.tile.warn .ico { background: var(--warn-bg); color: var(--warn); }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: .85rem; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.off td { color: var(--muted); }

form { margin: 0; }
form.inline { display: inline; }
form.row, .filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
label { display: block; margin-bottom: 12px; font-size: .9rem; }
form.row label { margin: 0; }
label.check { display: flex; gap: 6px; align-items: center; }
input, select { display: block; width: 100%; margin-top: 4px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); font: inherit; }
form.row input, form.row select, .filters select { width: auto; min-width: 180px; }
input[type=checkbox] { width: auto; display: inline; margin: 0; }
button { padding: 9px 16px; border: 0; border-radius: 8px; background: var(--brand); color: var(--brand-ink); font: inherit; font-weight: 600; cursor: pointer; }
button.secondary { background: var(--line); color: var(--ink); }
button.danger { background: var(--bad); color: #fff; }
button.small { padding: 4px 10px; font-size: .85rem; }
button.link { background: none; color: var(--brand); padding: 0; font-weight: 400; }

.flash { padding: 10px 14px; border-radius: 8px; background: var(--good-bg); color: var(--good); }
.flash.error { background: var(--bad-bg); color: var(--bad); }
.flash.info { background: var(--info-bg); color: var(--info); }

.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .85rem; font-weight: 600; white-space: nowrap; background: var(--line); }
.badge.delivered { background: var(--good-bg); color: var(--good); }
.badge.sent, .badge.queued { background: var(--info-bg); color: var(--info); }
.badge.failed, .badge.undelivered { background: var(--bad-bg); color: var(--bad); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }

.copy { display: block; padding: 10px; background: var(--bg); border-radius: 8px; word-break: break-all; user-select: all; }
.qr { width: 200px; height: 200px; background: #fff; padding: 8px; border-radius: 8px; }
details { border-bottom: 1px solid var(--line); padding: 8px 0; }
summary { cursor: pointer; }
.votes { margin: 8px 0 0; padding-left: 18px; color: var(--muted); }
.votes li.voted { color: var(--ink); }
.votes li.voted strong { color: var(--bad); }
.pager { display: flex; gap: 16px; }

.bars { display: flex; align-items: flex-end; gap: 10px; height: 180px; }
.bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; height: 100%; font-size: .8rem; color: var(--muted); }
.bar em { font-style: normal; color: var(--ink); font-weight: 700; }
.bar .fill { flex: none; }
.fill { width: 100%; background: var(--brand); border-radius: 4px 4px 0 0; min-height: 2px; }
.h0 { height: 0; } .h1 { height: 10%; } .h2 { height: 20%; } .h3 { height: 30%; } .h4 { height: 40%; }
.h5 { height: 50%; } .h6 { height: 60%; } .h7 { height: 70%; } .h8 { height: 80%; } .h9 { height: 90%; } .h10 { height: 100%; }

/* Tableaux : sur téléphone, chaque ligne devient une fiche lisible sans défilement. */
@media (max-width: 700px) {
  table.stack thead { display: none; }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  table.stack td { display: flex; justify-content: space-between; gap: 12px; padding: 4px 2px; border: 0; text-align: right; }
  table.stack td::before { content: attr(data-label); color: var(--muted); font-size: .9rem; text-align: left; }
  table.stack td[colspan] { justify-content: center; }
  table.stack td[colspan]::before { content: none; }
}
.login-logo { display: block; margin: 0 auto 10px; }
.card.narrow h1, .card.narrow > p.muted { text-align: center; }
.accent-text { color: var(--brand); }
@media (max-width: 700px) {
  .tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tiles .tile.accent { grid-column: 1 / -1; }
  .tile { padding: 14px; }
  .tile strong { font-size: 1.4rem; }
  .tile.accent strong { font-size: 1.9rem; }
}

/* Page Intégration : étapes, faits, blocs de code dépliables. */
.steps { margin: 0 0 12px; padding-left: 22px; }
.steps li { margin-bottom: 8px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 8px 0 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; min-width: 0; }
@media (max-width: 700px) { .facts { grid-template-columns: 1fr; } .facts dd { margin-bottom: 6px; } }
pre { margin: 8px 0 14px; padding: 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; overflow-x: auto; font: .85rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre; }
details.code { border: 0; padding: 0; margin-bottom: 6px; }
details.code > summary { display: inline-block; padding: 6px 14px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); font-weight: 600; font-size: .9rem; list-style: none; }
details.code > summary::-webkit-details-marker { display: none; }
details.code[open] > summary { background: var(--good-bg); color: var(--brand); border-color: var(--brand); }

/* Pages harmonisées : boutons secondaires, filtres, chronologie d'un message. */
a.button.secondary { background: var(--line); color: var(--ink); }
.filters label { margin: 0; }
.filters input { width: auto; min-width: 160px; }
.timeline { list-style: none; margin: 0 0 12px; padding: 0 0 0 6px; }
.timeline li { position: relative; padding: 0 0 18px 26px; border-left: 2px solid var(--line); }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--card); border: 2px solid var(--line); }
.timeline li.done::before { background: var(--brand); border-color: var(--brand); }
.timeline li.bad::before { background: var(--bad); border-color: var(--bad); }
.timeline li strong, .timeline li span { display: block; }
.timeline li span { color: var(--muted); font-size: .9rem; }

/* Console d'administration. */
.menu-label { margin: 14px 14px 4px; color: var(--muted); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.tile small { display: block; margin-top: 2px; }
textarea { display: block; width: 100%; margin: 6px 0 12px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); font: .9rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }

/* Bouton de déconnexion toujours visible dans l'en-tête. */
.top-logout { margin-left: 0; }
.lang-switch { margin-left: auto; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); font-weight: 700; font-size: .9rem; text-decoration: none; letter-spacing: .04em; }
.lang-switch:hover { background: var(--bg); }
.lang-corner { max-width: 1100px; margin: 0 auto; padding: 14px 18px 0; text-align: right; }
.lang-corner a { color: var(--muted); font-weight: 600; }
.top .logout { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; font-weight: 600; }
.top .logout:hover { background: var(--bg); }
.top .logout .ico { width: 20px; height: 20px; }
@media (max-width: 480px) {
  .top .logout span { display: none; }
  .top { gap: 8px; padding: 10px 12px; }
  .brand { gap: 8px; }
  .brand .name { font-size: 1.2rem; }
  .lang-switch { padding: 8px 8px; }
}
.brand .name { white-space: nowrap; }

/* Relevé mensuel */
p.small { font-size: .9rem; }
tr.total td { border-top: 2px solid var(--line); }
@media print {
  :root { --bg: #fff; --card: #fff; --ink: #000; --muted: #444; --line: #ccc; }
  body { background: #fff; color: #000; }
  .top .menu, .top .burger, .top .top-logout, .lang-switch, .no-print, .flash { display: none !important; }
  main { max-width: none; padding: 0; }
  .card, .tile { box-shadow: none; break-inside: avoid; }
  table.stack thead { display: table-header-group !important; }
  table.stack, table.stack tbody { display: table !important; width: 100%; }
  table.stack tbody { display: table-row-group !important; }
  table.stack tr { display: table-row !important; }
  table.stack td { display: table-cell !important; text-align: left; }
  table.stack td.num { text-align: right; }
  table.stack td::before { content: none !important; }
}
table.summary { width: 100%; }
table.summary td { padding: 8px 2px; }
table.summary td.num { white-space: nowrap; padding-left: 12px; }
@media (max-width: 700px) { table.stack td:empty { display: none; } }

/* Inscription */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.center-text { text-align: center; }
label.check { align-items: flex-start; font-weight: 400; }
label.check input { width: auto; margin-top: 4px; }

/* Inatum Trust : connexion et espace client */
.trust-text { color: var(--trust); }
.health-text { color: var(--health); }
.trust-title { display: flex; align-items: center; gap: 12px; }
.card-head h2 .ico, section.card > h2 .ico { width: 20px; height: 20px; vertical-align: -3px; }
.ips { overflow-wrap: anywhere; }
.alert-channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 16px; }
.theme-switch { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none; font-size: .9rem; line-height: 1.55; }
.theme-switch:hover { background: var(--bg); }
.top .theme-switch { margin-left: auto; }
.top .theme-switch + .lang-switch { margin-left: 0; }
.lang-corner .theme-switch { margin-right: 8px; }
/* Petits téléphones : logo, thème, langue, déconnexion et menu sur une seule ligne. */
@media (max-width: 440px) {
  .top { gap: 8px; padding-left: 12px; padding-right: 12px; }
  .top .theme-switch, .top .lang-switch { min-width: 34px; padding: 7px 8px; }
  .top .logout { padding: 8px 9px; }
}
@media (max-width: 380px) { .top .brand .name { display: none; } }
.theme-switch .ico { width: 20px; height: 20px; }

/* Inatum Trust : résultats rangés par domaine protégé (volets <details>, sans JavaScript). */
details.target { border: 1px solid var(--line); border-radius: 12px; margin: 0 0 12px; background: var(--bg); }
details.target > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 14px 16px; cursor: pointer; list-style: none; }
details.target > summary::-webkit-details-marker { display: none; }
details.target > summary::before { content: "▸"; color: var(--muted); transition: transform .15s; }
details.target[open] > summary::before { transform: rotate(90deg); }
details.target[open] > summary { border-bottom: 1px solid var(--line); }
.target-name { font-weight: 800; font-size: 1.05rem; }
.target-kind { font-size: .85rem; }
.target-counts { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
details.target > table, details.target > details, details.target > form { margin: 0 16px; }
details.target > table { width: calc(100% - 32px); }
details.ignored { margin: 10px 16px; }
details.ignored > summary { cursor: pointer; color: var(--muted); font-size: .9rem; }
.target-remove { padding: 10px 0 14px; text-align: right; }
button.link.danger-link { color: var(--bad); font-size: .9rem; }
.rights td:not(:first-child), .rights th:not(:first-child) { text-align: center; width: 15%; }

/* Inatum Trust : offres. */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 8px 0 12px; }
.plan { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--bg); display: flex; flex-direction: column; gap: 6px; }
.plan.current { border-color: var(--trust); box-shadow: 0 0 0 1px var(--trust); }
.plan h3 { margin: 0; }
.plan .price { margin: 0; font-size: 1.25rem; font-weight: 800; }
.plan .price small { font-size: .85rem; font-weight: 500; color: var(--muted); }
.plan ul { margin: 0 0 8px; padding-left: 18px; color: var(--muted); font-size: .92rem; }
.plan form, .plan .button { margin-top: auto; }

/* Formation des employés (page publique). */
.training { max-width: 760px; }
.training h1 { margin: 4px 0 8px; }
.lesson h2 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; }
.lesson-n { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--trust); color: var(--brand-ink); font-size: .95rem; flex: none; }
.lesson ul, .answers { padding-left: 20px; }
.lesson li, .answers li { margin-bottom: 8px; }
.quiz-part { margin: 22px 0 10px; font-size: 1.05rem; color: var(--trust); }
.quiz { padding-left: 0; list-style: none; }
.quiz-n { color: var(--muted); margin-right: 2px; }
.quiz li { margin-bottom: 16px; }
.quiz fieldset { border: 0; padding: 0; margin: 0; }
.quiz legend { font-weight: 600; margin-bottom: 6px; }
.quiz label.check { margin: 4px 0; }
.answers li.ko strong { color: var(--bad); }
.certificate { text-align: center; }
.certificate.passed { border-color: var(--good); box-shadow: 0 0 0 1px var(--good); }
.certificate .score { font-size: 2.6rem; font-weight: 800; margin: 0; }
.brand b.trust-text { color: var(--trust); }
.health-text { color: var(--health); }
details.participants { margin: 12px 0; }
details.participants > summary { cursor: pointer; font-weight: 600; color: var(--brand); padding: 6px 0; }
.results-clear { flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }
table.kv th { text-align: left; width: 34%; color: var(--muted); font-weight: 600; vertical-align: top; }
table.kv td { word-break: break-word; }
.finding-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; align-items: center; }
pre.mail { white-space: pre-wrap; font-size: .85rem; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
@media print { header.top, nav.menu, .page-head .button, .flash { display: none !important; } }
.verdict h1 { margin-top: 0; }
.verdict.ok { border-left: 5px solid var(--good); }
.verdict.warn { border-left: 5px solid var(--warn); }
.verdict.bad { border-left: 5px solid var(--bad); }
.health-login h1 .health-text, .brand b.health-text { color: var(--health); }
.plain-list { padding-left: 18px; } .plain-list li { margin-bottom: 4px; }
.labels-sheet { background: #fff; color: #000; margin: 0; }
.labels-head { display: flex; flex-wrap: wrap; gap: 14px; padding: 12px 16px; background: #f5f6f8; font-size: .9rem; }
.labels-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(62mm, 1fr)); gap: 0; padding: 8mm; }
.label { display: flex; gap: 6px; align-items: center; border: 1px dashed #bbb; padding: 3mm; height: 28mm; overflow: hidden; break-inside: avoid; }
.label div { display: flex; flex-direction: column; line-height: 1.2; font-size: 9pt; min-width: 0; }
.label code { font-size: 10pt; font-weight: 700; letter-spacing: .04em; background: none; padding: 0; color: #000; }
.label small { font-size: 7pt; color: #333; }
.label .pin { font-size: 8pt; border: 1px solid #000; padding: 1px 3px; margin-top: 2px; }
.label-pages .button { margin: 0 4px 6px 0; }
@media print { .no-print { display: none !important; } .labels-grid { padding: 0; grid-template-columns: repeat(3, 1fr); } @page { margin: 8mm; } }
.label .pin b { white-space: nowrap; }

/* Bouton « œil » des champs mot de passe (password.js). */
.pw { position: relative; display: block; margin-top: 4px; }
.pw input { margin-top: 0; padding-right: 46px; }
.pw-eye { position: absolute; top: 50%; right: 4px; transform: translateY(-50%); display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; background: none; color: var(--muted); border-radius: 6px; }
.pw-eye:hover, .pw-eye[aria-pressed="true"] { color: var(--ink); }
.pw-eye:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.pw-eye svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Téléconsultation (Inatum Health) */
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.slot { display: flex; flex-direction: column; gap: 2px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none; background: var(--bg); }
.slot:hover, .slot:focus-visible { border-color: var(--brand); }
.slot strong { font-size: 1.15rem; color: var(--brand); }
.slot span { font-size: .9rem; }
.slot small { color: var(--muted); }
.row-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.pre { white-space: pre-wrap; }

/* Espace patient Inatum Health (onglets façon application) */
.patient-app { padding-bottom: 76px; }
.patient-main { max-width: 760px; margin: 0 auto; padding: 16px; }
.patient-title { margin: 8px 0 14px; }
.patient-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; align-items: center; margin: 8px 0 16px; }
.patient-hero h1 { margin: 0 0 8px; font-size: clamp(1.6rem, 5vw, 2.3rem); line-height: 1.15; }
.patient-hero p { color: var(--muted); margin: 0; }
.patient-hero img { width: 100%; height: auto; }
@media (max-width: 600px) { .patient-hero { grid-template-columns: 1fr; } .patient-hero img { max-width: 340px; margin: 0 auto; } }
.patient-search { display: flex; gap: 8px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 6px 6px 14px; margin-bottom: 16px; }
.patient-search input { border: 0; background: transparent; margin: 0; padding: 8px 4px; flex: 1; min-width: 0; }
.patient-search input:focus { outline: none; }
.patient-search button { border-radius: 999px; }
.patient-search .search-ico { color: var(--muted); display: flex; }
.patient-empty { text-align: center; }
.patient-appt { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.patient-appt:first-of-type { border-top: 0; }
.patient-appt .pa-when { display: flex; flex-direction: column; flex: none; }
.patient-appt .pa-when span { color: var(--brand); font-weight: 700; }
.patient-appt .pa-who { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.patient-appt .pa-who small { color: var(--muted); }
.patient-appt .pa-who > span { margin-top: 4px; }
.patient-appt .doc-ico { color: var(--brand); display: flex; }
.cols-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 8px; }
.cols-mini article { display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.cols-mini article .ico { color: var(--brand); }
.cols-mini span { color: var(--muted); font-size: .9rem; }
@media (max-width: 600px) { .cols-mini { grid-template-columns: 1fr; } }
.patient-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--card); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.patient-tabs a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px; color: var(--muted); text-decoration: none; font-size: .72rem; border-top: 3px solid transparent; min-width: 0; }
.patient-tabs a span { text-align: center; line-height: 1.15; max-width: 100%; }
.patient-tabs a.on { color: var(--brand); border-top-color: var(--brand); font-weight: 600; }
.thread .bubble { max-width: 85%; margin: 8px 0; padding: 10px 12px; border-radius: 14px; }
.thread .bubble p { margin: 0 0 4px; }
.thread .bubble small { color: var(--muted); font-size: .75rem; }
.thread .bubble.mine { margin-left: auto; background: var(--good-bg); }
.thread .bubble.theirs { background: var(--bg); border: 1px solid var(--line); }

/* ===================================================================================
   Refonte 2026 : composants transverses et mise en page à barre latérale.
   =================================================================================== */
h1 { font-size: 1.45rem; font-weight: 700; letter-spacing: -.015em; }
h2 { font-size: 1.02rem; font-weight: 650; }
h3 { font-size: .98rem; }
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--brand-hover); }
::selection { background: var(--brand); color: var(--brand-ink); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Cartes et indicateurs */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 20px 22px; }
.card > h2:first-child, .card-head h2 { margin-bottom: 14px; }
.tiles { gap: 12px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 14px 16px; }
.tile .ico { background: var(--info-bg); color: var(--brand); width: 20px; height: 20px; padding: 6px; margin-bottom: 10px; }
.tile span { color: var(--muted); font-size: .8rem; font-weight: 500; }
.tile strong { font-size: 1.35rem; font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; }
.tile.accent { border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); background: linear-gradient(180deg, var(--info-bg), var(--card) 70%); }
.tile.warn strong { color: var(--warn); }
.tile.warn .ico { background: var(--warn-bg); color: var(--warn); }

/* Boutons : primaire accent, secondaire en contour */
button, a.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 9px 18px; border: 1px solid transparent; border-radius: var(--radius-sm); background: var(--brand); color: var(--brand-ink); font: inherit; font-size: .92rem; font-weight: 650; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
button:hover, a.button:hover { background: var(--brand-hover); color: var(--brand-ink); }
button.secondary, a.button.secondary { background: transparent; color: var(--ink); border-color: var(--border); }
button.secondary:hover, a.button.secondary:hover { background: var(--surface-2); color: var(--ink); }
button.danger { background: transparent; color: var(--bad); border-color: color-mix(in srgb, var(--bad) 60%, transparent); }
button.danger:hover { background: var(--bad-bg); color: var(--bad); }
button.small, a.button.small { min-height: 32px; padding: 5px 12px; font-size: .84rem; }
button.link, button.link:hover { min-height: 0; padding: 0; border: 0; background: none; color: var(--brand); font-weight: 500; }
button .ico, a.button .ico { width: 18px; height: 18px; }

/* Formulaires : libellés au-dessus, champs surface-2, anneau de focus cyan */
label { color: var(--muted); font-size: .84rem; font-weight: 500; }
label.check { color: var(--ink); font-size: .9rem; }
input, select, textarea { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--ink); padding: 10px 12px; font-size: .92rem; transition: border-color .15s, box-shadow .15s; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent); }
input[type=checkbox], input[type=radio] { accent-color: var(--brand); }

/* Tableaux : en-têtes discrets, survol de ligne */
th { color: var(--faint); font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
th, td { border-bottom-color: var(--line); padding: 10px 12px; }
td { font-size: .9rem; }
tbody tr:hover td { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }

/* Badges de statut : pastille colorée + libellé */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; font-size: .78rem; font-weight: 600; background: var(--surface-2); color: var(--muted); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.delivered { background: var(--good-bg); color: var(--good); }
.badge.sent, .badge.queued { background: var(--info-bg); color: var(--info); }
.badge.failed, .badge.undelivered { background: var(--bad-bg); color: var(--bad); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }

.flash { border: 1px solid color-mix(in srgb, var(--good) 35%, transparent); border-radius: var(--radius-sm); }
.flash.error { border-color: color-mix(in srgb, var(--bad) 35%, transparent); }
.flash.info { border-color: color-mix(in srgb, var(--info) 35%, transparent); }
.copy, pre, .slot, details.code > summary, details.target { background: var(--surface-2); border-color: var(--line); }
.fill { background: linear-gradient(180deg, var(--brand), color-mix(in srgb, var(--brand) 55%, var(--bg))); border-radius: 6px 6px 2px 2px; }
.page-head h1 + p, .page-head p.muted { font-size: .9rem; }
.empty { padding: 26px 12px; text-align: center; color: var(--muted); }

/* Barre du haut : contexte (client · plan) et actions globales */
.top { gap: 10px; min-height: 60px; padding: 10px 18px; background: var(--bg); border-bottom: 1px solid var(--line); }
.top .brand .name { font-size: 1.15rem; font-weight: 700; }
.top-context { margin: 0 auto 0 4px; color: var(--ink); font-size: .9rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.top-context span { color: var(--muted); font-weight: 500; }
.top .theme-switch { margin-left: 0; }
.top-cta { flex: none; }
.theme-switch, .lang-switch, .top .logout { min-height: 38px; border-color: var(--line); border-radius: var(--radius-sm); background: transparent; color: var(--muted); }
.theme-switch:hover, .lang-switch:hover, .top .logout:hover { background: var(--surface-2); color: var(--ink); }
.top .logout { font-size: .88rem; }

/* Menu latéral (tiroir sur téléphone, barre fixe sur grand écran) */
.side-brand { display: flex; align-items: center; gap: 10px; padding: 6px 12px 18px; color: var(--ink); text-decoration: none; font-size: 1.12rem; font-weight: 700; letter-spacing: -.01em; }
.side-brand b { color: var(--brand); }
.menu { display: flex; flex-direction: column; gap: 2px; position: fixed; top: 0; left: 0; bottom: 0; right: auto; z-index: 30; width: min(var(--side-w), 84vw); max-height: none; padding: 18px 12px; background: var(--sidebar); border: 0; border-right: 1px solid var(--line); border-radius: 0; box-shadow: var(--shadow); transform: translateX(-102%); transition: transform .2s ease; overflow-y: auto; }
.menu-toggle:checked ~ .menu { display: flex; transform: none; }
.menu > a { position: relative; gap: 11px; padding: 9px 12px; border-radius: var(--radius-sm); color: var(--muted); font-size: .9rem; font-weight: 500; }
.menu > a .ico { width: 19px; height: 19px; }
.menu > a:hover { background: var(--surface-2); color: var(--ink); }
.menu > a.active { background: var(--surface-2); color: var(--ink); font-weight: 600; }
.menu > a.active::before { content: ""; position: absolute; left: -12px; top: 6px; bottom: 6px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand); }
.menu > a.active .ico { color: var(--brand); }
.menu > a.side-brand { padding: 6px 12px 18px; color: var(--ink); font-size: 1.12rem; font-weight: 700; }
.menu > a.side-brand:hover { background: none; }
.menu-label { margin: 16px 12px 6px; color: var(--faint); font-size: .7rem; }
.who { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.who .account { gap: 10px; padding: 8px 6px; color: var(--ink); font-size: .85rem; text-decoration: none; word-break: break-all; }
.who small { font-size: .75rem; }
.burger { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.burger span { height: 2px; background: var(--ink); }
main { max-width: 1240px; }

@media (min-width: 1000px) {
  .has-side .menu { transform: none; box-shadow: none; width: var(--side-w); }
  .has-side .burger, .has-side .top .brand { display: none; }
  .has-side .top { margin-left: var(--side-w); padding: 10px 32px; }
  .has-side main { margin-left: var(--side-w); padding: 28px 32px 56px; }
  .has-side .menu .who form { display: none; }
}
@media (max-width: 999px) {
  .menu-toggle:checked ~ .burger { position: relative; z-index: 31; }
  .top-context { display: none; }
  .top .brand { margin-right: auto; }
}
@media (max-width: 560px) { .top-cta span { display: none; } .top-cta { padding: 5px 9px; } }
@media print { .menu, .top { display: none !important; } .has-side main { margin: 0; } }

/* Connexion : marque à gauche, formulaire à droite (une colonne sur téléphone). */
.auth-split { display: grid; grid-template-columns: 1fr; gap: 24px; max-width: 1040px; margin: 0 auto; align-items: center; min-height: calc(100vh - 140px); }
.auth-pitch { display: none; }
.auth-card.card.narrow { margin: 24px auto; width: 100%; max-width: 420px; padding: 28px 28px 22px; box-shadow: var(--shadow); }
.auth-card button:not(.pw-eye) { width: 100%; margin-top: 6px; }
.card.narrow h1 { font-size: 1.35rem; }
@media (min-width: 900px) {
  .auth-split { grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; min-height: 560px; margin-top: 24px; background: var(--card); }
  .auth-pitch { display: flex; flex-direction: column; justify-content: center; gap: 4px; height: 100%; padding: 48px; background: radial-gradient(600px 300px at 0% 0%, var(--info-bg), transparent 70%), var(--sidebar); border-right: 1px solid var(--line); }
  .auth-card.card.narrow { border: 0; box-shadow: none; background: transparent; }
}
.auth-name { margin: 14px 0 2px; font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; }
.auth-name b { color: var(--brand); }
.auth-tagline { margin: 0 0 22px; color: var(--muted); font-size: 1rem; max-width: 34ch; }
.auth-pitch ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.auth-pitch li { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: .93rem; }
.auth-pitch li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--info-bg); flex: none; }
.lang-corner { max-width: 1040px; }
.tile strong { font-size: clamp(1.1rem, 1.6vw, 1.35rem); overflow-wrap: anywhere; white-space: normal; }

/* Verdicts (vérification d'un médicament, rendez-vous) : grande icône de statut. */
.verdict { text-align: center; padding: 30px 24px 24px; border-left-width: 1px; }
.verdict.ok, .verdict.warn, .verdict.bad { border-left: 1px solid var(--line); }
.verdict-icon { display: flex; align-items: center; justify-content: center; width: 84px; height: 84px; margin: 0 auto 14px; border-radius: 50%; font-size: 2.4rem; font-weight: 700; line-height: 1; }
.verdict.ok .verdict-icon { color: var(--good); background: var(--good-bg); box-shadow: 0 0 0 2px color-mix(in srgb, var(--good) 55%, transparent); }
.verdict.warn .verdict-icon { color: var(--warn); background: var(--warn-bg); box-shadow: 0 0 0 2px color-mix(in srgb, var(--warn) 55%, transparent); }
.verdict.bad .verdict-icon { color: var(--bad); background: var(--bad-bg); box-shadow: 0 0 0 2px color-mix(in srgb, var(--bad) 55%, transparent); }
.verdict.ok h1 { color: var(--good); } .verdict.warn h1 { color: var(--warn); } .verdict.bad h1 { color: var(--bad); }
.verdict p { max-width: 56ch; margin-left: auto; margin-right: auto; }
.verify .card { max-width: 640px; margin-left: auto; margin-right: auto; }
.verify form.row { justify-content: center; }

/* Anti-fraude : carte du mode et grille des six agents. */
.mode-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.mode-card p { margin: 0 0 6px; }
.agents { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-bottom: 18px; }
.agent { display: flex; gap: 12px; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-md); }
.agent-dot { flex: none; width: 14px; height: 14px; margin-top: 3px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 5px var(--info-bg); }
.agent h3 { margin: 0 0 4px; font-size: .95rem; }
.agent h3 small { margin-left: 4px; color: var(--faint); font-weight: 500; font-size: .75rem; }
.agent p { margin: 0; color: var(--muted); font-size: .85rem; }
.auth-title { display: none; }
@media (min-width: 900px) {
  .auth-split .auth-card .login-logo, .auth-split .auth-card > h1, .auth-split .auth-card > h1 + p.muted { display: none; }
  .auth-card .auth-title { display: block; margin: 0 0 4px; font-size: 1.5rem; font-weight: 700; text-align: center; }
  .auth-card .auth-title + * { margin-top: 12px; }
}
.tile strong { white-space: nowrap; overflow-wrap: normal; font-size: clamp(1rem, 1.3vw, 1.3rem); }
.who .account { word-break: normal; min-width: 0; }
.who .account > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who { flex-wrap: nowrap; }
.top .brand { margin-right: auto; }
.top .lang-switch { margin-left: 0; }
.has-side .top-context { margin-right: auto; }
.side-brand, .menu > a.side-brand { white-space: nowrap; font-size: 1.05rem; }
/* Téléphone : la barre du haut tient sur une ligne (Recharger reste dans le menu). */
@media (max-width: 560px) {
  .top-cta { display: none; }
  .top { gap: 6px; padding: 8px 10px; min-height: 54px; }
  .top .brand { gap: 7px; min-width: 0; }
  .top .brand img { width: 30px; height: 30px; }
  .top .brand .name { font-size: 1.02rem; overflow: hidden; text-overflow: ellipsis; }
  .burger { width: 38px; height: 38px; padding: 0 9px; flex: none; }
  .theme-switch, .lang-switch, .top .logout { min-height: 36px; flex: none; }
}
@media (max-width: 560px) { .top a.top-cta { display: none; } }
@media (max-width: 999px) { .menu-toggle:checked ~ .menu { box-shadow: 0 0 0 100vmax rgba(2, 6, 23, .6); } }

/* Bouton « œil » : jamais touché par les styles de bouton génériques (survol, largeur). */
.pw .pw-eye, .pw .pw-eye:hover, .pw .pw-eye:focus, .pw .pw-eye:active {
  width: 38px; min-height: 0; height: 38px; margin: 0; padding: 0; border: 0;
  background: none; color: var(--muted);
}
.pw .pw-eye:hover, .pw .pw-eye[aria-pressed="true"] { color: var(--ink); }

/* Tableau de bord Trust : raccourcis vers chaque rubrique (une page chacune). */
.shortcuts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 18px; }
.shortcut { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-md); color: var(--ink); text-decoration: none; transition: border-color .15s, background .15s; }
.shortcut:hover { border-color: color-mix(in srgb, var(--brand) 50%, var(--line)); background: var(--surface-2); color: var(--ink); }
.shortcut .ico { flex: none; width: 22px; height: 22px; padding: 8px; border-radius: 10px; background: var(--info-bg); color: var(--brand); box-sizing: content-box; }
.shortcut strong { display: block; font-size: .95rem; }
.shortcut small { display: block; color: var(--muted); font-size: .82rem; }
/* En-tête de carte : le titre passe au-dessus du badge sur téléphone au lieu d'être écrasé. */
.card-head { flex-wrap: wrap; row-gap: 6px; }
.card-head h2 { flex: 1 1 auto; min-width: 12ch; margin-bottom: 0; }

/* Inatum Health : « Qui êtes-vous ? » sur les pages de connexion (clinique, médecin, etc.). */
.doors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 8px 0 16px; padding: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.doors a { padding: 7px 4px; border-radius: 6px; color: var(--muted); font-size: .8rem; font-weight: 600; text-align: center; text-decoration: none; }
.doors a:hover { color: var(--ink); }
.doors a.on { background: var(--card); color: var(--brand); box-shadow: 0 0 0 1px var(--line); }
.auth-door { margin: -2px 0 10px; color: var(--brand); font-weight: 700; letter-spacing: .02em; }
.auth-split .auth-card .auth-title + .doors { margin-top: 12px; }

/* Télé-expertise et Pass Santé (Inatum Health) */
.prewrap { white-space: pre-line; }
.vitals { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0 12px; }
.result-rows { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.result-row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 8px; }
.result-more { grid-column: 1 / -1; }
.result-more summary { cursor: pointer; color: var(--brand); font-size: .85rem; font-weight: 600; }
.result-more[open] { display: grid; grid-template-columns: 2fr 1fr; gap: 8px; padding-top: 6px; }
.result-more[open] summary, .result-more small { grid-column: 1 / -1; }
.result-row input { margin-top: 0; }
.rx-row { display: grid; grid-template-columns: 2fr 1fr 2.4fr 1fr 1fr; gap: 8px; }
.rx-row input { margin-top: 0; }
@media (max-width: 760px) { .rx-row { grid-template-columns: 1fr 1fr; padding-bottom: 8px; border-bottom: 1px dashed var(--line); } .rx-row input:first-child, .rx-row input:nth-child(3) { grid-column: 1 / -1; } }
@media (max-width: 760px) { .result-row { grid-template-columns: 1fr 1fr; padding-bottom: 8px; border-bottom: 1px dashed var(--line); } .result-row input:first-child { grid-column: 1 / -1; } .result-more[open] { grid-template-columns: 1fr; } }
.pass-alert { color: var(--bad); font-weight: 600; }
.card.opinion { border-left: 5px solid var(--good); }
.pass-opinion { padding: 10px 0; border-top: 1px solid var(--line); }
.pass-opinion p { margin: 4px 0; }
.pass-sheet { display: flex; flex-wrap: wrap; gap: 24px; padding: 8mm; align-items: flex-start; }
.pass-card { width: 105mm; border: 1px solid #000; border-radius: 4mm; padding: 4mm; color: #000; background: #fff; break-inside: avoid; }
.pass-card header { display: flex; align-items: center; gap: 6px; border-bottom: 1px solid #000; padding-bottom: 2mm; margin-bottom: 3mm; }
.pass-card header span { margin-left: auto; font-size: 8pt; }
.pass-body { display: flex; gap: 3mm; align-items: flex-start; }
.pass-qr { width: 52mm; height: 52mm; flex: none; image-rendering: pixelated; }
.pass-body p { margin: 0 0 1.5mm; font-size: 9pt; line-height: 1.25; }
.pass-name { font-size: 12pt !important; font-weight: 800; }
.pass-card .pass-alert { color: #000; border: 1px solid #000; padding: 1mm; }
.pass-card footer { margin-top: 2mm; font-size: 7.5pt; }
.pass-small { font-size: 8pt !important; color: #333; }
.pass-help { max-width: 460px; color: #000; }
.pass-help textarea { font-size: .75rem; color: #000; background: #f5f6f8; }
.pass-ready { margin-top: 10px; padding: 8px 10px; border: 1px solid #15803d; border-radius: 8px; color: #15803d; font-weight: 600; font-size: .9rem; }
.rx-sheet { max-width: 180mm; margin: 0 auto; padding: 10mm 12mm; color: #000; background: #fff; }
.rx-head { display: flex; justify-content: space-between; gap: 16px; border-bottom: 2px solid #000; padding-bottom: 4mm; font-size: 10pt; }
.rx-doc { text-align: right; }
.rx-sheet h1 { font-size: 16pt; letter-spacing: .08em; text-transform: uppercase; margin: 6mm 0 3mm; }
.rx-lines { padding-left: 20px; } .rx-lines li { margin-bottom: 10px; line-height: 1.4; }
.rx-note { border-left: 3px solid #999; padding-left: 8px; }
.rx-foot { display: flex; gap: 12px; align-items: center; border-top: 1px solid #000; margin-top: 8mm; padding-top: 4mm; font-size: 9pt; }
.rx-foot img { flex: none; image-rendering: pixelated; }
.rx-foot p { margin: 0 0 2mm; }
.rx-code { font-size: 11pt; font-weight: 700; letter-spacing: .06em; background: none; color: #000; }
.rx-actions { margin: 0 auto 16px; padding: 0 12mm; max-width: 180mm; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 8px; }
.photo-grid a { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: .8rem; text-decoration: none; }
.photo-grid img { width: 100%; height: 130px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: #000; }
.record-tabs { position: sticky; top: 0; z-index: 2; display: flex; gap: 6px; overflow-x: auto; margin: 0 0 14px; padding: 8px 0; background: var(--bg); scrollbar-width: none; }
.record-tabs a { flex: none; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: .85rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.record-tabs a:hover { border-color: var(--brand); color: var(--brand); }
[id] { scroll-margin-top: 70px; }
.followup { padding: 12px 0; border-top: 1px solid var(--line); }
.followup.off { opacity: .6; }
.mini-chart { display: block; width: 100%; height: 140px; background: var(--surface-2, var(--bg)); border-radius: 8px; }
.mini-chart polyline { fill: none; stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.mini-chart .c1 { stroke: var(--brand); } .mini-chart .c2 { stroke: var(--health); stroke-dasharray: 5 4; }
.mini-chart .ca { fill: var(--bad); }
form.inline input { display: inline-block; width: 110px; margin: 0 6px 0 0; padding: 6px 8px; }
.module-list label.check { padding: 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; }
.module-list small { display: block; color: var(--muted); }

/* Inatum Agri & Élevage */
.agri-text, .brand b.agri-text { color: var(--agri); }
.agri-map { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; display: block; }
.map-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: .85rem; color: var(--muted); margin: 8px 0 0; }
.map-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.map-legend .foyer { background: #c0392b; } .map-legend .animal { background: #2c6fbb; } .map-legend .lot { background: #2e8b57; }
.badge.zone { background: var(--bad-bg, rgba(192, 57, 43, .15)); color: var(--bad); }
header.space-agri .menu > a.side-brand, header.space-agri .side-brand span, header.space-agri .brand .name { white-space: normal; line-height: 1.15; font-size: .95rem; }
.map-legend .zone { background: #f6d5cf; border: 1px solid #c0392b; border-radius: 2px; }
.map-source { margin: 4px 0 0; }
.map-country { margin-top: 10px; align-items: flex-end; }
.map-country label { max-width: 280px; }
