/* Généré à partir de /tmp/build_css.py : jetons de couleur et thèmes */
:root, [data-theme="bleu"] {
  --bg: #eef1f4; --surface: #ffffff; --surface-2: #f5f7f9; --row-hover: #f7f9fb;
  --ink: #1b2733; --muted: #5d6975; --line: #d8dee4; --line-soft: #edf0f3;
  --field-bg: #ffffff; --field-border: #c3ccd5;
  --accent: #1f6aa5; --accent-soft: #eaf2fa; --btn-bg: #1f6aa5; --btn-hover: #185688; --on-btn: #ffffff;
  --ok: #1e7a46; --warn: #9a6300; --warn-bg: #fdeec8; --warn-fg: #7a4d00;
  --err: #b3261e; --err-strong: #b3261e; --err-soft: #fbeceb; --err-border: #e3b3ae;
  --idle: #8b95a0; --neutral-bg: #e8eef4; --neutral-fg: #3b556b;
  --flash-ok-bg: #e8f4ec; --flash-ok-border: #b7dcc4; --flash-ok-fg: #174f30;
  --flash-err-bg: #fbeceb; --flash-err-border: #eab9b4; --flash-err-fg: #7e1c15;
  --flash-info-bg: #eaf1f8; --flash-info-border: #c2d6e8; --flash-info-fg: #1f4466;
  --scan-bg: #fff6dc; --scan-border: #efd88f; --scan-fg: #5e4700;
  --th-bg: #f1f4f7; --th-fg: #2a3845; --tab-hover: rgba(255,255,255,.65);
  --b-expired: #b3261e; --b-7: #dd5a1f; --b-30: #e0a526; --b-90: #86add0; --b-long: #3a8a5c;
  --shadow: 0 8px 24px rgba(20,40,60,.14); --highlight: #f2b705; --logo-bg: #1d4e74;

  --top-bg: #2f6da3; --top-border: transparent; --top-fg: #ffffff; --top-link: #dbe8f4;
  --top-hover: rgba(255,255,255,.12); --top-active: rgba(255,255,255,.2);
  --search-bg: rgba(255,255,255,.14); --search-border: rgba(255,255,255,.28); --search-fg: #ffffff; --search-ph: #c9dbeb;
  --logo-ring: rgba(255,255,255,.4);
  --radius: 6px; font-size: 15px;
}
[data-theme="clair"] {
  --top-bg: #ffffff; --top-border: #d8dee4; --top-fg: #1f6aa5; --top-link: #2c5a85;
  --top-hover: #eef4fa; --top-active: #e2eefa;
  --search-bg: #f3f6f9; --search-border: #d3dbe3; --search-fg: #1b2733; --search-ph: #7d8a96;
  --logo-ring: rgba(0,0,0,.06);
}
[data-theme="neutre"] {
  --top-bg: #ffffff; --top-border: #d8dee4; --top-fg: #111820; --top-link: #3d4a57;
  --top-hover: #f1f3f5; --top-active: #e8ebef;
  --search-bg: #f3f5f7; --search-border: #d5dbe1; --search-fg: #1b2733; --search-ph: #7d8a96;
  --logo-ring: rgba(0,0,0,.06);
}
[data-theme="graphite"] {
  --top-bg: #2c343d; --top-border: transparent; --top-fg: #ffffff; --top-link: #cfd6dd;
  --top-hover: rgba(255,255,255,.1); --top-active: rgba(255,255,255,.17);
  --search-bg: rgba(255,255,255,.1); --search-border: rgba(255,255,255,.2); --search-fg: #ffffff; --search-ph: #aab4bd;
  --logo-ring: rgba(255,255,255,.3);
  --bg: #eceff2;
}
[data-theme="sombre"] {
  --bg: #10161d; --surface: #18212b; --surface-2: #1f2a36; --row-hover: #1d2733;
  --ink: #e2e8ee; --muted: #9aa8b5; --line: #2b3847; --line-soft: #233040;
  --field-bg: #111921; --field-border: #3a4b5d;
  --accent: #6aaee8; --accent-soft: #1a3048; --btn-bg: #2f7fc4; --btn-hover: #3b8fd6; --on-btn: #ffffff;
  --ok: #52c48c; --warn: #f0b64a; --warn-bg: #3b2e12; --warn-fg: #f4cd7a;
  --err: #ff8a80; --err-strong: #c73b31; --err-soft: #3a1b18; --err-border: #6b2f29;
  --idle: #6f7d8a; --neutral-bg: #243242; --neutral-fg: #b9c7d5;
  --flash-ok-bg: #12301f; --flash-ok-border: #1f5a39; --flash-ok-fg: #9be0b8;
  --flash-err-bg: #3a1714; --flash-err-border: #6b2a24; --flash-err-fg: #ffb4ab;
  --flash-info-bg: #14283b; --flash-info-border: #25486b; --flash-info-fg: #a9cdf0;
  --scan-bg: #3a2f10; --scan-border: #5a4a1a; --scan-fg: #f3d27a;
  --th-bg: #1e2833; --th-fg: #cfd8e1; --tab-hover: rgba(255,255,255,.05);
  --b-90: #5f8fb8; --b-long: #3f9a67;
  --shadow: 0 10px 28px rgba(0,0,0,.45); --logo-bg: #1d4e74;
  --top-bg: #0b1016; --top-border: #243140; --top-fg: #ffffff; --top-link: #b8c5d2;
  --top-hover: rgba(255,255,255,.07); --top-active: rgba(255,255,255,.12);
  --search-bg: #151d26; --search-border: #2e3c4c; --search-fg: #e2e8ee; --search-ph: #7f8e9c;
  --logo-ring: rgba(255,255,255,.2);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) { [data-theme="auto"] {
  --bg: #10161d; --surface: #18212b; --surface-2: #1f2a36; --row-hover: #1d2733;
  --ink: #e2e8ee; --muted: #9aa8b5; --line: #2b3847; --line-soft: #233040;
  --field-bg: #111921; --field-border: #3a4b5d;
  --accent: #6aaee8; --accent-soft: #1a3048; --btn-bg: #2f7fc4; --btn-hover: #3b8fd6; --on-btn: #ffffff;
  --ok: #52c48c; --warn: #f0b64a; --warn-bg: #3b2e12; --warn-fg: #f4cd7a;
  --err: #ff8a80; --err-strong: #c73b31; --err-soft: #3a1b18; --err-border: #6b2f29;
  --idle: #6f7d8a; --neutral-bg: #243242; --neutral-fg: #b9c7d5;
  --flash-ok-bg: #12301f; --flash-ok-border: #1f5a39; --flash-ok-fg: #9be0b8;
  --flash-err-bg: #3a1714; --flash-err-border: #6b2a24; --flash-err-fg: #ffb4ab;
  --flash-info-bg: #14283b; --flash-info-border: #25486b; --flash-info-fg: #a9cdf0;
  --scan-bg: #3a2f10; --scan-border: #5a4a1a; --scan-fg: #f3d27a;
  --th-bg: #1e2833; --th-fg: #cfd8e1; --tab-hover: rgba(255,255,255,.05);
  --b-90: #5f8fb8; --b-long: #3f9a67;
  --shadow: 0 10px 28px rgba(0,0,0,.45); --logo-bg: #1d4e74;
  --top-bg: #0b1016; --top-border: #243140; --top-fg: #ffffff; --top-link: #b8c5d2;
  --top-hover: rgba(255,255,255,.07); --top-active: rgba(255,255,255,.12);
  --search-bg: #151d26; --search-border: #2e3c4c; --search-fg: #e2e8ee; --search-ph: #7f8e9c;
  --logo-ring: rgba(255,255,255,.2);
  color-scheme: dark;
} }
/* Domaines & Certificats : outil interne de suivi.
   Polices système uniquement : la page reste correcte sur un réseau sans accès internet.
   Toutes les couleurs passent par les variables ci-dessus : chaque thème ne fait que les redéfinir.
   Charte : un seul bleu d'action ; rouge = problème ; ambre = à surveiller ; vert discret = conforme ;
   gris-bleu = information neutre ; une couleur n'est jamais le seul indice (toujours un libellé). */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Segoe UI", Ubuntu, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.45; min-height: 100vh; display: flex; flex-direction: column; }
main.wrap { flex: 1 0 auto; width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--highlight); outline-offset: 2px; }
h1 { font-size: 1.6rem; line-height: 1.2; margin: 0 0 .3rem; font-weight: 600; letter-spacing: -.01em; }
h2 { font-size: 1.05rem; margin: 0 0 .8rem; font-weight: 600; }
h1:focus { outline: none; }
code { background: var(--surface-2); padding: .05em .35em; border-radius: 3px; font-size: .9em; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 1.25rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: .5rem; background: var(--surface); color: var(--ink); padding: .5rem .8rem; border-radius: var(--radius); z-index: 50; }
.skip:focus { left: .5rem; }

/* ---- Barre du haut ---- */
.top { background: var(--top-bg); color: var(--top-fg); border-bottom: 1px solid var(--top-border); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 56px; flex-wrap: wrap; }
.brand { color: var(--top-fg); font-weight: 600; font-size: 1.05rem; display: inline-flex; align-items: center; gap: .6rem; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 7px; box-shadow: 0 0 0 1.5px var(--logo-ring); }
.top nav { display: flex; gap: .2rem; align-items: center; flex-wrap: wrap; }
.top nav > a, .top nav > .linklike { color: var(--top-link); padding: .45rem .65rem; border-radius: var(--radius); font-size: .95rem; }
.top nav > a:hover { color: var(--top-fg); background: var(--top-hover); text-decoration: none; }
.top nav > a.on { color: var(--top-fg); background: var(--top-active); font-weight: 500; }
.globalsearch { flex: 1 1 260px; max-width: 440px; margin: 0 1rem; }
.globalsearch input { width: 100%; font: inherit; font-size: .93rem; padding: .42rem .75rem; border-radius: var(--radius);
  border: 1px solid var(--search-border); background: var(--search-bg); color: var(--search-fg); }
.globalsearch input::placeholder { color: var(--search-ph); }
.globalsearch input:focus { background: var(--field-bg); color: var(--ink); outline: none; box-shadow: 0 0 0 3px var(--highlight); }
@media (max-width: 1440px) { .globalsearch { max-width: 380px; } }
@media (max-width: 860px) { .globalsearch { order: 3; flex-basis: 100%; max-width: none; margin: 0 0 .6rem; } }

.user-menu { position: relative; margin-left: .3rem; }
.user-menu > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .45rem;
  color: var(--top-fg); padding: .3rem .45rem; border-radius: var(--radius); }
.user-menu > summary::-webkit-details-marker { display: none; }
.user-menu > summary:hover, .user-menu[open] > summary { background: var(--top-hover); }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--highlight); color: #1d4e74; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; font-size: .9rem; }
.uname { display: none; }
.user-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 210px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: .4rem; }
.user-list a, .user-list .linklike { display: block; width: 100%; text-align: left; padding: .5rem .7rem; color: var(--ink);
  border-radius: 4px; font-size: .93rem; }
.user-list a:hover, .user-list .linklike:hover { background: var(--accent-soft); text-decoration: none; color: var(--ink); }
.user-role { margin: .2rem .7rem .4rem; font-size: .8rem; color: var(--muted); }
.user-role strong { color: var(--ink); font-size: .9rem; }
.user-list form { margin: 0; }

.scanbar { background: var(--scan-bg); border-bottom: 1px solid var(--scan-border); color: var(--scan-fg); font-size: .92rem; }
.scanbar .wrap { padding-top: .5rem; padding-bottom: .5rem; display: flex; align-items: center; gap: .6rem; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--b-30); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
main.wrap { padding-top: 1.75rem; padding-bottom: 2.5rem; }

/* ---- Pied de page ---- */
.site-foot { border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: .85rem; }
.site-foot .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; padding-top: .9rem; padding-bottom: .9rem; }
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--accent); }
.site-foot .foot-links { display: flex; gap: 1.1rem; }

/* ---- En-têtes de page, fil d'Ariane, outils ---- */
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.head p { margin: 0; }
.actions { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.crumbs { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; font-size: .9rem; margin: 0 0 .35rem; color: var(--muted); }
.crumbs .sep { color: var(--idle); }
.crumbs span[aria-current] { color: var(--ink); }
.lead { font-size: 1.05rem; color: var(--muted); margin: 0 0 .6rem; }
.btn-back { display: inline-flex; align-items: center; gap: .45rem; }
.btn-back::before { content: "←"; font-weight: 700; }
.help-link { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-weight: 700; }
.help-link:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }
/* Ligne des onglets : le menu Télécharger s'aligne à droite, sans jamais repousser les autres boutons */
.tabs-row { display: flex; align-items: flex-end; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.tabs-row .tools { margin-bottom: .45rem; display: flex; gap: .5rem; }
.tools-row { display: flex; justify-content: flex-end; margin: -.4rem 0 .9rem; }

/* ---- Onglets : un seul contrôle partout ; l'onglet ouvert fait corps avec son contenu ---- */
.tabs { display: flex; flex-wrap: wrap; gap: .3rem; margin: 0; padding: 0 .3rem; position: relative; z-index: 1; }
.tabs a { padding: .6rem 1.05rem; margin-bottom: -1px; border: 1px solid transparent; border-bottom: 0; border-radius: 8px 8px 0 0;
  color: var(--muted); font-size: .95rem; display: inline-flex; gap: .45rem; align-items: center; }
.tabs a:hover { color: var(--ink); background: var(--tab-hover); text-decoration: none; }
.tabs a.on { background: var(--surface); border-color: var(--line); color: var(--ink); font-weight: 600; box-shadow: inset 0 3px 0 var(--accent); }
.tabs .n { font-size: .78rem; font-weight: 600; background: var(--neutral-bg); color: var(--neutral-fg); padding: 0 .45rem; border-radius: 999px; }
.tabs a.on .n { background: var(--accent-soft); color: var(--accent); }
.tabs a .n.alert, .tabs a.on .n.alert { background: var(--err-strong); color: #fff; }
.tab-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 0 8px 8px 8px; padding: 1.25rem 1.3rem; margin-bottom: 1.5rem; }
.tab-panel > .block, .tab-panel > .form > .block { border: 0; border-radius: 0; background: transparent; padding: 0; margin: 0 0 1.5rem; }
.tab-panel > .block + .block, .tab-panel > .form > .block + .block { border-top: 1px solid var(--line); padding-top: 1.3rem; }
.tab-panel > .empty { border: 0; margin: 0; }
.tab-panel > *:last-child { margin-bottom: 0; }
.tab-pane[hidden] { display: none; }

/* ---- Tableau de bord ---- */
.overview { margin-bottom: 1.6rem; }
.timeline-bar { display: flex; height: 38px; border-radius: var(--radius); overflow: hidden; background: var(--line); gap: 2px; }
.seg { display: block; min-width: 6px; }
.b-expired { background: var(--b-expired); } .b-7 { background: var(--b-7); } .b-30 { background: var(--b-30); }
.b-90 { background: var(--b-90); } .b-long { background: var(--b-long); }
.timeline-legend { list-style: none; padding: 0; margin: .7rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; font-size: .93rem; }
.timeline-legend li { display: flex; align-items: center; gap: .4rem; }
.timeline-legend li.zero { color: var(--idle); }
.timeline-legend strong { font-variant-numeric: tabular-nums; }
.dot { width: 11px; height: 11px; border-radius: 2px; display: inline-block; }
.zero .dot { opacity: .35; }
.sec-line { margin: .9rem 0 0; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; font-size: .95rem; }

/* ---- Blocs et tableaux ---- */
.block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; margin-bottom: 1.5rem; }
.block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
.list th { text-align: left; font-weight: 600; font-size: .86rem; color: var(--th-fg); background: var(--th-bg);
  padding: .55rem .7rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.list thead th:first-child { border-top-left-radius: 4px; }
.list thead th:last-child { border-top-right-radius: 4px; }
.list td { padding: .6rem .7rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.list tbody tr:last-child td { border-bottom: 0; }
.list tbody tr:hover { background: var(--row-hover); }
.list td:first-child { box-shadow: inset 4px 0 0 transparent; padding-left: 1rem; }
.row-error td:first-child { box-shadow: inset 4px 0 0 var(--err-strong); }
.row-warning td:first-child { box-shadow: inset 4px 0 0 var(--b-30); }
tr.disabled { opacity: .55; }
.list th.num, .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
/* Tri : l'indicateur est toujours visible, en bleu ; la colonne triée affiche sa flèche en gras */
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { color: var(--accent); background: var(--accent-soft); }
th.sortable::after { content: "⇅"; margin-left: .35rem; color: var(--accent); opacity: .75; font-size: .95em; font-weight: 700; }
th.sortable:hover::after { opacity: 1; }
th[aria-sort="ascending"]::after { content: "↑"; opacity: 1; }
th[aria-sort="descending"]::after { content: "↓"; opacity: 1; }
th[aria-sort] { color: var(--accent); }
.strong { font-weight: 600; }
.sub { font-size: .85rem; color: var(--muted); margin-top: .15rem; }
.sub.err { color: var(--err); }
.sub.advice { color: var(--ink); margin-top: .3rem; }
.mono-ish { font-variant-numeric: tabular-nums; font-size: .92rem; }
.hosts a { display: inline-block; margin-right: .75rem; }
.more, .hint { font-size: .88rem; color: var(--muted); margin: .7rem 0 0; }
.tag { display: inline-block; font-size: .78rem; padding: .05rem .45rem; border-radius: 999px; background: var(--neutral-bg); color: var(--neutral-fg);
  margin-left: .4rem; vertical-align: 1px; white-space: nowrap; }
.kv th { text-align: left; font-weight: 600; font-size: .88rem; padding: .35rem .8rem .35rem 0; vertical-align: top; white-space: nowrap; }
.kv td { padding: .35rem 0; font-size: .92rem; word-break: break-word; }

/* ---- États : toujours un libellé, jamais la couleur seule ---- */
.status { font-size: .88rem; font-weight: 600; white-space: nowrap; }
.status::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: .4rem; vertical-align: 1px; background: var(--idle); }
.st-ok { color: var(--ink); font-weight: 500; } .st-ok::before { background: var(--ok); }
.st-warning { color: var(--warn); } .st-warning::before { background: var(--b-30); }
.st-error { color: var(--err); } .st-error::before { background: var(--err-strong); }
.st-noweb, .st-inactive, .st-unknown { color: var(--muted); font-weight: 500; }
.days { display: inline-block; font-weight: 600; font-variant-numeric: tabular-nums; padding: .05rem .5rem; border-radius: 4px; font-size: .9rem; }
.days-ok { color: var(--ink); font-weight: 500; }
.days-warning { color: var(--warn-fg); background: var(--warn-bg); }
.days-error { color: #fff; background: var(--err-strong); }
.days-none { color: var(--idle); }
.cat { display: inline-block; font-size: .78rem; font-weight: 600; padding: .08rem .5rem; border-radius: 4px; margin: 0 .3rem .15rem 0;
  background: var(--neutral-bg); color: var(--neutral-fg); white-space: nowrap; }
.paused, .chg { display: inline-block; font-size: .8rem; font-weight: 600; padding: .05rem .5rem; border-radius: 4px;
  background: var(--neutral-bg); color: var(--neutral-fg); white-space: nowrap; }
.chg-important { background: var(--warn-bg); color: var(--warn-fg); }
.sec { display: inline-block; font-size: .8rem; font-weight: 600; padding: .08rem .5rem; border-radius: 4px; white-space: nowrap; }
a.sec:hover { text-decoration: none; filter: brightness(.95); }
.sec-high { background: var(--err-strong); color: #fff; }
.sec-medium { background: var(--warn-bg); color: var(--warn-fg); }
.sec-low { background: var(--neutral-bg); color: var(--neutral-fg); }
.sec-counts { display: inline-flex; gap: .25rem; flex-wrap: wrap; } .sec-counts:hover { text-decoration: none; }
.dot-lv { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: .4rem; vertical-align: 1px; background: var(--b-90); }
.lv-high { background: var(--err-strong); } .lv-medium { background: var(--b-30); }

/* ---- Pages domaine et hôte ---- */
.facts { margin-bottom: 1.5rem; }
.facts dl, .reg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem 1.5rem; margin: 0; }
.facts dt, .reg-grid dt { font-size: .82rem; color: var(--muted); }
.facts dd, .reg-grid dd { margin: .15rem 0 0; word-break: break-word; }
.reg-main dd strong { font-size: 1.1rem; }
.notes { background: var(--surface); border-left: 3px solid var(--line); padding: .5rem .8rem; margin: 1rem 0 0; }
.raw { margin-top: .8rem; font-size: .88rem; }
.raw summary { cursor: pointer; color: var(--accent); }
.raw pre { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem; overflow-x: auto;
  max-height: 360px; font-size: .8rem; white-space: pre-wrap; color: var(--ink); }
.finding { border-left: 4px solid var(--line); padding: .55rem .9rem; margin: 0 0 .8rem; background: var(--surface-2); border-radius: 0 var(--radius) var(--radius) 0; }
.finding-high { border-left-color: var(--err-strong); } .finding-medium { border-left-color: var(--b-30); } .finding-low { border-left-color: var(--b-90); }
.finding-head { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.finding p { margin: .35rem 0 0; max-width: 90ch; }
.finding .advice { font-size: .92rem; }
.advice-toggle { margin-top: .3rem; font-size: .88rem; }
.advice-toggle summary { cursor: pointer; color: var(--accent); }
.advice-toggle p { margin: .3rem 0 0; max-width: 80ch; }
@media (max-width: 700px) { .alerts-table { display: block; overflow-x: auto; } }

/* ---- Sécurité regroupée ---- */
.view-hint { margin: 0 0 .9rem; }
table.groups td { padding-top: .9rem; padding-bottom: .9rem; }
.group-head { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
table.groups .advice { margin: .45rem 0 .3rem; max-width: 95ch; font-size: .92rem; }
.group-items summary { cursor: pointer; color: var(--accent); font-size: .9rem; }
.group-items ul { margin: .4rem 0 0; padding-left: 1.1rem; columns: 2 320px; column-gap: 2rem; font-size: .9rem; }
.group-items li { break-inside: avoid; margin: .12rem 0; }
.group-items li .sub { display: block; }
.title-line { font-size: .9rem; margin: .1rem 0; }

/* ---- Boutons et formulaires ---- */
.inline { display: inline; margin: 0; }
.btn { display: inline-flex; align-items: center; gap: .4rem; background: var(--btn-bg); color: var(--on-btn); border: 1px solid var(--btn-bg);
  border-radius: var(--radius); padding: .5rem 1rem; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--btn-hover); border-color: var(--btn-hover); text-decoration: none; color: var(--on-btn); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-quiet { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-quiet:hover { background: var(--surface-2); color: var(--ink); border-color: var(--field-border); }
.btn-danger { background: var(--surface); color: var(--err); border-color: var(--err-border); }
.btn-danger:hover { background: var(--err-soft); color: var(--err); }
.btn-wide { width: 100%; justify-content: center; padding: .65rem; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; }
.linklike:disabled { color: var(--idle); cursor: not-allowed; }
.danger-link { color: var(--err); }
.row-actions { white-space: nowrap; text-align: right; }
.row-actions > * { margin-left: .9rem; }
.form label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: .9rem; }
.form input:not([type=checkbox]):not([type=radio]), .form textarea, .form label > select {
  display: block; width: 100%; margin-top: .3rem; font: inherit; font-weight: 400; padding: .5rem .65rem;
  border: 1px solid var(--field-border); border-radius: var(--radius); background: var(--field-bg); color: var(--ink); }
.form textarea { resize: vertical; }
.form .check { font-weight: 400; display: flex; gap: .5rem; align-items: center; }
.form .hint { margin: -.3rem 0 1rem; }
.form-actions { display: flex; gap: .6rem; margin-top: .4rem; align-items: center; flex-wrap: wrap; }
.form-note { font-size: .88rem; color: var(--muted); margin: .2rem 0 .8rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0 1rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.inline-fields { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .6rem; }
.inline-fields .check { margin: 0; }
select, .inline-fields select, .form select { font: inherit; padding: .4rem .5rem; border: 1px solid var(--field-border); border-radius: var(--radius);
  background: var(--field-bg); color: var(--ink); }
input, textarea { color: var(--ink); }
.narrow { max-width: 620px; }
.danger { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.danger p { color: var(--muted); font-size: .9rem; }
.roles-help { margin: 0 0 .8rem; padding-left: 1.1rem; font-size: .88rem; color: var(--muted); }
.roles-help li { margin: .15rem 0; }
.users-table input:not([type=checkbox]), .users-table select { font: inherit; font-size: .88rem; padding: .3rem .45rem; border: 1px solid var(--field-border);
  border-radius: 4px; width: 100%; min-width: 150px; margin: .1rem 0; background: var(--field-bg); color: var(--ink); }

.flash { padding: .65rem .9rem; border-radius: var(--radius); margin-bottom: 1rem; border: 1px solid; font-size: .95rem; }
.flash-success { background: var(--flash-ok-bg); border-color: var(--flash-ok-border); color: var(--flash-ok-fg); }
.flash-error { background: var(--flash-err-bg); border-color: var(--flash-err-border); color: var(--flash-err-fg); }
.flash-info { background: var(--flash-info-bg); border-color: var(--flash-info-border); color: var(--flash-info-fg); }
.flash a { color: inherit; text-decoration: underline; }
.empty { background: var(--surface); border: 1px dashed var(--field-border); border-radius: var(--radius); padding: 2.5rem 1.5rem; text-align: center; margin-bottom: 1.5rem; }
.empty p { color: var(--muted); max-width: 60ch; margin: .5rem auto 1.2rem; }
.empty .empty-icon { font-size: 2rem; line-height: 1; color: var(--idle); margin-bottom: .4rem; }

/* ---- Filtres : même disposition partout ----
   Ligne 1 : champ de recherche, puis les listes de choix ; ligne 2 : les vignettes, et le compteur à droite. */
.filterbar { display: flex; flex-direction: column; gap: .7rem; margin: 0 0 1rem; }
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .8rem; }
.filterbar input[type=search] { flex: 0 1 380px; min-width: 220px; font: inherit; padding: .45rem .7rem;
  border: 1px solid var(--field-border); border-radius: var(--radius); background: var(--field-bg); color: var(--ink); }
.filterbar select { font-size: .9rem; max-width: 240px; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.chips button { font: inherit; font-size: .86rem; line-height: 1.25; padding: .38rem .8rem; margin: 0; border-radius: 999px; border: 1px solid var(--field-border);
  background: var(--surface); color: var(--ink); cursor: pointer; display: inline-flex; gap: .35rem; align-items: center; white-space: nowrap; }
.chips button:hover { border-color: var(--accent); }
.chips button[aria-pressed="true"] { background: var(--btn-bg); border-color: var(--btn-bg); color: #fff; }
.chips button.is-empty:not([aria-pressed="true"]) { color: var(--idle); background: var(--surface-2); }
.chips button.chip-sec { border-style: dashed; }
.chips .n { font-variant-numeric: tabular-nums; font-size: .78rem; background: var(--neutral-bg); color: var(--neutral-fg);
  padding: 0 .38rem; border-radius: 999px; min-width: 1.4em; text-align: center; }
.chips button[aria-pressed="true"] .n { background: rgba(255,255,255,.25); color: #fff; }
.filterbar .count { margin-left: auto; font-size: .86rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---- Menus déroulants : Télécharger, pause ---- */
.dl-menu { position: relative; display: inline-block; }
.dl-menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .92rem;
  padding: .45rem .85rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); color: var(--ink); white-space: nowrap; }
.dl-menu summary::-webkit-details-marker { display: none; }
.dl-menu summary::after { content: ""; width: 0; height: 0; border: 4px solid transparent; border-top-color: currentColor; margin: 4px 0 0 .1rem; }
.dl-menu summary:hover, .dl-menu[open] summary { border-color: var(--accent); }
.dl-menu .ico { width: 16px; height: 16px; }
.dl-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 280px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: .3rem; }
.dl-list a { display: block; padding: .55rem .7rem; border-radius: 4px; color: var(--ink); }
.dl-list a:hover, .dl-list a:focus-visible { background: var(--accent-soft); text-decoration: none; }
.dl-list strong { display: block; font-size: .93rem; }
.dl-list span { display: block; font-size: .8rem; color: var(--muted); }
.dl-note { margin: .2rem .4rem .4rem; padding: .45rem .6rem; font-size: .82rem; background: var(--warn-bg); border-radius: 4px; color: var(--warn-fg); max-width: 300px; }
.dl-all { border-top: 1px solid var(--line); margin-top: .3rem; padding: .5rem .7rem .3rem; font-size: .82rem; color: var(--muted); }
.dl-all span { display: block; margin-bottom: .2rem; }
.dl-list .dl-all a { display: inline; padding: 0; margin-right: .7rem; color: var(--accent); }
.dl-all[hidden], .dl-note[hidden] { display: none; }
.mute-menu { position: relative; display: inline-block; text-align: left; }
.mute-menu > summary { list-style: none; cursor: pointer; }
.mute-menu > summary::-webkit-details-marker { display: none; }
.mute-form { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; width: 330px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: .9rem 1rem .4rem; white-space: normal; }
.mute-right .mute-form { left: auto; right: 0; }
.mute-form .mute-title { margin: 0 0 .6rem; font-size: .92rem; }
.mute-form label { margin-bottom: .7rem; font-size: .88rem; }
.mute-form .check { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-weight: 400; }
.mute-form input[type=radio] { margin: 0; }
.mute-form .btn { margin-bottom: .6rem; }

/* ---- Retour en haut ---- */
.totop { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40; display: inline-flex; align-items: center; gap: .35rem; font: inherit; font-size: .88rem;
  font-weight: 600; padding: .6rem .9rem; border-radius: 999px; cursor: pointer; background: var(--btn-bg); color: #fff; border: 0; box-shadow: var(--shadow); }
.totop svg { width: 16px; height: 16px; }
.totop:hover { background: var(--btn-hover); }
.totop[hidden] { display: none; }

/* ---- Connexion ---- */
body.auth-page { background: var(--bg); }
.auth-shell { flex: 1 0 auto; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; }
.auth-brand { background: var(--logo-bg); color: #fff; padding: 3.5rem clamp(2rem, 6vw, 5rem); display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.auth-brand::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 380px; height: 380px; border-radius: 50%;
  border: 60px solid rgba(255,255,255,.06); }
.auth-brand::before { content: ""; position: absolute; right: 90px; top: -60px; width: 180px; height: 180px; border-radius: 50%;
  background: rgba(255,255,255,.05); }
.auth-brand img { width: 72px; height: 72px; border-radius: 16px; box-shadow: 0 0 0 2px rgba(255,255,255,.35); }
.auth-brand h1 { font-size: 2.1rem; margin: 1.4rem 0 .5rem; color: #fff; }
.auth-brand .tagline { font-size: 1.1rem; color: #cfe0ef; margin: 0 0 2rem; max-width: 34ch; }
.auth-points { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; max-width: 40ch; position: relative; z-index: 1; }
.auth-points li { display: flex; gap: .75rem; align-items: flex-start; color: #e6eef6; }
.auth-points li::before { content: "✓"; flex: 0 0 26px; height: 26px; border-radius: 50%; background: rgba(242,183,5,.18); color: #f2b705;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; }
.auth-side { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 2.5rem 1.5rem; }
.auth-card { width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 2rem 2rem 1.4rem; box-shadow: var(--shadow); }
.auth-card h2 { font-size: 1.4rem; margin: 0 0 .3rem; }
.auth-card .form { margin-top: 1.3rem; }
.auth-card .flash { margin-top: 1rem; }
.auth-foot { margin-top: 1.5rem; font-size: .82rem; color: var(--muted); text-align: center; }
@media (max-width: 860px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-brand { padding: 2rem 1.5rem; } .auth-brand .auth-points { display: none; } .auth-brand h1 { font-size: 1.6rem; margin-top: .8rem; }
  .auth-brand .tagline { margin-bottom: 0; }
}

/* ---- Apparence (choix du thème) ---- */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .9rem; margin: .4rem 0 1rem; }
.theme-card { display: block; border: 2px solid var(--line); border-radius: 10px; padding: .55rem; cursor: pointer; background: var(--surface); font-weight: 500; }
.theme-card:hover { border-color: var(--field-border); }
.theme-card input { position: absolute; opacity: 0; pointer-events: none; }
.theme-card:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.theme-card:has(input:focus-visible) { outline: 3px solid var(--highlight); outline-offset: 2px; }
.theme-prev { height: 78px; border-radius: 6px; overflow: hidden; border: 1px solid rgba(0,0,0,.08); display: flex; flex-direction: column; margin-bottom: .45rem; }
.theme-prev .p-top { height: 20px; display: flex; align-items: center; gap: 5px; padding: 0 7px; }
.theme-prev .p-top i { display: block; height: 5px; width: 18px; border-radius: 3px; }
.theme-prev .p-body { flex: 1; padding: 7px; display: flex; flex-direction: column; gap: 5px; }
.theme-prev .p-body i { display: block; height: 6px; border-radius: 3px; }
.theme-name { font-size: .9rem; }
.theme-desc { display: block; font-size: .78rem; color: var(--muted); font-weight: 400; }

/* ---- Aide ---- */
.help-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 2rem; align-items: start; }
.help-toc { position: sticky; top: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 1rem 1.1rem;
  max-height: calc(100vh - 2rem); overflow-y: auto; font-size: .92rem; }
.toc-title { margin: 0 0 .5rem; font-weight: 600; }
.help-toc ol { margin: 0; padding-left: 1.2rem; }
.help-toc li { margin: .25rem 0; }
.help-content { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 1.5rem 2rem 2rem; line-height: 1.6; }
.help-content section { padding-top: .5rem; margin-bottom: 1.8rem; scroll-margin-top: 1rem; }
.help-content section + section { border-top: 1px solid var(--line); padding-top: 1.6rem; }
.help-content h2 { font-size: 1.3rem; margin-bottom: .8rem; color: var(--accent); }
.help-content h3 { font-size: 1.05rem; margin: 1.2rem 0 .4rem; }
.help-content p, .help-content li { max-width: 80ch; }
.help-content ul { padding-left: 1.3rem; }
.help-content li { margin: .25rem 0; }
.help-content .note { background: var(--accent-soft); border-left: 3px solid var(--accent); padding: .6rem .9rem; border-radius: 0 6px 6px 0; }
.help-fig { margin: 1rem 0 1.2rem; }
.help-fig img { max-width: 100%; border: 1px solid var(--line); border-radius: 6px; display: block; }
.help-fig figcaption { font-size: .85rem; color: var(--muted); margin-top: .35rem; }
.help-table { margin: .6rem 0 1rem; }
.help-table td { vertical-align: top; }
.swatch { display: inline-block; width: 16px; height: 16px; border-radius: 3px; border: 1px solid rgba(0,0,0,.12); margin-right: .5rem; vertical-align: -3px; }
.help-content details { border: 1px solid var(--line); border-radius: 6px; padding: .6rem .9rem; margin: .5rem 0; }
.help-content details summary { cursor: pointer; font-weight: 600; }
.help-content details p { margin: .5rem 0 0; }
.glossary dt { font-weight: 600; margin-top: .7rem; }
.glossary dd { margin: .15rem 0 0 0; max-width: 80ch; }
.help-return { position: fixed; left: 1.25rem; bottom: 1.25rem; z-index: 40; box-shadow: var(--shadow); }
.print-cover { display: none; }
@media (max-width: 900px) { .help-layout { grid-template-columns: 1fr; } .help-toc { position: static; max-height: none; } }

@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }
@media (max-width: 600px) {
  :root { font-size: 14px; }
  .top nav > a { padding: .4rem .5rem; }
  .totop span { display: none; } .totop { padding: .7rem; }
}

/* ---- Impression : toujours en clair (le guide PDF est l'impression de la page d'aide) ---- */
@media print {
  :root, [data-theme] { --bg: #fff; --surface: #fff; --ink: #1b2733; --muted: #5d6975; --line: #d8dee4; --accent: #1f6aa5; --accent-soft: #eaf2fa; }
  @page { size: A4; margin: 16mm 14mm 16mm 14mm; }
  body { background: #fff; font-size: 11pt; display: block; }
  .top, .scanbar, .no-print, .help-toc, .totop, .help-link, .skip, .site-foot, .help-return, .dl-menu, .filterbar { display: none !important; }
  main.wrap { padding: 0; max-width: none; }
  .help-layout { display: block; }
  .help-content { border: 0; padding: 0; }
  .help-content h2 { break-after: avoid; color: #1d4e74; }
  .help-content section + section { break-before: page; border-top: 0; padding-top: 0; }
  .help-fig { break-inside: avoid; }
  .help-fig img { max-height: 125mm; width: auto; margin: 0 auto; }
  .help-content details { break-inside: avoid; }
  .scroll { overflow: visible; }
  .print-cover { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; height: 250mm; break-after: page; }
  .print-cover h1 { font-size: 30pt; margin: 1.2rem 0 .3rem; color: #1d4e74; }
  .print-cover .cover-sub { font-size: 16pt; margin: 0; color: #2f6da3; }
  .print-cover .cover-meta { margin-top: 2.5rem; color: #5d6975; }
  .print-cover .cover-note { margin-top: .4rem; color: #8b95a0; font-size: 9pt; }
  a { color: inherit; text-decoration: none; }
}

.theme-card { position: relative; }

/* ---- Accueil : récapitulatif cliquable ---- */
.timeline-bar a.seg { display: block; min-width: 6px; transition: filter .15s; }
.timeline-bar a.seg:hover { filter: brightness(1.1); }
.timeline-legend a { color: inherit; display: inline-flex; align-items: center; gap: .4rem; }
.timeline-legend a:hover { color: var(--accent); text-decoration: none; }
.tabs a .n + .n { margin-left: -.15rem; }
.scan-date { font-size: .78rem; }
.steps { padding-left: 1.3rem; } .steps li { margin: .35rem 0; max-width: 90ch; }

/* ---- Évolution ---- */
.evo-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.evo-head p { margin: 0; }
.period { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.period a { padding: .4rem .8rem; color: var(--ink); font-size: .9rem; border-right: 1px solid var(--line); }
.period a:last-child { border-right: 0; }
.period a:hover { background: var(--surface-2); text-decoration: none; }
.period a.on { background: var(--btn-bg); color: #fff; }
.charts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 1.2rem; }
.chart-card { margin: 0; border: 1px solid var(--line); border-radius: 8px; padding: .9rem 1rem .6rem; background: var(--surface); }
.chart-wide { grid-column: 1 / -1; }
.chart-card figcaption { display: flex; flex-direction: column; margin-bottom: .4rem; }
.chart-card figcaption span { font-size: .82rem; color: var(--muted); }
.chart { width: 100%; height: auto; display: block; }
.chart .grid { stroke: var(--line-soft); stroke-width: 1; }
.chart .ytick { font-size: 10px; fill: var(--muted); text-anchor: end; }
.chart .xtick { font-size: 10px; fill: var(--muted); text-anchor: middle; }
.chart-legend { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .82rem; color: var(--muted); margin-bottom: .2rem; }
.chart-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.chart-legend i { width: 12px; height: 3px; border-radius: 2px; display: inline-block; }
.chart-empty { color: var(--muted); font-size: .9rem; padding: 2.5rem 1rem; text-align: center; border: 1px dashed var(--line); border-radius: 6px; }
@media (max-width: 520px) { .charts-grid { grid-template-columns: 1fr; } }

/* ---- Icônes au trait (barre du haut et onglets) ---- */
.ico-line { flex: 0 0 auto; }
.top nav > a { display: inline-flex; align-items: center; gap: .4rem; }
.top nav > a .ico-line { opacity: .9; }
.tabs a .ico-line { opacity: .75; }
.tabs a.on .ico-line { opacity: 1; color: var(--accent); }

/* ---- Bouton astuce : l'astuce s'affiche au survol, au clic et au clavier ---- */
.tip-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: #b48400; cursor: help; }
[data-theme="sombre"] .tip-btn { color: var(--highlight); }
.tip-btn:hover, .tip-btn:focus-visible, .tip-btn.open { border-color: var(--highlight); }
.tip-pop { display: none; position: absolute; right: 0; top: calc(100% + 8px); z-index: 35; width: 320px; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-left: 3px solid var(--highlight); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: .65rem .8rem; font-size: .86rem; line-height: 1.45; text-align: left; cursor: default; }
.tip-btn:hover .tip-pop, .tip-btn:focus-within .tip-pop, .tip-btn.open .tip-pop { display: block; }
.timeline-title { margin: 0 0 .45rem; font-size: .93rem; }
.timeline-title .muted { font-size: .85rem; }
.whois-form { display: flex; gap: .6rem; flex-wrap: wrap; }
.whois-form input { flex: 0 1 420px; min-width: 240px; font: inherit; padding: .5rem .75rem; border: 1px solid var(--field-border);
  border-radius: var(--radius); background: var(--field-bg); color: var(--ink); }
.whois-result { margin-top: 1.4rem; border-top: 1px solid var(--line); padding-top: 1.2rem; }
.whois-result .flash { margin: .2rem 0 1rem; }

/* ---- Navigation entre domaines ---- */
.record-nav { display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; margin: 0 0 1rem;
  padding-bottom: .9rem; border-bottom: 1px solid var(--line); }
.record-pos { display: inline-flex; align-items: center; gap: .6rem; }
.record-pos .js-count { font-size: .9rem; font-variant-numeric: tabular-nums; min-width: 5.5em; text-align: center; }
.btn.is-disabled { opacity: .4; pointer-events: none; }
.radio-list { display: grid; gap: .35rem; margin: .4rem 0 .9rem; } .radio-row { font-weight: 400 !important; margin: 0 !important; }
.scan-stop { margin-left: auto; } .scan-stop .btn { padding: .25rem .7rem; font-size: .85rem; }

/* ---- Pagination : repère en haut, pagination complète en bas ---- */
.pager[hidden] { display: none; }
.pager button { font: inherit; font-size: .88rem; min-width: 34px; padding: .32rem .6rem; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); cursor: pointer; }
.pager button:hover:not(:disabled) { border-color: var(--accent); }
.pager button:disabled { opacity: .4; cursor: default; }
.pager .pg-num.on { background: var(--btn-bg); border-color: var(--btn-bg); color: #fff; font-weight: 600; }
.pager .pg-gap { color: var(--muted); padding: 0 .2rem; }
.pager .pg-size select { font-size: .86rem; padding: .25rem .4rem; }

/* ---- Réputation ---- */
.replevel, .repstate { display: inline-block; font-size: .8rem; font-weight: 600; padding: .08rem .55rem; border-radius: 4px; white-space: nowrap; }
.rl-good, .rs-ok { background: var(--flash-ok-bg); color: var(--flash-ok-fg); }
.rl-watch, .rs-warn { background: var(--warn-bg); color: var(--warn-fg); }
.rl-bad, .rs-bad { background: var(--err-strong); color: #fff; }
.rl-na, .rs-na { background: var(--neutral-bg); color: var(--neutral-fg); }
.trend-up { color: var(--ok); font-weight: 600; } .trend-down { color: var(--err); font-weight: 600; }
.period-form { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; margin: 0 0 1.2rem; }
.period-form label { display: inline-flex; gap: .4rem; align-items: center; font-size: .9rem; }
.period-form input[type=date] { font: inherit; padding: .35rem .5rem; border: 1px solid var(--field-border); border-radius: var(--radius); background: var(--field-bg); color: var(--ink); }
.rep-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .8rem; margin: 0 0 1.2rem; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: .8rem 1rem; display: flex; flex-direction: column; gap: .2rem; }
.kpi span { font-size: .82rem; color: var(--muted); }
.kpi strong { font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.num-in { width: 5.5em; font: inherit; padding: .3rem .4rem; border: 1px solid var(--field-border); border-radius: 4px; background: var(--field-bg); color: var(--ink); text-align: right; }
.rep-crit td { vertical-align: middle; }

/* ---- Ligne de pagination (au-dessus du tableau, à elle seule) ---- */
.pager-row { justify-content: flex-end; border-top: 1px solid var(--line-soft); padding-top: .55rem; }
.pager-row .count { margin-left: 0; }

/* ---- Onglets à l'intérieur d'une page (page d'un domaine) ---- */
.tab-pane > .block, .tab-pane > section.block { border: 0; border-radius: 0; background: transparent; padding: 0; margin: 0 0 1.6rem; }
.tab-pane > .block + .block { border-top: 1px solid var(--line); padding-top: 1.3rem; }
.tab-pane > *:last-child { margin-bottom: 0; }
.recap-domains { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .2rem 1rem; margin-top: .6rem; max-height: 260px; overflow-y: auto; }
.recap-domains .check { font-weight: 400; margin: 0; }
.recap-form summary { cursor: pointer; color: var(--accent); }
table.recap td.cell { font-size: .8rem; padding: .35rem .3rem; min-width: 34px; text-align: center; }
table.recap th.day { font-size: .72rem; padding: .4rem .25rem; text-align: center; }
table.recap .sticky { position: sticky; left: 0; background: var(--surface); z-index: 1; }
table.recap td.rl-good { background: var(--flash-ok-bg); color: var(--flash-ok-fg); }
table.recap td.rl-watch { background: var(--warn-bg); color: var(--warn-fg); }
table.recap td.rl-bad { background: var(--err-strong); color: #fff; }
.recap-scroll { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: .3rem; }

/* ---- Sous-onglets à l'intérieur d'un panneau (paramètres) ---- */
.subtabs { display: flex; flex-wrap: wrap; gap: .3rem; border-bottom: 1px solid var(--line); margin: -.2rem 0 1.3rem; }
.subtabs a { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .9rem; color: var(--muted); border-bottom: 2px solid transparent;
  margin-bottom: -1px; font-size: .94rem; }
.subtabs a:hover { color: var(--ink); text-decoration: none; }
.subtabs a.on { color: var(--ink); font-weight: 600; border-bottom-color: var(--accent); }
.subtabs a .ico-line { opacity: .75; } .subtabs a.on .ico-line { color: var(--accent); opacity: 1; }
.see-also { font-size: .86rem; color: var(--muted); margin: .4rem 0 0; }

/* ---- Pour bien démarrer ---- */
.onboarding { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--highlight); border-radius: 8px;
  padding: .9rem 1.1rem; margin: 0 0 1.3rem; }
.onb-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.onb-bar { height: 6px; background: var(--line-soft); border-radius: 3px; margin: .6rem 0 .7rem; overflow: hidden; }
.onb-bar span { display: block; height: 100%; background: var(--ok); border-radius: 3px; }
.onb-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: .35rem 1.5rem; }
.onb-steps li { display: flex; align-items: center; gap: .55rem; font-size: .92rem; }
.onb-steps li.done { color: var(--muted); }
.onb-steps li.done span:last-child { text-decoration: line-through; }
.onb-check { flex: 0 0 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .75rem;
  font-weight: 700; background: var(--neutral-bg); color: var(--neutral-fg); }
.onb-steps li.done .onb-check { background: var(--ok); color: #fff; }

/* =====================================================================
   Refonte visuelle (version 1.23) : charte ASIN, arrondis réduits, onglets
   ===================================================================== */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/montserrat-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/montserrat-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/montserrat-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/montserrat-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/montserrat-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/montserrat-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/montserrat-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* Jetons communs à tous les thèmes clairs : onglets « surélevés » (barre grise, onglet actif blanc) */
:root { --radius: 4px; --radius-card: 6px; --tab-strip: #e6ecf3; --tab-active-bg: var(--surface); --tab-active-fg: var(--ink); }

/* Thème ASIN (clair), couleurs de la charte graphique */
[data-theme="asin"] {
  --bg: #eef2f7; --surface: #ffffff; --surface-2: #f4f7fb; --row-hover: #f5f8fc;
  --ink: #16243a; --muted: #5b6b7d; --line: #d5dde8; --line-soft: #e8edf4;
  --field-bg: #ffffff; --field-border: #c2cedc;
  --accent: #2479ab; --accent-soft: #e3edf7; --btn-bg: #2479ab; --btn-hover: #1d6390; --on-btn: #ffffff;
  --ok: #006828; --warn: #7a5000; --warn-bg: #fff4d6; --warn-fg: #7a5000;
  --err: #b50900; --err-strong: #c40800; --err-soft: #fdecea; --err-border: #efb7b2;
  --idle: #8593a3; --neutral-bg: #e6ecf3; --neutral-fg: #3d5268;
  --flash-ok-bg: #e3f2e8; --flash-ok-border: #b5dcc3; --flash-ok-fg: #00521f;
  --flash-err-bg: #fdecea; --flash-err-border: #efb7b2; --flash-err-fg: #8f0700;
  --flash-info-bg: #e3edf7; --flash-info-border: #bcd3e8; --flash-info-fg: #1d477a;
  --scan-bg: #fff4d6; --scan-border: #f0d68a; --scan-fg: #5c3d00;
  --th-bg: #eef2f7; --th-fg: #1d477a; --tab-hover: rgba(255,255,255,.7);
  --b-expired: #eb0000; --b-7: #c94f00; --b-30: #c78308; --b-90: #7db0b2; --b-long: #006828;
  --shadow: 0 6px 18px rgba(16,36,58,.12); --highlight: #ffbe00; --logo-bg: #1d475f;
  --top-bg: #1d477a; --top-border: transparent; --top-fg: #ffffff; --top-link: #d6e2ef;
  --top-hover: rgba(255,255,255,.12); --top-active: rgba(255,255,255,.18);
  --search-bg: rgba(255,255,255,.12); --search-border: rgba(255,255,255,.25); --search-fg: #ffffff; --search-ph: #c2d3e6;
  --logo-ring: rgba(255,255,255,.35); --tab-strip: #e3e9f1;
}
/* Thème sombre : déclinaison sombre de la charte (couleurs éclaircies pour rester lisibles), onglet actif « teinté » */
[data-theme="sombre"] {
  --bg: #0f1823; --surface: #172434; --surface-2: #1c2b3d; --row-hover: #1d2c3f;
  --ink: #e6edf5; --muted: #9fb0c3; --line: #24354a; --line-soft: #1f2e41;
  --field-bg: #0f1823; --field-border: #34485f;
  --accent: #6fb6e6; --accent-soft: #1d3550; --btn-bg: #6fb6e6; --btn-hover: #8cc5ec; --on-btn: #0b1a2a;
  --ok: #5fd08a; --warn: #ffcf4d; --warn-bg: #3a2c08; --warn-fg: #ffcf4d;
  --err: #ff8577; --err-strong: #e0352b; --err-soft: #3a1517; --err-border: #6b2a26;
  --neutral-bg: #24364c; --neutral-fg: #c4d4e6;
  --flash-ok-bg: #0f3320; --flash-ok-border: #1f5a39; --flash-ok-fg: #5fd08a;
  --flash-err-bg: #3a1517; --flash-err-border: #6b2a26; --flash-err-fg: #ff8577;
  --flash-info-bg: #1d3550; --flash-info-border: #2c4c6e; --flash-info-fg: #b9d8f0;
  --th-bg: #1c2b3d; --th-fg: #c4d4e6;
  --b-expired: #eb0000; --b-7: #ff7a2f; --b-30: #ffbe00; --b-90: #7db0b2; --b-long: #2fae5f;
  --highlight: #ffbe00; --logo-bg: #0d2235;
  --top-bg: #142f52; --top-border: #1f3a5c; --top-link: #c4d4e6;
  --tab-strip: transparent; --tab-active-bg: #1d3550; --tab-active-fg: #e6edf5;
}
@media (prefers-color-scheme: light) { [data-theme="auto"] {
  --bg: #eef2f7; --surface: #ffffff; --surface-2: #f4f7fb; --row-hover: #f5f8fc; --ink: #16243a; --muted: #5b6b7d;
  --line: #d5dde8; --line-soft: #e8edf4; --accent: #2479ab; --accent-soft: #e3edf7; --btn-bg: #2479ab; --btn-hover: #1d6390;
  --ok: #006828; --err: #b50900; --err-strong: #c40800; --warn: #7a5000; --warn-bg: #fff4d6; --warn-fg: #7a5000;
  --th-bg: #eef2f7; --th-fg: #1d477a; --highlight: #ffbe00; --logo-bg: #1d475f; --top-bg: #1d477a; --top-link: #d6e2ef;
  --b-expired: #eb0000; --b-30: #c78308; --b-90: #7db0b2; --b-long: #006828; --tab-strip: #e3e9f1; } }
@media (prefers-color-scheme: dark) { [data-theme="auto"] {
  --bg: #0f1823; --surface: #172434; --surface-2: #1c2b3d; --row-hover: #1d2c3f; --ink: #e6edf5; --muted: #9fb0c3;
  --line: #24354a; --line-soft: #1f2e41; --field-bg: #0f1823; --field-border: #34485f;
  --accent: #6fb6e6; --accent-soft: #1d3550; --btn-bg: #6fb6e6; --btn-hover: #8cc5ec; --on-btn: #0b1a2a;
  --ok: #5fd08a; --warn: #ffcf4d; --warn-bg: #3a2c08; --warn-fg: #ffcf4d; --err: #ff8577; --err-strong: #e0352b; --err-soft: #3a1517;
  --neutral-bg: #24364c; --neutral-fg: #c4d4e6; --th-bg: #1c2b3d; --th-fg: #c4d4e6; --highlight: #ffbe00; --logo-bg: #0d2235;
  --top-bg: #142f52; --top-link: #c4d4e6; --b-expired: #eb0000; --b-30: #ffbe00; --b-long: #2fae5f;
  --tab-strip: transparent; --tab-active-bg: #1d3550; --tab-active-fg: #e6edf5; } }

/* Police de la charte pour les thèmes ASIN (clair, sombre, automatique) */
[data-theme="asin"] body, [data-theme="sombre"] body, [data-theme="auto"] body {
  font-family: "Montserrat", "Segoe UI", Ubuntu, "Helvetica Neue", Arial, sans-serif; }
[data-theme="asin"] body, [data-theme="sombre"] body, [data-theme="auto"] body { letter-spacing: -.005em; }

/* Arrondis : rectangles aux coins adoucis, plus de « gélules » */
.block, .tab-panel, .chart-card, .kpi, .help-content, .help-toc, .auth-card, .empty, .onboarding, .recap-scroll, .theme-card { border-radius: var(--radius-card); }
.tag, .chips button, .chips .n, .tabs .n, .replevel, .repstate, .paused, .chg, .cat, .sec, .days { border-radius: 4px; }
.help-link, .tip-btn { border-radius: 6px; }
.totop { border-radius: 6px; }

/* Onglets : souligné + surélevé (clair) / souligné + teinté (sombre) */
.tabs { gap: 2px; padding: 4px 4px 0; background: var(--tab-strip); border-radius: var(--radius-card) var(--radius-card) 0 0;
  border-bottom: 1px solid var(--line); }
.tabs a { border: 0; border-radius: 4px 4px 0 0; padding: .6rem 1rem; margin-bottom: -1px; color: var(--muted);
  border-bottom: 2px solid transparent; box-shadow: none; }
.tabs a:hover { background: var(--tab-hover); color: var(--ink); }
.tabs a.on { background: var(--tab-active-bg); color: var(--tab-active-fg); font-weight: 600; border-bottom-color: var(--accent); box-shadow: none; }
.tab-panel { border-top: 0; border-radius: 0 0 var(--radius-card) var(--radius-card); }
.tabs-row .tabs { flex: 1 1 auto; }
.tabs-row { align-items: flex-end; }
.tabs-row .tools { margin-bottom: .35rem; margin-left: .5rem; }

/* Sélecteur segmenté : pour changer de vue d'une même information (Sécurité, périodes) */
.segmented { display: inline-flex; gap: 3px; padding: 3px; background: var(--tab-strip); border: 1px solid var(--line); border-radius: var(--radius-card); margin: 0 0 1rem; }
[data-theme="sombre"] .segmented { background: var(--surface-2); }
.segmented a { padding: .4rem .8rem; border-radius: 4px; color: var(--muted); font-size: .9rem; display: inline-flex; align-items: center; gap: .4rem; }
.segmented a:hover { color: var(--ink); text-decoration: none; }
.segmented a.on { background: var(--tab-active-bg); color: var(--tab-active-fg); font-weight: 600; box-shadow: 0 1px 2px rgba(16,36,58,.12); }
.segmented .n { font-size: .75rem; background: var(--neutral-bg); color: var(--neutral-fg); border-radius: 4px; padding: 0 .35rem; }
.period { border-radius: var(--radius-card); }

/* Icônes dans les boutons */
.btn .ico-line, .linklike .ico-line, .dl-menu summary .ico-line { flex: 0 0 auto; }
.linklike { display: inline-flex; align-items: center; gap: .3rem; }

/* Accueil : quatre compteurs cliquables */
.counters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin: 0 0 1.3rem; }
.counter { display: flex; flex-direction: column; gap: .15rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: .75rem 1rem; color: var(--ink); transition: border-color .15s, background .15s; }
.counter:hover { text-decoration: none; border-color: var(--accent); background: var(--row-hover); }
.counter .c-num { font-size: 1.65rem; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.counter .c-lbl { font-size: .85rem; color: var(--muted); }
.counter.c-bad .c-num { color: var(--err); }
.counter.c-warn .c-num { color: var(--warn); }
.counter.c-ok .c-num { color: var(--ok); }
.counter.c-zero .c-num { color: var(--muted); }
@media (max-width: 760px) { .counters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tab-panel > .timeline { margin-bottom: 1.2rem; }
.user-list a, .user-list .linklike { display: flex; align-items: center; gap: .5rem; }

/* Page d'un domaine : carte de synthèse */
.synthesis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-card); padding: .9rem 1.1rem; margin: 0 0 1.2rem; }
.syn-item { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.syn-lbl { font-size: .78rem; color: var(--muted); }
.syn-val { font-size: 1.05rem; font-weight: 600; }
.syn-val.days { align-self: flex-start; font-size: 1rem; }
.syn-sub { font-size: .8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.syn-val:hover { text-decoration: none; }
.rep-good { color: var(--ok); } .rep-watch { color: var(--warn); } .rep-bad { color: var(--err); }
@media (max-width: 900px) { .synthesis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 16. Fenêtre de confirmation */
.confirm-dialog { border: 1px solid var(--line); border-radius: var(--radius-card); padding: 1.3rem 1.4rem 1.1rem; max-width: 440px; width: calc(100% - 2rem);
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.confirm-dialog::backdrop { background: rgba(10, 20, 35, .45); }
.confirm-title { font-weight: 600; font-size: 1.05rem; margin: 0 0 .5rem; }
.confirm-text { margin: 0 0 1.2rem; color: var(--ink); line-height: 1.5; }
.confirm-actions { display: flex; justify-content: flex-end; gap: .6rem; }
/* 17. Messages temporaires */
.flash { position: relative; padding-right: 2.4rem; transition: opacity .4s, transform .4s; }
.flash-close { position: absolute; top: .35rem; right: .5rem; background: none; border: 0; font-size: 1.25rem; line-height: 1; color: inherit; opacity: .6; cursor: pointer; }
.flash-close:hover { opacity: 1; }
.flash-out { opacity: 0; transform: translateY(-4px); }
/* 18. Indicateur d'attente */
.spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent;
  display: inline-block; animation: spin .7s linear infinite; margin-right: .45rem; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn.is-busy { opacity: .8; cursor: progress; }

/* 20. En-têtes des tableaux toujours visibles pendant le défilement (écrans larges) */
/* (les en-têtes suivent le défilement grâce à un en-tête flottant : voir .float-head) */

/* 21. Suggestions de recherche */
.globalsearch { position: relative; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 40; list-style: none; margin: 0; padding: .3rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow); }
.suggest[hidden] { display: none; }
.suggest li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem .6rem; border-radius: 4px; cursor: pointer; color: var(--ink); font-size: .9rem; }
.suggest li:hover, .suggest li.on { background: var(--accent-soft); }
.suggest .s-k { color: var(--muted); font-size: .78rem; white-space: nowrap; }

/* 22. Page de connexion : le dégradé de la charte ASIN, réservé à cet endroit */
[data-theme="asin"] .auth-brand, [data-theme="auto"] .auth-brand { background: linear-gradient(115deg, #4f7f9b 0%, #1d477a 58%, #1d475f 100%); }
[data-theme="sombre"] .auth-brand { background: linear-gradient(115deg, #24506e 0%, #142f52 60%, #0d2235 100%); }
.auth-points li::before { background: rgba(255,190,0,.18); color: #ffbe00; }

/* 23. Téléphone : les tableaux deviennent des fiches empilées */
@media (max-width: 700px) {
  table.list:not(.recap) thead { display: none; }
  table.list:not(.recap), table.list:not(.recap) tbody, table.list:not(.recap) tr, table.list:not(.recap) td { display: block; width: 100%; }
  table.list:not(.recap) tr { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); margin: 0 0 .6rem; padding: .4rem .7rem; }
  table.list:not(.recap) tr[hidden] { display: none; }
  table.list:not(.recap) td { border: 0 !important; padding: .3rem 0 !important; box-shadow: none !important; text-align: left !important;
    display: flex; justify-content: space-between; gap: 1rem; }
  table.list:not(.recap) td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: .8rem; flex: 0 0 40%; }
  table.list:not(.recap) td:empty { display: none; }
  .row-actions > * { margin-left: 0; margin-right: .9rem; }
}
/* En-tête de page : le texte peut passer à la ligne, les boutons restent à droite */
.head > div:first-child { flex: 1 1 360px; min-width: 0; }
.head > .actions { flex: 0 0 auto; margin-left: auto; }
@media (max-width: 700px) {
  table.list:not(.recap) td { display: block; overflow-wrap: anywhere; }
  table.list:not(.recap) td[data-label]::before { display: block; flex: none; margin-bottom: .1rem; }
  table.list:not(.recap) td .sub { white-space: normal; }
}
/* Nom de l'outil : « Vigie » en grand, « Domaines · Certificats » en petit dessous */
.brand-text { display: inline-flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-size: 1.1rem; font-weight: 600; }
.brand-sub { font-size: .68rem; font-weight: 500; color: var(--top-link); letter-spacing: .02em; }
.auth-brand h1 { margin-bottom: 0; }
.auth-sub { margin: .1rem 0 .9rem; color: #cfe0ef; font-size: 1rem; font-weight: 500; letter-spacing: .03em; }

/* Logo E : il prend la couleur du texte de la barre (blanc sur marine, bleu sur barre blanche) */
.brand .logo-mark { color: var(--top-fg); flex: 0 0 auto; }
.brand img { box-shadow: none; }
.auth-brand img { box-shadow: none; border-radius: 0; }
/* Plus de jaune décoratif : avatar, astuce et contour du focus passent au teal de la charte */
[data-theme="asin"], [data-theme="sombre"], [data-theme="auto"] { --highlight: #7db0b2; }
.avatar { background: #7db0b2; color: #16243a; }
.tip-btn { color: var(--accent); }
[data-theme="sombre"] .tip-btn { color: var(--accent); }
.tip-pop { border-left-color: var(--accent); }
.onboarding { border-left-color: var(--accent); }
.auth-points li::before { background: rgba(125,176,178,.22); color: #b6dcdd; }

/* Page d'un domaine : état à côté du titre, vue d'ensemble dans le premier onglet */
.title-with-state { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.state-pill { font-size: .78rem; font-weight: 600; padding: .15rem .6rem; border-radius: 4px; background: var(--neutral-bg); color: var(--neutral-fg); }
.sp-error { background: var(--err-soft); color: var(--err); }
.sp-warning { background: var(--warn-bg); color: var(--warn-fg); }
.sp-ok { background: var(--flash-ok-bg); color: var(--ok); }
#onglet-apercu > .synthesis { margin-top: 0; }
#onglet-apercu > .facts { margin-bottom: 1.2rem; }
#onglet-apercu > .block.registration { border: 1px solid var(--line); border-radius: var(--radius-card); padding: 1rem 1.1rem; margin-bottom: 1rem; }
.tag-abandoned { background: var(--neutral-bg); color: var(--muted); border: 1px dashed var(--field-border); }
tr.row-abandoned td:first-child { box-shadow: inset 4px 0 0 var(--line); }

/* Type de page : domaine suivi ou hôte */
.kind-label { display: inline-flex; align-items: center; gap: .35rem; margin: 0 0 .25rem; font-size: .8rem; font-weight: 600;
  color: var(--accent); letter-spacing: .02em; }
.kind-label .ico-line { width: 15px; height: 15px; }
.syn-val.small-val { font-size: .95rem; font-variant-numeric: tabular-nums; }
.notice { background: var(--accent-soft); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: .75rem 1rem; margin: 0 0 1.1rem; font-size: .92rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.notice-abandoned { background: var(--neutral-bg); border-style: dashed; }
.abandon-box summary { cursor: pointer; color: var(--muted); font-size: .92rem; }
.abandon-box[open] summary { margin-bottom: .6rem; color: var(--ink); }

/* Barre de scan : reste visible en haut de l'écran pendant tout le scan */
.scanbar { position: sticky; top: 0; z-index: 40; box-shadow: 0 2px 6px rgba(16,36,58,.08); }
/* En-tête de tableau flottant : réapparaît en haut de l'écran quand on descend dans un long tableau */
.float-head { position: fixed; z-index: 35; overflow: hidden; pointer-events: auto; box-shadow: 0 2px 6px rgba(16,36,58,.10); display: none; }
.float-head table { border-collapse: collapse; margin: 0; }
.float-head th { cursor: pointer; }
/* Mode de renouvellement */
.renew { font-size: .8rem; font-weight: 600; padding: .1rem .5rem; border-radius: 4px; white-space: nowrap; }
.renew-auto { background: var(--flash-ok-bg); color: var(--ok); }
.renew-manual { background: var(--warn-bg); color: var(--warn-fg); }
.renew-unknown { background: var(--neutral-bg); color: var(--neutral-fg); }
.renew-notice { display: block; }
/* Quoi de neuf */
.news-notice { margin-bottom: 1rem; }
.news-item h2 { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.news-ver { font-variant-numeric: tabular-nums; background: var(--accent-soft); color: var(--accent); border-radius: 4px; padding: .05rem .5rem; font-size: .9rem; }
.news-item ul { margin: .4rem 0 0; padding-left: 1.2rem; line-height: 1.6; }
.news-current { border-left: 3px solid var(--accent); }
.notice-warn { background: var(--warn-bg); border-color: var(--warn); }
.warn-txt { color: var(--warn); }
/* Verrouillage du nom de domaine */
.lock { font-size: .82rem; font-weight: 600; padding: .1rem .5rem; border-radius: 4px; }
.lock-registry, .lock-transfer { background: var(--flash-ok-bg); color: var(--ok); }
.lock-none { background: var(--warn-bg); color: var(--warn-fg); }
.lock-unknown { background: var(--neutral-bg); color: var(--neutral-fg); }

/* Pagination : une même barre en haut et en bas — lignes par page | position | pages */
.pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .8rem; margin: .9rem 0 .2rem; }
.pager-top { margin: 0; width: 100%; }
.pager-row { display: block; }
.pg-left { justify-self: start; }
.pg-mid { justify-self: center; font-size: .9rem; color: var(--muted); white-space: nowrap; }
.pg-mid .count { margin: 0; }
.pg-right { justify-self: end; display: inline-flex; align-items: center; gap: .3rem; }
.pg-size { display: inline-flex; align-items: center; gap: .45rem; font-size: .86rem; color: var(--muted); }
.pg-size select { font: inherit; padding: .25rem .4rem; border: 1px solid var(--field-border); border-radius: 4px; background: var(--field-bg); color: var(--ink); }
.pager button { min-width: 32px; padding: .28rem .55rem; }
@media (max-width: 700px) { .pager { grid-template-columns: 1fr; justify-items: center; } .pg-left, .pg-right { justify-self: center; } }

/* Onglets : rail pâle sur toute la largeur, portion de l'onglet actif en bleu foncé (3 px) */
:root { --tab-rail: #c3d6e8; }
[data-theme="sombre"] { --tab-rail: #2c4c6e; }
@media (prefers-color-scheme: dark) { [data-theme="auto"] { --tab-rail: #2c4c6e; } }
.tabs { border-bottom: 3px solid var(--tab-rail); position: relative; }
.tabs a { border-bottom: 0; margin-bottom: 0; position: relative; }
.tabs a.on { border-bottom: 0; }
.tabs a.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; background: var(--accent); border-radius: 2px 2px 0 0; }

/* Tableau des domaines : largeurs fixes, noms trop longs raccourcis (nom complet au survol) — plus de barre de défilement */
#domains { table-layout: fixed; width: 100%; }
#domains .col-domain { width: 25%; } #domains .col-state { width: 17%; } #domains .col-cert { width: 20%; }
#domains .col-reg { width: 14%; } #domains .col-sec { width: 14%; } #domains .col-act { width: 10%; }
#domains td { overflow: hidden; }
#domains .cut { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
#domains td.num .cut { margin-left: auto; }
.row-actions.stacked { text-align: right; }
.row-actions.stacked > * { display: block; margin: 0 0 .25rem auto; }
.row-actions.stacked form { margin: 0 0 .25rem; }

/* Bande d'onglets avec outils : la bande et son rail couvrent toute la largeur, « Télécharger » compris */
.tabs-row { display: flex; align-items: flex-end; background: var(--tab-strip); border-radius: var(--radius-card) var(--radius-card) 0 0;
  border-bottom: 3px solid var(--tab-rail); padding-right: .5rem; margin: 0; }
.tabs-row .tabs { background: transparent; border-bottom: 0; flex: 1 1 auto; min-width: 0; }
.tabs-row .tools { align-self: center; margin: 0 0 0 .5rem; padding: .3rem 0; }
.tabs-row + .tab-panel { border-top: 0; }
.share-bar { display: inline-block; width: 120px; height: 7px; border-radius: 4px; background: var(--line-soft); vertical-align: middle; margin-right: .4rem; overflow: hidden; }
.share-bar span { display: block; height: 100%; background: var(--accent); }
/* Paramètres : champs alignés en deux colonnes ; niveaux de réputation sur une ligne */
.grid-aligned { align-items: end; }
.form .num-in, .num-in { width: 5.5em !important; display: inline-block; margin: 0 .3rem; text-align: right; }
.levels-line { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .3rem; margin: 1rem 0 0; }
.grid.grid-aligned { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
@media (max-width: 700px) { .grid.grid-aligned { grid-template-columns: 1fr !important; } }
