/* Portail CdC — thème clair et sombre : choix du bandeau (data-theme sur <html>), sinon celui du système.
   Le bandeau a sa propre feuille : css/cdc-header.css. */
:root {
    --fond: #f5f6f8;
    --carte: #ffffff;
    --texte: #1d2330;
    --discret: #5c6577;
    --bordure: #dfe3ea;
    --accent: #2557d6;
    --accent-texte: #ffffff;
    --alerte-fond: #fdecec;
    --alerte-texte: #8a1c1c;
    --succes-fond: #e8f6ec;
    --succes-texte: #1d6b35;
    --danger: #b42318;
    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --fond: #14171d;
        --carte: #1d2129;
        --texte: #e8ebf1;
        --discret: #9aa3b5;
        --bordure: #2f3541;
        --accent: #7aa2ff;
        --accent-texte: #0d1424;
        --alerte-fond: #3a1a1a;
        --alerte-texte: #ffb4ab;
        --succes-fond: #15301f;
        --succes-texte: #9ee2b2;
        --danger: #ff8a80;
    }
}

:root[data-theme="dark"] {
    --fond: #14171d;
    --carte: #1d2129;
    --texte: #e8ebf1;
    --discret: #9aa3b5;
    --bordure: #2f3541;
    --accent: #7aa2ff;
    --accent-texte: #0d1424;
    --alerte-fond: #3a1a1a;
    --alerte-texte: #ffb4ab;
    --succes-fond: #15301f;
    --succes-texte: #9ee2b2;
    --danger: #ff8a80;
}
:root[data-theme="dark"] { color-scheme: dark; }
:root[data-theme="light"] { color-scheme: light; }

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--fond);
    color: var(--texte);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    line-height: 1.5;
}

a { color: var(--accent); }

main { max-width: 64rem; margin: 0 auto; padding: 1rem; }


h1 { font-size: 1.6rem; margin: 1rem 0; }
h2 { font-size: 1.2rem; margin: 0 0 0.75rem; }

.carte {
    background: var(--carte);
    border: 1px solid var(--bordure);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin: 0 0 1rem;
}
.etroite { max-width: 26rem; margin: 2rem auto; }

.formulaire label { display: block; margin: 0 0 0.75rem; }
.formulaire label.case, label.case { display: flex; gap: 0.5rem; align-items: center; }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], select, textarea {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    padding: 0.5rem 0.6rem;
    font: inherit;
    color: var(--texte);
    background: var(--fond);
    border: 1px solid var(--bordure);
    border-radius: 6px;
}
table.droits select { margin: 0; }
fieldset { border: 1px solid var(--bordure); border-radius: 8px; margin: 0 0 1rem; padding: 0.75rem 1rem; }
legend { font-weight: 600; padding: 0 0.25rem; }
/* Administration › Gestion modules : adresse et couleur côte à côte, application inactive estompée. */
.application-reglages { display: flex; flex-wrap: wrap; gap: 0 1rem; align-items: flex-end; }
.formulaire .application-adresse { flex: 1 1 16rem; }
.formulaire .application-couleur input[type="color"] { display: block; width: 4rem; height: 2.4rem; padding: 0.15rem; cursor: pointer; background: var(--fond); border: 1px solid var(--bordure); border-radius: 6px; }
.formulaire .application-position input { width: 5rem; }
/* Icône des tuiles : bouton avec aperçu dans la couleur choisie, qui ouvre la fenêtre du choix. */
.formulaire .application-icone { display: flex; flex-direction: column; }
.application-icone-bouton { display: flex; align-items: center; gap: 0.5rem; min-height: 2.4rem; padding: 0.2rem 0.6rem 0.2rem 0.2rem; font: inherit; color: var(--texte); cursor: pointer; background: var(--carte); border: 1px solid var(--bordure); border-radius: 6px; }
.application-icone-bouton:hover, .application-icone-bouton:focus-visible { border-color: var(--accent); }
.application-icone-apercu { flex: none; display: flex; width: 2rem; height: 2rem; padding: 0.25rem; box-sizing: border-box; }
.application-icone-apercu svg, .choix-icone-case svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.application-icone-nom { white-space: nowrap; }
/* Fenêtre superposée du choix de l'icône : toutes les icônes en aperçu, par groupe. */
.choix-icone { width: min(42rem, calc(100vw - 2rem)); max-height: calc(100vh - 3rem); padding: 1rem 1.25rem 1.25rem; color: var(--texte); background: var(--carte); border: 1px solid var(--bordure); border-radius: 10px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25); }
.choix-icone::backdrop { background: rgba(15, 20, 30, 0.45); }
.choix-icone-entete { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.choix-icone-entete h2 { margin: 0; font-size: 1.15rem; }
.choix-icone-groupe { margin: 1rem 0 0.4rem; font-size: 0.85rem; font-weight: 600; color: var(--discret); }
.choix-icone-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr)); gap: 0.4rem; }
.choix-icone-case { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; padding: 0.55rem 0.3rem 0.4rem; font: inherit; font-size: 0.75rem; line-height: 1.2; text-align: center; color: var(--texte); cursor: pointer; background: var(--fond); border: 2px solid transparent; border-radius: 8px; }
.choix-icone-case svg { width: 1.75rem; height: 1.75rem; color: var(--icone-couleur, var(--accent)); }
.choix-icone-case:hover, .choix-icone-case:focus-visible { border-color: var(--bordure); outline: none; }
.choix-icone-case.choisie { border-color: var(--accent); background: var(--carte); }
.formulaire .application-nom,
.formulaire .application-description { display: block; }
.formulaire .application-nom input,
.formulaire .application-description input { width: 100%; }
.application-deplacer { display: inline-flex; gap: 0.25rem; margin-bottom: 0.75rem; }
.application-deplacer .bouton { padding: 0.35rem 0.7rem; }
.applications-ordre fieldset:first-child [data-deplacer="-1"],
.applications-ordre fieldset:last-child [data-deplacer="1"] { visibility: hidden; }
.application-gestion.inactive legend { color: var(--discret); text-decoration: line-through; }

.bouton {
    display: inline-block;
    padding: 0.5rem 1rem;
    font: inherit;
    color: var(--texte);
    background: var(--fond);
    border: 1px solid var(--bordure);
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
}
.bouton.principal { background: var(--accent); border-color: var(--accent); color: var(--accent-texte); }
.bouton.danger { color: var(--danger); border-color: var(--danger); }
.bouton:disabled { opacity: 0.5; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.alerte, .succes { padding: 0.6rem 0.8rem; border-radius: 6px; }
.alerte { background: var(--alerte-fond); color: var(--alerte-texte); }
.alerte ul { margin: 0; padding-left: 1.2rem; }
.succes { background: var(--succes-fond); color: var(--succes-texte); }
.discret { color: var(--discret); font-size: 0.92em; }
.pastille { font-size: 0.75rem; padding: 0.1rem 0.4rem; border-radius: 999px; background: var(--fond); border: 1px solid var(--bordure); }

table { width: 100%; border-collapse: collapse; background: var(--carte); }
th, td { text-align: left; padding: 0.45rem 0.5rem; border-bottom: 1px solid var(--bordure); vertical-align: top; }
th { font-weight: 600; }
tr.inactif td { color: var(--discret); }
.numero { font-family: var(--cdc-mono); white-space: nowrap; }
.confidentiel { color: var(--danger); }
.choix-sms label.case { margin: 0.25rem 0; }
.recherche-personnes label { display: flex; flex-direction: column; gap: 0.25rem; }
.recherche-personnes input[type="search"] { width: min(22rem, 100%); padding: 0.45rem 0.5rem; font: inherit; }

.filtres { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0 0 1rem; align-items: end; }
.filtres a[aria-current="page"] { font-weight: 700; text-decoration: none; }
.pages { display: flex; gap: 1rem; justify-content: center; margin: 1rem 0; }

.tuiles { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); grid-auto-rows: 1fr; gap: 1rem; }
.tuiles > li { display: flex; }
.tuile {
    /* Accent de l'application (couleur du kiosque), fixé sur chaque tuile ; trait et pastille comme au kiosque. */
    --tuile-accent: var(--accent);
    --tuile-trait: var(--tuile-accent);
    --tuile-fond-icone: color-mix(in srgb, var(--tuile-accent) 16%, transparent);
    display: block;
    flex: 1;
    box-sizing: border-box;
    padding: 1.4rem 1.1rem 1.5rem;
    background: var(--carte);
    border: 1px solid var(--bordure);
    border-top: 4px solid var(--tuile-accent);
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(20, 23, 29, 0.07);
    font-size: 1.15rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--texte);
    transition: border-color 0.12s ease, box-shadow 0.12s ease, transform 0.08s ease;
}
a.tuile:hover {
    border-color: var(--tuile-accent);
    box-shadow: 0 6px 18px color-mix(in srgb, var(--tuile-accent) 22%, transparent);
}
a.tuile:active { transform: scale(0.98); }
a.tuile:focus-visible { outline: 2px solid var(--tuile-accent); outline-offset: 2px; }
.tuile-titre { display: flex; align-items: center; gap: 0.75rem; }
.tuile-pastille {
    flex: none;
    display: flex;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0.55rem;
    box-sizing: border-box;
    border-radius: 10px;
    color: var(--tuile-trait);
    background: var(--tuile-fond-icone);
}
.tuile-icone {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
/* Sombre (gris d'Horaire CdC) : icône éclaircie et pastille un peu plus soutenue pour rester lisibles. */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .tuile {
        --tuile-trait: color-mix(in srgb, var(--tuile-accent) 72%, #ffffff);
        --tuile-fond-icone: color-mix(in srgb, var(--tuile-accent) 24%, transparent);
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    }
}
:root[data-theme="dark"] .tuile {
    --tuile-trait: color-mix(in srgb, var(--tuile-accent) 72%, #ffffff);
    --tuile-fond-icone: color-mix(in srgb, var(--tuile-accent) 24%, transparent);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.tuile-description { display: block; margin-top: 0.5rem; font-size: 0.9rem; font-weight: 400; color: var(--discret); }

.logo-connexion { display: block; max-width: 100%; max-height: 10rem; margin: 0.5rem auto 1rem; object-fit: contain; }
.apercu-logo { margin: 0 0 0.75rem; }
.apercu-logo img { display: block; max-width: 100%; object-fit: contain; padding: 0.4rem; border: 1px dashed var(--bordure); border-radius: 6px; }
.apercu-petit img { height: 2.5rem; background: #2f2f33; }
.apercu-grand img { max-height: 10rem; }

.appairage { text-align: center; }
.appairage .code { font-size: 3.5rem; font-weight: 700; letter-spacing: 0.15em; margin: 1rem 0; font-family: var(--cdc-mono); }

@media (max-width: 40rem) {
    table { display: block; overflow-x: auto; }
}

/* Administration > Calendrier */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.calendrier-entete { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: space-between; align-items: center; }
.calendrier-choix { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.calendrier-choix select { width: auto; margin: 0; }
.calendrier-annee { margin: 0 0 1rem; }
.calendrier-colonnes { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 1rem; align-items: start; }
.calendrier-colonnes.deux { grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr)); }
.calendrier-colonnes > .carte { margin: 0 0 1rem; }
.calendrier-vacances { display: flex; flex-direction: column; gap: 1rem; }
.calendrier-vacances .calendrier-table { width: 100%; max-width: 46rem; table-layout: fixed; }
.calendrier-vacances .calendrier-table col.periode { width: 40%; }
.calendrier-pays { min-width: 0; overflow-x: auto; }
.calendrier-pays { border: 1px solid var(--bordure); border-radius: 8px; padding: 0.75rem; }
.calendrier-pays h3 { margin: 0 0 0.25rem; font-size: 1rem; }
.calendrier-pays h3 .discret { font-weight: 400; }
.calendrier-table td, .calendrier-table th { padding: 0.3rem 0.25rem; }
.calendrier-table input[type="date"] { width: 100%; min-width: 0; font: inherit; }
.calendrier-pays .bouton { margin-top: 0.75rem; }
.calendrier-ajout { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: end; margin: 0.75rem 0; }
.calendrier-ajout label { margin: 0; }
details.carte > summary { cursor: pointer; }
details.carte[open] > summary { margin-bottom: 0.75rem; }
details.repliable > summary h2 { display: inline; margin: 0; }
input[type="date"], input[type="file"] { font: inherit; color: var(--texte); }
input[type="date"] { padding: 0.35rem 0.4rem; background: var(--fond); border: 1px solid var(--bordure); border-radius: 6px; }
.calendrier-ajout input[type="date"] { display: block; margin-top: 0.25rem; padding: 0.45rem 0.5rem; }

/* Administration > SMTP */
.smtp-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 0 1rem; }
.smtp-journal { max-height: 20rem; overflow: auto; padding: 0.5rem; border: 1px solid var(--bordure); border-radius: 6px;
    font-size: 0.85em; white-space: pre-wrap; word-break: break-all; }

/* Administration > Maintenance */
.tableau-defilant { overflow-x: auto; }
.tableau-defilant.defile-10 { overflow-y: auto; border-bottom: 1px solid var(--bordure); }
.defile-10 thead th { position: sticky; top: 0; z-index: 1; background: var(--carte); }
table.connexions tr.avec-verrou td { background: var(--alerte-fond); }
.verrou { font-weight: 600; }
.maintenance-active { border-left: 6px solid var(--danger); }
.terminer-toutes { margin-top: 1rem; align-items: center; }
.terminer-toutes label.case { margin: 0; }
.bandeau-maintenance { margin: 0 0 1rem; }

/* Administration > Sauvegarde */
table.sauvegarde-modules input { width: 7rem; margin: 0; }
table.sauvegarde-modules th[scope="row"] { font-weight: 600; }
table.sauvegarde-modules th[scope="row"] .discret { font-weight: normal; }
code.commande { overflow-wrap: anywhere; }
.tout-sauvegarder form { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; margin: 0; }
.tout-sauvegarder-compte { margin: 0.75rem 0 0; padding-left: 1.2rem; }
.tout-sauvegarder-compte > li { margin: 0.25rem 0; padding: 0.25rem 0.5rem; }
.sauvegardes-modules .filtres label { display: flex; flex-direction: column; gap: 0.25rem; }

/* Bandeau commun fixé en haut pendant le défilement (Administration et toutes les pages du portail).
   Pas sur les écrans trop bas, où il prendrait trop de place ; la liste « Administration » défile si elle dépasse l'écran. */
@media screen and (min-height: 30rem) {
    .cdc-header { position: sticky; top: 0; z-index: 40; }
    .cdc-header-menu-list { max-height: calc(100vh - 5rem); overflow-y: auto; }
    html { scroll-padding-top: 4.5rem; }
}

/* Administration › Rôles : colonnes des rôles de même largeur dans toutes les applications. */
table.roles { table-layout: fixed; width: 100%; }
table.roles th:not(:first-child), table.roles td:not(:first-child) { width: 10.5rem; }
table.roles select { width: 100%; }
/* Fiche compte : choix du rôle de largeur raisonnable. */
.droits-roles select[data-role] { max-width: 20rem; }
@media (max-width: 700px) {
    table.roles { table-layout: auto; }
    table.roles th:not(:first-child), table.roles td:not(:first-child) { width: auto; }
}
/* Fiche compte › Droits : « Copier les rôles de : » en tête de section. */
.copier-roles { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.5rem 0.75rem; margin: 0.5rem 0 1rem; }
.copier-roles label { flex: 1 1 18rem; max-width: 28rem; margin: 0; }
.copier-roles select { width: 100%; }
.copier-roles p { flex-basis: 100%; margin: 0; }

/* Administration › Comptes (1.29.0) : comptes rangés par type avec l'index latéral commun (Commun css/cdc-index.css) ;
   page plus large pour garder la place du tableau (l'index se place seul sous le bandeau fixé). */
main:has(.cdc-index-page) { max-width: 80rem; }
.groupe-comptes { margin: 0 0 1.75rem; }
.groupe-comptes:last-child { margin-bottom: 0; }
.groupe-comptes h2 .discret { font-weight: normal; font-size: 1rem; }
.groupe-comptes tr.ligne-repere th { padding: 0.6rem 0.5rem 0.3rem; font-size: 0.85rem; letter-spacing: 0.04em; color: var(--discret);
    background: var(--fond); }

/* Administration › Thème de couleur : une case par thème, avec un aperçu de ses couleurs (bandeau, fond, accent). */
.themes-couleur .theme-choix { align-items: flex-start; gap: 0.75rem; padding: 0.6rem 0; border-bottom: 1px solid var(--bordure); }
.themes-couleur .theme-choix input { margin-top: 0.35rem; }
.theme-apercu { display: inline-flex; flex: none; width: 4.5rem; height: 2.4rem; overflow: hidden; border: 1px solid var(--bordure); border-radius: 6px; flex-direction: column; }
.theme-apercu span { display: block; }
.theme-apercu span:nth-child(1) { height: 0.7rem; }
.theme-apercu span:nth-child(2) { flex: 1; }
.theme-apercu span:nth-child(3) { height: 0.4rem; }
.theme-apercu-light span:nth-child(1) { background: #2f2f33; }
.theme-apercu-light span:nth-child(2) { background: #f5f6f8; }
.theme-apercu-light span:nth-child(3) { background: #2557d6; }
.theme-apercu-dark span:nth-child(1) { background: #0e0e10; }
.theme-apercu-dark span:nth-child(2) { background: #17171a; }
.theme-apercu-dark span:nth-child(3) { background: #4a7fd0; }
.theme-apercu-daltonien span:nth-child(1) { background: #2f2f33; }
.theme-apercu-daltonien span:nth-child(2) { background: linear-gradient(90deg, #0072b2 0 33%, #e69f00 0 66%, #d55e00 0); }
.theme-apercu-daltonien span:nth-child(3) { background: #f5f6f8; }
.theme-apercu-pride span:nth-child(1) { background: linear-gradient(90deg, #4a1766, #7b1f86 55%, #b0186a); }
.theme-apercu-pride span:nth-child(2) { background: #f7f1fb; }
.theme-apercu-pride span:nth-child(3) { background: linear-gradient(90deg, #e40303 0 16.66%, #ff8c00 0 33.33%, #ffed00 0 50%, #008026 0 66.66%, #004dff 0 83.33%, #750787 0); }
.theme-apercu-suisse span:nth-child(1) { background: #da291c; }
.theme-apercu-suisse span:nth-child(2) { background: #fff7f6; }
.theme-apercu-suisse span:nth-child(3) { background: repeating-linear-gradient(90deg, #da291c 0 0.6rem, #ffffff 0 1.2rem); }

/* Fenêtre d'export commune (Commun templates/module/export-pdf.php, Portail 2.11.0) : envoi d'un CSV par mail. */
.fenetre-export { width: min(40rem, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 22px 24px; border: 1px solid var(--bordure);
    border-top: 4px solid var(--accent); border-radius: 14px; background: var(--carte); color: var(--texte);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25); text-align: left; white-space: normal; }
.fenetre-export::backdrop { background: rgba(15, 23, 42, 0.45); }
.fenetre-export form { margin: 0; }
.fenetre-export label { display: block; margin: 0 0 0.75rem; }
.fenetre-export input[type="text"] { display: block; width: 100%; box-sizing: border-box; margin-top: 0.3rem; }
.fenetre-export .boutons { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.5rem 0; }
.fenetre-export .aide { color: var(--discret); font-size: 0.92em; margin: 0.5rem 0 0; }
.fenetre-entete { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.fenetre-entete h2 { margin: 0; font-size: 1.25rem; }
.fenetre-entete .bouton { padding: 0.25rem 0.55rem; }
td.actions .fenetre-export { font-weight: normal; }

/* Copier depuis la prod (instance de test) */
table.copie-production code { font-size: 0.9em; }
table.copie-production .copie-etat.succes, table.copie-production .copie-etat.alerte { display: table-cell; border-radius: 0; }
.copie-progression { width: 100%; margin-top: 0.5rem; }
.copie-message .bouton { margin-left: 0.5rem; }

/* Administration › Info base (Portail 3.2.0) : chiffres, courbe et anneaux SVG (InfoBase\GraphiquesSvg).
   Couleurs des secteurs : palette catégorielle vérifiée pour les daltoniens (clair et sombre), donc gardée telle quelle
   par le thème daltonien ; les éléments regroupés (« autres ») en gris. */
:root {
    --info-base-1: #257de0; --info-base-2: #f47230; --info-base-3: #00b894; --info-base-4: #f2a600;
    --info-base-5: #ee7fac; --info-base-6: #008a17; --info-base-7: #6a4ce2; --info-base-8: #ec4647;
    --info-base-autres: #a3abb9;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --info-base-1: #338ced; --info-base-2: #e76624; --info-base-3: #00a888; --info-base-4: #d28e05;
        --info-base-5: #e24d8b; --info-base-6: #0aac23; --info-base-7: #9887ef; --info-base-8: #eb6263;
        --info-base-autres: #5c6577;
    }
}
:root[data-theme="dark"] {
    --info-base-1: #338ced; --info-base-2: #e76624; --info-base-3: #00a888; --info-base-4: #d28e05;
    --info-base-5: #e24d8b; --info-base-6: #0aac23; --info-base-7: #9887ef; --info-base-8: #eb6263;
    --info-base-autres: #5c6577;
}
.info-base-serie-1 { --serie: var(--info-base-1); }
.info-base-serie-2 { --serie: var(--info-base-2); }
.info-base-serie-3 { --serie: var(--info-base-3); }
.info-base-serie-4 { --serie: var(--info-base-4); }
.info-base-serie-5 { --serie: var(--info-base-5); }
.info-base-serie-6 { --serie: var(--info-base-6); }
.info-base-serie-7 { --serie: var(--info-base-7); }
.info-base-serie-8 { --serie: var(--info-base-8); }
.info-base-serie-autres { --serie: var(--info-base-autres); }

.info-base-chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 0.75rem; }
.info-base-chiffre { display: flex; flex-direction: column; gap: 0.1rem; padding: 0.6rem 0.8rem; border: 1px solid var(--bordure);
    border-radius: 8px; background: var(--fond); }
.info-base-chiffre strong { font-family: var(--cdc-mono, inherit); font-size: 1.35rem; font-weight: 600; }
.info-base-chiffre .discret { font-size: 0.85rem; }

.info-base-titre { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1rem; }
.info-base-periode { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.75rem; }
.info-base-periode label { margin: 0; }
.info-base-periode select { margin: 0; width: auto; }

.info-base-graphique { overflow: hidden; }
.info-base-courbe { display: block; width: 100%; height: auto; }
.info-base-grille { stroke: var(--bordure); stroke-width: 1; }
.info-base-axe { stroke: var(--discret); }
.info-base-graduation { fill: var(--discret); font-size: 12px; font-family: var(--cdc-mono, inherit); }
.info-base-ligne { fill: none; stroke: var(--info-base-1); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.info-base-aire { fill: var(--info-base-1); opacity: 0.12; }
.info-base-point { fill: var(--info-base-1); stroke: var(--carte); stroke-width: 2; }
.info-base-survol { fill: transparent; cursor: default; }
.info-base-survol:hover { fill: var(--info-base-1); fill-opacity: 0.2; }

.info-base-repartition { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.info-base-anneau { display: block; width: 100%; max-width: 15rem; height: auto; margin: 0 auto; }
.info-base-anneau-vide { fill: none; stroke: var(--bordure); stroke-width: 44; }
.info-base-secteur { fill: var(--serie); fill-rule: evenodd; stroke: var(--carte); stroke-width: 2; stroke-linejoin: round; }
.info-base-secteur-lien .info-base-secteur { cursor: pointer; transition: opacity 0.15s; }
.info-base-secteur-lien:hover .info-base-secteur, .info-base-secteur-lien:focus-visible .info-base-secteur { opacity: 0.8; }
.info-base-secteur-lien:focus-visible { outline: none; }
.info-base-secteur-lien:focus-visible .info-base-secteur { stroke: var(--texte); }
.info-base-anneau-total { fill: var(--texte); font-size: 20px; font-weight: 600; font-family: var(--cdc-mono, inherit); }
.info-base-anneau-sous { fill: var(--discret); font-size: 13px; }

.info-base-tableau { font-size: 0.92rem; }
.info-base-tableau th.nombre, .info-base-tableau td.nombre { text-align: right; white-space: nowrap; font-family: var(--cdc-mono, inherit); }
.info-base-tableau th.nombre { font-family: inherit; }
.info-base-tableau code { font-size: 0.9em; overflow-wrap: anywhere; }
.info-base-tableau tr.info-base-choisi td { background: var(--fond); font-weight: 600; }
.info-base-pastille { display: inline-block; width: 0.8rem; height: 0.8rem; margin-right: 0.45rem; border-radius: 3px;
    background: var(--serie); vertical-align: -0.05rem; }

@media (max-width: 700px) {
    .info-base-repartition { grid-template-columns: 1fr; }
    .info-base-tableau th:nth-child(n+4), .info-base-tableau td:nth-child(n+4) { display: none; }
}
