/* =====================================================================
   Composants des pages du parcours (tableau de bord, Mes fichiers DSN, Contrôles, synthèse, profil, historique),
   repris de la maquette de refonte visuelle validée le 19/10/2026. La couleur suit le sens métier :
   rouge = anomalie, ambre = à vérifier ou incomplet, vert = conforme ou complet, bleu = action ou information,
   gris = neutre ou « bientôt ».
   ===================================================================== */
:root {
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --line: #dfe6ea;
    --line-strong: #c7d1d8;
    --ink: #3d4f5d;
    --muted: #718393;
    --green-ink: #157a56;
    --green-bar: #1c9d6f;
    --red: #c2321b;
    --red-bar: #e0432a;
    --red-pale: #fdecea;
    --amber: #8a5a0f;
    --amber-bar: #d89324;
    --amber-pale: #fdf3e2;
    --gray-pale: #eef2f5;
    --gray-ink: #5b6b78;
    --on-accent: #ffffff;
}

.ic { width: 1.05em; height: 1.05em; flex: none; vertical-align: -0.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 0.82rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.row { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.row form { margin: 0; }
[hidden] { display: none !important; }

/* En-tête de page et cartes */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.page-head h1 { margin: 0; }
.page-head .sub { margin: 0.35rem 0 0; color: var(--ink-soft); font-size: 0.88rem; }
.crumb { font-size: 0.85rem; margin-bottom: 0.5rem; display: inline-flex; gap: 0.3rem; align-items: center; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 1.25rem; margin-bottom: 1.1rem; min-width: 0; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.9rem; }
.card-head h2 { margin: 0; }
.card-head .hint { font-size: 0.8rem; color: var(--muted); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; margin-bottom: 1.1rem; }
.grid2 > .card { margin-bottom: 0; }

/* Boutons */
.btn-pri { background: var(--orange); color: var(--on-accent); }
.btn-pri:hover { background: var(--orange-dark); color: var(--on-accent); box-shadow: var(--shadow-md); }
.btn-sec { background: transparent; color: var(--blue); border-color: var(--blue); }
/* Contrôle avec historique (Mes fichiers DSN) : bleu plein, distinct de l'orange des actions principales */
.btn-bleu { background: var(--blue); color: var(--on-accent); }
.btn-bleu:hover { background: var(--blue-dark); color: var(--on-accent); box-shadow: var(--shadow-md); }
.btn-sec:hover { background: var(--blue-pale); color: var(--blue-dark); }
.btn-ghost { background: var(--gray-pale); color: var(--navy); }
.btn-ghost:hover { background: var(--line); color: var(--navy); }
.btn-sm { padding: 0.32rem 0.8rem; font-size: 0.78rem; }
.lnk { font: 600 0.8rem var(--font-family); background: none; border: 0; color: var(--blue); cursor: pointer; padding: 0.2rem 0.1rem; display: inline-flex; gap: 0.25rem; align-items: center; }
.lnk:hover { text-decoration: underline; }
.lnk-danger { color: var(--red); }
.lnk-discret { color: var(--muted); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }

/* Pastilles */
.chip { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.14rem 0.6rem; border-radius: var(--radius-pill); font-size: 0.75rem; font-weight: 600; white-space: nowrap; line-height: 1.5; }
.chip .ic { width: 0.9em; height: 0.9em; }
.ok { background: var(--green-pale); color: var(--green-ink); }
.err { background: var(--red-pale); color: var(--red); }
.warn { background: var(--amber-pale); color: var(--amber); }
.info { background: var(--blue-pale); color: var(--blue-dark); }
.mute { background: var(--gray-pale); color: var(--gray-ink); }
a.chip:hover { text-decoration: underline; text-underline-offset: 2px; }

/* Alertes */
.alert { display: flex; gap: 0.8rem; align-items: flex-start; border-radius: var(--radius-md); padding: 0.85rem 1rem; margin-bottom: 1.1rem; font-size: 0.88rem; border: 1px solid transparent; }
.alert > .ic { width: 1.3rem; height: 1.3rem; margin-top: 0.05rem; }
.alert.warn { border-color: var(--amber-bar); }
.alert.ok { border-color: var(--green-bar); }
.alert .grow { flex: 1; min-width: 0; }
.alert .row { margin-top: 0.55rem; }

/* Frise d'avancement du mois */
.steps { list-style: none; margin: 0 0 1.1rem; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 0.9rem 1rem; display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.step .st-top { display: flex; align-items: center; gap: 0.5rem; font-size: 0.74rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.step .dot { width: 1.55rem; height: 1.55rem; border-radius: 50%; display: grid; place-items: center; flex: none; }
.step .dot .ic { width: 0.9rem; height: 0.9rem; }
.step b { color: var(--navy); font-size: 0.95rem; }
.step p { margin: 0; font-size: 0.8rem; color: var(--ink-soft); }
.step.is-next { border: 2px solid var(--orange); box-shadow: var(--shadow-md); }
.step.is-soon { background: var(--surface-2); border-style: dashed; }
.step form { margin: 0.25rem 0 0; }

/* Indicateurs */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }
.kpi { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 0.8rem 1rem; background: var(--surface-2); min-width: 0; }
.kpi .lab { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 600; }
.kpi .val { font-size: 1.45rem; font-weight: 700; color: var(--navy); margin: 0.15rem 0; white-space: nowrap; }
.kpi .det { font-size: 0.76rem; color: var(--ink-soft); }
.delta { display: inline-flex; align-items: center; gap: 0.2rem; font-size: 0.75rem; font-weight: 600; color: var(--gray-ink); white-space: nowrap; }
.delta.notable { color: var(--amber); }
.delta.bad { color: var(--red); }

/* Complétude */
.meter { margin-bottom: 0.85rem; }
.meter-top { display: flex; justify-content: space-between; font-size: 0.84rem; margin-bottom: 0.3rem; }
.meter-top b { color: var(--navy); }
.meter-top b.w { color: var(--amber); }
.track { height: 0.5rem; border-radius: var(--radius-pill); background: var(--gray-pale); overflow: hidden; }
.fill { height: 100%; border-radius: var(--radius-pill); background: var(--green-bar); }
.fill.w { background: var(--amber-bar); }
.fill.b { background: var(--blue); }
.manque { margin-top: 0.4rem; padding: 0.65rem 0.8rem; border-radius: var(--radius-md); background: var(--amber-pale); color: var(--amber); font-size: 0.82rem; display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }

/* Contrôles du mois */
.ctl-list { list-style: none; margin: 0; padding: 0; }
.ctl-list li { display: flex; align-items: center; gap: 0.8rem; padding: 0.7rem 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.ctl-list li:first-child { border-top: 0; padding-top: 0; }
.ctl-list .ctl-ic { width: 2.1rem; height: 2.1rem; border-radius: var(--radius-md); display: grid; place-items: center; flex: none; }
.ctl-list .ctl-txt { flex: 1; min-width: 10rem; }
.ctl-list .ctl-txt b { display: block; color: var(--navy); font-size: 0.9rem; }
.ctl-list .ctl-txt small { color: var(--muted); font-size: 0.78rem; }
.ctl-list .ctl-res { display: flex; gap: 0.35rem; flex-wrap: wrap; justify-content: flex-end; align-items: center; }

/* Tableaux */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-md); }
.tbl { border-collapse: collapse; width: 100%; font-size: 0.84rem; background: var(--surface); }
.tbl th { text-align: left; font-weight: 600; color: var(--navy); background: var(--surface-2); padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); white-space: nowrap; font-size: 0.78rem; }
.tbl td { padding: 0.65rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.r, .tbl th.r { text-align: right; }
.fname { font-weight: 600; color: var(--navy); display: flex; align-items: center; gap: 0.4rem; }
.sub2 { font-size: 0.76rem; color: var(--muted); margin-top: 0.1rem; }
.actions-fichier { display: flex; gap: 0.4rem; justify-content: flex-end; align-items: center; flex-wrap: nowrap; }
.actions-fichier form { margin: 0; }
.confirm { display: inline-flex; gap: 0.4rem; align-items: center; font-size: 0.78rem; color: var(--red); background: var(--red-pale); padding: 0.25rem 0.55rem; border-radius: var(--radius-pill); white-space: nowrap; }

/* Dépôt */
.drop { border: 2px dashed var(--line-strong); border-radius: var(--radius-lg); padding: 1.2rem; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; background: var(--surface-2); transition: border-color 0.2s, background 0.2s; }
.drop.survol { border-color: var(--blue); background: var(--blue-pale); }
.drop .big { width: 3rem; height: 3rem; border-radius: 50%; background: var(--blue-pale); color: var(--blue); display: grid; place-items: center; flex: none; }
.drop .big .ic { width: 1.4rem; height: 1.4rem; }
.drop .grow { flex: 1; min-width: 200px; }
.drop .grow p { margin: 0.2rem 0 0; }
.drop b { color: var(--navy); }
.drop .choisis { font-size: 0.8rem; color: var(--navy); font-weight: 600; }

/* Mes fichiers DSN : années et mois */
details.year { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); margin-bottom: 1.1rem; box-shadow: var(--shadow-sm); overflow: hidden; }
details.year > summary { list-style: none; cursor: pointer; padding: 1rem 1.25rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
details.year > summary::-webkit-details-marker { display: none; }
.chev { transition: transform 0.2s; }
details[open] > summary .chev { transform: rotate(90deg); }
.year-title { font-size: 1.25rem; font-weight: 700; color: var(--navy); }
.months { display: flex; gap: 3px; flex: 1; min-width: 180px; max-width: 360px; }
.months a, .months span { flex: 1; height: 1.6rem; border-radius: 4px; background: var(--gray-pale); font-size: 0.6rem; display: grid; place-items: center; color: var(--muted); font-weight: 600; text-decoration: none; }
.months .m-ok { background: var(--green-pale); color: var(--green-ink); }
.months .m-w { background: var(--amber-pale); color: var(--amber); }
.month { border-top: 1px solid var(--line); padding: 1rem 1.25rem; }
.month-head { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.month-head h3 { font-size: 1.02rem; min-width: 5.5rem; margin: 0; text-transform: capitalize; }
.month-head .sp { flex: 1; }
.month-head form { margin: 0; }
.month-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; margin-bottom: 0.8rem; }
.fact { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 0.5rem 0.7rem; font-size: 0.76rem; min-width: 0; }
.fact .k { color: var(--muted); display: block; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.66rem; }
.fact .v { color: var(--navy); font-weight: 600; font-size: 0.84rem; }

/* Filtres, récapitulatifs, états vides */
.filters { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.seg { display: inline-flex; background: var(--gray-pale); border-radius: var(--radius-pill); padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg a { font-size: 0.8rem; font-weight: 600; color: var(--navy-soft); padding: 0.35rem 0.85rem; border-radius: var(--radius-pill); white-space: nowrap; text-decoration: none; }
.seg a[aria-current="true"] { background: var(--surface); color: var(--navy); box-shadow: var(--shadow-sm); }
.seg a:hover { color: var(--navy); }
.select { font: 600 0.84rem var(--font-family); color: var(--navy); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-pill); padding: 0.4rem 0.9rem; }
.summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; margin-bottom: 1.1rem; }
.sumbox { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 0.75rem 1rem; border-left-width: 4px; }
.sumbox .n { font-size: 1.4rem; font-weight: 700; color: var(--navy); }
.sumbox .l { font-size: 0.78rem; color: var(--ink-soft); }
.sumbox.s-err { border-left-color: var(--red-bar); }
.sumbox.s-warn { border-left-color: var(--amber-bar); }
.sumbox.s-ok { border-left-color: var(--green-bar); }
.sumbox.s-mute { border-left-color: var(--line-strong); }
.empty { text-align: center; padding: 2rem 1rem; color: var(--ink-soft); }
.empty .ic { width: 2.2rem; height: 2.2rem; color: var(--green-bar); margin-bottom: 0.4rem; }
.empty b { display: block; color: var(--navy); margin-bottom: 0.2rem; }
.note { font-size: 0.8rem; color: var(--muted); display: flex; gap: 0.4rem; align-items: flex-start; margin: 0.6rem 0 0; }

/* Bilan */
.bil-sec { margin-bottom: 1.1rem; }
.bil-sec > h2 { font-size: 1rem; margin-bottom: 0.6rem; display: flex; gap: 0.5rem; align-items: center; }
.bil-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
details.fold > summary { cursor: pointer; list-style: none; display: flex; gap: 0.5rem; align-items: center; font-weight: 600; color: var(--navy); padding: 0.75rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold[open] > summary { border-radius: var(--radius-md) var(--radius-md) 0 0; border-bottom: 0; }
details.fold[open] > .bil-list { border-radius: 0 0 var(--radius-md) var(--radius-md); }

/* Synthèse : cotisations par organisme */
.org { display: grid; grid-template-columns: minmax(0, 1fr) 7rem; gap: 0.3rem 0.8rem; align-items: center; padding: 0.55rem 0; border-top: 1px solid var(--line); }
.org:first-of-type { border-top: 0; }
.org .nm { font-size: 0.86rem; color: var(--navy); font-weight: 600; overflow-wrap: anywhere; }
.org .nm small { display: block; font-weight: 500; color: var(--muted); font-size: 0.74rem; }
.org .mt { text-align: right; font-weight: 700; color: var(--navy); }
.org .track { grid-column: 1 / -1; height: 0.45rem; }

/* Profil */
.opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.opt { border: 1.5px solid var(--line); border-radius: var(--radius-md); padding: 0.9rem 1rem; display: flex; gap: 0.7rem; align-items: flex-start; cursor: pointer; background: var(--surface); margin: 0; }
.opt:has(input:checked) { border-color: var(--blue); background: var(--blue-pale); }
.opt.dis { cursor: not-allowed; background: var(--surface-2); border-style: dashed; }
.opt b { display: block; color: var(--navy); font-size: 0.9rem; }
.opt small { font-size: 0.78rem; color: var(--ink-soft); }
.opt input { margin-top: 0.2rem; accent-color: var(--blue); width: 1.05rem; height: 1.05rem; flex: none; }
.sw-row { display: grid; grid-template-columns: auto 5.5rem 1fr auto; gap: 0.75rem; align-items: center; padding: 0.55rem 0; border-top: 1px solid var(--line); font-size: 0.84rem; }
.sw-row b { color: var(--navy); }
.switch { position: relative; width: 2.4rem; height: 1.35rem; flex: none; display: inline-block; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: var(--radius-pill); background: var(--line-strong); transition: background 0.2s; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: calc(1.35rem - 6px); height: calc(1.35rem - 6px); border-radius: 50%; background: var(--surface); transition: transform 0.2s; }
.switch input:checked + span { background: var(--green-bar); }
.switch input:checked + span::after { transform: translateX(1.05rem); }
.switch input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1rem; font-size: 0.86rem; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--navy); font-weight: 600; min-width: 0; overflow-wrap: anywhere; }

/* Historique */
.cov td, .cov th { text-align: center; }
.cov td:first-child, .cov th:first-child { text-align: left; }
.cell { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 6px; font-size: 0.7rem; }
.cell.y { background: var(--green-pale); color: var(--green-ink); }
.cell.n { background: var(--gray-pale); color: var(--muted); }
.refus summary { cursor: pointer; color: var(--blue); font-size: 0.78rem; font-weight: 600; margin-top: 0.2rem; }
.refus div { margin-top: 0.35rem; font-size: 0.78rem; color: var(--ink-soft); white-space: pre-line; }

/* Accueil */
.todo { list-style: none; margin: 0; padding: 0; }
.todo li { display: flex; gap: 0.8rem; align-items: center; padding: 0.75rem 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.todo li:first-child { border-top: 0; }
.todo .grow { flex: 1; min-width: 180px; }
.todo b { color: var(--navy); }

@media (max-width: 980px) {
    .steps { grid-template-columns: 1fr 1fr; }
    .kpis, .summary { grid-template-columns: 1fr 1fr; }
    .opts { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .grid2 { grid-template-columns: 1fr; }
    .month-facts { grid-template-columns: 1fr 1fr; }
    .sw-row { grid-template-columns: auto 1fr; }
    .sw-row .lib { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
    .steps, .kpis, .summary { grid-template-columns: 1fr; }
    .card { padding: 1rem; }
    .month { padding: 1rem; }
    details.year > summary { padding: 1rem; }
}

/* Menu en pilules */
.menu { gap: 0.2rem; }
.menu a { padding: 0.42rem 0.8rem; border-radius: var(--radius-pill); }
.menu a:hover { background: var(--gray-pale); color: var(--navy); }
.menu a.actif { background: var(--blue-pale); color: var(--navy); font-weight: 600; }
.menu a.actif::after { display: none; }
.menu { flex-wrap: wrap; min-width: 0; }
.menu a { white-space: nowrap; display: inline-block; }
.kpi .val, .sumbox .n, .step b, .fact .v { text-align: left; }
.avatar { width: 2rem; height: 2rem; border-radius: 50%; background: var(--navy); color: var(--on-accent); display: grid; place-items: center; font-weight: 700; font-size: 0.78rem; text-decoration: none; flex: none; }
.avatar:hover { background: var(--blue-dark); color: var(--on-accent); text-decoration: none; }

/* Barres de progression des traitements (chargement, contrôles) */
.progression { min-width: 9rem; max-width: 22rem; }
.progression-tete { display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.74rem; color: var(--blue-dark); font-weight: 600; margin-bottom: 0.2rem; }
.progression .track { height: 0.4rem; }
.progression .fill { transition: width 0.6s ease; }
.progression .fill.indetermine { animation: va-et-vient 1.4s ease-in-out infinite; }
@keyframes va-et-vient { 0% { margin-left: 0; } 50% { margin-left: 65%; } 100% { margin-left: 0; } }
@media (prefers-reduced-motion: reduce) { .progression .fill.indetermine { animation: none; } }
.telecharger { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: var(--radius-sm); background: var(--blue-pale); color: var(--blue); flex: none; }
.telecharger:hover { background: var(--blue); color: var(--on-accent); }
details.controle.cible > summary { background: var(--blue-pale); }
details.controle[open] > summary { border-bottom: 1px solid var(--line); }
details.controle .tbl-wrap { max-height: 26rem; overflow: auto; }

/* Utilitaires (la politique de sécurité du contenu interdit les attributs style) */
.sprite { position: absolute; }
.capitale { text-transform: capitalize; }
.centre { justify-content: center; margin-top: 1rem; }
.gras { font-weight: 600; }
.marge-haut { margin-top: 1rem; }
.marge-bas { margin: 0 0 0.8rem; }
.message-long { white-space: pre-line; max-width: 32rem; }
.bas-arrondi { border-radius: 0 0 var(--radius-md) var(--radius-md); }
.famille { margin: 0.6rem 0 0.3rem; font-weight: 600; font-size: 0.82rem; color: var(--muted); }
.detail-controle { padding: 0 0.75rem 1rem; }
.mois-lien { min-width: 7.5rem; font-weight: 600; }
.t-ok { color: var(--green-ink); }
.t-err { color: var(--red); }
.t-warn { color: var(--amber); }
.t-info { color: var(--blue); }
.t-mute { color: var(--muted); }
.t-navy { color: var(--navy); }
.empty > .ic.t-info, .empty > .ic.t-mute { color: inherit; }
.empty > .ic.t-info { color: var(--blue); }
.empty > .ic.t-mute { color: var(--muted); }
.normal { font-weight: 500; }

/* Icônes des titres, en-têtes de colonnes, indicateurs */
.card-head h2 { display: flex; align-items: center; gap: 0.5rem; }
.card-head h2 .ic { color: var(--blue); width: 1.1em; height: 1.1em; }
.tbl th .ic { color: var(--muted); width: 0.95em; height: 0.95em; margin-right: 0.15rem; }
.fact .k .ic { width: 0.95em; height: 0.95em; vertical-align: -0.15em; }
.kpi { position: relative; padding-right: 3.6rem; }
.kpi-ic { position: absolute; top: 0.75rem; right: 0.75rem; width: 2.3rem; height: 2.3rem; border-radius: var(--radius-md); display: grid; place-items: center; }
.kpi-ic .ic { width: 1.2rem; height: 1.2rem; }
.c-bleu { background: var(--blue-pale); color: var(--blue); }
.c-vert { background: var(--green-pale); color: var(--green-ink); }
.c-ambre { background: var(--amber-pale); color: var(--amber); }
.c-violet { background: #f1ebfb; color: #6b3fbf; }
.sumbox { position: relative; }
.sumbox .sum-ic { position: absolute; top: 0.8rem; right: 0.9rem; width: 1.4rem; height: 1.4rem; opacity: 0.85; }

/* Mise en page fixe : menu en haut, pied en bas, seul le contenu défile ; le titre de la page reste visible */
html, body { height: 100%; }
/* clip et non hidden : un lien d'ancre ou un scrollIntoView ne peut pas faire défiler la page entière (pied qui monte, haut caché) */
html { overflow: clip; }
/* body fixé sur la fenêtre : même si la fenêtre défile (ancre, focus, élément en position absolue qui déborde), le menu reste
   en haut et le pied en bas ; les éléments en position absolue sont contenus et rognés par body */
body { display: flex; flex-direction: column; overflow: clip; position: fixed; inset: 0; }
body > .entete { flex: none; position: static; }
body > main { flex: 1; overflow-y: auto; overflow-x: hidden; min-height: 0; scroll-padding-top: 6rem; }
body > .pied { flex: none; }
.page { padding: 0 2.5rem 2rem; }
.page > .page-head, .page > h1:first-child, .page > .crumb + .page-head {
    position: sticky; top: 0; z-index: 20; background: var(--panel);
    margin: 0 -2.5rem 1.1rem; padding: 1.1rem 2.5rem 0.8rem; border-bottom: 1px solid var(--line);
}
.page > .crumb { display: inline-flex; margin-top: 1rem; }
.page > .crumb + .page-head { padding-top: 0.4rem; }
details.controle .tbl-wrap { margin: 0 0.25rem; }
.detail-controle { padding: 0.25rem 1rem 1rem; }
@media (max-width: 760px) {
    .page { padding: 0 1rem 1.5rem; }
    .page > .page-head, .page > h1:first-child, .page > .crumb + .page-head { margin: 0 -1rem 1rem; padding: 0.9rem 1rem 0.7rem; }
}

/* Tri des tableaux */
table th.triable { cursor: pointer; user-select: none; white-space: nowrap; }
.tbl th.triable:hover, .tableau th.triable:hover { color: var(--blue); }
table th.triable::after { content: '↕'; margin-left: 0.3rem; color: var(--line-strong); font-size: 0.8em; }
table th.triable[aria-sort="ascending"]::after { content: '▲'; color: var(--blue); }
table th.triable[aria-sort="descending"]::after { content: '▼'; color: var(--blue); }

/* Fond blanc, titres en bleu avec icône */
:root { --panel: #ffffff; --surface-2: #ffffff; }
body { background: var(--surface); }
.page-head h1 { color: var(--blue-dark); display: flex; align-items: center; gap: 0.5rem; }
.page-head h1 .ic { color: var(--blue); width: 1.05em; height: 1.05em; }
.card-head h2, .titre-section { color: var(--blue-dark); }
.page-head .crumb { margin: 0 0 0.35rem; }
.kpi, .fact, .step, .sumbox { background: var(--surface); }

/* Étiquettes de synthèse qui filtrent les contrôles affichés, avec le comptage par thème */
button.sumbox { font: inherit; text-align: left; cursor: pointer; display: block; width: 100%; color: inherit; transition: box-shadow 0.15s, background 0.15s; }
button.sumbox:hover { box-shadow: var(--shadow-md); }
.sumbox .n, .sumbox .l, .sumbox .par-theme { display: block; }
.sumbox .par-theme { font-size: 0.72rem; color: var(--muted); margin-top: 0.35rem; line-height: 1.4; padding-right: 1.5rem; }
button.sumbox[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--blue); background: var(--blue-pale); }

/* Bilan par thème : thème mis en évidence, plier / déplier le thème et chaque contrôle */
.barre-bilan { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin: 0 0 0.9rem; }
details.theme { border: 1px solid var(--line); border-radius: var(--radius-lg); margin-bottom: 1.1rem; background: var(--surface); overflow: hidden; box-shadow: var(--shadow-sm); }
details.theme > summary { list-style: none; cursor: pointer; display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; padding: 0.85rem 1.1rem; background: var(--blue-pale); }
details.theme > summary::-webkit-details-marker { display: none; }
details.theme > summary .chev { width: 1.2rem; height: 1.2rem; color: var(--blue-dark); }
.theme-nom { font-size: 1.15rem; font-weight: 700; color: var(--navy); margin-right: 0.4rem; }
details.theme > .bil-list { border: 0; border-radius: 0; }
details.controle > summary { align-items: center; }
details.controle > summary .chev { color: var(--muted); flex: none; }
/* Défilement fluide : le navigateur ne dessine que les contrôles à l'écran */
details.controle { content-visibility: auto; contain-intrinsic-size: auto 3.4rem; }
details.controle[open] > summary { background: var(--surface); }

/* Choix du mois : titre cliquable et calendrier */
.choix-mois { position: relative; }
.choix-mois h1 { margin: 0; }
.titre-mois { font: inherit; color: inherit; background: none; border: 0; padding: 0.1rem 0.4rem; margin: 0 -0.4rem; border-radius: var(--radius-md); cursor: pointer; display: inline-flex; align-items: center; gap: 0.5rem; text-transform: inherit; }
.titre-mois:hover, .titre-mois[aria-expanded="true"] { background: var(--blue-pale); }
.titre-mois .chev-bas { width: 0.7em; height: 0.7em; color: var(--blue); }
.calendrier { position: absolute; top: calc(100% + 0.4rem); left: 0; z-index: 60; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 0.9rem; width: 19rem; text-transform: none; }
.cal-tete { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.6rem; }
.cal-tete b { color: var(--navy); font-size: 1.05rem; }
.cal-grille { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.35rem; }
.cal-grille a { display: grid; place-items: center; padding: 0.5rem 0; border-radius: var(--radius-md); font-size: 0.84rem; font-weight: 600; color: var(--navy); background: var(--gray-pale); text-decoration: none; }
.cal-grille a:hover { box-shadow: 0 0 0 2px var(--blue); text-decoration: none; }
.cal-grille a.cal-ok { background: var(--green-pale); color: var(--green-ink); }
.cal-grille a.cal-w { background: var(--amber-pale); color: var(--amber); }
.cal-grille a.cal-courant { box-shadow: 0 0 0 2px var(--blue); }
.cal-legende { display: flex; gap: 0.6rem; margin-top: 0.7rem; font-size: 0.72rem; color: var(--muted); }
.cal-legende span::before { content: ''; display: inline-block; width: 0.6rem; height: 0.6rem; border-radius: 3px; margin-right: 0.25rem; background: var(--gray-pale); vertical-align: -1px; }
.cal-legende .cal-ok::before { background: var(--green-pale); border: 1px solid var(--green-bar); }
.cal-legende .cal-w::before { background: var(--amber-pale); border: 1px solid var(--amber-bar); }
.depose { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.9rem; font-size: 0.88rem; color: var(--navy); }
.depose .ic { color: var(--blue); }

/* Contenu des tableaux et descriptions en noir */
.tbl td { color: #1b2733; }
.detail-controle > p.small.muted { color: #1b2733; }
.pied-controle { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 0.6rem; }
.pied-controle .note { margin: 0; }
details.theme > summary .lnk { margin-left: auto; }

/* Mois pliables dans Mes fichiers DSN */
details.month > summary { list-style: none; cursor: pointer; }
details.month > summary::-webkit-details-marker { display: none; }
details.month > summary .chev { color: var(--muted); }
details.month:not([open]) > summary { margin-bottom: 0; }
.empty .btn .ic { color: inherit; width: 1.05em; height: 1.05em; margin: 0; }

/* Dépôt : fichiers choisis bien visibles, bouton direct des en-têtes */
.drop .choisis { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.5rem; padding: 0.3rem 0.8rem; border-radius: var(--radius-pill);
                 background: var(--green-pale); color: var(--green-ink); font-size: 0.92rem; font-weight: 700; }
.drop .choisis::before { content: '✓'; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; box-shadow: none; transform: none; }
.depot-direct { margin: 0; }
.depot-direct label { cursor: pointer; margin: 0; }
.depot-direct label.envoi { opacity: 0.6; pointer-events: none; }

/* Suivi des anomalies */
.suivi-cellule button.chip { border: 0; cursor: pointer; font-family: inherit; }
.suivi-cellule .commentaire { font-style: italic; max-width: 16rem; }
.dialogue-suivi { border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 1.25rem 1.5rem; width: min(30rem, calc(100% - 2rem)); }
.dialogue-suivi::backdrop { background: rgba(18, 51, 77, 0.35); }
.dialogue-suivi h2 { display: flex; gap: 0.5rem; align-items: center; color: var(--blue-dark); }
.dialogue-suivi .select, .dialogue-suivi textarea { width: 100%; }

/* Suivi : comptage des statuts, filtre à cases à cocher, commentaire au survol */
.statuts { display: inline-flex; flex-wrap: wrap; gap: 0.25rem; align-items: center; }
.statuts .chip b { font-weight: 700; margin-left: 0.15rem; }
details.controle > summary .nombre { display: inline-flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; justify-content: flex-end; }
.suivi-cellule button.chip.commente { text-decoration: underline dotted; text-underline-offset: 3px; } /* commentaire au survol */
details.choix-statuts { position: relative; }
details.choix-statuts > summary { list-style: none; cursor: pointer; display: inline-flex; gap: 0.35rem; align-items: center; min-width: 13rem; }
details.choix-statuts > summary::-webkit-details-marker { display: none; }
details.choix-statuts .choix-liste { position: absolute; z-index: 20; right: 0; top: calc(100% + 0.25rem); background: var(--surface, #fff); border: 1px solid var(--line);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 0.6rem 0.8rem; display: grid; gap: 0.35rem; min-width: 14rem; }
details.choix-statuts label { display: flex; gap: 0.5rem; align-items: center; cursor: pointer; }
.ctl-suivi { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; padding-top: 0.6rem; border-top: 1px solid var(--line); margin-top: 0.4rem; }
.ctl-suivi .l { color: var(--muted); font-size: 0.85rem; }

/* Fiche du contrôle (bilan) et fenêtre des extractions de rapprochement */
details.fiche-controle { margin: 0.25rem 0 0.75rem; }
details.fiche-controle > summary { cursor: pointer; color: var(--blue-dark); font-weight: 600; display: inline-flex; gap: 0.35rem; align-items: center; }
details.fiche-controle .fiche-corps { background: var(--surface-2, #f6f9fc); border-radius: var(--radius); padding: 0.6rem 0.9rem; margin-top: 0.4rem; }
details.fiche-controle .fiche-corps p { margin: 0.3rem 0; white-space: pre-line; }
.dialogue-extractions { border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 1rem 1.25rem;
    width: min(1400px, calc(100% - 2rem)); max-height: calc(100vh - 2rem); overflow: auto; }
.dialogue-extractions::backdrop { background: rgba(18, 51, 77, 0.35); }
.dialogue-extractions .fermer { position: sticky; top: 0; float: right; z-index: 2; }
.extractions h2 { display: flex; gap: 0.5rem; align-items: center; color: var(--blue-dark); margin: 0 0 0.25rem; }
.extractions .ext-tete { display: flex; gap: 1rem; justify-content: space-between; align-items: flex-start; padding-right: 6rem; }
.extractions .ext-constat { margin: 0.2rem 0 0.6rem; }
.extractions .ext-faits { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; margin: 0 0 0.8rem; }
.extractions .ext-faits dt { font-size: 0.78rem; color: var(--muted); }
.extractions .ext-faits dd { margin: 0; font-weight: 600; }
.extractions details.ext-fiche, .extractions details.ext-bloc { border: 1px solid var(--line); border-radius: var(--radius); margin: 0.5rem 0; }
.extractions details > summary { cursor: pointer; padding: 0.55rem 0.8rem; display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.extractions details > summary .espace { flex: 1; }
.extractions .ext-fiche-corps { padding: 0 0.9rem 0.6rem; }
.extractions .ext-fiche-corps h4 { margin: 0.6rem 0 0.15rem; color: var(--blue-dark); font-size: 0.9rem; }
.extractions .ext-texte { margin: 0; white-space: pre-line; }
.extractions .ext-table { max-height: 26rem; overflow: auto; border-top: 1px solid var(--line); }
.extractions tr.repere td { background: #fff2cc; font-weight: 600; }

/* Catalogue des contrôles : mêmes faits et textes que la fenêtre des extractions */
.ext-faits { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; margin: 0 0 0.8rem; }
.ext-faits dt { font-size: 0.78rem; color: var(--muted); }
.ext-faits dd { margin: 0; font-weight: 600; }
.catalogue .fiche-corps h4 { margin: 0.7rem 0 0.15rem; color: var(--blue-dark); font-size: 0.9rem; }
.catalogue .ext-texte { margin: 0; white-space: pre-line; }
.catalogue details.controle .detail-controle { padding: 0.6rem 1rem 1rem; }

/* =====================================================================
   Pages de bilan des contrôles (maquette UX validée le 20/10/2026) : avancement du traitement des constats séparé du
   comptage des contrôles, lancements en tuiles, contrôles groupés par thème, sommaire collant, menu d'actions,
   sélection de constats, grille annuelle par mois de rattachement.
   ===================================================================== */
.point { display: inline-block; width: 0.55rem; height: 0.55rem; border-radius: 50%; flex: none; background: var(--line-strong); }
.point.err { background: var(--red-bar); }
.point.warn { background: var(--amber-bar); }
.point.ok { background: var(--green-bar); }
.point.info { background: var(--blue); }
.point.mute { background: var(--line-strong); }

/* Avancement du traitement (constats) et comptage des contrôles */
.traitement { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1rem; margin-bottom: 1rem; }
.traitement > .card { margin-bottom: 0; }
.grand-nombre { display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; }
.grand-nombre .n { font-size: 2rem; font-weight: 700; color: var(--navy); line-height: 1; }
.grand-nombre .l { color: var(--ink-soft); font-size: 0.92rem; }
.grand-nombre .lnk { margin-left: auto; }
.barre-suivi { display: flex; gap: 2px; height: 0.7rem; border-radius: var(--radius-pill); overflow: hidden; background: var(--gray-pale); margin: 0.75rem 0 0.6rem; }
.barre-suivi > span { display: block; height: 100%; min-width: 3px; }
.barre-suivi.mini { height: 0.42rem; margin: 0; gap: 1px; width: 100%; }
.bs-atraiter { background: var(--red-bar); }
.bs-encours { background: var(--blue); }
.bs-traite { background: var(--green-bar); }
.bs-archive { background: var(--line-strong); }
.legende-suivi { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; font-size: 0.82rem; }
.legende-suivi > span { display: inline-flex; align-items: center; gap: 0.35rem; }
.legende-suivi b { color: var(--navy); }
.traitement .ctl-suivi { border-top: 0; padding-top: 0; margin-top: 0.2rem; }
.compte-controles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; margin-top: 0.6rem; }
.compte-controles .cc { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 0.5rem 0.7rem; background: var(--surface); min-width: 0; text-align: left; font: inherit; color: inherit; }
.compte-controles .cc .n { display: block; font-size: 1.3rem; font-weight: 700; color: var(--navy); line-height: 1.15; }
.compte-controles .cc .l { display: flex; align-items: center; gap: 0.35rem; font-size: 0.76rem; color: var(--ink-soft); }
.compte-controles button.cc { cursor: pointer; transition: box-shadow 0.15s, background 0.15s; }
.compte-controles button.cc:hover { box-shadow: var(--shadow-md); }
.compte-controles button.cc[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--blue); background: var(--blue-pale); }

/* Lancements (résultats du mois) */
.lancements { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 0.6rem; margin-bottom: 1rem; }
.lancement { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 0.7rem 0.85rem; display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; background: var(--surface); }
.lancement-tete { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.lancement-tete b { color: var(--navy); font-size: 0.9rem; display: inline-flex; gap: 0.35rem; align-items: center; }
.lancement-tete .ic { color: var(--blue); }
.lancement-info { font-size: 0.78rem; color: var(--muted); }
.lancement .btn { align-self: flex-start; }
.lancement-ligne { display: flex; flex-wrap: wrap; gap: 0.1rem 0.6rem; align-items: baseline; padding-top: 0.35rem; border-top: 1px solid var(--line); font-size: 0.84rem; }
.lancement-tete + .lancement-ligne { border-top: 0; padding-top: 0; }
.lancement-ligne a { font-weight: 600; overflow-wrap: anywhere; }
.lancement-ligne .sub2 { flex-basis: 100%; margin: 0; }
.lancement-chiffres { font-size: 0.78rem; font-weight: 600; }

/* Contrôles à regarder, groupés par thème */
details.groupe-theme { border: 1px solid var(--line); border-radius: var(--radius-md); margin-bottom: 0.6rem; overflow: hidden; background: var(--surface); }
details.groupe-theme > summary { list-style: none; cursor: pointer; display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; padding: 0.6rem 0.9rem; background: var(--blue-pale); }
details.groupe-theme > summary::-webkit-details-marker { display: none; }
details.groupe-theme > summary h3 { margin: 0; font-size: 0.95rem; color: var(--navy); }
details.groupe-theme > summary .chev { color: var(--blue-dark); }
a.ligne-controle { display: grid; grid-template-columns: 5.8rem minmax(0, 1fr) 6.8rem 9.5rem 3.2rem; gap: 0.8rem; align-items: center; padding: 0.55rem 0.9rem;
                   border-top: 1px solid var(--line); font-size: 0.84rem; color: #1b2733; text-decoration: none; }
a.ligne-controle:hover { background: #f6f9fb; text-decoration: none; color: #1b2733; }
a.ligne-controle .lib { min-width: 0; }
a.ligne-controle .lib .sub2 { display: block; }
a.ligne-controle .n { font-weight: 700; color: var(--blue); text-align: right; white-space: nowrap; }
.gravite { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; }
.mini-suivi { display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.72rem; color: var(--muted); }

/* Bilan : barre d'outils, recherche, filtres rapides par statut */
.barre-bilan .seg button { font: 600 0.78rem var(--font-family); border: 0; background: none; color: var(--navy-soft); padding: 0.32rem 0.8rem; border-radius: var(--radius-pill);
                           cursor: pointer; white-space: nowrap; display: inline-flex; gap: 0.35rem; align-items: center; }
.barre-bilan .seg button[aria-pressed="true"] { background: var(--surface); color: var(--navy); box-shadow: var(--shadow-sm); }
.recherche { display: inline-flex; align-items: center; gap: 0.4rem; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); padding: 0.3rem 0.8rem; background: var(--surface); color: var(--muted); margin: 0; min-width: 0; }
.recherche input { border: 0; outline: 0; background: none; font: 500 0.82rem var(--font-family); color: var(--navy); width: 14rem; max-width: 100%; }
.recherche:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-pale); }
.btn-icone { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: var(--radius-md); border: 1px solid transparent; background: transparent; color: var(--ink-soft); cursor: pointer; padding: 0; }
.btn-icone:hover, .btn-icone[aria-expanded="true"] { background: var(--gray-pale); color: var(--navy); }

/* Bilan : sommaire collant à gauche, détail à droite */
.bilan-grille { display: grid; grid-template-columns: 15.5rem minmax(0, 1fr); gap: 1.1rem; align-items: start; }
.bilan-corps { min-width: 0; }
.sommaire { position: sticky; top: 7.5rem; max-height: calc(100vh - 13rem); overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 0.7rem; background: var(--surface); font-size: 0.8rem; }
.sommaire-titre { display: block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 0.2rem 0.35rem 0.4rem; }
.sommaire a { display: flex; align-items: center; gap: 0.45rem; padding: 0.28rem 0.45rem; border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; }
.sommaire a:hover { background: var(--gray-pale); text-decoration: none; }
.sommaire a.actif { background: var(--blue-pale); color: var(--navy); font-weight: 600; }
.sommaire a .n { margin-left: auto; font-weight: 700; color: var(--navy); font-size: 0.76rem; }
.sommaire a .chip { font-size: 0.66rem; padding: 0 0.4rem; }
.sommaire .som-theme { font-weight: 600; color: var(--navy); margin-top: 0.3rem; }
.sommaire ul { list-style: none; margin: 0 0 0.3rem; padding: 0 0 0 0.6rem; }
.sommaire .code-controle { min-width: 3.4rem; }
.som-conformes { display: flex; align-items: center; gap: 0.45rem; color: var(--muted); padding: 0.5rem 0.45rem 0.2rem; border-top: 1px solid var(--line); margin-top: 0.4rem; }

/* Bilan : en-tête d'un contrôle allégé, menu d'actions, message commun, cases à cocher */
details.controle > summary .lib-controle { min-width: 0; }
.menu-actions { position: relative; display: inline-flex; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 0.3rem); z-index: 30; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
            box-shadow: var(--shadow-md); padding: 0.3rem; min-width: 16rem; display: grid; gap: 0.1rem; text-align: left; white-space: normal; font-weight: 500; }
.menu-pop > a, .menu-pop > button { display: flex; gap: 0.55rem; align-items: center; width: 100%; background: none; border: 0; padding: 0.45rem 0.6rem; border-radius: var(--radius-sm);
            font: 500 0.8rem var(--font-family); color: var(--ink); cursor: pointer; text-align: left; text-decoration: none; }
.menu-pop > a:hover, .menu-pop > button:hover { background: var(--gray-pale); color: var(--navy); text-decoration: none; }
.menu-note { display: block; font-size: 0.72rem; color: var(--muted); padding: 0.45rem 0.6rem 0.3rem; border-top: 1px solid var(--line); margin-top: 0.15rem; }
.meta-controle { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; align-items: center; font-size: 0.8rem; color: var(--ink-soft); margin: 0.2rem 0 0.5rem; }
.message-commun { display: flex; gap: 0.6rem; align-items: flex-start; background: #f4f7fa; border-radius: var(--radius-md); padding: 0.6rem 0.8rem; margin: 0 0.25rem 0.6rem; font-size: 0.84rem; color: #1b2733; }
.message-commun .ic { color: var(--muted); margin-top: 0.2rem; }
.tbl th.case, .tbl td.case { width: 2.2rem; padding-right: 0; }
.tbl input[type=checkbox] { width: 1rem; height: 1rem; accent-color: var(--blue); margin: 0; vertical-align: middle; }
.tbl tr.choisi td { background: var(--blue-pale); }
.tbl td.ecart { font-weight: 700; color: var(--red); }
.barre-selection { position: sticky; bottom: 1rem; z-index: 25; margin: 1rem auto 0; max-width: 46rem; background: var(--navy); color: var(--on-accent); border-radius: var(--radius-pill);
                   padding: 0.5rem 0.6rem 0.5rem 1.1rem; display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; box-shadow: var(--shadow-md); font-size: 0.86rem; }
.barre-selection button { border-radius: var(--radius-pill); border: 1px solid var(--on-accent); background: transparent; color: var(--on-accent); padding: 0.3rem 0.85rem; font: 600 0.8rem var(--font-family); cursor: pointer; }
.barre-selection button.plein { background: var(--on-accent); color: var(--navy); }

/* Bilan annuel : mois couverts et grille contrôle × mois de rattachement */
.annee-bandeau { display: flex; flex-wrap: wrap; gap: 0.8rem 1.4rem; align-items: center; padding: 0.8rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-lg); margin-bottom: 1rem; }
.annee-bandeau .hint { display: block; font-size: 0.76rem; color: var(--muted); margin-bottom: 0.3rem; }
.mois12 { display: grid; grid-template-columns: repeat(12, 1.7rem); gap: 3px; }
.mois12 span { height: 1.7rem; border-radius: 4px; display: grid; place-items: center; font-size: 0.64rem; font-weight: 700; background: var(--gray-pale); color: var(--muted); }
.mois12 span.couvert { background: var(--blue-pale); color: var(--blue-dark); }
.grille-annuelle td.m, .grille-annuelle th.m { text-align: center; padding-left: 0.2rem; padding-right: 0.2rem; width: 2.5rem; }
.grille-annuelle td { vertical-align: middle; }
.grille-annuelle td.lib { min-width: 16rem; }
.grille-annuelle td.lib a { color: #1b2733; }
.grille-annuelle td.lib b { color: var(--navy); margin-right: 0.35rem; }
.grille-annuelle tr.groupe td { background: #f4f7fa; font-weight: 600; color: var(--navy); font-size: 0.78rem; padding-top: 0.4rem; padding-bottom: 0.4rem; }
.hc { display: inline-grid; place-items: center; min-width: 1.8rem; height: 1.5rem; border-radius: 5px; font-size: 0.72rem; font-weight: 700; }
.hc-ok { background: var(--green-pale); color: var(--green-ink); }
.hc-err { background: var(--red-pale); color: var(--red); }
.hc-warn { background: var(--amber-pale); color: var(--amber); }
.hc-na { color: var(--line-strong); font-weight: 500; }

/* Synthèse : pastilles d'icônes neutres (la couleur reste réservée au sens métier) */
.c-neutre { background: var(--gray-pale); color: var(--navy-soft); }

@media (max-width: 1000px) {
    .bilan-grille { grid-template-columns: 1fr; }
    .sommaire { position: static; max-height: none; }
    .traitement { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    a.ligne-controle { grid-template-columns: 5.2rem minmax(0, 1fr) 2.6rem; }
    a.ligne-controle .gravite, a.ligne-controle .suivi-ligne { display: none; }
    .compte-controles { grid-template-columns: 1fr 1fr 1fr; }
}
/* Bilan : codes longs (CRM 120) sans chevauchement, contrôles masqués par le filtre de suivi */
details.controle > summary .code-controle { flex: none; white-space: nowrap; }
details.controle > summary .lib-controle { flex: 1 1 auto; }
details.controle > summary .nombre { flex: none; flex-wrap: nowrap; }
.sommaire a .code-controle { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sommaire a .n, .sommaire a .chip, .sommaire a .point { flex: none; }
.sommaire .som-theme { align-items: flex-start; }
.sommaire .som-theme .point { margin-top: 0.4rem; }
a.ligne-controle .code-controle { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hors-filtre { display: none !important; }
.vide-statut { margin: 0 0 1rem; }
/* Tableaux de constats et d'extractions : en-tête de colonnes figé pendant le défilement */
.tbl-wrap > .tbl > thead th { position: sticky; top: 0; z-index: 2; box-shadow: inset 0 -1px 0 var(--line); }
details.controle .tbl-wrap { max-height: min(70vh, 40rem); }

/* Fenêtre des extractions : en-tête fixe (anomalie, faits, accès aux extractions), contenu qui défile dessous */
.dialogue-extractions { padding: 0; height: calc(100vh - 2rem); overflow: hidden; }
.dialogue-extractions[open] { display: flex; flex-direction: column; }
.dialogue-extractions > [data-contenu] { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.dialogue-extractions > [data-contenu] > p { padding: 1.25rem 1.4rem; margin: 0; }
.dialogue-extractions .fermer { position: absolute; top: 0.8rem; right: 0.9rem; z-index: 3; float: none; }
.extractions { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.extractions .ext-tete { display: block; flex: none; padding: 1rem 3.6rem 0.8rem 1.4rem; border-bottom: 1px solid var(--line); background: var(--surface); }
.ext-titre { display: flex; gap: 0.6rem; align-items: baseline; }
.ext-code { flex: none; font-weight: 700; font-size: 0.82rem; color: var(--blue-dark); background: var(--blue-pale); border-radius: var(--radius-sm); padding: 0.1rem 0.5rem; }
.extractions .ext-titre h2 { display: block; font-size: 1.1rem; margin: 0; color: var(--navy); }
.extractions .ext-constat { display: flex; gap: 0.45rem; align-items: flex-start; margin: 0.45rem 0 0.75rem; color: var(--ink); font-size: 0.88rem; }
.extractions .ext-constat .ic { flex: none; margin-top: 0.15rem; }
.ext-ligne { display: flex; gap: 0.75rem 1rem; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; }
.extractions .ext-faits { margin: 0; gap: 0.4rem; }
/* Faits du constat : étiquette et valeur sur une ligne (« Période DSN 202601 »), en pastilles */
.extractions .ext-faits > div { display: flex; align-items: baseline; gap: 0.35rem; border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 0.15rem 0.65rem; background: var(--surface); }
.extractions .ext-faits dt { font-size: 0.74rem; font-weight: 500; color: var(--muted); text-transform: none; letter-spacing: 0; }
.extractions .ext-faits dd { font-size: 0.82rem; font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; }
.extractions .ext-faits .ext-ecart { background: var(--red-pale); border-color: transparent; }
.extractions .ext-faits .ext-ecart dd { color: var(--red); }
.ext-index { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.75rem; }
.ext-index a { border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 0.15rem 0.7rem; font-size: 0.76rem; color: var(--ink); text-decoration: none; background: var(--surface); }
.ext-index a b { color: var(--navy); }
.ext-index a:hover { border-color: var(--blue); text-decoration: none; }
.ext-index a.vide, .ext-index a.vide b { color: var(--muted); }
.ext-index a.err, .ext-index a.err b { color: var(--red); }
.ext-corps { flex: 1; min-height: 0; overflow: auto; padding: 0.9rem 1.4rem 1.4rem; }
.extractions details.ext-fiche { border: 1px solid var(--line); border-radius: var(--radius-lg); margin: 0 0 0.9rem; background: var(--surface-2); }
/* Fiche du contrôle : texte plus petit, chaque pavé tenu dans sa colonne (longs textes et références coupés, sans déborder) */
.extractions .ext-fiche-corps { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: 0.3rem 1.4rem; padding: 0 1rem 0.4rem; font-size: 0.78rem; line-height: 1.45; }
.extractions .ext-fiche-corps > section { min-width: 0; overflow-wrap: anywhere; }
.extractions .ext-fiche-corps h4 { font-size: 0.8rem; }
.extractions .ext-fiche-corps p { max-width: none; }
.ext-fiche-pied { padding: 0 1rem 0.7rem; margin: 0; }
.ext-aide { display: flex; align-items: center; gap: 0.45rem; margin: 0 0 0.6rem; }
.ext-repere-ex { display: inline-block; width: 1.1rem; height: 0.8rem; background: #fff6db; box-shadow: inset 3px 0 0 var(--amber-bar); border-radius: 2px; }
.extractions details.ext-bloc { border: 1px solid var(--line); border-radius: var(--radius-lg); margin: 0 0 0.9rem; overflow: hidden; box-shadow: var(--shadow-sm); scroll-margin-top: 0.5rem; }
.extractions details.ext-bloc > summary { list-style: none; background: var(--surface-2); padding: 0.6rem 0.9rem; }
.extractions details.ext-bloc > summary::-webkit-details-marker { display: none; }
.extractions details.ext-bloc > summary .chev { color: var(--muted); flex: none; }
.extractions details.ext-bloc.cible { box-shadow: 0 0 0 2px var(--blue); }
.ext-nom { font-weight: 700; color: var(--navy); }
.ext-lib { color: var(--ink); }
.extractions .ext-table { max-height: 60vh; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.extractions tr.repere td { background: #fff6db; font-weight: 600; }
.extractions tr.repere td:first-child { box-shadow: inset 3px 0 0 var(--amber-bar); }
.ext-vide { margin: 0; padding: 0.6rem 0.9rem 0.8rem; border-top: 1px solid var(--line); }
.extractions .ext-table .tbl td { padding: 0.4rem 0.75rem; }

/* Calculs DSN : fenêtre de détail d'une ligne */
.dialogue-calcul { border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 1rem 1.25rem;
    width: min(1100px, calc(100% - 2rem)); max-height: calc(100vh - 2rem); overflow: auto; }
.dialogue-calcul::backdrop { background: rgba(18, 51, 77, 0.35); }
.dialogue-calcul .fermer { position: sticky; top: 0; float: right; z-index: 2; }
.fenetre-calcul h2 { display: flex; gap: 0.5rem; align-items: center; color: var(--blue-dark); margin: 0 0 0.25rem; padding-right: 3rem; }
.fenetre-calcul tfoot th { border-top: 2px solid var(--line); }

/* Calculs DSN · cotisations URSSAF : périmètre choisi (mois de DSN, listes à choix multiples) */
.perimetre { display: flex; flex-direction: column; gap: 0.75rem; }
.perimetre-ligne { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; align-items: center; }
.perimetre-ligne > label { display: flex; gap: 0.4rem; align-items: center; font-size: 0.85rem; }
.plage { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; font-size: 0.85rem; }
details.multi { position: relative; }
details.multi > summary { list-style: none; cursor: pointer; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 0.3rem 0.6rem;
    font-size: 0.85rem; background: var(--surface); display: flex; gap: 0.35rem; align-items: center; max-width: 18rem; }
details.multi > summary::-webkit-details-marker { display: none; }
details.multi > summary::after { content: "▾"; color: var(--muted); }
details.multi[open] > summary { border-color: var(--blue); }
.multi-nom { color: var(--muted); }
.multi-resume { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.multi-pop { position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; min-width: 16rem; max-width: min(26rem, 90vw); background: var(--surface);
    border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-md); padding: 0.6rem; display: flex; flex-direction: column; gap: 0.4rem; }
.multi-pop .select { width: 100%; }
.multi-actions { display: flex; gap: 0.6rem; align-items: center; }
.multi-liste { max-height: 16rem; overflow: auto; display: flex; flex-direction: column; gap: 0.15rem; }
.multi-liste label { display: flex; gap: 0.45rem; align-items: center; font-size: 0.84rem; padding: 0.15rem 0.2rem; border-radius: var(--radius-sm); cursor: pointer; }
.multi-liste label:hover { background: var(--blue-pale); }
.multi-liste label.masque { display: none; }
.fenetre-sous { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; font-size: 0.9rem; margin: 1rem 0 0.4rem; }

/* =====================================================================
   Tableaux harmonisés (revue UX validée le 22/10/2026) : en-tête bleu nuit à texte blanc avec icône par colonne et tri,
   lignes alternées blanc / gris clair, survol léger, texte compact ; loupe en haut à droite → mode focus plein écran
   (recherche, colonnes, export Excel). Les fonds des lignes repérées, choisies ou de groupe gardent la priorité :
   les règles de zébrage et de survol passent par :where() pour rester les plus faibles.
   ===================================================================== */
:root { --tete-tableau: #12334d; --zebre: #f5f7f9; --survol: #e9f4fb; }
.tbl, .tableau { font-size: 0.8rem; background: var(--surface); }
.tbl > thead th, .tableau > thead th { background: var(--tete-tableau); color: #fff; font-weight: 600; font-size: 0.74rem; padding: 0.55rem 0.7rem;
    border-bottom: 0; white-space: nowrap; vertical-align: middle; }
.tbl > thead th .ic, .tableau > thead th .ic { color: rgba(255, 255, 255, 0.62); width: 0.95em; height: 0.95em; margin-right: 0.3rem; }
.tbl > thead th a, .tableau > thead th a { color: #fff; }
.tbl-wrap > .tbl > thead th { box-shadow: none; }
.tbl td, .tableau td { padding: 0.4rem 0.7rem; border-bottom: 1px solid var(--gray-pale); vertical-align: middle; }
.tbl :where(tbody > tr:nth-child(even)) > td, .tableau :where(tbody > tr:nth-child(even)) > td { background: var(--zebre); }
.tbl :where(tbody > tr) > td, .tableau :where(tbody > tr) > td { transition: background-color 0.12s; }
.tbl :where(tbody > tr:hover) > td, .tableau :where(tbody > tr:hover) > td { background: var(--survol); }
.tbl > tfoot th, .tbl > tfoot td, .tableau > tfoot th, .tableau > tfoot td { background: var(--surface); color: var(--navy); font-weight: 700; font-size: 0.8rem;
    padding: 0.5rem 0.7rem; border-top: 2px solid var(--tete-tableau); border-bottom: 0; }
.tbl-wrap > .tbl > tfoot th, .tbl-wrap > .tbl > tfoot td { position: sticky; bottom: 0; z-index: 1; }

/* Tri : flèches discrètes, sens actif en orange clair */
table th.triable::after { content: '⇅'; color: rgba(255, 255, 255, 0.4); margin-left: 0.35rem; font-size: 0.85em; }
table th.triable[aria-sort="ascending"]::after { content: '↑'; color: #ffb27d; }
table th.triable[aria-sort="descending"]::after { content: '↓'; color: #ffb27d; }
.tbl > thead th.triable:hover, .tableau > thead th.triable:hover { color: #fff; background: #1d4766; }
table th.triable:focus-visible { outline: 2px solid #8fd0ff; outline-offset: -2px; }

/* Valeurs : négatif en rouge, zéro et vide en gris ; codes à copier */
.tbl td.val-neg, .tableau td.val-neg { color: var(--red); font-weight: 600; }
.tbl td.val-zero, .tbl td.val-vide, .tableau td.val-zero, .tableau td.val-vide { color: var(--muted); }
td.copiable { cursor: copy; }
td.copiable:hover { text-decoration: underline dotted; text-underline-offset: 3px; }
.col-vide, .col-off { display: none; }

/* Loupe dans le coin de l'en-tête */
.tbl-cadre { position: relative; min-width: 0; }
.tbl-cadre > .tbl-wrap > .tbl > thead > tr:first-child > th:last-child, .tbl-cadre > .tbl > thead > tr:first-child > th:last-child { padding-right: 2.6rem; }
.tbl-loupe { position: absolute; top: 0.32rem; right: 0.4rem; z-index: 4; width: 1.6rem; height: 1.6rem; border: 0; border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.14); color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; transition: background-color 0.15s; }
.tbl-loupe:hover { background: rgba(255, 255, 255, 0.3); }
.tbl-loupe:focus-visible { outline: 2px solid #8fd0ff; outline-offset: 1px; }
.tbl-loupe .ic { width: 0.95rem; height: 0.95rem; }

/* Fenêtres : fond flouté, ouverture douce, squelette de chargement, message bref */
.dialogue-calcul::backdrop, .dialogue-extractions::backdrop, .dialogue-focus::backdrop { background: rgba(18, 51, 77, 0.42); backdrop-filter: blur(3px); }
.dialogue-calcul[open], .dialogue-extractions[open], .dialogue-focus[open] { animation: fenetre-ouvre 0.16s ease-out; }
@keyframes fenetre-ouvre { from { opacity: 0; transform: translateY(8px) scale(0.985); } to { opacity: 1; transform: none; } }
.squelette { display: grid; gap: 0.6rem; padding: 1.4rem; }
.squelette span { height: 0.8rem; border-radius: 4px; background: linear-gradient(90deg, var(--gray-pale), var(--line), var(--gray-pale)); background-size: 200% 100%;
    animation: squelette 1.2s linear infinite; }
.squelette span:nth-child(1) { width: 45%; height: 1.1rem; }
.squelette span:nth-child(3) { width: 85%; }
.squelette span:nth-child(5) { width: 70%; }
@keyframes squelette { to { background-position: -200% 0; } }
.toast { position: fixed; left: 50%; bottom: 1.2rem; transform: translateX(-50%); z-index: 1000; background: var(--navy); color: #fff; border-radius: var(--radius-md);
    padding: 0.55rem 1rem; font-size: 0.82rem; box-shadow: var(--shadow-md); max-width: calc(100vw - 2rem); }
@media (prefers-reduced-motion: reduce) {
    .dialogue-calcul[open], .dialogue-extractions[open], .dialogue-focus[open], .squelette span { animation: none; }
    .tbl :where(tbody > tr) > td, .tableau :where(tbody > tr) > td, .tbl-loupe { transition: none; }
}

/* Mode focus : le tableau en plein écran */
.dialogue-focus { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: var(--surface); }
.dialogue-focus[open] { display: flex; flex-direction: column; }
.focus-tete { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; padding: 0.8rem 1.4rem; border-bottom: 1px solid var(--line); }
.focus-tete h2 { display: flex; gap: 0.5rem; align-items: center; margin: 0; font-size: 1.02rem; color: var(--navy); min-width: 0; }
.focus-tete h2 .ic { color: var(--blue); }
.focus-tete .espace, .fen-tete .espace, .fen-groupe > summary .espace { flex: 1; }
.focus-recherche, .fen-recherche { position: relative; display: inline-flex; align-items: center; }
.focus-recherche .ic, .fen-recherche .ic { position: absolute; left: 0.6rem; color: var(--muted); width: 0.9rem; height: 0.9rem; }
.focus-recherche input, .fen-recherche input { font: 500 0.8rem var(--font-family); color: var(--ink); background: var(--surface-2); border: 1px solid var(--line);
    border-radius: var(--radius-pill); padding: 0.38rem 0.8rem 0.38rem 1.9rem; width: 15rem; max-width: 60vw; }
.focus-recherche input:focus, .fen-recherche input:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: transparent; }
details.focus-colonnes { position: relative; }
details.focus-colonnes > summary { list-style: none; cursor: pointer; }
details.focus-colonnes > summary::-webkit-details-marker { display: none; }
.focus-colonnes-liste { position: absolute; right: 0; top: calc(100% + 0.3rem); z-index: 30; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
    box-shadow: var(--shadow-md); padding: 0.5rem 0.7rem; display: grid; gap: 0.2rem; min-width: 14rem; max-height: 60vh; overflow: auto; }
.focus-colonnes-liste label { display: flex; gap: 0.45rem; align-items: center; font-size: 0.82rem; cursor: pointer; white-space: nowrap; }
.focus-colonnes-liste input { accent-color: var(--blue); }
.dialogue-focus .fermer, .dialogue-calcul .fermer, .dialogue-extractions .fermer { width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--gray-pale); color: var(--navy); }
.dialogue-focus .fermer:hover, .dialogue-calcul .fermer:hover, .dialogue-extractions .fermer:hover { background: var(--red-pale); color: var(--red); }
.focus-corps { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 0.8rem 1.4rem 1.2rem; }
.focus-corps > .tbl-wrap { flex: 1; min-height: 0; overflow: auto; }
.dialogue-focus .tbl { font-size: 0.84rem; }
.tbl tr.masque-focus { display: none; }

/* Fenêtres de détail des Calculs DSN : en-tête compact (titre, chiffres clés, recherche, Excel), contenu qui défile */
.dialogue-calcul { padding: 0; width: min(1280px, calc(100% - 2rem)); max-height: 88vh; overflow: hidden; }
.dialogue-calcul[open] { display: flex; flex-direction: column; }
.dialogue-calcul > [data-contenu] { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.dialogue-calcul .fermer { position: absolute; top: 0.8rem; right: 0.9rem; z-index: 5; float: none; }
.fenetre-calcul { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.fen-tete { flex: none; display: grid; gap: 0.5rem; padding: 0.95rem 4rem 0.85rem 1.4rem; border-bottom: 1px solid var(--line); background: var(--surface); }
.fen-tete h2 { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; margin: 0; font-size: 1.05rem; color: var(--navy); }
.fen-tete h2 > .ic { color: var(--blue); }
.fen-ligne { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.fen-faits { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.fen-faits .fait { display: inline-flex; gap: 0.35rem; align-items: baseline; font-size: 0.74rem; color: var(--ink-soft); background: var(--surface-2);
    border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.2rem 0.55rem; white-space: nowrap; }
.fen-faits .fait b { color: var(--navy); font-weight: 600; font-variant-numeric: tabular-nums; }
.fen-faits .fait.err { background: var(--red-pale); border-color: transparent; }
.fen-faits .fait.err b { color: var(--red); }
.fen-faits .fait.ok b { color: var(--green-ink); }
.fen-faits .fait.warn { background: var(--amber-pale); border-color: transparent; }
.fen-faits .fait.warn b { color: var(--amber); }
.fen-corps { flex: 1; min-height: 0; overflow: auto; padding: 1rem 1.4rem 1.3rem; display: flex; flex-direction: column; gap: 0.8rem; }
.fen-corps > * { flex: none; margin: 0; }
.fen-corps .tbl-wrap { max-height: calc(88vh - 12rem); overflow: auto; }
.fen-note { font-size: 0.78rem; color: var(--muted); }
details.fen-groupe { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
details.fen-groupe > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; padding: 0.55rem 0.9rem; background: var(--surface-2); }
details.fen-groupe > summary::-webkit-details-marker { display: none; }
details.fen-groupe > summary:hover { background: var(--survol); }
details.fen-groupe > summary .chev { color: var(--muted); transition: transform 0.15s; }
details.fen-groupe[open] > summary .chev { transform: rotate(90deg); }
details.fen-groupe > summary .qui { font-weight: 600; color: var(--navy); font-size: 0.84rem; }
details.fen-groupe > summary .meta { font-size: 0.76rem; color: var(--ink-soft); }
details.fen-groupe > summary .meta b { color: var(--navy); }
details.fen-groupe .tbl-wrap { border: 0; border-top: 1px solid var(--line); border-radius: 0; max-height: none; }

/* Fenêtre des extractions : extractions en onglets, recherche */
.ext-index[role="tablist"] a { cursor: pointer; }
.ext-index[role="tablist"] a[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.ext-index[role="tablist"] a[aria-selected="true"] b { color: #fff; }
.extractions .ext-titre h2 { font-size: 1.05rem; }
.extractions .ext-constat { font-size: 0.84rem; }
.ext-outils { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.extractions .ext-table .tbl td { padding: 0.36rem 0.7rem; }
.extractions tr.repere td { background: #fff3d6; }

/* Code CTP : étiquette P (plafonné) / D (déplafonné) */
.pl { display: inline-block; font-size: 0.64rem; font-weight: 700; line-height: 1.4; border-radius: 4px; padding: 0 0.3rem; margin-left: 0.3rem; vertical-align: 0.08em; }
.pl-p { background: var(--blue-pale); color: var(--blue-dark); }
.pl-d { background: var(--gray-pale); color: var(--gray-ink); }
.fen-tete h2 .pl { font-size: 0.7rem; }

/* Colonne de cases à cocher : theme.css donne à .case un display:flex qui casse la cellule */
.tbl th.case, .tbl td.case, .tableau th.case, .tableau td.case { display: table-cell; margin: 0; font-size: inherit; vertical-align: middle; text-align: center; width: 2.2rem; padding: 0 0.3rem; }
.tbl > thead th.case input { accent-color: #ffb27d; }

/* Calculs DSN : zone de périmètre compacte (onglets + année, mois, filtres, résumé) */
.card.perimetre { gap: 0; padding: 0; overflow: visible; }
.perimetre > * { padding: 0.7rem 1rem; }
.perimetre > * + * { border-top: 1px solid var(--line); }
.perimetre-tete { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; align-items: center; justify-content: space-between; }
.perimetre-annee { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.8rem; font-weight: 600; color: var(--navy-soft); }
.perimetre-annee .ic { color: var(--blue); }
.perimetre-annee .select { width: auto; min-width: 6rem; padding-top: 0.25rem; padding-bottom: 0.25rem; font-weight: 700; color: var(--navy); }
.perimetre-etiquette { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.perimetre-sous { display: flex; flex-wrap: wrap; gap: 0.4rem 0.8rem; align-items: center; margin-bottom: 0.55rem; }
.perimetre-sous .hint { margin-left: auto; font-size: 0.72rem; color: var(--muted); }
.perimetre .plage { display: inline-flex; flex-wrap: wrap; gap: 0.3rem; }
.perimetre .puce { font: 600 0.74rem var(--font-family); color: var(--navy-soft); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
    padding: 0.18rem 0.65rem; cursor: pointer; transition: background 0.12s, border-color 0.12s, color 0.12s; }
.perimetre .puce:hover:not(:disabled) { border-color: var(--blue); color: var(--blue-dark); }
.perimetre .puce[aria-pressed="true"] { background: var(--blue-pale); border-color: var(--blue); color: var(--blue-dark); }
.perimetre .puce:disabled { opacity: 0.4; cursor: default; }
/* Frise : pastilles basses, mois sans DSN en gris plein ; aucun mois coché = toute l'année, les mois chargés sont teintés */
.perimetre .frise-mois { gap: 6px; }
.perimetre .mo { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.05rem; min-height: 2.6rem; padding: 0.25rem 0.1rem;
    border-radius: 8px; font-size: 0.78rem; transition: background 0.12s, border-color 0.12s, box-shadow 0.12s; }
.perimetre .mo small { font-size: 0.64rem; line-height: 1.2; }
.perimetre .frise-mois:not(:has(input:checked)) .mo:not(.vide) { background: var(--blue-pale); border-color: transparent; }
.perimetre .mo:hover:not(.vide) { box-shadow: var(--shadow-sm); border-color: var(--blue); }
.perimetre .mo:has(input:checked) { background: var(--blue); border-color: var(--blue); color: var(--on-accent); }
.perimetre .mo.vide { border: 1px solid transparent; background: var(--gray-pale); color: var(--muted); opacity: 0.6; }
.perimetre .mo.vide small { color: var(--muted); }
/* Filtres : listes à choix multiples en pastilles de même hauteur, actions à droite */
.perimetre-filtres { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; }
.perimetre-filtres .perimetre-etiquette { margin-right: 0.3rem; }
.perimetre-filtres details.multi > summary { display: inline-flex; align-items: center; gap: 0.35rem; height: 2rem; padding: 0 0.75rem; border-radius: var(--radius-pill);
    font-size: 0.8rem; background: var(--surface); max-width: 18rem; }
.perimetre-filtres details.multi > summary:hover { border-color: var(--blue); }
.perimetre-filtres details.multi:has(.multi-liste input:checked) > summary { background: var(--blue-pale); border-color: var(--blue); }
.perimetre-filtres details.multi:has(.multi-liste input:checked) .multi-resume { color: var(--blue-dark); }
.perimetre-filtres details.multi > summary::after { font-size: 0.7rem; }
.perimetre-filtres details.multi:nth-last-of-type(-n+2) .multi-pop { left: auto; right: 0; }
.perimetre-actions { margin-left: auto; display: inline-flex; flex: none; gap: 0.9rem; align-items: center; }
.perimetre-actions .btn { height: 2rem; padding-left: 1.2rem; padding-right: 1.2rem; }
/* Pied de carte : périmètre en clair, puis Réinitialiser / Afficher */
.perimetre-pied { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; background: var(--gray-pale); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.perimetre-resume { flex: 1 1 20rem; display: flex; gap: 0.4rem; align-items: baseline; margin: 0; font-size: 0.78rem; color: var(--ink-soft); }
.perimetre-resume .ic { color: var(--blue); width: 0.95rem; height: 0.95rem; align-self: center; flex: none; }
.perimetre-resume b { color: var(--navy); font-weight: 700; white-space: nowrap; }
.perimetre .multi-pop .hint { font-size: 0.72rem; color: var(--muted); }
@media (max-width: 760px) {
    .perimetre .frise-mois { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .perimetre-sous .hint { display: none; }
    .perimetre-actions { margin-left: 0; width: 100%; justify-content: flex-end; }
}
/* Chiffres clés : trois cartes ou moins occupent toute la largeur */
.summary:not(:has(> :nth-child(4))) { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }

/* Filtres du périmètre : la liste s'élargit à ses libellés (CTP), une ligne par valeur */
.perimetre-filtres .multi-pop { width: max-content; min-width: 16rem; max-width: min(42rem, 92vw); }
.perimetre-filtres .multi-liste label { white-space: nowrap; }
.perimetre-filtres .multi-liste label span { overflow: hidden; text-overflow: ellipsis; }
.perimetre-filtres details.multi[data-multi="Ctps"] > summary { max-width: 26rem; }

/* Périmètre appliqué automatiquement : plus de bouton Afficher, barre de chargement en haut de la carte */
.perimetre.auto .perimetre-actions .btn-pri { display: none; }
.perimetre { position: relative; }
.perimetre.charge::before, .perimetre.en-attente::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background: linear-gradient(90deg, transparent, var(--blue), transparent); background-size: 40% 100%; background-repeat: no-repeat; animation: perimetre-charge 1s linear infinite; }
.perimetre.en-attente::before { opacity: 0.35; }
.perimetre.charge { cursor: progress; }
.perimetre.charge ~ * { opacity: 0.55; transition: opacity 0.2s; }
@keyframes perimetre-charge { from { background-position: -40% 0; } to { background-position: 140% 0; } }

/* Passe UX 23/10 : champs du périmètre (Mes rapports, Cotisations OC), CRM, régularisation */
.perimetre-tete.gauche { justify-content: flex-start; gap: 0.6rem 1.4rem; }
.perimetre-champ { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.8rem; font-weight: 600; color: var(--navy-soft); }
.perimetre-champ .ic { color: var(--blue); }
.perimetre-champ .select { width: auto; min-width: 6rem; padding-top: 0.25rem; padding-bottom: 0.25rem; color: var(--navy); }
.perimetre-champ input[type=number].select { width: 6.5rem; text-align: right; }
.perimetre-champ input[type=checkbox] { width: 1rem; height: 1rem; accent-color: var(--blue); }
.perimetre-tete details.multi > summary { display: inline-flex; align-items: center; gap: 0.35rem; height: 2rem; padding: 0 0.75rem; border-radius: var(--radius-pill); font-size: 0.8rem; background: var(--surface); max-width: 22rem; }
.perimetre-tete details.multi:has(.multi-liste input:checked) > summary { background: var(--blue-pale); border-color: var(--blue); }
.perimetre-actions .btn-sec { height: 2rem; }
.crm-depot .drop { margin-bottom: 0; }
td.crm-fichier { max-width: 12rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbl td .actions-fichier { position: relative; min-height: 1.9rem; }
.tbl td .actions-fichier .confirm { white-space: nowrap; flex-wrap: nowrap; font-size: 0.78rem; }
.tbl td .actions-fichier .confirm:not([hidden]) { position: absolute; right: 0; top: 50%; transform: translateY(-50%); z-index: 5; box-shadow: var(--shadow-md); }
.tbl td .actions-fichier .confirm .btn { height: 1.7rem; padding: 0 0.7rem; }
.perimetre-champ input[type=text].select { width: 11rem; }
.blocs-outils { display: flex; justify-content: flex-end; margin: 0.4rem 0; }
pre.blocs-dsn { margin: 0; max-height: 22rem; overflow: auto; padding: 0.8rem 1rem; background: var(--gray-pale); border: 1px solid var(--line); border-radius: var(--radius-md);
    font: 0.76rem/1.55 var(--font-mono); color: var(--navy); white-space: pre; }
.liste-simple { list-style: none; margin: 0.4rem 0 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-md); }
.liste-simple li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.3rem 1rem; padding: 0.55rem 0.9rem; font-size: 0.85rem; }
.liste-simple li + li { border-top: 1px solid var(--line); }
.liste-simple li:hover { background: var(--survol); }
/* Fenêtre des extractions agrandie en plein écran (bouton à côté de Fermer) */
.dialogue-extractions.plein-ecran { width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; margin: 0; border-radius: 0; border: 0; }
.dialogue-extractions.plein-ecran .ext-table { max-height: none; }
.dialogue-extractions .agrandir { position: absolute; top: 0.8rem; right: 3.2rem; z-index: 3; }
/* Profil : suppression définitive des données */
.carte-danger { border-color: var(--danger); }
.carte-danger h2 { color: var(--danger); }
/* En-tête moderne : barre claire translucide, entrées à icône et chevron, sous-menus en panneau (survol ou clavier, sans script) */
.entete { background: rgba(255, 255, 255, 0.88); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(18, 51, 77, 0.03), 0 6px 18px -14px rgba(18, 51, 77, 0.35); }
.entete-contenu { gap: 1.5rem; padding: 0.5rem 1.5rem; }
.nav-principale { flex: 1; min-width: 0; }
.menu { gap: 0.15rem; flex-wrap: wrap; }
.menu .groupe, .compte.groupe { position: relative; }
.menu a.entree { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.45rem 0.7rem; border-radius: 0.6rem; color: var(--navy-soft); font-weight: 500; font-size: 0.9rem; transition: background 0.15s, color 0.15s; }
.menu a.entree .ic { width: 1rem; height: 1rem; opacity: 0.75; }
.menu a.entree .chevron { width: 0.75rem; height: 0.75rem; opacity: 0.5; transition: transform 0.18s; }
.menu .groupe:hover > a.entree, .menu .groupe:focus-within > a.entree { background: var(--gray-pale); color: var(--navy); }
.menu .groupe:hover > a.entree .chevron, .menu .groupe:focus-within > a.entree .chevron { transform: rotate(180deg); }
.menu a.entree.actif { background: var(--blue-pale); color: var(--navy); font-weight: 600; }
.menu a.entree.actif .ic { opacity: 1; color: var(--blue); }
.menu a.entree.actif::after { content: ''; position: absolute; left: 0.9rem; right: 0.9rem; bottom: -0.55rem; height: 2px; border-radius: 2px; background: var(--orange); }
.sous-menu { position: absolute; top: calc(100% + 0.45rem); left: 0; z-index: 60; min-width: 19rem; padding: 0.4rem; display: flex; flex-direction: column; gap: 0.1rem;
    background: var(--surface); border: 1px solid var(--line); border-radius: 0.85rem; box-shadow: 0 18px 40px -18px rgba(18, 51, 77, 0.35), 0 2px 6px rgba(18, 51, 77, 0.06);
    opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity 0.15s, transform 0.15s, visibility 0s 0.15s; }
.groupe:hover > .sous-menu, .groupe:focus-within > .sous-menu { opacity: 1; visibility: visible; transform: none; transition: opacity 0.15s, transform 0.15s; }
.groupe::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 0.6rem; }  /* passage de la souris vers le panneau */
.sous-menu a, .sous-menu .lien-menu { display: flex; align-items: center; gap: 0.7rem; padding: 0.5rem 0.6rem; border-radius: 0.6rem; color: var(--ink); text-decoration: none; }
.sous-menu a:hover, .sous-menu .lien-menu:hover, .sous-menu a:focus-visible { background: var(--panel, #f4f7fa); text-decoration: none; }
.sous-menu a.courant { background: var(--blue-pale); }
.sm-ic { flex: none; width: 2rem; height: 2rem; border-radius: 0.55rem; display: grid; place-items: center; background: var(--blue-pale); color: var(--blue-dark); }
.sm-ic .ic { width: 1rem; height: 1rem; }
.sm-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.sm-txt b { font-size: 0.86rem; font-weight: 600; color: var(--navy); }
.sm-txt small { font-size: 0.74rem; color: var(--muted); white-space: nowrap; }
.sous-menu-droite { left: auto; right: 0; }
.sous-menu-qui { display: flex; align-items: center; gap: 0.6rem; padding: 0.4rem 0.6rem 0.6rem; margin-bottom: 0.2rem; border-bottom: 1px solid var(--line); }
.sous-menu-qui b { display: block; font-size: 0.8rem; color: var(--navy); }
.sous-menu-qui small { font-size: 0.72rem; color: var(--muted); }
.sous-menu form { margin: 0; }
.lien-menu { width: 100%; text-align: left; background: none; border: 0; font: inherit; cursor: pointer; }
.avatar { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--line); transition: box-shadow 0.15s; }
.avatar.actif, .compte.groupe:hover > .avatar, .compte.groupe:focus-within > .avatar { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--blue); }
.avatar.petit { width: 1.9rem; height: 1.9rem; font-size: 0.72rem; box-shadow: none; }
@media (max-width: 1100px) { .menu a.entree > span { display: none; } .menu a.entree .chevron { display: none; } .menu a.entree { padding: 0.5rem; } }

/* Pied de page : marque, garanties, liens utiles, sur une ligne discrète */
.pied { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; flex-wrap: wrap; padding: 0.5rem 1.5rem;
    font-size: 0.74rem; color: var(--muted); background: var(--surface); border-top: 1px solid var(--line); text-align: left; }
.pied-marque b { color: var(--navy); font-weight: 600; }
.pied-garanties { display: flex; gap: 0.4rem 1.1rem; flex-wrap: wrap; }
.pied-garanties > span { display: inline-flex; align-items: center; gap: 0.3rem; }
.pied-garanties .ic { width: 0.85rem; height: 0.85rem; color: var(--green-ink, #2e7d4f); }
.pied-liens { display: flex; gap: 1rem; }
.pied-liens a { color: var(--muted); }
.pied-liens a:hover { color: var(--blue); }
/* Tableau de bord : variations M / M-1 des indicateurs clés */
.var-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12.5rem), 1fr)); gap: 0.7rem; }
.var-tuile { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 0.65rem 0.8rem 0.5rem; background: var(--surface); border-top: 3px solid var(--green-ink); display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.var-tuile.orange { border-top-color: var(--amber); }
.var-tuile.rouge { border-top-color: var(--red); }
.var-tete { display: flex; justify-content: space-between; gap: 0.5rem; align-items: baseline; }
.var-lib { font-size: 0.78rem; color: var(--ink-soft); font-weight: 600; }
.var-pct { font-size: 0.78rem; font-weight: 700; color: var(--green-ink); white-space: nowrap; }
.var-tuile.orange .var-pct { color: var(--amber); }
.var-tuile.rouge .var-pct { color: var(--red); }
.var-val { font-size: 1.15rem; font-weight: 700; color: var(--navy); }
.var-courbe { width: 100%; height: 1.6rem; margin-top: 0.2rem; overflow: visible; }
.var-courbe polyline { fill: none; stroke: var(--blue); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.var-tuile.orange .var-courbe polyline { stroke: var(--amber); }
.var-tuile.rouge .var-courbe polyline { stroke: var(--red); }
.var-constats { display: flex; gap: 0.3rem; flex-wrap: wrap; margin-top: 0.25rem; }
.var-titre { font-size: 0.86rem; color: var(--navy); margin: 1rem 0 0.4rem; }
.var-badge { font-weight: 700; padding: 0.05rem 0.45rem; border-radius: var(--radius-pill); }
.var-badge.orange { background: var(--amber-pale); color: var(--amber); }
.var-badge.rouge { background: var(--red-pale); color: var(--red); }
/* Synthèse du mois : indicateurs DSN sur 12 mois */
.ind-graphe { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 0.7rem 0.9rem 0.5rem; margin-bottom: 0.9rem; }
.ind-graphe-tete { display: flex; gap: 0.7rem; align-items: baseline; flex-wrap: wrap; margin-bottom: 0.4rem; color: var(--navy); }
.ind-courbe { width: 100%; height: 9rem; display: block; overflow: visible; }
.ind-courbe polyline { fill: none; stroke: var(--blue); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.ind-axe { display: flex; justify-content: space-between; font-size: 0.7rem; color: var(--muted); margin-top: 0.3rem; }
.ind-cat td { background: var(--blue-pale); color: var(--navy); font-weight: 700; }
tr.ind-choisi td { background: var(--survol, #e9f4fb); }
.ind-mini { width: 6.5rem; height: 1.3rem; }
/* Pavés pliables (details.card.pliable) : en-tête cliquable, chevron qui pivote */
details.card.pliable > summary { list-style: none; cursor: pointer; margin-bottom: 0; }
details.card.pliable > summary::-webkit-details-marker { display: none; }
details.card.pliable[open] > summary { margin-bottom: 0.9rem; }
details.card.pliable > summary .pli { width: 1rem; height: 1rem; color: var(--muted); margin-left: auto; transition: transform 0.15s; }
details.card.pliable[open] > summary .pli { transform: rotate(180deg); }
details.card.pliable > summary:hover h2 { color: var(--blue); }
/* Catalogue des contrôles de l'utilisateur : onglets par famille, lignes compactes, police réduite */
.catalogue-utilisateur { font-size: 0.86rem; }
.catalogue-utilisateur h1 { font-size: 1.5rem; }
.onglets-familles { display: flex; gap: 0.3rem; flex-wrap: wrap; margin-bottom: 0.8rem; border-bottom: 1px solid var(--line); }
.onglets-familles a { padding: 0.45rem 0.8rem; border-radius: 0.55rem 0.55rem 0 0; color: var(--ink-soft); font-weight: 500; text-decoration: none; border: 1px solid transparent; border-bottom: 0; margin-bottom: -1px; }
.onglets-familles a:hover { background: var(--gray-pale); color: var(--navy); text-decoration: none; }
.onglets-familles a.actif { background: var(--surface); border-color: var(--line); color: var(--navy); font-weight: 600; }
.onglets-familles .k { font-size: 0.72rem; background: var(--gray-pale); border-radius: var(--radius-pill); padding: 0 0.4rem; margin-left: 0.25rem; color: var(--muted); }
.onglets-familles .k.off { background: var(--amber-pale); color: var(--amber); }
.ctl-ligne { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.45rem 0.2rem; border-bottom: 1px solid var(--line); }
.ctl-ligne:last-of-type { border-bottom: 0; }
.ctl-ligne.inactif .ctl-lib, .ctl-ligne.inactif .ctl-code { opacity: 0.55; }
.ctl-ligne .switch, .ctl-ligne .toujours { flex: none; margin-top: 0.1rem; }
.ctl-ligne .toujours { width: 2.4rem; display: grid; place-items: center; color: var(--muted); }
.ctl-detail { flex: 1; min-width: 0; }
.ctl-detail > summary { list-style: none; cursor: pointer; display: flex; gap: 0.6rem; align-items: baseline; flex-wrap: wrap; }
.ctl-detail > summary::-webkit-details-marker { display: none; }
.ctl-code { font-weight: 700; color: var(--navy); min-width: 7.5rem; }
.ctl-lib { flex: 1 1 20rem; min-width: 0; }
.ctl-meta { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.ctl-meta .chip { font-size: 0.68rem; }
.ctl-corps { font-size: 0.8rem; padding: 0.4rem 0 0.2rem 7.9rem; color: var(--ink); }
.ctl-corps p { margin: 0.2rem 0; max-width: 110ch; }
@media (max-width: 760px) { .ctl-corps { padding-left: 0; } }
/* Sélection en masse : case d'en-tête, barre de suppression confirmée */
.col-choix { width: 2rem; text-align: center; }
tr.choisi td { background: var(--blue-pale) !important; }
.barre-masse { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.confirm-masse { display: inline-flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.confirm-masse > summary { list-style: none; cursor: pointer; }
.confirm-masse > summary::-webkit-details-marker { display: none; }
.confirm-masse.vide > summary { opacity: 0.45; cursor: not-allowed; }
.confirm-masse[open] { background: var(--red-pale); border-radius: var(--radius-md); padding: 0.3rem 0.5rem; }
/* Retours CRM : zone de filtres */
.filtres-crm { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; margin-bottom: 0.8rem; }
.filtres-crm .fen-recherche { flex: 1 1 16rem; }
/* Retours CRM : lignes compactes (texte long tronqué), fenêtre de détail d'une anomalie, bilan annuel */
td.tronque { max-width: 28rem; }
.dialogue-zoom { width: min(760px, calc(100% - 2rem)); }
.dialogue-zoom h2 { font-size: 1.05rem; color: var(--navy); padding-right: 2.5rem; }
.zoom-items { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1rem; margin: 0.6rem 0 0.8rem; font-size: 0.86rem; }
.zoom-items dt { color: var(--muted); font-weight: 600; }
.zoom-items dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.zoom-donnees { margin: 0.3rem 0 0.8rem; padding-left: 1.1rem; font-size: 0.84rem; }
.zoom-donnees li { margin: 0.15rem 0; }
.dialogue-zoom h3 { font-size: 0.9rem; color: var(--blue-dark); margin: 0.6rem 0 0.2rem; }
.crm-bilan td:first-child { min-width: 22rem; }
.crm-bilan-desc > summary { cursor: pointer; }
.crm-bilan-desc p { max-width: 90ch; margin: 0.3rem 0; }
.crm-bilan tfoot th { border-top: 2px solid var(--line); }
/* Mes fichiers DSN : case de l'année et des mois dans les en-têtes pliables */
details.year > summary .coche-annee, details.month > summary .choix-masse { flex: none; width: 1rem; height: 1rem; margin-right: 0.2rem; cursor: pointer; }
details.month.choisi > summary { background: var(--blue-pale); border-radius: var(--radius-md); }

/* Fenêtre d'un constat orientée diagnostic (maquette validée par Haikel le 23/10/2026) : hauteur fixe, le tableau prend la
   hauteur restante ; l'écart posé comme une opération ; carte pliable du salarié et de son contrat ; extractions en chemin
   de calcul (Σ de la colonne contrôlée) ; codes suivis de leur libellé de la norme ; panneau « Comprendre » à droite.
   Police des tableaux : Inter (licence OFL, embarquée dans wwwroot/fonts/inter, sans appel extérieur). */
@font-face { font-family: "Inter"; src: url("../fonts/inter/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
.extractions .ext-tete { padding: 0.9rem 3.6rem 0.7rem 1.4rem; }
.extractions .ext-constat { margin: 0.35rem 0 0.6rem; }
.ext-operation { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 0.8fr); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin: 0 0 0.6rem; }
.ext-operation .terme { padding: 0.45rem 0.9rem; display: flex; flex-direction: column; gap: 0.05rem; min-width: 0; }
.ext-operation .lib { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.ext-operation .val { font-size: 1.12rem; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.ext-operation .src { font-size: 0.74rem; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ext-operation .op { display: grid; place-items: center; padding: 0 0.45rem; font-size: 1.2rem; font-weight: 600; color: var(--muted); background: var(--surface-2); }
.ext-operation .res { background: var(--red-pale); }
.ext-operation .res .val { color: var(--red); }
.extractions .ext-corps { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.ext-principal { flex: 1; min-height: 0; min-width: 0; overflow: auto; padding: 0.8rem 1.1rem 0.9rem 1.4rem; display: flex; flex-direction: column; gap: 0.65rem; }
/* Salarié et contrat : carte blanche pliable */
.ext-salarie { flex: none; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.ext-salarie > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; gap: 0.35rem 0.7rem; align-items: center; padding: 0.45rem 0.9rem; border-radius: var(--radius-lg); font-size: 0.84rem; }
.ext-salarie > summary::-webkit-details-marker { display: none; }
.ext-salarie > summary:hover { background: var(--blue-pale); }
.ext-salarie > summary b { color: var(--navy); }
.ext-salarie > summary .espace { flex: 1; }
.ext-salarie .chev { color: var(--muted); flex: none; transition: transform 0.15s; }
.ext-salarie[open] .chev { transform: rotate(90deg); }
.ext-champs { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 0.45rem 1rem; margin: 0; padding: 0.55rem 0.9rem; border-top: 1px solid var(--line); font-family: "Inter", var(--font-family); }
.ext-champs.fin { border-top-style: dashed; }
.ext-champs > div { min-width: 0; }
.ext-champs dt { font-size: 0.7rem; color: var(--muted); display: flex; gap: 0.35rem; align-items: baseline; }
.ext-champs dt .t { font-family: var(--font-mono); font-size: 0.64rem; }
.ext-champs dd { margin: 0.1rem 0 0; font-size: 0.8rem; color: var(--ink); display: flex; gap: 0.35rem; align-items: baseline; min-width: 0; }
.ext-champs .alerte dd { color: var(--red); font-weight: 600; }
.cl { font: 600 0.7rem var(--font-mono); color: var(--blue-dark); background: var(--blue-pale); border-radius: 4px; padding: 0.05rem 0.35rem; flex: none; }
/* Chemin du calcul : une carte par extraction (lignes, Σ de la colonne contrôlée, écart avec l'étape précédente) */
.ext-index.ext-chemin { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 0.55rem; margin: 0; flex: none; }
.ext-index.ext-chemin a { display: flex; flex-direction: column; gap: 0.1rem; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 0.45rem 0.75rem; background: var(--surface); color: var(--ink); min-width: 0; font-size: 0.76rem; }
.ext-index.ext-chemin a:hover { border-color: var(--blue); }
.ext-index.ext-chemin[role="tablist"] a[aria-selected="true"] { background: var(--surface-2); border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); color: var(--ink); }
.ext-index.ext-chemin[role="tablist"] a[aria-selected="true"] b, .ext-index.ext-chemin a b { color: var(--navy); }
.ext-chemin .haut { display: flex; gap: 0.45rem; align-items: center; }
.ext-chemin .num { width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 0.68rem; font-weight: 700; flex: none; }
.ext-chemin .nb { margin-left: auto; color: var(--muted); font-size: 0.72rem; white-space: nowrap; }
.ext-chemin .quoi { color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ext-chemin .somme { font-weight: 700; color: var(--navy); font-size: 0.88rem; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ext-chemin .delta { font-size: 0.72rem; font-weight: 600; }
.ext-chemin .delta.ok { color: var(--green); }
.ext-chemin .delta.err { color: var(--red); }
.ext-index.ext-chemin a.vide { opacity: 0.7; }
.ext-index.ext-chemin a.err .nb { color: var(--red); }
/* Extraction affichée : elle occupe la hauteur restante, le tableau défile dedans */
.extractions .ext-bloc { flex: 1; min-height: 12rem; display: flex; flex-direction: column; gap: 0.45rem; }
.extractions .ext-bloc[hidden] { display: none; }
.ext-outils-bloc { display: flex; flex-wrap: wrap; gap: 0.35rem 0.45rem; align-items: center; font-size: 0.76rem; color: var(--muted); flex: none; }
.ext-outils-bloc:empty { display: none; }
.ext-fait { border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 0.08rem 0.6rem; color: var(--ink-soft); max-width: 22rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ext-fait b { color: var(--navy); }
.ext-filtres { display: inline-flex; flex-wrap: wrap; gap: 0.3rem; margin-left: auto; }
.ext-filtres .puce { font: 600 0.74rem var(--font-family); border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); border-radius: var(--radius-pill); padding: 0.15rem 0.65rem; cursor: pointer; display: inline-flex; gap: 0.3rem; align-items: center; }
.ext-filtres .puce:hover { border-color: var(--blue); }
.ext-filtres .puce[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.ext-filtres .puce .n { opacity: 0.75; font-variant-numeric: tabular-nums; }
.extractions .ext-bloc .ext-table, .extractions .ext-bloc .tbl-cadre { flex: 1; min-height: 0; }
.extractions .ext-bloc .tbl-cadre { display: flex; flex-direction: column; }
.extractions .ext-bloc .ext-table { max-height: none; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.extractions .ext-vide { border: 1px dashed var(--line); border-radius: var(--radius-lg); }
/* Tableaux de la fenêtre : police Inter, plus petite, chiffres alignés */
.extractions .ext-table .tbl { font-family: "Inter", var(--font-family); font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.extractions .ext-table .tbl th { font-size: 0.72rem; padding: 0.42rem 0.65rem; }
.extractions .ext-table .tbl td { padding: 0.3rem 0.65rem; }
.extractions .tbl-wrap > .tbl > thead th.cible { box-shadow: inset 0 -3px 0 var(--orange); }
.extractions .tbl td.cible { background: #fff6ec; font-weight: 700; color: var(--navy); }
.extractions .tbl td.code-lib { max-width: 18rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.extractions .tbl td.code-lib .cl { margin-right: 0.4rem; }
.extractions .tbl td.rappel { color: #a86400; font-weight: 600; }
.extractions .tbl tfoot td { position: sticky; bottom: 0; z-index: 1; background: var(--surface-2); font-weight: 700; color: var(--navy); border-top: 2px solid var(--line); padding: 0.4rem 0.65rem; }
.extractions .tbl tfoot td.cible { background: #ffeedd; }
.extractions .tbl tr.sous-total td { background: var(--blue-pale); font-weight: 600; color: var(--navy); }
.extractions .tbl tr.hors-filtre { display: none; }
.extractions details.ext-fiche { flex: none; margin: 0; }
/* Pistes de recherche calculées : une ligne au-dessus du chemin de calcul (le panneau de droite a été retiré, 23/10/2026) */
.ext-pistes { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; flex: none; font-size: 0.76rem; }
.ext-pistes li { background: #fff6ec; border: 1px solid #f6d9bf; border-radius: var(--radius-pill); padding: 0.12rem 0.65rem; color: var(--ink); }
.ext-pistes li.lib { background: none; border: 0; padding: 0; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.ext-pistes b { color: var(--navy); }
.ext-code.aide { cursor: help; }
@media (max-width: 900px) {
    .ext-operation { grid-template-columns: 1fr; }
    .extractions .ext-bloc .ext-table { max-height: 60vh; }
}
/* Classes utilitaires remplaçant les attributs style="…" (bloqués par la politique de sécurité) */
.carte-tableau { padding: 0; overflow-x: auto; }
a.carte-lien, a.carte-lien:hover { text-decoration: none; color: inherit; }
a.carte-lien:hover { border-color: var(--blue); }
.grille-serree { gap: 0.25rem 1rem; margin-bottom: 0.75rem; }
.marge-haut-s { margin-top: 0.5rem; }
.marge-haut-l { margin-top: 1.25rem; }
.actions-haut { margin: 0 0 1rem; }
.majuscules { text-transform: uppercase; }
.rapport-brut, .texte-brut { white-space: pre-wrap; }
.rapport-brut { font-size: 0.82rem; }
.champ-nombre { width: 5.5rem; }
.champ-nombre-court { width: 4.5rem; }
.form-ligne { display: inline; }
.sur-titre { display: block; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin-bottom: 0.2rem; }
/* Pages d'anomalies : liste des contrôles à gauche, fiche du contrôle choisi à droite (24/10/2026) */
.bande-avancement { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; padding: 0.9rem 1.2rem; }
.bande-avancement .ba-suivi { flex: 1 1 22rem; min-width: 0; display: grid; gap: 0.35rem; }
.bande-avancement .grand-nombre .n { font-size: 1.6rem; }
.bande-avancement .ba-bloc { display: grid; gap: 0.2rem; font-size: 0.84rem; }
.bande-avancement .ba-bloc .hint { font-size: 0.74rem; color: var(--muted); }
.ba-lancements .row { gap: 0.4rem 1rem; }
.pop-lancement { position: relative; }
.pop-lancement > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 600; color: var(--navy); }
.pop-lancement > summary::-webkit-details-marker { display: none; }
.pop-lancement > summary:hover { color: var(--blue); }
.pop-lancement .pop-corps { position: absolute; z-index: 30; top: calc(100% + 0.35rem); left: 0; width: 24rem; max-width: 80vw; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-md); box-shadow: var(--shadow-md); padding: 0.6rem 0.8rem; display: grid; gap: 0.5rem; }
.pop-lancement .lancement-ligne { display: grid; gap: 0.1rem; font-size: 0.82rem; }
.choix-periode { margin: 0; }
.choix-periode .select { font-weight: 600; color: var(--navy); }
.btn-cadre { border-color: var(--line-strong); background: var(--surface); }
.menu-pop > form { margin: 0; }
.menu-pop > form > button { display: flex; gap: 0.55rem; align-items: center; width: 100%; background: none; border: 0; padding: 0.45rem 0.6rem; border-radius: var(--radius-sm);
    font: 500 0.84rem var(--font-family); color: var(--ink); cursor: pointer; text-align: left; }
.menu-pop > form > button:hover { background: var(--gray-pale); color: var(--navy); }

.maitre-detail { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-start; }
.liste-ctl { flex: 1 1 20rem; max-width: 24rem; min-width: 0; position: sticky; top: 0.5rem; max-height: calc(100vh - 15rem); overflow: auto;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.liste-ctl ul { list-style: none; margin: 0; padding: 0; }
/* Thème : bandeau bleu nuit, texte blanc, pour le distinguer des contrôles (Haikel, 24/10) ; reste visible en haut de la liste au défilement */
.lc-theme-nom { display: flex; justify-content: space-between; gap: 0.5rem; padding: 0.5rem 0.9rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em;
    text-transform: uppercase; color: #fff; background: var(--navy); position: sticky; top: 0; z-index: 1; }
.lc-theme-nom .num { color: #fff; opacity: 0.85; }
.lc-item { display: flex; align-items: center; gap: 0.6rem; padding: 0.45rem 0.9rem 0.45rem 0.7rem; border-left: 3px solid transparent; color: var(--ink); text-decoration: none; min-height: 2.9rem; }
.lc-item:hover { background: var(--survol, var(--gray-pale)); text-decoration: none; color: var(--ink); }
.lc-item[aria-current="true"] { background: var(--blue-pale); border-left-color: var(--orange); }
.lc-txt { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.lc-txt .code-controle { font-size: 0.74rem; }
.lc-lib { font-size: 0.82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-n { display: flex; flex-direction: column; align-items: flex-end; gap: 0.15rem; flex: none; }
.lc-n b { color: var(--navy); font-size: 0.86rem; }
.lc-n .mini-suivi > span:last-child { display: none; }
.lc-conformes { border-top: 1px solid var(--line); }
.lc-conformes > summary { cursor: pointer; padding: 0.6rem 0.9rem; font-size: 0.8rem; color: var(--green-ink, var(--muted)); display: flex; gap: 0.4rem; align-items: center; }
.lc-vide, .lc-pied { margin: 0; padding: 0.7rem 0.9rem; font-size: 0.8rem; color: var(--muted); display: flex; gap: 0.4rem; align-items: center; }
.lc-pied { border-top: 1px solid var(--line); }

.fiches { flex: 999 1 40rem; min-width: 0; }
.fiche-ctl { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.fiche-tete { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1rem 1.2rem 0.4rem; }
.fiche-titre { min-width: 0; flex: 1 1 26rem; }
.fiche-titre .row { gap: 0.5rem; }
.fiche-titre h2 { margin: 0.4rem 0 0.15rem; font-size: 1.05rem; color: var(--navy); }
.code-pastille { font: 700 0.78rem var(--font-mono); color: var(--on-accent, #fff); background: var(--navy); border-radius: var(--radius-sm); padding: 0.08rem 0.5rem; }
.fiche-phrase { margin: 0; font-size: 0.84rem; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 52rem; }
.fiche-chiffre { display: grid; justify-items: end; align-content: start; gap: 0.1rem; }
.fiche-chiffre .l { font-size: 0.74rem; color: var(--muted); }
.fiche-chiffre b { font-size: 1.35rem; }
.fiche-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; padding: 0.5rem 1.2rem 0.8rem; border-bottom: 1px solid var(--line); }
.fiche-actions .espace { flex: 1 1 auto; }
.fiche-ctl > .fiche-controle { margin: 0.6rem 1.2rem 0; }
.fiche-ctl > .alert, .fiche-ctl > .note { margin: 0.8rem 1.2rem; }
.fiche-communs { display: flex; flex-wrap: wrap; gap: 0.35rem 1.4rem; padding: 0.55rem 1.2rem; background: var(--panel); border-bottom: 1px solid var(--line); font-size: 0.8rem; }
.fiche-communs b { color: var(--navy); }
.fiche-message { display: inline-flex; gap: 0.4rem; align-items: center; flex-basis: 100%; color: var(--ink); }
.fiche-ctl .tbl-wrap { border: 0; border-radius: 0; margin: 0; }
.fiche-ctl > .note:last-child { margin-top: 0.6rem; }

.dialogue-grille { border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 1rem 1.25rem; width: min(78rem, calc(100% - 2rem)); max-height: calc(100vh - 3rem); }
.dialogue-grille::backdrop { background: rgba(18, 51, 77, 0.35); }
.dialogue-grille .card-head { margin-bottom: 0.3rem; }
.dialogue-grille .hint { font-size: 0.8rem; color: var(--muted); margin: 0 0 0.6rem; }

/* Liste des contrôles : un clic sur un thème plie ou déplie ses contrôles (Haikel, 24/10) */
.lc-theme > .lc-theme-nom { cursor: pointer; user-select: none; }
.lc-theme > .lc-theme-nom > span:first-child::before { content: "▾"; display: inline-block; width: 1em; transition: transform var(--transition, 0.15s); }
.lc-theme.plie > .lc-theme-nom > span:first-child::before { transform: rotate(-90deg); }
.lc-theme.plie > ul { display: none; }
.lc-theme > .lc-theme-nom:focus-visible { outline: 2px solid var(--orange); outline-offset: -2px; }

/* Dépôt de fichiers : fenêtre de confirmation (pages.js, confirmerDepot) */
.dialogue-depot { border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 1.1rem 1.3rem; width: min(30rem, calc(100% - 2rem)); }
.dialogue-depot::backdrop { background: rgba(18, 51, 77, 0.35); }
.dialogue-depot h2 { margin: 0 0 0.6rem; font-size: 1.05rem; color: var(--navy); }
.dialogue-depot ul { list-style: none; margin: 0 0 0.6rem; padding: 0; max-height: 14rem; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.dialogue-depot li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.35rem 0.7rem; font-size: 0.86rem; border-bottom: 1px solid var(--line); }
.dialogue-depot li:last-child { border-bottom: 0; }
.dialogue-depot li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.dialogue-depot li small { color: var(--muted); flex: none; }
.dialogue-depot li.reste { color: var(--muted); font-style: italic; }
.dialogue-depot .hint { font-size: 0.8rem; color: var(--muted); margin: 0 0 0.8rem; }
.dialogue-depot .row { justify-content: flex-end; gap: 0.5rem; }

/* Cotisations OC · Évolution par contrat : colonnes de mois resserrées, courbe par contrat */
.tbl-evo th, .tbl-evo td { padding: 0.45rem 0.5rem; }
.tbl-evo td.r { white-space: nowrap; }
.tbl-evo .spark-cell { padding-block: 0.3rem; vertical-align: middle; }
.spark { width: 120px; height: 28px; display: block; overflow: visible; }
.spark polyline { fill: none; stroke: var(--navy); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.spark circle { fill: var(--orange); }

/* Taux spécifiques du client : formulaire d'ajout sur une grille */
.form-taux { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 0.7rem 1rem; padding: 0.9rem 1.1rem; }
.form-taux label { display: grid; gap: 0.25rem; font-size: 0.78rem; color: var(--muted); min-width: 0; }
.form-taux label.large { grid-column: span 2; }
.form-taux-pied { grid-column: 1 / -1; display: flex; justify-content: flex-end; }
.card > .pad { padding: 0.9rem 1.1rem; margin: 0; }
@media (max-width: 600px) { .form-taux label.large { grid-column: auto; } }

/* Agirc-Arrco par mois de DSN : courbe cotisations / versements, total, pagination des salariés, seuil d'écart */
.courbe-aa { margin: 0.6rem 1.1rem 0.4rem; max-width: 100%; }
.courbe-aa svg { width: 100%; max-width: 900px; height: auto; display: block; }
.courbe-aa .axe { stroke: var(--line-strong); stroke-width: 1; }
.courbe-aa .graduation { font-size: 11px; fill: var(--muted); }
.courbe-aa polyline { fill: none; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.courbe-aa .serie-cotis { stroke: var(--navy); }
.courbe-aa .serie-verse { stroke: var(--orange); stroke-dasharray: 5 4; }
.courbe-aa .point-cotis { fill: var(--navy); }
.courbe-aa .point-verse { fill: var(--orange); }
.courbe-aa figcaption { font-size: 0.78rem; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.6rem; margin-top: 0.3rem; }
.courbe-aa .leg { display: inline-block; width: 1.4rem; height: 0; border-top: 3px solid var(--navy); }
.courbe-aa .leg-verse { border-top: 3px dashed var(--orange); }
.tbl tr.total td { background: var(--surface-2); border-top: 2px solid var(--line-strong); }
.pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.5rem; padding: 0.7rem 1.1rem; }
.pagination a { min-width: 2rem; text-align: center; padding: 0.2rem 0.5rem; border-radius: var(--radius-pill); text-decoration: none; color: var(--navy); border: 1px solid var(--line); }
.pagination a[aria-current="page"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.seuil-filtre { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.8rem; color: var(--muted); }
.seuil-filtre input { width: 6rem; }
.courbes-pas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); gap: 0.5rem 1rem; }

/* =====================================================================
   Audit design du 25/10/2026 : barre de menu bleu nuit (une seule marque de l'entrée active, trait orange), panneaux par
   rubrique, mois à déclarer et compte à droite ; menu replié dans un bouton sous 1 100 px ; pied de page en trois colonnes.
   ===================================================================== */
.entete { background: var(--navy); backdrop-filter: none; border-bottom: 0; box-shadow: 0 6px 18px -14px rgba(18, 51, 77, 0.6); }
.entete-contenu { height: 3.75rem; padding: 0 1.5rem; gap: 1.25rem; }
.logo { display: flex; align-items: center; gap: 0.6rem; flex: none; color: var(--on-accent); text-decoration: none; }
.logo:hover { text-decoration: none; color: var(--on-accent); }
.logo-barre { fill: var(--blue); }
.logo-barre-orange { fill: var(--orange); }
.logo-texte { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.01em; }
.logo-texte span { color: #ff7a2e; }
.menu { gap: 0.1rem; flex-wrap: nowrap; }
.menu a.entree { color: #c9d8e4; font-size: 0.93rem; padding: 0.55rem 0.8rem; border-radius: 0.55rem; }
.menu .groupe:hover > a.entree, .menu .groupe:focus-within > a.entree { background: rgba(255, 255, 255, 0.08); color: var(--on-accent); }
.menu a.entree.actif { background: none; color: var(--on-accent); font-weight: 600; }
.menu a.entree.actif::after { left: 0.8rem; right: 0.8rem; bottom: -0.6rem; height: 3px; border-radius: 3px; background: var(--orange); }
.menu a.entree .chevron { opacity: 0.6; }
.menu a.entree:focus-visible, .mois-courant:focus-visible, .qui:focus-visible, .menu-bascule:focus-visible { outline: 2px solid #8fd0ff; outline-offset: 2px; }
.sous-menu { top: calc(100% + 0.7rem); min-width: 23rem; padding: 0.5rem; border-radius: 0.9rem; border: 0; box-shadow: 0 18px 40px -12px rgba(18, 51, 77, 0.35), 0 0 0 1px var(--line); }
.groupe::after { height: 0.8rem; }
.mois-courant { display: inline-flex; align-items: center; gap: 0.4rem; background: rgba(255, 255, 255, 0.1); color: var(--on-accent); border-radius: var(--radius-pill);
    padding: 0.35rem 0.8rem; font-size: 0.86rem; font-weight: 600; white-space: nowrap; flex: none; }
.mois-courant:hover { background: rgba(255, 255, 255, 0.18); color: var(--on-accent); text-decoration: none; }
.mois-courant .ic { width: 1rem; height: 1rem; }
.qui { display: flex; align-items: center; gap: 0.6rem; color: var(--on-accent); text-decoration: none; border-radius: 0.6rem; padding: 0.2rem 0.3rem; }
.qui:hover { text-decoration: none; color: var(--on-accent); background: rgba(255, 255, 255, 0.08); }
.qui .avatar { background: var(--blue); box-shadow: none; width: 2.2rem; height: 2.2rem; font-size: 0.82rem; }
.qui.actif .avatar, .compte.groupe:hover .qui .avatar, .compte.groupe:focus-within .qui .avatar { box-shadow: 0 0 0 2px var(--navy), 0 0 0 4px #8fd0ff; }
.qui-txt { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.qui-txt b { font-size: 0.85rem; font-weight: 600; white-space: nowrap; }
.qui-txt small { font-size: 0.74rem; color: #a9bfd0; white-space: nowrap; }
.menu-bascule { display: none; align-items: center; gap: 0.4rem; background: rgba(255, 255, 255, 0.1); color: var(--on-accent); border: 0; border-radius: 0.55rem;
    padding: 0.45rem 0.8rem; font: 600 0.88rem var(--font-family); cursor: pointer; }
.menu-bascule .ic { width: 1.1rem; height: 1.1rem; }
@media (max-width: 1100px) { .menu-bascule { margin-right: auto; } }
@media (max-width: 1100px) {
    .menu a.entree > span { display: inline; }
    .menu a.entree .chevron { display: inline; }
    .menu a.entree { padding: 0.55rem 0.8rem; }
    .menu-bascule { display: inline-flex; }
    .entete-contenu { position: relative; justify-content: space-between; }
    .nav-principale { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); padding: 0.5rem 1rem 1rem; box-shadow: 0 18px 30px -18px rgba(0, 0, 0, 0.5); }
    .nav-principale.ouvert { display: block; }
    .menu { flex-direction: column; align-items: stretch; }
    .menu a.entree { width: 100%; justify-content: space-between; }
    .menu a.entree.actif::after { display: none; }
    .menu a.entree.actif { background: rgba(255, 255, 255, 0.1); }
    .sous-menu { position: static; opacity: 1; visibility: visible; transform: none; display: none; min-width: 0; margin: 0.2rem 0 0.5rem; }
    .groupe:hover > .sous-menu { display: none; }
    .groupe.deplie > .sous-menu, .groupe.deplie:hover > .sous-menu { display: flex; }
    .qui-txt { display: none; }
}
@media (max-width: 640px) { .mois-courant span { display: none; } .logo-texte { font-size: 1.05rem; } }

/* Pied de page en trois colonnes : marque et version de la norme, garanties, liens utiles */
.pied { display: block; padding: 0; font-size: 0.8rem; color: var(--navy-soft); background: var(--surface); border-top: 1px solid var(--line); }
.pied-contenu { max-width: 1920px; margin: 0 auto; padding: 0.85rem 1.5rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem 1.5rem; align-items: start; }
.pied-marque { display: flex; flex-direction: column; gap: 0.1rem; }
.pied-logo { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--navy); font-weight: 800; font-size: 0.92rem; }
.pied-logo span { color: var(--orange-dark); }
.pied-discret { color: var(--muted); }
.pied-garanties { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.2rem; }
.pied-garanties li { display: flex; align-items: center; gap: 0.45rem; }
.pied-garanties .ic { width: 0.9rem; height: 0.9rem; color: #157a55; }
.pied-liens { display: flex; flex-wrap: wrap; gap: 0.3rem 1.2rem; justify-content: flex-end; }
.pied-liens a { color: var(--navy-soft); }
.pied-liens a:hover { color: var(--blue); }
@media (max-width: 900px) { .pied-contenu { grid-template-columns: 1fr; } .pied-liens { justify-content: flex-start; } .pied-garanties { flex-direction: row; flex-wrap: wrap; gap: 0.2rem 1rem; } }

/* Accueil (audit design du 25/10/2026) : mois à déclarer, frise de six mois, quatre chiffres, à faire priorisé, colonne de droite */
.accueil { display: flex; flex-direction: column; gap: 1.4rem; padding-top: 1.6rem; max-width: 1600px; }
.acc-tete { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: flex-end; justify-content: space-between; }
.acc-tete h1 { margin: 0; font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; }
.acc-date { margin: 0 0 0.2rem; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue); }
.acc-phrase { margin: 0.3rem 0 0; font-size: 1.05rem; color: var(--navy-soft); }
.acc-phrase b { color: var(--navy); }
.acc-boutons { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; }
.acc-boutons form { margin: 0; }
.acc-frise { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 0.9rem 1.2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem 1.2rem; }
.acc-frise > b { color: var(--navy); font-size: 0.92rem; min-width: 8rem; }
.acc-mois { flex: 1; min-width: min(100%, 34rem); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.6rem; }
.acc-m { display: flex; flex-direction: column; gap: 0.25rem; padding: 0.55rem 0.75rem; border: 1px solid var(--line); border-radius: var(--radius-md); color: var(--navy); text-decoration: none; min-width: 0; }
.acc-m:hover { border-color: var(--blue); text-decoration: none; color: var(--navy); }
.acc-m > span { font-size: 0.86rem; font-weight: 600; }
.acc-m small { display: flex; align-items: center; gap: 0.35rem; font-size: 0.78rem; color: var(--navy-soft); }
.acc-m i { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--gray-300); flex: none; }
.acc-m.ok i { background: var(--green); }
.acc-m.warn i { background: var(--warning); }
.acc-m.err i { background: var(--danger); }
.acc-m.vide { background: var(--surface-2, #f8fafc); border-style: dashed; }
.acc-m.courant { box-shadow: inset 0 0 0 2px var(--blue); border-color: var(--blue); }
.acc-tuiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1rem; }
.acc-tuile { display: flex; flex-direction: column; gap: 0.35rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.1rem 1.3rem; color: var(--navy); text-decoration: none; }
.acc-tuile:hover { border-color: var(--blue); box-shadow: 0 8px 20px -10px rgba(18, 51, 77, 0.25); text-decoration: none; color: var(--navy); }
.acc-tuile .t { font-size: 0.86rem; font-weight: 600; }
.acc-tuile > b { font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.acc-tuile > b small { font-size: 1rem; font-weight: 500; color: var(--ink-soft); letter-spacing: 0; }
.acc-tuile .c-err { color: #c2361f; }
.acc-tuile .s-ok { font-size: 0.86rem; font-weight: 600; color: #157a55; }
.acc-tuile .s-warn { font-size: 0.86rem; font-weight: 600; color: #9a6418; }
.acc-tuile .s-neutre { font-size: 0.86rem; color: var(--ink-soft); }
.acc-corps { display: flex; flex-wrap: wrap; gap: 1.4rem; align-items: flex-start; }
.acc-carte.acc-afaire { flex: 999 1 38rem; min-width: 0; padding: 0; overflow: hidden; }
.acc-cote { flex: 1 1 20rem; min-width: 0; display: flex; flex-direction: column; gap: 1.4rem; }
.acc-carte { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.1rem 1.25rem; }
.acc-carte h2 { margin: 0 0 0.75rem; font-size: 1.05rem; font-weight: 700; }
.acc-carte-tete { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--line); }
.acc-carte-tete h2 { margin: 0; font-size: 1.15rem; }
.acc-afaire ul { list-style: none; margin: 0; padding: 0; }
.acc-afaire li { display: flex; align-items: center; gap: 1rem; padding: 0.95rem 1.4rem; border-bottom: 1px solid var(--line); position: relative; }
.acc-afaire li:last-child { border-bottom: 0; }
.acc-afaire li:hover { background: #f8fafc; }
.acc-afaire li::before { content: ''; position: absolute; left: 0; top: 0.7rem; bottom: 0.7rem; width: 4px; border-radius: 0 4px 4px 0; background: var(--blue); }
.acc-afaire li.p-err::before { background: var(--danger); }
.acc-afaire li.p-warn::before { background: var(--warning); }
.acc-afaire li .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.acc-afaire li .grow b { color: var(--navy); font-weight: 600; }
.acc-afaire li .grow span { font-size: 0.86rem; }
.acc-puce { flex: none; font-size: 0.78rem; font-weight: 600; color: var(--navy); background: var(--gray-100); border-radius: var(--radius-pill); padding: 0.2rem 0.7rem; white-space: nowrap; }
.acc-afaire .empty { padding: 2rem 1.4rem; }
.acc-crm { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; color: var(--navy); text-decoration: none; padding: 0.45rem 0; border-top: 1px solid var(--line); }
.acc-crm:first-of-type { border-top: 0; }
.acc-crm:hover { text-decoration: none; color: var(--blue); }
.acc-crm span:first-child { display: flex; flex-direction: column; min-width: 0; }
.acc-crm b { font-weight: 600; font-size: 0.9rem; }
.acc-crm small { font-size: 0.78rem; color: var(--ink-soft); }
.acc-raccourcis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.acc-raccourcis a { display: flex; flex-direction: column; gap: 0.5rem; padding: 0.8rem; border: 1px solid var(--line); border-radius: var(--radius-md); color: var(--navy); text-decoration: none; }
.acc-raccourcis a:hover { border-color: var(--blue); text-decoration: none; color: var(--navy); }
.acc-raccourcis b { font-size: 0.86rem; font-weight: 600; line-height: 1.3; }
.acc-modules { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.6rem; }
.acc-modules span { font-size: 0.78rem; font-weight: 600; color: var(--blue-dark); background: var(--blue-pale); border-radius: var(--radius-pill); padding: 0.2rem 0.75rem; }
@media (max-width: 1000px) { .acc-mois { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .acc-afaire li { flex-wrap: wrap; } }

/* Mon profil (audit design du 25/10/2026) : carte d'identité et onglets verticaux à gauche, un panneau à la fois, interrupteurs,
   jauges des fichiers traités et de la fin d'accès, une barre « Enregistrer » par onglet */
.pf-cadre { display: grid; grid-template-columns: 16rem minmax(0, 1fr); gap: 1.5rem; align-items: start; max-width: 1200px; }
.pf-cote { display: flex; flex-direction: column; gap: 1rem; position: sticky; top: 5.5rem; }
.pf-carte-id { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.2rem; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.15rem; }
.pf-avatar { width: 3.6rem; height: 3.6rem; border-radius: 50%; background: var(--navy); color: var(--on-accent); display: grid; place-items: center; font-weight: 700; font-size: 1.2rem; margin-bottom: 0.5rem; }
.pf-carte-id b { color: var(--navy); font-size: 1rem; }
.pf-carte-id span { font-size: 0.84rem; }
.pf-client { color: var(--blue-dark); font-weight: 600; }
.pf-onglets { display: flex; flex-direction: column; gap: 0.15rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 0.4rem; }
.pf-onglets a { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.75rem; border-radius: var(--radius-md); color: var(--navy-soft); font-weight: 500; font-size: 0.92rem; text-decoration: none; position: relative; }
.pf-onglets a:hover { background: var(--panel); color: var(--navy); text-decoration: none; }
.pf-onglets a[aria-selected="true"] { background: var(--blue-pale); color: var(--navy); font-weight: 600; }
.pf-onglets a[aria-selected="true"]::before { content: ''; position: absolute; left: 0; top: 0.5rem; bottom: 0.5rem; width: 3px; border-radius: 3px; background: var(--orange); }
.pf-onglets a.danger { color: #9b2c1b; }
.pf-onglets .ic { width: 1.05rem; height: 1.05rem; }
.pf-alerte { margin-left: auto; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--warning); }
.pf-panneau { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.4rem 1.6rem; }
.pf-panneau h2 { font-size: 1.2rem; margin: 0 0 1rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 0.8rem; }
.pf-panneau h2 small { font-size: 0.8rem; font-weight: 500; color: var(--ink-soft); }
.pf-danger { border-color: var(--danger); }
.pf-danger h2 { color: var(--danger); }
.pf-kv { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 0.5rem 1rem; margin: 0 0 1.2rem; font-size: 0.92rem; }
.pf-kv dt { color: var(--ink-soft); }
.pf-kv dd { margin: 0; color: var(--navy); font-weight: 500; overflow-wrap: anywhere; }
.pf-jauges { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1rem; margin-bottom: 1rem; }
.pf-jauge { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 0.8rem 1rem; display: flex; flex-direction: column; gap: 0.4rem; }
.pf-jauge-tete { display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.88rem; }
.pf-jauge-tete b { color: var(--navy); font-variant-numeric: tabular-nums; }
.pf-jauge small { font-size: 0.78rem; color: var(--ink-soft); }
.pf-jauge progress { width: 100%; height: 0.5rem; appearance: none; border: 0; border-radius: var(--radius-pill); background: var(--gray-100); overflow: hidden; }
.pf-jauge progress::-webkit-progress-bar { background: var(--gray-100); border-radius: var(--radius-pill); }
.pf-jauge progress::-webkit-progress-value { background: var(--blue); border-radius: var(--radius-pill); }
.pf-jauge progress::-moz-progress-bar { background: var(--blue); border-radius: var(--radius-pill); }
.pf-jauge progress.haut::-webkit-progress-value { background: var(--warning); }
.pf-jauge progress.haut::-moz-progress-bar { background: var(--warning); }
.pf-bloc { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 1rem 1.1rem; margin-bottom: 1rem; display: flex; flex-direction: column; gap: 0.6rem; }
.pf-bloc-tete { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.pf-bloc-tete b { color: var(--navy); }
.pf-bloc p { margin: 0; }
.pf-champs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 0 1rem; }
.pf-inter, .pf-seuil { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.pf-inter > span:first-child, .pf-seuil > span:first-child { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.pf-inter b, .pf-seuil b { color: var(--navy); font-weight: 600; }
.pf-inter small, .pf-seuil small { font-size: 0.82rem; color: var(--ink-soft); line-height: 1.45; }
.pf-inter.dis { cursor: default; opacity: 0.7; }
.pf-euros { display: inline-flex; align-items: center; gap: 0.4rem; flex: none; color: var(--navy); }
.pf-euros input { width: 7rem; }
.interrupteur { appearance: none; flex: none; width: 2.6rem; height: 1.5rem; border-radius: var(--radius-pill); background: var(--gray-300); position: relative; cursor: pointer; transition: background 0.15s; margin: 0; }
.interrupteur::after { content: ''; position: absolute; top: 0.2rem; left: 0.2rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); transition: transform 0.15s; }
.interrupteur:checked { background: var(--blue); }
.interrupteur:checked::after { transform: translateX(1.1rem); }
.interrupteur:disabled { cursor: not-allowed; opacity: 0.6; }
.interrupteur:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.pf-barre { display: flex; justify-content: flex-end; gap: 0.6rem; padding-top: 1rem; margin-top: 0.4rem; border-top: 1px solid var(--line); }
.pf-panneau .note { margin-top: 1rem; }
@media (max-width: 860px) { .pf-cadre { grid-template-columns: 1fr; } .pf-cote { position: static; } .pf-onglets { flex-direction: row; flex-wrap: wrap; } .pf-kv { grid-template-columns: 1fr; } }

/* Console d'administration (audit design du 25/10/2026) : navigation à gauche, vue d'ensemble, utilisateurs avec panneau latéral */
.console { display: grid; grid-template-columns: 15rem minmax(0, 1fr); min-height: 100%; }
.console-nav { display: flex; flex-direction: column; gap: 0.15rem; padding: 1.2rem 0.75rem; background: var(--surface); border-right: 1px solid var(--line); position: sticky; top: 0; align-self: start; min-height: calc(100vh - 8rem); }
.console-titre { display: flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); padding: 0 0.6rem 0.6rem; }
.console-nav a { display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0.7rem; border-radius: var(--radius-md); color: var(--navy-soft); font-weight: 500; font-size: 0.92rem; text-decoration: none; position: relative; }
.console-nav a:hover { background: var(--panel); color: var(--navy); text-decoration: none; }
.console-nav a.actif { background: var(--blue-pale); color: var(--navy); font-weight: 600; }
.console-nav a.actif::before { content: ''; position: absolute; left: 0; top: 0.45rem; bottom: 0.45rem; width: 3px; border-radius: 3px; background: var(--orange); }
.console-nav .ic { width: 1.05rem; height: 1.05rem; }
.console-pastille { margin-left: auto; background: var(--orange); color: var(--on-accent); border-radius: var(--radius-pill); font-size: 0.72rem; padding: 0 0.45rem; }
.console-contenu { min-width: 0; }
@media (max-width: 900px) { .console { grid-template-columns: 1fr; } .console-nav { position: static; min-height: 0; flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--line); } .console-titre { width: 100%; } }
.adm-tuiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 1rem; margin-bottom: 1.4rem; }
.adm-tuiles .acc-tuile > b { font-size: 1.8rem; }
.adm-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); gap: 1.4rem; align-items: start; }
.adm-carte-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 0.6rem; }
.adm-carte-tete h2 { margin: 0; font-size: 1.05rem; }
.adm-ligne { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.adm-ligne:first-of-type { border-top: 0; }
a.adm-ligne:hover { text-decoration: none; color: var(--blue); }
.adm-ligne .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.adm-ligne .grow b { color: var(--navy); font-weight: 600; font-size: 0.92rem; }
.adm-ligne .grow small { font-size: 0.78rem; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-ligne form { margin: 0; }
.adm-journal { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.45rem; font-size: 0.86rem; }
.adm-journal li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 0.6rem; }
.adm-journal b { color: var(--navy); font-weight: 600; }
.adm-filtres { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center; margin-bottom: 1rem; }
.adm-filtres .seg button { font: 600 0.8rem var(--font-family); border: 0; background: none; color: var(--navy-soft); padding: 0.35rem 0.85rem; border-radius: var(--radius-pill); cursor: pointer; }
.adm-filtres .seg button[aria-pressed="true"] { background: var(--surface); color: var(--navy); box-shadow: var(--shadow-sm); }
.adm-filtres .seg button span { opacity: 0.7; font-variant-numeric: tabular-nums; margin-left: 0.2rem; }
.adm-utilisateurs td { vertical-align: middle; }
.adm-utilisateurs small { display: block; font-size: 0.78rem; color: var(--ink-soft); }
.adm-qui { display: flex; align-items: center; gap: 0.6rem; }
.adm-qui > span:last-child { min-width: 0; }
.adm-qui b { color: var(--navy); font-weight: 600; margin-right: 0.35rem; }
.adm-utilisateurs .actions-ligne form { margin: 0; }
.panneau-lateral { position: fixed; inset: 0 0 0 auto; margin: 0; height: 100vh; max-height: 100vh; width: min(30rem, 100vw); border: 0; border-left: 1px solid var(--line); padding: 1.3rem 1.4rem;
    background: var(--surface); box-shadow: -18px 0 40px -18px rgba(18, 51, 77, 0.4); overflow-y: auto; text-align: left; white-space: normal; }
.panneau-lateral::backdrop { background: rgba(18, 51, 77, 0.35); }
.pl-tete { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.pl-tete h2 { margin: 0; font-size: 1.2rem; }
.pl-tete small { color: var(--ink-soft); }
.pl-bloc { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 1rem 1.1rem; margin-bottom: 1rem; }
.pl-bloc h3 { margin: 0 0 0.7rem; font-size: 1rem; }
