/* ============================================================================
   SYSTEME DE DESIGN - PLATEFORME DE GESTION SCOLAIRE
   Variables + composants partagés, utilisés en complément de Tailwind (CDN)
   ============================================================================ */

:root {
    /* Palette */
    --ink-900: #0B1526;
    --ink-700: #14213D;
    --ink-600: #1B2C4F;
    --ink-500: #24406F;
    --ink-100: #E7EBF3;

    --brass-700: #9C7C1A;
    --brass-500: #C9A227;
    --brass-300: #E4C767;
    --brass-100: #F8EFD2;

    --paper: #F6F4EF;
    --paper-dark: #EFEBE2;
    --white: #FFFFFF;

    --slate-700: #33404D;
    --slate-500: #5C6B7A;
    --slate-300: #C7CFD6;
    --slate-200: #E1E6EA;
    --slate-100: #F0F2F4;

    --success: #2F7D5A;
    --success-bg: #E7F3ED;
    --danger: #B3432B;
    --danger-bg: #FBEAE5;
    --warning: #B7791F;
    --warning-bg: #FAF0DD;

    --radius: 8px;
    --shadow-card: 0 1px 2px rgba(11, 21, 38, 0.06), 0 4px 12px rgba(11, 21, 38, 0.04);
    --shadow-lifted: 0 8px 24px rgba(11, 21, 38, 0.12);
}

/* ---- Cibles tactiles : cases à cocher/radio légèrement agrandies pour mobile ---- */
input[type="checkbox"], input[type="radio"] {
    width: 1.05rem;
    height: 1.05rem;
    cursor: pointer;
}

body {
    background-color: var(--paper);
    color: var(--slate-700);
    font-family: 'Inter', sans-serif;
}

.font-display {
    font-family: 'Roboto', sans-serif;
    font-optical-sizing: auto;
}

.font-mono-data {
    font-family: 'IBM Plex Mono', monospace;
    letter-spacing: 0.01em;
}

/* ---- Cartes des tableaux de bord : entrée en cascade + survol soigné ---- */
.grille-tableau-bord > * {
    animation: carteApparait 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.grille-tableau-bord > *:nth-child(1) { animation-delay: 0.02s; }
.grille-tableau-bord > *:nth-child(2) { animation-delay: 0.08s; }
.grille-tableau-bord > *:nth-child(3) { animation-delay: 0.14s; }
.grille-tableau-bord > *:nth-child(4) { animation-delay: 0.20s; }
.grille-tableau-bord > *:nth-child(5) { animation-delay: 0.26s; }
.grille-tableau-bord > *:nth-child(6) { animation-delay: 0.32s; }
@keyframes carteApparait {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.carte-kpi {
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}
.carte-kpi:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(11, 21, 38, 0.1);
}
@media (prefers-reduced-motion: reduce) {
    .grille-tableau-bord > * { animation: none !important; }
    .carte-kpi { transition: none !important; }
    .carte-kpi:hover { transform: none !important; }
}

/* ---- Cartes ---- */
.card {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
}

/* ---- Boutons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.625rem 1.25rem;
    border-radius: 6px;
    transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.18s ease;
    cursor: pointer;
    border: 1px solid transparent;
}
.btn:hover { transform: translateY(-1.5px); }
.btn:active { transform: translateY(0.5px); transition-duration: 0.05s; }
.btn-primary {
    background-color: var(--ink-700);
    color: var(--white);
}
.btn-primary:hover { background-color: var(--ink-600); box-shadow: 0 6px 16px rgba(11, 21, 38, 0.22); }
.btn-accent {
    background-color: var(--brass-500);
    color: var(--ink-900);
}
.btn-accent:hover { background-color: var(--brass-300); box-shadow: 0 6px 16px rgba(201, 162, 39, 0.3); }
.btn-outline {
    background-color: transparent;
    border-color: var(--slate-300);
    color: var(--slate-700);
}
.btn-outline:hover { border-color: var(--ink-500); color: var(--ink-700); box-shadow: 0 4px 12px rgba(11, 21, 38, 0.08); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn:disabled:hover { transform: none; box-shadow: none; }
@media (prefers-reduced-motion: reduce) {
    .btn, .btn:hover, .btn:active { transition: none !important; transform: none !important; }
}

/* ---- Champs de formulaire ---- */
.field-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ink-700);
    margin-bottom: 0.375rem;
}
.field-input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    background-color: var(--white);
    border: 1px solid var(--slate-300);
    border-radius: 6px;
    font-size: 0.9375rem;
    color: var(--slate-700);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field-input:focus {
    outline: none;
    border-color: var(--ink-500);
    box-shadow: 0 0 0 3px var(--ink-100);
}
.field-hint { font-size: 0.75rem; color: var(--slate-500); margin-top: 0.25rem; }
.field-error { font-size: 0.75rem; color: var(--danger); margin-top: 0.25rem; }

/* ---- Aide contextuelle (infobulles) ----
   Déclenchée au survol (souris) ou au clic/appui (tactile). Une seule
   infobulle ouverte à la fois ; se ferme au clic extérieur sur tactile. */
/* Infobulles désactivées temporairement (problème constaté sur Chrome, en
   cours de diagnostic côté navigateur). Pour les réactiver : remplacer "none"
   par "inline-flex" ci-dessous. */
.aide-conteneur { position: relative; display: none; align-items: center; }
.champ-avec-aide { position: relative; }
.champ-avec-aide .field-input { padding-right: 2.25rem; }
.champ-avec-aide > .aide-conteneur {
    position: absolute; right: 0.6rem; top: 50%; transform: translateY(-50%);
    z-index: 5;
}
/* Sur une liste déroulante, la flèche native du navigateur occupe déjà le bord
   droit — l'icône d'aide doit se décaler davantage vers l'intérieur pour ne
   pas la recouvrir. */
.champ-avec-aide:has(> select) > .field-input,
.champ-avec-aide select.field-input {
    padding-right: 3.75rem;
}
.champ-avec-aide:has(> select) > .aide-conteneur {
    right: 1.85rem;
}
.aide-icone {
    display: inline-flex; align-items: center; justify-content: center;
    width: 16px; height: 16px; border-radius: 999px;
    background: var(--slate-200); color: var(--slate-500);
    font-size: 0.6875rem; font-weight: 700; line-height: 1;
    cursor: help; border: none; margin-left: 0.375rem;
    transition: background-color 0.15s ease, color 0.15s ease;
    flex-shrink: 0;
}
.aide-icone:hover, .aide-icone:focus-visible, .aide-icone.aide-active {
    background: var(--ink-700); color: var(--white); outline: none;
}
.infobulle {
    position: absolute; z-index: 60; bottom: calc(100% + 8px); left: 50%;
    --decalage-x: 0px;
    transform: translateX(calc(-50% + var(--decalage-x))) translateY(4px);
    width: max-content; max-width: 260px;
    background: rgba(11, 21, 38, 0.7); backdrop-filter: blur(6px); color: var(--white);
    font-size: 0.75rem; font-weight: 400; line-height: 1.45;
    padding: 0.5rem 0.6875rem; border-radius: 8px;
    box-shadow: var(--shadow-lifted);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.12s ease, transform 0.12s ease;
}
.infobulle::after {
    content: ""; position: absolute; top: 100%; left: calc(50% - var(--decalage-x));
    transform: translateX(-50%);
    border: 5px solid transparent; border-top-color: rgba(11, 21, 38, 0.7);
}
.infobulle.infobulle-bas { bottom: auto; top: calc(100% + 8px); transform: translateX(calc(-50% + var(--decalage-x))) translateY(-4px); }
.infobulle.infobulle-bas::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: rgba(11, 21, 38, 0.7); }
.aide-conteneur:hover .infobulle,
.aide-icone:focus-visible + .infobulle,
.infobulle.infobulle-visible {
    opacity: 1; visibility: visible; transform: translateX(calc(-50% + var(--decalage-x))) translateY(0);
}
.infobulle strong { color: var(--brass-300); font-weight: 600; }
.infobulle .aide-format { color: var(--slate-300); display: block; margin-top: 0.35rem; font-size: 0.6875rem; }
.infobulle .aide-exemple { color: var(--brass-300); display: block; margin-top: 0.15rem; font-size: 0.6875rem; font-family: 'IBM Plex Mono', monospace; }
.infobulle .aide-contrainte { color: #F0B8AE; display: block; margin-top: 0.15rem; font-size: 0.6875rem; }

/* ---- Badges de statut ---- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-danger  { background: var(--danger-bg); color: var(--danger); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-neutral { background: var(--slate-100); color: var(--slate-500); }

/* ---- Registre / tableaux (signature visuelle) ----
   Inspiré des registres scolaires reliés : double-règle sous l'en-tête,
   lignes fines, alignement chiffré en mono pour les colonnes numériques. */
.registre-conteneur {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(11, 21, 38, 0.04), 0 8px 24px rgba(11, 21, 38, 0.06);
    border: 1px solid rgba(11, 21, 38, 0.06);
}
.registre {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}
.registre thead th {
    text-align: left;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #FFFFFF;
    font-weight: 700;
    padding: 0.85rem 1.1rem;
    background: linear-gradient(135deg, var(--ink-700) 0%, var(--ink-600) 100%);
    border-bottom: none;
    white-space: nowrap;
}
.registre thead th:first-child { border-top-left-radius: 14px; }
.registre thead th:last-child { border-top-right-radius: 14px; }
.registre tbody tr {
    transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
    animation: ligneApparait 0.35s ease-out backwards;
}
.registre tbody tr:nth-child(odd) td { background-color: var(--white); }
.registre tbody tr:nth-child(even) td { background-color: #FBFAF7; }
.registre tbody td {
    padding: 0.75rem 1.1rem;
    border-bottom: 1px solid var(--slate-100);
    font-size: 0.875rem;
    color: var(--slate-700);
    transition: background-color 0.18s ease;
}
.registre tbody tr:hover td {
    background-color: var(--ink-100);
}
.registre tbody tr:hover {
    box-shadow: inset 3px 0 0 var(--ink-500);
}
.registre tbody tr:last-child td { border-bottom: none; }
.registre .cellule-chiffre {
    font-family: 'IBM Plex Mono', monospace;
    font-variant-numeric: tabular-nums;
}
@keyframes ligneApparait {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
.registre tbody tr:nth-child(1) { animation-delay: 0.01s; }
.registre tbody tr:nth-child(2) { animation-delay: 0.03s; }
.registre tbody tr:nth-child(3) { animation-delay: 0.05s; }
.registre tbody tr:nth-child(4) { animation-delay: 0.07s; }
.registre tbody tr:nth-child(5) { animation-delay: 0.09s; }
.registre tbody tr:nth-child(6) { animation-delay: 0.11s; }
.registre tbody tr:nth-child(7) { animation-delay: 0.13s; }
.registre tbody tr:nth-child(8) { animation-delay: 0.15s; }
@media (prefers-reduced-motion: reduce) {
    .registre tbody tr { animation: none !important; }
}

/* ---- Pagination automatique des tableaux ---- */
.registre-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1.1rem;
    background: var(--white);
    border-top: 1px solid var(--slate-100);
    font-size: 0.8125rem;
    color: var(--slate-500);
}
.registre-pagination button,
.registre-pagination a {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.85rem;
    border-radius: 6px;
    border: 1px solid var(--slate-300);
    background: var(--white);
    color: var(--ink-700);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}
.registre-pagination button:hover:not(:disabled),
.registre-pagination a:hover:not(.registre-page-desactive) { background: var(--paper); border-color: var(--ink-500); }
.registre-pagination button:active:not(:disabled) { transform: scale(0.96); }
.registre-pagination button:disabled,
.registre-pagination a.registre-page-desactive { opacity: 0.4; cursor: not-allowed; pointer-events: none; }
.registre-pagination .registre-page-active {
    background: var(--ink-700); color: #FFFFFF; border-color: var(--ink-700);
}

/* ---- Interrupteur (toggle) ---- */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-track {
    position: absolute;
    inset: 0;
    background-color: var(--slate-300);
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.toggle-track::before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background-color: var(--white);
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 2px rgba(11,21,38,0.2);
}
.toggle-switch input:checked + .toggle-track {
    background-color: var(--ink-700);
}
.toggle-switch input:checked + .toggle-track::before {
    transform: translateX(20px);
}
.toggle-switch input:focus-visible + .toggle-track {
    outline: 2px solid var(--brass-500);
    outline-offset: 2px;
}

/* ---- Onglet façon dossier (utilisé pour les en-têtes de section) ---- */
.onglet-dossier {
    position: relative;
    display: inline-block;
    background: var(--brass-500);
    color: var(--ink-900);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.35rem 0.9rem 0.3rem;
    border-radius: 4px 4px 0 0;
}

/* ---- Sidebar ---- */
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    border-radius: 6px;
    color: #B7C2D6;
    font-size: 0.875rem;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.sidebar-link:hover {
    background-color: rgba(255,255,255,0.06);
    color: var(--white);
}
.sidebar-link.actif {
    background-color: rgba(201, 162, 39, 0.12);
    color: var(--white);
    border-left-color: var(--brass-500);
}

/* ---- Sidebar réduite (icônes seules) ---- */
#sidebar-desktop {
    transition: width 0.15s ease;
}
html.sidebar-reduite #sidebar-desktop {
    width: 4.25rem;
}
html.sidebar-reduite #sidebar-desktop .sidebar-texte {
    display: none;
}
html.sidebar-reduite #sidebar-desktop .sidebar-logo {
    display: none;
}
html.sidebar-reduite #sidebar-desktop .sidebar-link,
html.sidebar-reduite #sidebar-desktop #btn-reduire-sidebar {
    justify-content: center;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}
html.sidebar-reduite #sidebar-desktop > div:first-child {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}
html.sidebar-reduite #sidebar-desktop #btn-reduire-sidebar {
    margin-left: 0;
}
html.sidebar-reduite #sidebar-desktop .nav-sous-menu {
    padding-left: 0;
    align-items: center;
}
html.sidebar-reduite #sidebar-desktop #btn-reduire-sidebar i {
    transform: rotate(180deg);
}

/* ---- Sous-menus dépliables (details/summary) ---- */
.nav-groupe summary {
    list-style: none;
    cursor: pointer;
}
.nav-groupe summary::-webkit-details-marker,
.nav-groupe summary::marker {
    display: none;
    content: "";
}
.nav-chevron {
    transition: transform 0.15s ease;
}
.nav-groupe[open] > summary .nav-chevron {
    transform: rotate(90deg);
}
.nav-sous-menu {
    padding-left: 1.4rem;
    padding-top: 0.15rem;
    padding-bottom: 0.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.nav-sous-menu .sidebar-link {
    font-size: 0.8125rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}
.nav-sous-menu .sidebar-link::before {
    content: "";
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.4;
    margin-right: 0.1rem;
    flex-shrink: 0;
}

/* ---- Scrollbar discrète ---- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--slate-300); border-radius: 4px; }

/* ---- Accessibilité : focus clavier visible partout ---- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--brass-500);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* Confirmation stylée — remplace le popup natif du navigateur (window.confirm) */
.confirmation-recouvrement {
    position: fixed;
    inset: 0;
    background: rgba(11, 21, 38, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease;
}
.confirmation-recouvrement.confirmation-visible {
    opacity: 1;
    visibility: visible;
}
.confirmation-boite {
    background: white;
    border-radius: 14px;
    padding: 1.75rem;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 20px 45px rgba(11, 21, 38, 0.25);
    transform: translateY(8px) scale(0.98);
    transition: transform 0.15s ease;
}
.confirmation-recouvrement.confirmation-visible .confirmation-boite {
    transform: translateY(0) scale(1);
}
.confirmation-icone {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--danger-bg);
    color: var(--danger);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.9rem;
}
.confirmation-texte {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--ink-700);
    margin-bottom: 1.5rem;
}
.confirmation-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
}
.confirmation-confirmer {
    background: var(--danger);
    color: white;
}
.confirmation-confirmer:hover {
    background: #96371F;
}

/* Widget d'aide guidée — bulle flottante + panneau de recherche */
.whatsapp-bulle-bouton {
    position: fixed;
    bottom: 3.5rem;
    left: 1.5rem;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #25D366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
    cursor: pointer;
    z-index: 150;
    border: none;
    text-decoration: none;
    transition: transform 0.15s ease, background 0.15s ease;
}
.whatsapp-bulle-bouton:hover {
    background: #20BD5A;
    transform: scale(1.05);
}
.aide-bulle-bouton {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--ink-500);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(11, 21, 38, 0.25);
    cursor: pointer;
    z-index: 150;
    border: none;
    transition: transform 0.15s ease, background 0.15s ease;
}
.aide-bulle-bouton:hover {
    background: var(--ink-600);
    transform: scale(1.05);
}
.aide-panneau {
    position: fixed;
    bottom: 5.5rem;
    right: 1.5rem;
    width: 360px;
    max-width: calc(100vw - 2rem);
    max-height: 70vh;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(11, 21, 38, 0.28);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.15s ease, transform 0.15s ease;
}
.aide-panneau.aide-panneau-ouvert {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.aide-panneau-entete {
    padding: 1rem 1.1rem;
    background: var(--ink-700);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.aide-panneau-entete h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
}
.aide-panneau-fermer {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    padding: 2px;
}
.aide-panneau-fermer:hover { color: white; }
.aide-recherche-zone {
    padding: 0.85rem;
    border-top: 1px solid var(--ink-100);
    flex-shrink: 0;
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
}
.aide-recherche-input {
    flex: 1;
    padding: 0.7rem 1rem;
    border: 1px solid var(--ink-100);
    border-radius: 10px;
    font-size: 0.95rem;
    outline: none;
    font-family: inherit;
    resize: none;
    line-height: 1.4;
    min-height: 2.7rem;
    max-height: 8rem;
    overflow-y: auto;
}
.aide-recherche-input:focus {
    border-color: var(--ink-500);
}
.aide-recherche-envoyer {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--ink-500);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease;
}
.aide-recherche-envoyer:hover {
    background: var(--ink-600);
}
.aide-resultats {
    overflow-y: auto;
    flex: 1;
    padding: 0.5rem;
}
.aide-resultat-item {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--ink-700);
    cursor: pointer;
}
.aide-resultat-item:hover {
    background: var(--paper);
}
.aide-detail {
    padding: 0.75rem 1rem 1rem;
    font-size: 0.85rem;
    color: var(--ink-700);
    line-height: 1.6;
}
.aide-detail-retour {
    background: none;
    border: none;
    color: var(--ink-500);
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0;
    margin-bottom: 0.6rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.aide-vide {
    padding: 1.5rem 1rem;
    text-align: center;
    font-size: 0.8rem;
    color: #9AA5B1;
}
.aide-chargement {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 2rem 1rem;
}
.aide-chargement span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brass-500);
    opacity: 0.35;
    animation: aide-point-rebond 1.1s infinite ease-in-out both;
}
.aide-chargement span:nth-child(1) { animation-delay: -0.24s; }
.aide-chargement span:nth-child(2) { animation-delay: -0.12s; }
.aide-chargement span:nth-child(3) { animation-delay: 0s; }
@keyframes aide-point-rebond {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.35; }
    40% { transform: scale(1); opacity: 1; }
}
