:root {
    --aurel-navy-900: #0f1d30;
    --aurel-navy-800: #182b44;
    --aurel-navy-700: #233d61;
    --aurel-navy-600: #335482;

    --aurel-vert-400: #4ade80;
    --aurel-vert-500: #22c55e;
    --aurel-vert-600: #16a34a;
    --aurel-vert-700: #15803d;

    --aurel-bleu-600: #2563eb;
    --aurel-bleu-700: #1d4ed8;
    --aurel-ambre-600: #d97706;
    --aurel-violet-600: #7c3aed;

    --aurel-red: #DF0E0A;

    --fond: #eef2f6;
    --surface: #ffffff;
    --texte: #0f172a;
    --texte-2: #1e293b;
    --texte-3: #475569;
    --trait: #cbd5e1;

    --ombre-1: 0 1px 3px rgba(15, 23, 42, 0.06), 0 8px 22px -14px rgba(15, 23, 42, 0.14);
    --ombre-2: 0 12px 28px -12px rgba(15, 23, 42, 0.18);
    --ombre-glow: 0 14px 32px -16px rgba(15, 29, 48, 0.42);

    --radius-l: 16px;
    --radius-m: 12px;
    --radius-s: 9px;
}

html { scroll-behavior: smooth; }
html, body { height: 100%; }
.page-app .flex-grow-1 { min-width: 0; }
.page-app svg { flex-shrink: 0; vertical-align: middle; }

section[id], .bloc-section[id] { scroll-margin-top: 4.5rem; }

body.page-app {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 0.875rem;
    color: var(--texte);
    font-variant-numeric: tabular-nums lining-nums;
    background:
        radial-gradient(920px 440px at 96% -8%, rgba(37, 99, 235, 0.07), transparent 60%),
        radial-gradient(760px 380px at 4% 0%, rgba(22, 163, 74, 0.06), transparent 55%),
        var(--fond);
    -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 99px;
    border: 2px solid transparent;
    background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: #94a3b8; background-clip: content-box; }

.anim-up { animation: monter-en-doux .45s cubic-bezier(.22, .95, .32, 1) both; }
.d1 { animation-delay: .03s; }
.d2 { animation-delay: .06s; }
.d3 { animation-delay: .09s; }
.d4 { animation-delay: .12s; }
.d5 { animation-delay: .15s; }

@keyframes monter-en-doux {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.flash-pile {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.9rem;
}

.flash-banniere {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    background: var(--surface);
    border: 1px solid var(--trait);
    border-left: 3.5px solid var(--aurel-navy-800);
    border-radius: var(--radius-m);
    padding: 0.62rem 0.9rem;
    box-shadow: var(--ombre-1);
    font-size: 0.84rem;
    color: var(--texte);
    overflow: hidden;
    transition: opacity .28s ease, transform .28s ease, max-height .32s ease, margin .32s ease, padding .32s ease;
}

.flash-banniere.est-fermee {
    opacity: 0;
    transform: translateY(-6px);
    max-height: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border-width: 0 !important;
}

.flash-banniere .flash-ico {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    background: #eef2f6;
    color: var(--aurel-navy-800);
}

.flash-banniere.flash-succes { border-left-color: var(--aurel-vert-600); }
.flash-banniere.flash-succes .flash-ico { background: #e6f7ea; color: #197932; }

.flash-banniere.flash-erreur { border-left-color: #c8332b; }
.flash-banniere.flash-erreur .flash-ico { background: #fdeaea; color: #c8332b; }

.flash-banniere.flash-avertissement { border-left-color: #b7791f; }
.flash-banniere.flash-avertissement .flash-ico { background: #fef3c7; color: #9a6700; }

.flash-banniere .flash-fermer {
    margin-left: auto;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--texte-3);
    font-size: 1.1rem;
    line-height: 1;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.flash-banniere .flash-fermer:hover {
    background: #f1f5f9;
    color: var(--aurel-navy-800);
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    padding: 2px;
    border-radius: 999px;
    background: #eef2f6;
    border: 1px solid var(--trait);
    gap: 2px;
    flex-shrink: 0;
}
.lang-btn {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--texte-2);
    text-decoration: none;
    padding: 0.22rem 0.52rem;
    border-radius: 999px;
    line-height: 1.2;
    transition: background .16s ease, color .16s ease;
}
.lang-btn:hover { color: var(--aurel-navy-800); }
.lang-btn.active {
    background: var(--aurel-navy-800);
    color: #fff;
}

.sidebar .lang-switch {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
}
.sidebar .lang-btn { color: rgba(255, 255, 255, 0.72); }
.sidebar .lang-btn:hover { color: #fff; }
.sidebar .lang-btn.active {
    background: var(--aurel-vert-500);
    color: #0f2514;
}

.sidebar {
    width: 15.25rem;
    min-height: 100vh;
    background:
        radial-gradient(380px 240px at 12% -4%, rgba(79, 206, 93, 0.14), transparent 62%),
        linear-gradient(185deg, #1b2433 0%, var(--aurel-navy-800) 60%, #1c2838 100%);
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.07);
}

.sidebar .marque {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem 0.6rem;
    border-radius: var(--radius-m);
    text-decoration: none;
    transition: background .18s ease;
}
.sidebar .marque:hover { background: rgba(255, 255, 255, 0.06); }
.sidebar .marque img {
    border-radius: 10px;
    object-fit: cover;
    background: #fff;
}
.sidebar .marque .siges-sous-titre {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--aurel-red);
}

.sidebar hr {
    border-color: rgba(255, 255, 255, 0.09) !important;
    opacity: 1;
    margin: 0.65rem 0.35rem !important;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.74);
    border-radius: var(--radius-s);
    padding: 0.5rem 0.78rem;
    display: flex;
    align-items: center;
    gap: 0.68rem;
    font-size: 0.855rem;
    font-weight: 500;
    border: 0;
    background: transparent;
    width: 100%;
    text-align: left;
    transition: background .16s ease, color .16s ease;
}

.sidebar .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.sidebar .nav-link.active {
    color: #fff;
    font-weight: 600;
    background: rgba(79, 206, 93, 0.16);
    box-shadow: inset 0 0 0 1px rgba(79, 206, 93, 0.26);
    position: relative;
}

.sidebar .nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 22%;
    bottom: 22%;
    width: 3px;
    border-radius: 99px;
    background: var(--aurel-vert-400);
}

.nav-groupe-btn .chevron-nav {
    margin-left: auto;
    transition: transform .2s ease;
    opacity: 0.72;
}
.nav-groupe-btn[aria-expanded="true"] {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}
.nav-groupe-btn[aria-expanded="true"] .chevron-nav {
    transform: rotate(180deg);
}

.sous-menu-nav {
    margin: 0.2rem 0 0.25rem 1.05rem;
    padding-left: 0.68rem;
    border-left: 1px solid rgba(255, 255, 255, 0.14);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sous-lien {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.4rem 0.68rem;
    border-radius: 8px;
    font-size: 0.81rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}
.sous-lien:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}
.sous-lien.active {
    color: #fff;
    font-weight: 600;
    background: rgba(79, 206, 93, 0.18);
    box-shadow: inset 0 0 0 1px rgba(79, 206, 93, 0.28);
}

.sidebar .pied-note {
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    padding: 0 0.65rem;
}
.sidebar .pied-note strong {
    display: block;
    font-size: 0.84rem;
    letter-spacing: 0.04em;
    color: #fff;
    margin-top: 0.1rem;
}

.entete-app {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--trait) !important;
    padding: 0.58rem 1.25rem !important;
    position: sticky;
    top: 0;
    z-index: 20;
    transition: box-shadow .22s ease;
}

.entete-app.en-defilement {
    box-shadow: 0 6px 20px -14px rgba(15, 23, 42, 0.18);
}

.entete-app .titre-page {
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--aurel-navy-800);
    margin: 0;
}
.entete-app .sous-titre {
    font-size: 0.76rem;
    color: var(--texte-3);
}

.select-ets-rapide {
    height: 33px;
    padding: 0.22rem 1.9rem 0.22rem 0.72rem;
    font-size: 0.77rem;
    font-weight: 600;
    border-radius: 999px;
    background-color: #fff;
    border-color: var(--trait);
    color: var(--aurel-navy-800);
    max-width: 14.5rem;
}

.profil-declencheur {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.22rem 0.55rem 0.22rem 0.24rem;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    text-align: left;
    transition: background .16s ease, border-color .16s ease;
}
.profil-declencheur:hover {
    background: #f1f5f9;
    border-color: var(--trait);
}

.avatar-circle {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 0.78rem;
    color: #fff;
    background: linear-gradient(135deg, var(--aurel-navy-700), var(--aurel-navy-900));
    flex-shrink: 0;
}

.entete-app .nom-utilisateur {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--aurel-navy-800);
    line-height: 1.2;
}
.entete-app .role-utilisateur {
    font-size: 0.7rem;
    color: var(--texte-3);
}

.btn-sonnerie {
    width: 35px;
    height: 35px;
    border-radius: 10px;
    border: 1px solid var(--trait);
    background: #fff;
    color: var(--aurel-navy-800);
    display: grid;
    place-items: center;
    position: relative;
    transition: background .16s ease, color .16s ease;
}
.btn-sonnerie:hover {
    background: #f1f8f3;
    color: var(--aurel-vert-700);
}
.btn-sonnerie .pastille {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 99px;
    background: var(--aurel-red);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    display: grid;
    place-items: center;
}

.btn-quitter {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid #f2cfcd;
    background: #fff;
    color: #c8332b;
    font-size: 0.79rem;
    font-weight: 600;
    padding: 0.38rem 0.82rem;
    border-radius: 999px;
    transition: background .16s ease;
}
.btn-quitter:hover {
    background: #fef2f2;
    color: #b91c1c;
}

.banniere {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-l);
    background: linear-gradient(120deg, #1f2b3b 0%, var(--aurel-navy-800) 52%, #24683a 100%);
    box-shadow: var(--ombre-glow);
    padding: 1.05rem 1.35rem;
}

.banniere .halo {
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}
.banniere .halo-1 {
    width: 220px; height: 220px;
    right: -60px; top: -100px;
    background: radial-gradient(circle, rgba(95, 217, 109, 0.24), transparent 70%);
}
.banniere .halo-2 {
    width: 180px; height: 180px;
    left: -60px; bottom: -110px;
    background: radial-gradient(circle, rgba(79, 206, 93, 0.16), transparent 70%);
}

.banniere h2 {
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 0.18rem;
}
.banniere p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.82rem;
    line-height: 1.45;
    max-width: 38rem;
}

.btn-lumiere {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    background: #fff;
    color: var(--aurel-navy-800);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.44rem 0.95rem;
    border-radius: 999px;
    border: 0;
    text-decoration: none;
    transition: background .16s ease, transform .16s ease;
    white-space: nowrap;
}
.btn-lumiere:hover {
    background: #f0fdf4;
    color: var(--aurel-vert-700);
    transform: translateY(-1px);
}

.btn-verre-clair {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.44rem 0.95rem;
    border-radius: 999px;
    text-decoration: none;
    transition: background .16s ease;
    white-space: nowrap;
}
.btn-verre-clair:hover {
    background: rgba(255, 255, 255, 0.24);
    color: #fff;
}

.stat-carte {
    background: var(--surface);
    border: 1px solid var(--trait);
    border-radius: var(--radius-m);
    padding: 0.78rem 0.95rem;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 0.82rem;
    box-shadow: var(--ombre-1);
    transition: border-color .18s ease, box-shadow .18s ease;
}

.stat-carte:hover {
    border-color: #cbd5e1;
    box-shadow: var(--ombre-2);
}

.stat-ico {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.stat-ico.ico-indigo { background: #dbeafe; color: #1d4ed8; }
.stat-ico.ico-vert   { background: #dcfce7; color: #15803d; }
.stat-ico.ico-cyan   { background: #ccfbf1; color: #0f766e; }
.stat-ico.ico-ambre  { background: #fef3c7; color: #b45309; }
.stat-ico.ico-violet { background: #ede9fe; color: #6d28d9; }
.stat-ico.ico-rouge  { background: #fee2e2; color: #dc2626; }

.stat-carte:has(.ico-indigo) { border-top: 3px solid #2563eb; }
.stat-carte:has(.ico-vert)   { border-top: 3px solid #16a34a; }
.stat-carte:has(.ico-cyan)   { border-top: 3px solid #0d9488; }
.stat-carte:has(.ico-ambre)  { border-top: 3px solid #d97706; }
.stat-carte:has(.ico-violet) { border-top: 3px solid #7c3aed; }
.stat-carte:has(.ico-rouge)  { border-top: 3px solid #dc2626; }

.stat-corps {
    min-width: 0;
    flex: 1;
}

.stat-libelle {
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--texte-3);
    margin-bottom: 0.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-ligne-valeur {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.stat-valeur {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--aurel-navy-800);
}
.stat-valeur.alerte { color: #c8332b; }

.stat-detail {
    font-size: 0.73rem;
    color: var(--texte-3);
    line-height: 1.2;
}

.carte-app {
    background: var(--surface);
    border: 1px solid var(--trait);
    border-radius: var(--radius-l);
    box-shadow: var(--ombre-1);
    overflow: hidden;
}

.carte-entete {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 0.82rem 1.1rem;
    border-bottom: 1px solid var(--trait);
    background: #fafcfb;
}

.titre-section {
    font-size: 0.93rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--aurel-navy-800);
    margin: 0;
}

.table {
    --bs-table-bg: transparent;
    --bs-table-accent-bg: transparent;
    --bs-table-striped-bg: transparent;
    --bs-table-active-bg: transparent;
    --bs-table-hover-bg: transparent;
    --bs-table-hover-color: inherit;
    margin-bottom: 0 !important;
    color: var(--texte-2);
}

.table > :not(caption) > * > * {
    box-shadow: none !important;
    background-color: transparent !important;
}

.table thead th {
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--texte-3);
    background: #f8faf9 !important;
    border-bottom: 1px solid var(--trait);
    padding: 0.64rem 1rem;
    white-space: nowrap;
}

.table tbody td {
    padding: 0.68rem 1rem;
    border-color: #eef2f6;
    vertical-align: middle;
    font-size: 0.84rem;
}

.table-hover > tbody > tr {
    transition: background-color .14s ease;
}

.table-hover > tbody > tr:hover {
    background-color: #f3faf5 !important;
}

.table code, .code-pilule {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--aurel-vert-700);
    background: #e8f6ec;
    padding: 0.2em 0.58em;
    border-radius: 6px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.badge {
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 0.36em 0.78em;
    border-radius: 999px;
    font-size: 0.66rem;
}
.badge-role {
    font-size: 0.63rem;
    letter-spacing: 0.06em;
    font-weight: 700;
}
.badge.bg-success   { background: #e5f7ea !important; color: #197932 !important; }
.badge.bg-danger    { background: #fdeaea !important; color: #c8332b !important; }
.badge.bg-secondary { background: #edf1f5 !important; color: #5b6b80 !important; }
.badge.bg-dark      { background: #eaeff5 !important; color: var(--aurel-navy-800) !important; }
.badge.bg-info      { background: #e4f3f0 !important; color: #1c7463 !important; }

.compteur {
    min-width: 28px;
    padding: 0.22em 0.68em;
    border-radius: 999px;
    background: #eaeff5;
    color: var(--aurel-navy-800);
    font-size: 0.74rem;
    font-weight: 700;
    display: inline-block;
    text-align: center;
}

.filtres-journal {
    display: inline-flex;
    align-items: center;
    padding: 2px;
    border-radius: 999px;
    background: #eef2f6;
    border: 1px solid var(--trait);
    gap: 2px;
}

.filtre-pilule {
    border: 0;
    background: transparent;
    color: var(--texte-2);
    font-size: 0.73rem;
    font-weight: 600;
    padding: 0.24rem 0.72rem;
    border-radius: 999px;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.filtre-pilule:hover { color: var(--aurel-navy-800); }
.filtre-pilule.active {
    background: #fff;
    color: var(--aurel-navy-800);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.journal-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.72rem 1.1rem;
    border-bottom: 1px solid #eef2f6;
    transition: background-color .14s ease;
}
.journal-item:last-child { border-bottom: 0; }
.journal-item:hover { background-color: #f3faf5; }

.journal-ico {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.journal-ico.ok     { background: #e5f7ea; color: #197932; }
.journal-ico.erreur { background: #fdeaea; color: #c8332b; }

.journal-texte {
    flex: 1;
    min-width: 0;
    font-size: 0.83rem;
    color: var(--texte-2);
    line-height: 1.4;
}
.journal-texte strong {
    color: var(--aurel-navy-800);
    font-weight: 600;
}

.collapse,
.collapsing {
    visibility: visible !important;
}

.bloc-cycle {
    border: 1px solid #e6ecf2;
    border-radius: 12px;
    background: #fbfdfc;
    padding: 0.85rem 1rem;
}

.bloc-niveau {
    background: #ffffff;
    border: 1px solid #eaeff5;
    border-radius: 10px;
    padding: 0.72rem 0.88rem;
}

.puce-classe {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: #f8fafc;
    border: 1px solid #dfe7ef;
    border-radius: 9px;
    padding: 0.38rem 0.65rem;
    font-size: 0.8rem;
    transition: border-color .15s ease, background-color .15s ease;
}
.puce-classe:hover {
    border-color: #b7e3c0;
    background: #f3faf5;
}

.btn-icone-action {
    width: 26px;
    height: 26px;
    border: 1px solid var(--trait);
    border-radius: 7px;
    background: #fff;
    color: var(--texte-2);
    display: inline-grid;
    place-items: center;
    padding: 0;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn-icone-action:hover {
    background: #eef8f0;
    border-color: #b8e3c0;
    color: var(--aurel-vert-700);
}
.btn-icone-action.danger:hover {
    background: #fef2f2;
    border-color: #fecaca;
    color: #c8332b;
}

.apercu-logo-identite {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    border: 1px solid var(--trait);
    background: #f8fafc;
    object-fit: contain;
    padding: 6px;
    flex-shrink: 0;
}

.btn-aurel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.36rem;
    background: linear-gradient(135deg, var(--aurel-vert-400) 0%, var(--aurel-vert-500) 50%, var(--aurel-vert-600) 100%);
    border: 0;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.42rem 0.92rem;
    border-radius: 999px;
    box-shadow: 0 6px 16px -8px rgba(53, 173, 70, 0.55);
    transition: transform .15s ease, filter .15s ease;
}
.btn-aurel:hover,
.btn-aurel:focus {
    color: #fff;
    filter: brightness(1.03);
    transform: translateY(-1px);
}

.btn-soft {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.34rem;
    background: #fff;
    border: 1px solid var(--trait);
    color: var(--aurel-navy-800);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.36rem 0.78rem;
    border-radius: 999px;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn-soft:hover {
    background: #eef8f0;
    border-color: #b8e3c0;
    color: var(--aurel-vert-700);
}

.btn-soft-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.32rem;
    background: #fff;
    border: 1px solid #f2cfcd;
    color: #c8332b;
    font-size: 0.76rem;
    font-weight: 600;
    padding: 0.34rem 0.72rem;
    border-radius: 999px;
    transition: background .15s ease;
}
.btn-soft-danger:hover {
    background: #fef2f2;
    color: #b91c1c;
}

.form-control,
.form-select {
    border-radius: var(--radius-s);
    border-color: var(--trait);
    background-color: #f8fafc;
    padding: 0.48rem 0.8rem;
    font-size: 0.86rem;
    color: var(--texte);
    transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.form-control::placeholder { color: #94a3b8; }
.form-control:focus,
.form-select:focus {
    border-color: var(--aurel-vert-500);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(79, 206, 93, 0.16);
}

.form-label {
    font-size: 0.76rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.3rem;
}

.modal-content {
    border: 1px solid var(--trait);
    border-radius: var(--radius-l) !important;
    background: #fff;
    box-shadow: 0 24px 60px -20px rgba(15, 23, 42, 0.35);
}
.modal-header, .modal-footer { border-color: var(--trait) !important; }
.modal-title { font-weight: 700; color: var(--aurel-navy-800); font-size: 0.96rem; }
.btn-close { border-radius: 99px; }

.btn-menu {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border: 1px solid var(--trait);
    border-radius: var(--radius-s);
    background: #fff;
    color: var(--aurel-navy-800);
    cursor: pointer;
}
.btn-menu:hover { background: #f1f5f9; }

.btn-fermer-sidebar {
    display: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}
.btn-fermer-sidebar:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }

.sidebar-voile {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1045;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .24s ease;
}
.sidebar-voile.ouvert { opacity: 1; pointer-events: auto; }

.pied-app {
    background: transparent;
    border-top: 1px solid var(--trait) !important;
    color: var(--texte-3);
    font-size: 0.76rem;
}
.pied-app strong { color: var(--aurel-navy-800); font-weight: 600; }

.text-slate-600, .text-slate-700 { color: var(--texte-2) !important; }
.text-slate-800 { color: var(--aurel-navy-800) !important; }

@media (max-width: 1279.98px) {
    .sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 1050;
        width: min(16.25rem, 84vw);
        overflow-y: auto;
        transform: translateX(-105%);
        transition: transform .26s cubic-bezier(.22, .95, .32, 1);
    }
    .sidebar.ouvert {
        transform: translateX(0);
        box-shadow: 20px 0 50px rgba(15, 23, 42, 0.4);
    }
    .btn-fermer-sidebar { display: inline-flex; }
    .sidebar-voile { display: block; }
    .btn-menu { display: inline-flex; }

    .entete-app { padding: 0.55rem 0.95rem !important; }
}

@media (max-width: 767.98px) {
    .carte-app.carte-mobile-liste {
        background: transparent;
        border: 0;
        box-shadow: none;
        border-radius: 0;
        overflow: visible;
    }
    .carte-app.carte-mobile-liste .carte-entete {
        background: var(--surface);
        border: 1px solid var(--trait);
        border-radius: var(--radius-m);
        margin-bottom: 0.65rem;
    }
    .carte-app.carte-mobile-liste .table-responsive { overflow: visible; }
    .table-mobile-cartes thead { display: none; }
    .table-mobile-cartes,
    .table-mobile-cartes tbody {
        display: flex;
        flex-direction: column;
        gap: 0.65rem;
        width: 100%;
    }
    .table-mobile-cartes tbody tr {
        display: flex;
        flex-direction: column;
        gap: 0.42rem;
        background: var(--surface) !important;
        border: 1px solid var(--trait);
        border-radius: 14px;
        padding: 0.85rem 0.95rem;
        box-shadow: var(--ombre-1);
    }
    .table-mobile-cartes tbody td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.65rem;
        padding: 0 !important;
        border: 0 !important;
        font-size: 0.83rem;
        text-align: right;
    }
    .table-mobile-cartes tbody td[data-label]::before {
        content: attr(data-label);
        font-size: 0.65rem;
        font-weight: 700;
        letter-spacing: 0.07em;
        text-transform: uppercase;
        color: var(--texte-3);
        text-align: left;
        flex-shrink: 0;
    }
    .table-mobile-cartes tbody td.cell-titre {
        order: -2;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 0.14rem;
        padding-bottom: 0.5rem !important;
        margin-bottom: 0.1rem;
        border-bottom: 1px solid #eef2f6 !important;
    }
    .table-mobile-cartes tbody td.cell-titre::before { display: none; }
    .table-mobile-cartes tbody td.cell-actions {
        padding-top: 0.5rem !important;
        margin-top: 0.1rem;
        border-top: 1px solid #eef2f6 !important;
        justify-content: flex-end;
    }
    .table-mobile-cartes tbody td.cell-actions::before { display: none; }
}

@media (max-width: 576px) {
    .banniere { padding: 0.9rem 1rem; }
    .stat-carte { padding: 0.68rem 0.8rem; gap: 0.65rem; }
    .stat-ico { width: 34px; height: 34px; border-radius: 9px; }
    .stat-valeur { font-size: 1.12rem; }
    .form-control, .form-select { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .anim-up, .stat-carte, .sidebar .nav-link {
        animation: none !important;
        transition: none !important;
    }
}

.journal-ico.action {
    background: #eef2ff;
    color: #3730a3;
}

.puce-role {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.56rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    background: #eef6ff;
    color: #1e40af;
    border: 1px solid #dbeafe;
    white-space: nowrap;
}

.choix-role-carte {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.55rem 0.72rem;
    border: 1px solid #dfe7ef;
    border-radius: 10px;
    background: #f9fbfd;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}
.choix-role-carte:hover {
    border-color: #9ed9ab;
    background: #f4fbf6;
}
.choix-role-carte:has(input:checked) {
    border-color: #35ad46;
    background: #eef9f0;
}

.ligne-perm-rbac {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.48rem 0.65rem;
    border-bottom: 1px solid #eef2f6;
}
.ligne-perm-rbac:last-child {
    border-bottom: 0;
}

.etat-perm-groupe {
    display: inline-flex;
    border: 1px solid #d7e0ea;
    border-radius: 999px;
    overflow: hidden;
    background: #f8fafc;
}
.etat-perm-groupe input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.etat-perm-lbl {
    padding: 0.2rem 0.62rem;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    color: #556275;
    user-select: none;
    transition: background-color .14s ease, color .14s ease;
}
.etat-perm-groupe input.perm-autorise:checked + .etat-perm-lbl {
    background: #2f9e44;
    color: #ffffff;
}
.etat-perm-groupe input.perm-neutre:checked + .etat-perm-lbl {
    background: #cbd5e1;
    color: #1e293b;
}
.etat-perm-groupe input.perm-restreint:checked + .etat-perm-lbl {
    background: #dc2626;
    color: #ffffff;
}

.barre-actions-lot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 0.6rem 0.9rem;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
}

.carte-colonne-mapping {
    display: flex;
    flex-direction: column;
    gap: 0.32rem;
    padding: 0.55rem 0.68rem;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}
.carte-colonne-mapping.est-mappee {
    border-color: #86efac;
    background: #f0fdf4;
}

.bandeau-formule-trimestre {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.58rem 0.85rem;
    border-radius: 10px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    font-size: 0.78rem;
}

.carte-sequence-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 0.62rem 0.85rem;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.champ-poids-seq {
    width: 86px;
    text-align: right;
    font-weight: 700;
}

.resultat-simulateur-note {
    display: inline-flex;
    align-items: baseline;
    gap: 0.25rem;
    padding: 0.42rem 0.9rem;
    border-radius: 10px;
    background: #283346;
    color: #ffffff;
    font-weight: 800;
    font-size: 1.15rem;
}

@media (max-width: 767.98px) {
    .puce-role {
        white-space: normal;
        max-width: 100%;
    }
    .table-mobile-cartes td > * {
        min-width: 0;
        max-width: 100%;
    }
}

#siges-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    z-index: 2000;
    pointer-events: none;
    background: linear-gradient(90deg, #4FCE5D, #22c55e, #10b981);
    box-shadow: 0 1px 8px rgba(79, 206, 93, 0.55);
    opacity: 0;
    transition: width 0.22s ease, opacity 0.2s ease;
}

#siges-progress-bar.actif {
    opacity: 1;
}

#siges-toast-stack {
    position: fixed;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 1090;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    max-width: min(380px, calc(100vw - 1.7rem));
    pointer-events: none;
}

.siges-toast-bulle {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.62rem 0.9rem;
    border-radius: 11px;
    background: #1e293b;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 500;
    box-shadow: 0 12px 28px -8px rgba(15, 23, 42, 0.45);
    border-left: 4px solid #4FCE5D;
    animation: siges-toast-entree 0.2s ease both;
}

.siges-toast-bulle.toast-erreur {
    border-left-color: #ef4444;
    background: #7f1d1d;
}

@keyframes siges-toast-entree {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

body.maj-fluide .anim-up {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
}

.sidebar {
    width: 15.25rem;
    min-width: 15.25rem;
    max-width: 15.25rem;
    min-height: 100%;
    height: auto;
    align-self: stretch;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    overflow-x: hidden;
}

.sidebar-nav-scroll {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    overflow: visible;
}

.sidebar-pied {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.select-ets-sidebar {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 9px;
    font-size: 0.76rem;
    font-weight: 600;
}

.select-ets-sidebar option {
    background-color: #1e293b;
    color: #ffffff;
}

.sidebar-carte-profil {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0.55rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    cursor: pointer;
    transition: background 0.15s ease;
}

.sidebar-carte-profil:hover {
    background: rgba(255, 255, 255, 0.15);
}

.lang-switch-sidebar {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.16);
}

.lang-switch-sidebar .lang-btn {
    color: #cbd5e1;
}

.lang-switch-sidebar .lang-btn.active {
    background: #4FCE5D;
    color: #ffffff;
}

.btn-quitter-sidebar {
    background: rgba(239, 68, 68, 0.16);
    color: #fecaca;
    border: 1px solid rgba(239, 68, 68, 0.32);
    font-size: 0.74rem;
    padding: 0.32rem 0.62rem;
}

.btn-quitter-sidebar:hover {
    background: #dc2626;
    color: #ffffff;
    border-color: #dc2626;
}

.banniere-btn-menu {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.1rem;
    cursor: pointer;
    transition: background 0.16s ease, border-color 0.16s ease, transform 0.14s ease;
}

.banniere-btn-menu:hover,
.banniere-btn-menu:focus-visible {
    background: rgba(79, 206, 93, 0.28);
    border-color: rgba(79, 206, 93, 0.58);
    color: #ffffff;
    outline: none;
}

.banniere-btn-menu:active {
    transform: scale(0.96);
}

@media (min-width: 1280px) {
    .sidebar {
        position: relative;
        height: auto;
        min-height: 100%;
        align-self: stretch;
        transition: margin-left 0.22s cubic-bezier(0.22, 1, 0.36, 1);
    }

    body.sidebar-repliee .sidebar {
        margin-left: -15.25rem;
    }
}

@media (max-width: 1279.98px) {
    .sidebar {
        position: fixed !important;
        top: 0;
        bottom: 0;
        left: 0;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }
}

.siges-save-status {
    position: fixed;
    right: 1rem;
    bottom: 0.9rem;
    z-index: 1085;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.38rem 0.72rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: #1e293b;
    color: #f8fafc;
    box-shadow: 0 8px 22px -8px rgba(15, 23, 42, 0.45);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.siges-save-status.is-saved {
    background: #166534;
    color: #f0fdf4;
}

.siges-save-status.is-error {
    background: #991b1b;
    color: #fef2f2;
}

.onglets-segmentes {
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 0.25rem;
    padding: 0.25rem;
    border-radius: 12px;
    background: #e2e8f0;
    max-width: 100%;
    overflow-x: auto;
}

.onglet-seg-btn {
    border: 0;
    background: transparent;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.48rem 0.95rem;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.onglet-seg-btn.actif {
    background: #ffffff;
    color: #1e293b;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.pilules-scroll-mobile {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.42rem;
    overflow-x: auto;
    padding-bottom: 0.2rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.pilules-scroll-mobile::-webkit-scrollbar {
    display: none;
}

.pilule-filtre {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    border-radius: 999px;
    padding: 0.34rem 0.78rem;
    font-size: 0.76rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.14s ease;
}

.pilule-filtre.active {
    background: #283346;
    border-color: #283346;
    color: #ffffff;
}

.badge-groupe-indigo { background: #e0e7ff; color: #312e81; }
.badge-groupe-emerald { background: #dcfce7; color: #14532d; }
.badge-groupe-amber { background: #fef3c7; color: #78350f; }
.badge-groupe-cyan { background: #cffafe; color: #164e63; }
.badge-groupe-violet { background: #ede9fe; color: #4c1d95; }
.badge-groupe-rose { background: #ffe4e6; color: #881337; }

.zone-depot-import {
    display: block;
    border: 2px dashed #94a3b8;
    border-radius: 12px;
    padding: 1.15rem 1rem;
    text-align: center;
    background: #f8fafc;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.zone-depot-import:hover {
    border-color: #35ad46;
    background: #f0fdf4;
}

@media (max-width: 991.98px) {
    #siges-toast-stack {
        left: 0.68rem;
        right: 0.68rem;
        top: 0.68rem;
        max-width: none;
    }
}

@media (max-width: 767.98px) {
    .form-control,
    .form-select {
        font-size: 16px;
        min-height: 41px;
    }

    .btn-aurel,
    .btn-soft,
    .btn-soft-danger {
        min-height: 38px;
    }

    .onglets-segmentes {
        width: 100%;
    }

    .onglet-seg-btn {
        flex: 1 1 auto;
        justify-content: center;
    }
}

/* ===== MENU LATÉRAL VERTICAL À EFFETS TIROIRS ===== */
.menu-vertical-lat {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch;
    gap: 0.24rem;
    width: 100%;
}

.menu-vertical-lat > .nav-link,
.menu-vertical-lat > .nav-groupe-tiroir,
.sous-menu-nav > .sous-lien {
    flex: 0 0 auto;
    width: 100%;
}

.sous-menu-nav {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 0.14rem;
}

.menu-vertical-lat .nav-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.65rem;
    padding: 0.54rem 0.76rem;
    min-height: 39px;
}

.ico-nav-slot {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ico-sous-slot {
    width: 17px;
    height: 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0.88;
}

.nav-texte {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tiroir-nav {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition:
        grid-template-rows 0.26s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.22s ease;
}

.tiroir-nav.ouvert {
    grid-template-rows: 1fr;
    opacity: 1;
}

.tiroir-nav-interne {
    overflow: hidden;
    min-height: 0;
}

.tiroir-nav .sous-menu-nav {
    margin: 0.22rem 0 0.32rem 1.28rem;
    padding: 0.14rem 0 0.14rem 0.72rem;
    border-left: 1.5px solid rgba(79, 206, 93, 0.34);
    transform: translateY(-4px);
    transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.24s;
}

.tiroir-nav:not(.ouvert) .sous-menu-nav {
    visibility: hidden;
}

.tiroir-nav.ouvert .sous-menu-nav {
    transform: translateY(0);
    visibility: visible;
}

.form-select {
    padding-right: 2.2rem !important;
    text-overflow: ellipsis;
}

/* ===== BANNIÈRE EN HAUT DES INTERFACES ===== */
.banniere-interface {
    position: relative;
    overflow: visible !important;
    border-radius: 15px;
    background:
        radial-gradient(420px 180px at 96% 12%, rgba(79, 206, 93, 0.22), transparent 68%),
        linear-gradient(125deg, #1b2434 0%, #263449 58%, #1e2d3f 100%);
    color: #ffffff;
    padding: 1rem 1.15rem;
    box-shadow: 0 10px 26px -14px rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 4px solid #4FCE5D;
}

.banniere-interface .dropdown-menu,
#siges-sticky-banner .dropdown-menu {
    z-index: 1095 !important;
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.22) !important;
    padding: 0.35rem !important;
    min-width: 11.5rem;
}

.banniere-interface .dropdown-menu .dropdown-item,
#siges-sticky-banner .dropdown-menu .dropdown-item {
    color: #0f172a !important;
    background: transparent !important;
    border-radius: 7px !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important;
}

.banniere-interface .dropdown-menu .dropdown-item:hover,
.banniere-interface .dropdown-menu .dropdown-item:focus,
#siges-sticky-banner .dropdown-menu .dropdown-item:hover,
#siges-sticky-banner .dropdown-menu .dropdown-item:focus {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

.banniere-interface-corps {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
}

.banniere-icone-medaillon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(79, 206, 93, 0.16);
    border: 1px solid rgba(79, 206, 93, 0.34);
    color: #6ee7b7;
    display: grid;
    place-items: center;
    margin-top: 0.1rem;
}

.banniere-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.2rem;
}

.banniere-pastille-rubrique {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.14rem 0.5rem;
    border-radius: 999px;
    background: rgba(79, 206, 93, 0.2);
    color: #bbf7d0;
    border: 1px solid rgba(79, 206, 93, 0.32);
}

.banniere-contexte-ecole {
    font-size: 0.72rem;
    font-weight: 500;
    color: #cbd5e1;
}

.banniere-titre {
    font-size: 1.16rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.25;
    margin: 0;
    letter-spacing: -0.01em;
}

.banniere-sous-titre {
    font-size: 0.79rem;
    color: rgba(226, 232, 240, 0.88);
    margin: 0.22rem 0 0;
    line-height: 1.4;
    max-width: 68ch;
}

.banniere-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.banniere-actions .btn-aurel {
    background: linear-gradient(135deg, #208c38, #2cb84d);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.24);
}

.banniere-actions .btn-aurel:hover {
    background: linear-gradient(135deg, #1b7830, #259e42);
    color: #ffffff;
}

.banniere-actions .btn-soft {
    background: rgba(255, 255, 255, 0.96);
    color: #1e293b;
    border-color: rgba(255, 255, 255, 0.96);
}

.banniere-actions .btn-soft:hover {
    background: #ffffff;
    color: #0f172a;
}

.badge-grille-bonus {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.14rem 0.48rem;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
    font-size: 0.7rem;
    font-weight: 700;
}

/* ===== PLAN DES ENSEIGNEMENTS & GRILLES DE BONUS ===== */
.rang-pilule {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 0.45rem;
    border-radius: 8px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #1e293b;
    font-weight: 700;
    font-size: 0.78rem;
}

.btn-ordre-bulletin {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.14s ease, border-color 0.14s ease;
}

.btn-ordre-bulletin:hover:not(:disabled) {
    background: #e2e8f0;
    border-color: #94a3b8;
}

.btn-ordre-bulletin:disabled {
    opacity: 0.35;
    cursor: default;
}

.badge-bonus-etoile {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.26rem 0.62rem;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
    font-size: 0.73rem;
    font-weight: 700;
}

.ligne-enseignement.en-glissement {
    opacity: 0.45;
    background: #f0fdf4 !important;
}

.ligne-enseignement.sauvegarde-flash {
    box-shadow: inset 3px 0 0 #22c55e;
}

.grille-synthese-groupes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
    gap: 0.65rem;
}

.carte-synthese-groupe {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.38rem;
    padding: 0.68rem 0.85rem;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.carte-synthese-groupe.est-total-general {
    background: linear-gradient(135deg, #1b2434 0%, #283346 100%);
    border-color: #283346;
    border-left: 4px solid #4FCE5D;
    color: #ffffff;
}

.entete-groupe-plan > td {
    background: #f1f5f9 !important;
    border-top: 2px solid #cbd5e1 !important;
    border-bottom: 1px solid #cbd5e1 !important;
    padding: 0.58rem 0.9rem !important;
}

.pastille-stat-groupe {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #1e293b;
    font-size: 0.74rem;
    font-weight: 700;
}

.pastille-stat-groupe.est-coef {
    background: #ecfdf5;
    border-color: #86efac;
    color: #14532d;
}

.pied-total-plan tr > td {
    background: #f8fafc !important;
    border-top: 2px solid #1e293b !important;
    padding: 0.78rem 0.95rem !important;
}

@media (max-width: 767.98px) {
    .entete-groupe-plan {
        display: block !important;
        margin-bottom: 0.45rem;
        border-radius: 10px;
        overflow: hidden;
    }

    .entete-groupe-plan > td {
        display: block !important;
        text-align: left !important;
    }

    .entete-groupe-plan > td::before {
        content: none !important;
        display: none !important;
    }

    .pied-total-plan tr,
    .pied-total-plan tr > td {
        display: block !important;
        text-align: left !important;
    }

    .pied-total-plan tr > td::before {
        content: none !important;
        display: none !important;
    }
}

@media (max-width: 767.98px) {
    .banniere-interface {
        padding: 0.85rem 0.9rem;
    }

    .banniere-titre {
        font-size: 1.04rem;
    }

    .banniere-actions {
        width: 100%;
    }
}

    @media (max-width: 575.98px) {
    .onglets-segmentes {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
        gap: 0.22rem;
        padding: 0.22rem;
    }

    .onglets-segmentes .onglet-seg-btn {
        justify-content: center;
        padding: 0.42rem 0.25rem;
        font-size: 0.72rem;
        gap: 0.25rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

.table thead th {
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%) !important;
    color: #0f172a !important;
    font-weight: 700 !important;
    border-bottom: 1.5px solid #cbd5e1 !important;
}

.table tbody tr:nth-child(even) > td {
    background-color: #fafbfd;
}

.code-mat {
    background: #eff6ff;
    color: #1e3a8a;
    border: 1px solid #bfdbfe;
    font-weight: 700;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.76rem;
    letter-spacing: 0.02em;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    display: inline-block;
}

.jauge-kpi {
    width: 100%;
    height: 7px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
    margin-top: 0.42rem;
}

.jauge-kpi-barre {
    height: 100%;
    border-radius: 999px;
    transition: width .35s ease;
}
.jauge-bleue { background: linear-gradient(90deg, #2563eb, #3b82f6); }
.jauge-verte { background: linear-gradient(90deg, #16a34a, #22c55e); }
.jauge-ambre { background: linear-gradient(90deg, #d97706, #f59e0b); }
.jauge-violette { background: linear-gradient(90deg, #7c3aed, #8b5cf6); }
.jauge-rouge { background: linear-gradient(90deg, #dc2626, #ef4444); }

.avatar-eleve-hd {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    object-fit: cover;
    border: 2px solid #cbd5e1;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.09);
    cursor: zoom-in;
    flex-shrink: 0;
    background: #f8fafc;
    transition: transform .16s ease, border-color .16s ease;
}
.avatar-eleve-hd:hover {
    transform: scale(1.06);
    border-color: #2563eb;
}

.avatar-eleve-initiales {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    flex-shrink: 0;
    border: 1px dashed #94a3b8;
    background: #f1f5f9;
    color: #334155;
}
.avatar-eleve-initiales.est-fille {
    background: #fdf2f8;
    border-color: #f472b6;
    color: #9d174d;
}
.avatar-eleve-initiales.est-garcon {
    background: #eff6ff;
    border-color: #60a5fa;
    color: #1e40af;
}

.badge-genre-f {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0.22rem 0.58rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    background: #fdf2f8;
    color: #9d174d;
    border: 1px solid #fbcfe8;
}

.badge-genre-m {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0.22rem 0.58rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.badge-statut-nouveau {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.62rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    background: #ecfdf5;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.badge-statut-ancien {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.62rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

.champ-recherche {
    position: relative;
    display: flex;
    align-items: center;
}
.champ-recherche .ico-search {
    position: absolute;
    left: 0.68rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--texte-3);
    pointer-events: none;
    display: flex;
    align-items: center;
}
.champ-recherche .form-control {
    padding-left: 2.05rem;
}

#table-eleves {
    width: 100%;
    table-layout: auto;
}
#table-eleves td, #table-eleves th {
    padding: 0.62rem 0.56rem;
}
#table-eleves .code-mat {
    white-space: nowrap;
}
#table-eleves .select-rapide-eleve {
    padding-left: 0.55rem;
    padding-right: 1.65rem;
}
#table-eleves .select-classe-eleve {
    min-width: 142px;
}
#table-eleves .select-statut-eleve {
    min-width: 108px;
}

/* =========================================================
   SYSTÈME DE THÈMES DE COULEURS (APPLICATION & UTILISATEURS)
   ========================================================= */
:root,
html[data-theme="emeraude"] {
    --theme-sb-1: #0f1d30;
    --theme-sb-2: #162942;
    --theme-sb-active-bg: rgba(34, 197, 94, 0.17);
    --theme-sb-active-border: rgba(74, 222, 128, 0.48);
    --theme-banner-bg: linear-gradient(122deg, #102033 0%, #19324d 52%, #1b653e 100%);
    --theme-primary: #15803d;
    --theme-primary-hover: #166534;
    --theme-swatch: #16a34a;
}

html[data-theme="ocean"] {
    --theme-sb-1: #091628;
    --theme-sb-2: #112a4a;
    --theme-sb-active-bg: rgba(59, 130, 246, 0.22);
    --theme-sb-active-border: rgba(96, 165, 250, 0.52);
    --theme-banner-bg: linear-gradient(122deg, #0b192c 0%, #163a6c 54%, #1d4ed8 100%);
    --theme-primary: #1d4ed8;
    --theme-primary-hover: #1e40af;
    --theme-swatch: #2563eb;
}

html[data-theme="indigo"] {
    --theme-sb-1: #141233;
    --theme-sb-2: #221d52;
    --theme-sb-active-bg: rgba(129, 140, 248, 0.22);
    --theme-sb-active-border: rgba(165, 180, 252, 0.52);
    --theme-banner-bg: linear-gradient(122deg, #17153b 0%, #2e236c 54%, #4f46e5 100%);
    --theme-primary: #4f46e5;
    --theme-primary-hover: #4338ca;
    --theme-swatch: #6366f1;
}

html[data-theme="bordeaux"] {
    --theme-sb-1: #21121a;
    --theme-sb-2: #381a28;
    --theme-sb-active-bg: rgba(244, 63, 94, 0.2);
    --theme-sb-active-border: rgba(251, 113, 133, 0.5);
    --theme-banner-bg: linear-gradient(122deg, #23141c 0%, #5c1931 54%, #be123c 100%);
    --theme-primary: #be123c;
    --theme-primary-hover: #9f1239;
    --theme-swatch: #e11d48;
}

html[data-theme="ambre"] {
    --theme-sb-1: #1c1917;
    --theme-sb-2: #302821;
    --theme-sb-active-bg: rgba(245, 158, 11, 0.2);
    --theme-sb-active-border: rgba(251, 191, 36, 0.5);
    --theme-banner-bg: linear-gradient(122deg, #1f1a16 0%, #5c3a16 54%, #b45309 100%);
    --theme-primary: #b45309;
    --theme-primary-hover: #92400e;
    --theme-swatch: #d97706;
}

html[data-theme="ardoise"] {
    --theme-sb-1: #111827;
    --theme-sb-2: #1f2937;
    --theme-sb-active-bg: rgba(20, 184, 166, 0.2);
    --theme-sb-active-border: rgba(45, 212, 191, 0.5);
    --theme-banner-bg: linear-gradient(122deg, #111827 0%, #1e3a3a 54%, #0f766e 100%);
    --theme-primary: #0f766e;
    --theme-primary-hover: #115e59;
    --theme-swatch: #14b8a6;
}

.sidebar {
    background: linear-gradient(180deg, var(--theme-sb-1) 0%, var(--theme-sb-2) 100%) !important;
}

@media (min-width: 1280px) {
    .sidebar {
        position: sticky;
        top: 0;
        align-self: flex-start;
        min-height: 100vh;
    }
}

.sidebar .nav-link.active {
    background: var(--theme-sb-active-bg) !important;
    border-color: var(--theme-sb-active-border) !important;
}

.banniere-interface {
    background: var(--theme-banner-bg) !important;
}

.banniere-interface.banniere-sticky {
    position: sticky;
    top: 0.45rem;
    z-index: 990;
    padding: 0.72rem 1.05rem;
    overflow-anchor: none;
    transition: box-shadow .2s ease;
}

.banniere-interface.banniere-sticky .banniere-sous-titre {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 68ch;
}

@media (max-width: 767.98px) {
    .banniere-interface.banniere-sticky {
        padding: 0.58rem 0.82rem;
    }
    .banniere-interface.banniere-sticky .banniere-sous-titre {
        display: none;
    }
}

.modal-backdrop {
    z-index: 1050 !important;
}
.modal {
    z-index: 1055 !important;
}
#siges-toast-stack {
    z-index: 2060 !important;
}

/* =========================================================
   FICHE D'ENREGISTREMENT ÉLÈVE RESTRUCTURÉE
   ========================================================= */
.bloc-form-eleve {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 0.95rem 1.05rem;
}

.entete-bloc-form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding-bottom: 0.52rem;
    margin-bottom: 0.8rem;
    border-bottom: 1px solid #f1f5f9;
}

.titre-bloc-form {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #1e293b;
}

.num-etape-form {
    width: 21px;
    height: 21px;
    border-radius: 6px;
    display: inline-grid;
    place-items: center;
    font-size: 0.72rem;
    font-weight: 800;
    background: var(--theme-primary);
    color: #ffffff;
}

.choix-segmente {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
    background: #f1f5f9;
    padding: 0.24rem;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.choix-segmente input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.choix-segmente label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.42rem 0.55rem;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    margin: 0;
    transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}

.choix-segmente input[type="radio"]:checked + label {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.1);
}

.cadre-photo-fiche {
    width: 112px;
    height: 112px;
    border-radius: 14px;
    border: 1.5px dashed #cbd5e1;
    background: #f8fafc;
    display: grid;
    place-items: center;
    overflow: hidden;
    flex-shrink: 0;
}

/* =========================================================
   MODULE SAISIE DES NOTES (CLAVIER + MOBILE TACTILE)
   ========================================================= */
.barre-selecteurs-notes {
    background: #ffffff;
    border: 1px solid var(--trait);
    border-radius: 14px;
    padding: 0.9rem 1.05rem;
    box-shadow: var(--ombre-1);
}

.ruban-stats-notes {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem 1.25rem;
    padding: 0.62rem 1rem;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 0.78rem;
    color: #334155;
}

.item-stat-discrete {
    display: inline-flex;
    align-items: baseline;
    gap: 0.38rem;
    white-space: nowrap;
}

.item-stat-discrete .lbl {
    color: #64748b;
    font-weight: 600;
    font-size: 0.74rem;
}

.item-stat-discrete .val {
    color: #0f172a;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.champ-note-eleve {
    width: 82px;
    height: 31px;
    text-align: center;
    font-weight: 800;
    font-size: 0.9rem;
    font-variant-numeric: tabular-nums;
    border-radius: 8px;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
    transition: border-color .14s ease, box-shadow .14s ease, background-color .14s ease;
}

#table-saisie-notes thead th {
    padding-top: 0.46rem !important;
    padding-bottom: 0.46rem !important;
}

#table-saisie-notes tbody tr.ligne-saisie-note td {
    padding-top: 0.3rem !important;
    padding-bottom: 0.3rem !important;
}

.cellule-eleve-une-ligne {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    white-space: nowrap;
}

.nom-eleve-une-ligne {
    font-weight: 700;
    font-size: 0.84rem;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.meta-eleve-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    color: #64748b;
    flex-shrink: 0;
}

.btn-annuler-note-eleve {
    width: 26px;
    height: 26px;
    padding: 0;
    border-radius: 7px;
    border: 1px solid #fecaca;
    background: #fff1f2;
    color: #be123c;
    display: inline-grid;
    place-items: center;
    line-height: 1;
    cursor: pointer;
    transition: background .14s ease, border-color .14s ease, color .14s ease;
}

.btn-annuler-note-eleve:hover {
    background: #ffe4e6;
    border-color: #fda4af;
    color: #9f1239;
}

.champ-note-eleve:focus {
    outline: none;
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
    background: #ffffff;
}

.champ-note-eleve.est-vide {
    background: #f8fafc;
    color: #64748b;
    border-style: dashed;
}

.champ-note-eleve.est-valide {
    border-color: #86efac;
    background: #f0fdf4;
}

.champ-note-eleve.est-rejetee {
    border-color: #ef4444 !important;
    background: #fef2f2 !important;
    color: #b91c1c !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18) !important;
}

.badge-appreciation-live {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.24rem 0.62rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #334155;
    white-space: nowrap;
}

.point-couleur-appr {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    flex-shrink: 0;
}

.etat-ligne-note {
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .champ-note-eleve {
        width: 84px;
        height: 42px;
        font-size: 16px;
    }

    #table-saisie-notes thead {
        display: none;
    }

    #table-saisie-notes,
    #table-saisie-notes tbody,
    #table-saisie-notes tr.ligne-saisie-note,
    #table-saisie-notes td {
        display: block;
        width: 100%;
    }

    #table-saisie-notes tr.ligne-saisie-note {
        padding: 0.72rem 0.85rem;
        border-bottom: 1px solid #e2e8f0;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: auto auto;
        gap: 0.35rem 0.75rem;
        align-items: center;
    }

    #table-saisie-notes .badge-appreciation-live {
        max-width: 100%;
        overflow: hidden;
    }

    #table-saisie-notes .badge-appreciation-live .js-txt-appr {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    #table-saisie-notes td.col-eleve-note,
    #table-saisie-notes td.col-meta-mobile-note {
        min-width: 0;
    }

    #table-saisie-notes td {
        padding: 0 !important;
        border: 0 !important;
    }

    #table-saisie-notes td.col-num-note,
    #table-saisie-notes td.col-ponderee-note {
        display: none;
    }

    #table-saisie-notes td.col-eleve-note {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
    }

    #table-saisie-notes td.col-input-note {
        grid-column: 2 / 3;
        grid-row: 1 / 3;
        text-align: right;
    }

    #table-saisie-notes td.col-meta-mobile-note {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
    }

    #table-saisie-notes td.col-etat-note {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
        display: none;
    }

    .cellule-eleve-une-ligne {
        flex-wrap: nowrap;
    }

    .meta-eleve-inline {
        display: none;
    }
}

.banniere-interface.banniere-sticky.est-scrollee {
    box-shadow: 0 12px 28px -10px rgba(15, 23, 42, 0.36);
}

.banniere-btn-menu {
    width: auto !important;
    min-width: 38px;
    padding: 0 0.68rem !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

.btn-primary,
.btn-aurel {
    background-color: var(--theme-primary) !important;
    border-color: var(--theme-primary) !important;
    color: #ffffff !important;
}
.btn-primary:hover,
.btn-aurel:hover {
    background-color: var(--theme-primary-hover) !important;
    border-color: var(--theme-primary-hover) !important;
    color: #ffffff !important;
}

.pastille-theme-actif {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--theme-swatch);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.75);
    display: inline-block;
    flex-shrink: 0;
}

.pastille-echantillon {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    display: inline-block;
    border: 1.5px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.2);
}

.carte-choix-theme {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.7rem 0.8rem;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
    cursor: pointer;
}
.carte-choix-theme:hover {
    border-color: #94a3b8;
    transform: translateY(-1px);
    box-shadow: var(--ombre-1);
}
.carte-choix-theme .badge-theme-check {
    opacity: 0;
    color: var(--theme-primary);
}
.carte-choix-theme.est-selectionne {
    border-color: var(--theme-primary);
    background: #f8fafc;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.carte-choix-theme.est-selectionne .badge-theme-check {
    opacity: 1;
}

/* =========================================================
   INTERFACE ÉLÈVES REDESIGNÉE & NAVIGATION PAGINÉE
   ========================================================= */
.barre-classes-rapides {
    display: flex;
    align-items: center;
    gap: 0.42rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: thin;
}

.pilule-classe-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    padding: 0.34rem 0.72rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    background: #ffffff;
    color: #334155;
    border: 1px solid #cbd5e1;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.pilule-classe-nav:hover {
    border-color: var(--theme-primary);
    color: #0f172a;
}
.pilule-classe-nav.active {
    background: var(--theme-primary);
    border-color: var(--theme-primary);
    color: #ffffff;
}
.pilule-classe-nav .cpt {
    font-size: 0.68rem;
    font-weight: 800;
    padding: 0.06rem 0.42rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
}
.pilule-classe-nav.active .cpt {
    background: rgba(255, 255, 255, 0.24);
    color: #ffffff;
}

.avatar-eleve-wrap {
    position: relative;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
}

.badge-mini-hd {
    position: absolute;
    right: -4px;
    bottom: -3px;
    font-size: 0.56rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    padding: 1px 4px;
    border-radius: 5px;
    background: #0f172a;
    color: #ffffff;
    border: 1px solid #ffffff;
    pointer-events: none;
}

.actions-ligne-eleve {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.btn-action-table {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0.3rem 0.58rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid transparent;
    background: #f8fafc;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn-action-table.est-editer {
    color: #1d4ed8;
    border-color: #bfdbfe;
    background: #eff6ff;
}
.btn-action-table.est-editer:hover {
    background: #dbeafe;
    border-color: #93c5fd;
}
.btn-action-table.est-supprimer {
    color: #dc2626;
    border-color: #fecaca;
    background: #fef2f2;
}
.btn-action-table.est-supprimer:hover {
    background: #fee2e2;
    border-color: #fca5a5;
}

.barre-pagination-siges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.78rem 1.1rem;
    background: #f8fafc;
    border-top: 1px solid var(--trait);
}

.pagination-boutons {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    flex-wrap: wrap;
}

.page-lien-siges {
    min-width: 32px;
    height: 32px;
    padding: 0 0.62rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    background: #ffffff;
    color: #1e293b;
    border: 1px solid #cbd5e1;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.page-lien-siges:hover:not(.desactive):not(.actif) {
    border-color: var(--theme-primary);
    color: var(--theme-primary);
    background: #f1f5f9;
}
.page-lien-siges.actif {
    background: var(--theme-primary);
    border-color: var(--theme-primary);
    color: #ffffff;
}
.page-lien-siges.desactive {
    opacity: 0.45;
    pointer-events: none;
}

@media (max-width: 575.98px) {
    .banniere-interface.banniere-sticky {
        top: 0.25rem;
    }
}

.carte-alerte-decision {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.72rem 0.95rem;
    border-radius: 12px;
    border: 1px solid var(--trait);
    background: #ffffff;
    text-decoration: none;
    color: var(--texte);
    transition: border-color .16s ease, box-shadow .16s ease;
}
.carte-alerte-decision:hover {
    border-color: #94a3b8;
    box-shadow: var(--ombre-1);
    color: var(--texte);
}

/* =========================================================
   BANDEAU D'EN-TÊTE RATIONNEL & ULTRA-STABLE
   ========================================================= */
.banniere-interface.banniere-sticky {
    top: 0.35rem;
    z-index: 990;
    padding: 0.44rem 0.8rem !important;
    border-radius: 12px;
    overflow-anchor: none;
    transition: box-shadow .2s ease;
}

.banniere-interface .banniere-interface-corps {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
}

.banniere-zone-identite {
    display: flex;
    align-items: center;
    gap: 0.56rem;
    min-width: 0;
    flex: 1 1 auto;
}

.banniere-interface .banniere-btn-menu {
    height: 32px !important;
    min-width: 34px;
    padding: 0 0.54rem !important;
    border-radius: 8px;
    flex-shrink: 0;
}

.banniere-interface .banniere-icone-medaillon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    margin-top: 0;
    flex-shrink: 0;
}

.banniere-bloc-titres {
    min-width: 0;
}

.banniere-interface .banniere-meta {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.36rem;
    margin-bottom: 0.06rem;
    min-width: 0;
    overflow: hidden;
}

.banniere-interface .banniere-pastille-rubrique {
    font-size: 0.59rem;
    padding: 0.06rem 0.4rem;
    letter-spacing: 0.06em;
    line-height: 1.3;
}

.banniere-interface .banniere-contexte-ecole {
    font-size: 0.69rem;
    line-height: 1.2;
    color: rgba(226, 232, 240, 0.9);
    min-width: 0;
}

.banniere-interface .banniere-titre {
    font-size: 0.98rem;
    line-height: 1.22;
    font-weight: 700;
    margin: 0;
}

.banniere-info-bulle {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.92);
    place-items: center;
    cursor: help;
}

.banniere-interface .banniere-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.4rem;
    flex: 0 1 auto;
    min-width: 0;
}

.banniere-actions-page {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.34rem;
    overflow-x: auto;
    scrollbar-width: none;
    min-width: 0;
}
.banniere-actions-page::-webkit-scrollbar {
    display: none;
}

.banniere-actions-page > *,
.banniere-actions-page button,
.banniere-actions-page a {
    height: 31px !important;
    padding: 0 0.58rem !important;
    font-size: 0.74rem !important;
    line-height: 1 !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.32rem !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.banniere-sep-vertical {
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.22);
    flex-shrink: 0;
}

.banniere-outils-systeme {
    align-items: center;
    gap: 0.32rem;
}

.btn-icone-entete {
    width: 31px !important;
    height: 31px !important;
    padding: 0 !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.2rem !important;
}

.btn-initiales-entete {
    height: 31px !important;
    padding: 0 0.5rem !important;
    border-radius: 8px !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.26rem !important;
}

@media (max-width: 991.98px) {
    .banniere-interface.banniere-sticky {
        padding: 0.34rem 0.58rem !important;
    }

    .banniere-interface .banniere-interface-corps {
        flex-wrap: wrap;
        gap: 0.28rem;
    }

    .banniere-zone-identite {
        width: 100%;
    }

    .banniere-interface:not(.a-des-actions) .banniere-actions {
        display: none !important;
    }

    .banniere-interface.a-des-actions .banniere-actions {
        width: 100%;
        padding-top: 0.28rem;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    .banniere-interface .banniere-actions-page {
        width: 100%;
        gap: 0.3rem;
    }

    .banniere-interface .banniere-actions-page .btn {
        height: 27px !important;
        padding: 0 0.45rem !important;
        font-size: 0.71rem !important;
        gap: 0.24rem !important;
    }
}

/* =========================================================
   MODE SAISIE DES NOTES PAR ÉLÈVE (FICHE PHOTO + MOYENNES + RANG)
   ========================================================= */
.switch-mode-notes {
    display: inline-flex;
    align-items: center;
    background: #eef2f6;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    padding: 2px;
    gap: 2px;
}

.switch-mode-notes a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.68rem;
    border-radius: 7px;
    font-size: 0.76rem;
    font-weight: 700;
    color: #475569;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}

.switch-mode-notes a:hover {
    color: #0f172a;
}

.switch-mode-notes a.actif {
    background: var(--theme-primary);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.16);
}

.fiche-synthese-eleve-notes {
    display: grid;
    grid-template-columns: minmax(290px, 1.45fr) repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
    align-items: stretch;
}

.bloc-identite-eleve-notes {
    background: #ffffff;
    border: 1px solid #dbe2ea;
    border-radius: 13px;
    padding: 0.72rem 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.avatar-photo-eleve-notes {
    width: 62px;
    height: 62px;
    border-radius: 13px;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #e2e8f0;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 1.05rem;
    color: #1e293b;
}

.avatar-photo-eleve-notes.cliquable {
    cursor: zoom-in;
    transition: border-color .15s ease, transform .15s ease;
}

.avatar-photo-eleve-notes.cliquable:hover {
    border-color: var(--theme-primary);
    transform: scale(1.03);
}

.avatar-photo-eleve-notes img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carte-kpi-bulletin {
    background: #ffffff;
    border: 1px solid #dbe2ea;
    border-radius: 13px;
    padding: 0.68rem 0.85rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.carte-kpi-bulletin .kpi-etiquette {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
}

.carte-kpi-bulletin .kpi-valeur-principale {
    font-size: 1.32rem;
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.02em;
    color: #0f172a;
    margin: 0.16rem 0;
}

.carte-kpi-bulletin .kpi-valeur-principale.est-reussite {
    color: #047857;
}

.carte-kpi-bulletin .kpi-valeur-principale.est-alerte {
    color: #b91c1c;
}

.carte-kpi-bulletin .kpi-sous-texte {
    font-size: 0.72rem;
    color: #475569;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ruban-sequences-annuelles {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.puce-seq-moyenne {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0.14rem 0.48rem;
    border-radius: 7px;
    font-size: 0.7rem;
    font-weight: 600;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #334155;
    cursor: pointer;
    transition: background .14s ease, border-color .14s ease, color .14s ease, transform .14s ease;
}

.puce-seq-moyenne:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
}

.puce-seq-moyenne.est-active {
    background: #ecfdf5;
    border-color: #34d399;
    color: #065f46;
    box-shadow: 0 1px 4px rgba(16, 185, 129, 0.14);
}

#table-notes-par-eleve {
    table-layout: fixed;
    width: 100%;
}

#table-notes-par-eleve thead th {
    padding-top: 0.42rem !important;
    padding-bottom: 0.42rem !important;
    font-size: 0.7rem !important;
    vertical-align: middle !important;
}

#table-notes-par-eleve thead th.th-seq-matrice {
    cursor: pointer;
    user-select: none;
    transition: background .14s ease, color .14s ease;
    border-left: 1px solid #e2e8f0;
}

#table-notes-par-eleve thead th.th-seq-matrice:hover {
    background: #eef2ff !important;
}

#table-notes-par-eleve thead th.th-seq-matrice.est-colonne-active {
    background: #ecfdf5 !important;
    color: #065f46 !important;
    box-shadow: inset 0 -2px 0 #10b981;
}

#table-notes-par-eleve tbody td {
    padding-top: 0.28rem !important;
    padding-bottom: 0.28rem !important;
    vertical-align: middle !important;
}

#table-notes-par-eleve tbody td.td-seq-matrice {
    border-left: 1px solid #f1f5f9;
    padding-left: 0.2rem !important;
    padding-right: 0.2rem !important;
    position: relative;
}

#table-notes-par-eleve tbody td.td-seq-matrice.est-colonne-active {
    background: rgba(16, 185, 129, 0.045);
}

#table-notes-par-eleve .wrap-input-matrice {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#table-notes-par-eleve .champ-note-matrice {
    width: 68px !important;
    height: 30px !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    padding: 0 0.25rem !important;
    border-radius: 7px !important;
}

#table-notes-par-eleve .btn-effacer-matrice {
    position: absolute;
    right: -6px;
    top: -5px;
    width: 16px;
    height: 16px;
    padding: 0;
    border: 1px solid #fecaca;
    border-radius: 999px;
    background: #fff1f2;
    color: #dc2626;
    font-size: 10px;
    line-height: 1;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}

#table-notes-par-eleve .wrap-input-matrice:hover .btn-effacer-matrice:not(.d-none),
#table-notes-par-eleve .wrap-input-matrice:focus-within .btn-effacer-matrice:not(.d-none) {
    display: inline-flex;
}

#table-notes-par-eleve .etiquette-seq-mobile {
    display: none;
}

#table-notes-par-eleve td.col-annuel-matiere {
    border-left: 1px solid #e2e8f0;
    background: #f8fafc;
    font-weight: 800;
    font-size: 0.8rem;
}

#table-notes-par-eleve tfoot td {
    padding: 0.36rem 0.25rem !important;
    font-size: 0.76rem;
    background: #f8fafc;
    border-top: 1px solid #cbd5e1;
    vertical-align: middle;
}

#table-notes-par-eleve tfoot tr.ligne-pied-rang td {
    background: #f1f5f9;
    border-top: 1px dashed #cbd5e1;
    font-size: 0.72rem;
}

#table-notes-par-eleve tfoot td.est-colonne-active {
    background: #ecfdf5 !important;
    color: #065f46;
}

#table-notes-par-eleve td.col-eleve-note {
    min-width: 0;
    overflow: hidden;
}

@media (max-width: 1199.98px) {
    .fiche-synthese-eleve-notes {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .fiche-synthese-eleve-notes {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.45rem;
    }

    .fiche-synthese-eleve-notes .bloc-identite-eleve-notes,
    .fiche-synthese-eleve-notes .carte-kpi-bulletin:last-child {
        grid-column: 1 / -1;
    }

    .carte-kpi-bulletin {
        padding: 0.5rem 0.68rem;
    }

    .carte-kpi-bulletin .kpi-valeur-principale {
        font-size: 1.12rem;
    }

    #table-notes-par-eleve {
        table-layout: auto;
    }

    #table-notes-par-eleve thead,
    #table-notes-par-eleve tfoot {
        display: none;
    }

    #table-notes-par-eleve tbody tr {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.35rem;
        padding: 0.58rem 0.65rem;
        border-bottom: 1px solid #cbd5e1;
    }

    #table-notes-par-eleve td {
        padding: 0 !important;
        border: 0 !important;
    }

    #table-notes-par-eleve td.col-num-note {
        display: none !important;
    }

    #table-notes-par-eleve td.col-eleve-note {
        grid-column: 1 / 3;
        min-width: 0;
        align-self: center;
    }

    #table-notes-par-eleve td.col-annuel-matiere {
        grid-column: 3 / 4;
        grid-row: 1;
        text-align: right !important;
        background: transparent !important;
        align-self: center;
    }

    #table-notes-par-eleve tbody td.td-seq-matrice {
        border: 1px solid #e2e8f0 !important;
        border-radius: 8px;
        padding: 0.24rem 0.3rem !important;
        background: #ffffff;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.14rem;
    }

    #table-notes-par-eleve tbody td.td-seq-matrice.est-colonne-active {
        background: #ecfdf5;
        border-color: #6ee7b7 !important;
    }

    #table-notes-par-eleve .etiquette-seq-mobile {
        display: block;
        font-size: 0.63rem;
        font-weight: 700;
        color: #475569;
        line-height: 1.1;
    }

    #table-notes-par-eleve .champ-note-matrice {
        width: 100% !important;
        max-width: 72px;
        height: 28px !important;
    }
}

.btn-imprimer-entete {
    height: 31px;
    padding: 0 0.68rem !important;
    font-size: 0.76rem !important;
    font-weight: 700 !important;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.apercu-a4-feuille {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    box-shadow: 0 10px 26px -10px rgba(15, 23, 42, 0.18);
    padding: 0.9rem 1rem 0.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 410px;
}

.apercu-a4-entete {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 0.65rem;
    padding-bottom: 0.55rem;
    margin-bottom: 0.75rem;
}

.apercu-a4-entete.avec-bordure {
    border-bottom: 2px solid var(--theme-primary, #1e3a8a);
}

.apercu-a4-col {
    min-width: 0;
    word-break: break-word;
}

.apercu-a4-centre {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.25rem;
}

.apercu-a4-centre img {
    object-fit: contain;
    border-radius: 10px;
}

.apercu-a4-corps {
    flex-grow: 1;
    padding: 0.2rem 0 0.6rem;
}

.apercu-a4-bandeau-doc {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-left: 4px solid var(--theme-primary, #1e3a8a);
    border-radius: 4px;
    padding: 0.42rem 0.65rem;
    margin-bottom: 0.65rem;
}

.apercu-a4-pied {
    position: relative;
    padding-top: 0.45rem;
    padding-right: 4.2rem;
}

.apercu-a4-pied.avec-bordure {
    border-top: 1px solid #cbd5e1;
}

.apercu-a4-page {
    position: absolute;
    right: 0;
    bottom: 0.1rem;
    font-size: 0.62rem;
    font-weight: 600;
    color: #64748b;
}

.cadre-lecteur-pdf {
    height: min(73vh, 680px);
    overflow-y: auto;
    overflow-x: auto;
    background: linear-gradient(180deg, #334155 0%, #475569 100%);
    padding: 1.15rem 0.9rem 1.4rem;
    position: relative;
}

.siges-pdf-pages-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    min-height: 100%;
}

.siges-pdf-page-sheet {
    position: relative;
    background: #ffffff;
    border-radius: 3px;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.42), 0 2px 6px rgba(15, 23, 42, 0.22);
    max-width: 100%;
    flex-shrink: 0;
}

.siges-pdf-page-sheet canvas {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 2px;
}

.siges-pdf-page-badge {
    margin-top: -0.75rem;
    margin-bottom: 0.25rem;
    padding: 0.16rem 0.65rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: #e2e8f0;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    pointer-events: none;
}

.siges-pdf-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: #f8fafc;
    min-height: 44vh;
    text-align: center;
    padding: 1.5rem;
}

#siges-print-sheet-container {
    display: none;
}

@media print {
    @page {
        margin: 0;
    }

    body.siges-printing-pdf > *:not(#siges-print-sheet-container) {
        display: none !important;
    }

    body.siges-printing-pdf {
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
    }

    body.siges-printing-pdf #siges-print-sheet-container {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body.siges-printing-pdf .siges-print-page-img {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        page-break-after: always;
        break-after: page;
    }

    body.siges-printing-pdf .siges-print-page-img:last-child {
        page-break-after: auto;
        break-after: auto;
    }
}

@media (max-width: 575.98px) {
    .apercu-a4-entete {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        gap: 0.35rem;
    }

    .apercu-a4-feuille {
        padding: 0.65rem;
        min-height: 340px;
    }

    .cadre-lecteur-pdf {
        height: 62vh;
        padding: 0.7rem 0.45rem 1rem;
    }
}

/* ==========================================================================
   AUREL UNIFIED UI DESIGN SYSTEM — COHÉRENCE TOTALE DES INTERFACES & RÔLES
   ========================================================================== */

:root {
    --aurel-btn-radius: 10px;
    --aurel-btn-radius-sm: 8px;
    --aurel-input-radius: 10px;
    --aurel-card-radius: 14px;
    --aurel-surface-border: #dce4ee;
    --aurel-surface-shadow: 0 2px 8px rgba(15, 23, 42, 0.045), 0 1px 2px rgba(15, 23, 42, 0.03);
}

/* 1. FOND GLOBAL, RENDU INSTANTANÉ NET & CARTES UNIFIÉES */
body {
    background: #f3f6fa;
    color: #0f172a;
}

.anim-up,
.anim-up.d1,
.anim-up.d2,
.anim-up.d3,
.anim-up.d4 {
    opacity: 1 !important;
    animation: aurelAparitionFluide 0.14s ease-out both !important;
    animation-delay: 0s !important;
}

@keyframes aurelAparitionFluide {
    from {
        transform: translateY(3px);
    }
    to {
        transform: translateY(0);
    }
}

.carte-app,
.stat-carte,
.carte-alerte-decision {
    border-radius: var(--aurel-card-radius) !important;
    border: 1px solid var(--aurel-surface-border) !important;
    box-shadow: var(--aurel-surface-shadow) !important;
    background: #ffffff;
}

.carte-entete {
    padding: 0.9rem 1.2rem;
    border-bottom: 1px solid #e6edf5;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
}

.stat-carte {
    padding: 0.98rem 1.08rem !important;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.stat-carte:hover {
    transform: translateY(-1px);
    border-color: #c5d3e3 !important;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.065) !important;
}

.carte-alerte-decision {
    padding: 0.85rem 1rem !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    text-decoration: none;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.carte-alerte-decision:hover {
    transform: translateY(-1px);
    border-color: var(--theme-primary, #1f6f54) !important;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.07) !important;
}

/* 2. BANDEAU SUPÉRIEUR AÉRÉ, ÉLÉGANT & ZÉRO TREMBLEMENT AU DÉFILEMENT */
.banniere-interface.banniere-sticky,
#siges-sticky-banner {
    top: 0 !important;
    padding: 0.78rem 1.25rem !important;
    min-height: 76px;
    border-radius: 14px !important;
    margin-bottom: 1rem !important;
    display: flex;
    align-items: center;
    background: linear-gradient(
        125deg,
        var(--theme-banner-start, #12362b) 0%,
        var(--theme-banner-mid, #1b5140) 54%,
        var(--theme-banner-end, #246852) 100%
    ) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.13) !important;
    overflow-anchor: none !important;
    transform: translateZ(0);
    will-change: box-shadow;
    transition: box-shadow 0.18s ease !important;
}

.banniere-interface.banniere-sticky.est-scrollee,
#siges-sticky-banner.est-scrollee {
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.24) !important;
}

.banniere-interface-corps {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem 1.15rem !important;
    flex-wrap: nowrap;
}

.banniere-zone-identite {
    display: flex;
    align-items: center;
    gap: 0.72rem !important;
    min-width: 0;
    overflow: hidden;
    flex: 1 1 auto;
}

.banniere-btn-menu,
#siges-sticky-banner .banniere-btn-menu {
    height: 38px !important;
    min-width: 38px !important;
    padding: 0 0.78rem !important;
    border-radius: var(--aurel-btn-radius) !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    gap: 0.42rem !important;
    background: rgba(255, 255, 255, 0.14) !important;
    border: 1px solid rgba(255, 255, 255, 0.26) !important;
    color: #ffffff !important;
}

.banniere-btn-menu:hover,
#siges-sticky-banner .banniere-btn-menu:hover {
    background: rgba(255, 255, 255, 0.24) !important;
    border-color: rgba(255, 255, 255, 0.42) !important;
}

.banniere-icone-medaillon {
    width: 42px !important;
    height: 42px !important;
    border-radius: 11px !important;
    background: rgba(255, 255, 255, 0.14) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.banniere-bloc-titres {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    min-width: 0;
    overflow: hidden;
}

@media (max-width: 1560px) {
    .banniere-interface.a-des-actions .banniere-pastille-role {
        display: none !important;
    }
}

.banniere-meta {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.45rem !important;
    margin-bottom: 0 !important;
    min-width: 0;
}

.banniere-pastille-rubrique {
    font-size: 0.65rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.05em;
    padding: 0.16rem 0.5rem !important;
    border-radius: 6px !important;
    background: rgba(255, 255, 255, 0.17) !important;
    border: 1px solid rgba(255, 255, 255, 0.24) !important;
    color: #ffffff !important;
}

.banniere-contexte-ecole {
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.88) !important;
}

.banniere-pastille-role {
    display: inline-flex;
    align-items: center;
    padding: 0.13rem 0.52rem;
    border-radius: 6px;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: rgba(15, 23, 42, 0.34);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #f8fafc;
}

.banniere-titre {
    font-size: 1.14rem !important;
    font-weight: 800 !important;
    line-height: 1.24 !important;
    letter-spacing: -0.015em;
    color: #ffffff !important;
    margin: 0 !important;
}

.banniere-info-bulle {
    width: 20px;
    height: 20px;
    border-radius: 6px;
}

.banniere-sep-vertical {
    height: 24px;
    width: 1px;
    background: rgba(255, 255, 255, 0.22);
    margin: 0 0.15rem;
}

/* 3. UNIFORMISATION STRICTE DE TOUS LES BOUTONS SUR TOUTES LES INTERFACES */
.btn,
button.btn,
a.btn,
.btn.rounded-pill,
button.rounded-pill,
a.rounded-pill,
.btn-aurel,
.btn-lumiere,
.btn-verre-clair,
.btn-soft,
.btn-soft-danger,
.btn-quitter,
.banniere-btn-menu {
    border-radius: var(--aurel-btn-radius) !important;
    font-weight: 600 !important;
    letter-spacing: -0.005em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    white-space: nowrap;
    line-height: 1.2;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.btn-sm,
.btn-sm.rounded-pill,
.btn-action-table,
.lang-btn,
.filtre-pilule {
    border-radius: var(--aurel-btn-radius-sm) !important;
}

/* Boutons standards hors bandeau : hauteur et padding cohérents */
.btn:not(.btn-sm):not(.btn-lg),
.btn-aurel,
.btn-soft:not(.py-1):not(.btn-sm),
.btn-soft-danger:not(.py-1):not(.btn-sm) {
    min-height: 38px;
    padding: 0.48rem 0.95rem;
    font-size: 0.84rem;
}

.btn-sm,
.btn-soft.py-1,
.btn-soft-danger.py-1 {
    min-height: 32px;
    padding: 0.32rem 0.72rem !important;
    font-size: 0.79rem !important;
}

.btn-lg {
    min-height: 44px;
    padding: 0.65rem 1.25rem;
    font-size: 0.94rem;
    border-radius: var(--aurel-btn-radius) !important;
}

/* Liaison directe des boutons principaux au Thème actif */
.btn-primary,
.btn-aurel {
    background: var(--theme-primary, #1f6f54) !important;
    border: 1px solid var(--theme-primary, #1f6f54) !important;
    color: #ffffff !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-aurel:hover,
.btn-aurel:focus {
    background: var(--theme-primary-hover, #175640) !important;
    border-color: var(--theme-primary-hover, #175640) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.14);
}

.btn-outline-primary {
    background: #ffffff !important;
    border: 1px solid var(--theme-primary, #1f6f54) !important;
    color: var(--theme-primary, #1f6f54) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background: var(--theme-soft, #eaf4f0) !important;
    border-color: var(--theme-primary-hover, #175640) !important;
    color: var(--theme-primary-hover, #175640) !important;
}

.btn-outline-secondary,
.btn-light,
.btn-soft {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #1e293b !important;
}

.btn-outline-secondary:hover,
.btn-light:hover,
.btn-soft:hover {
    background: #eef2f7 !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
}

.btn-outline-danger,
.btn-soft-danger {
    background: #fff5f5 !important;
    border: 1px solid #fecaca !important;
    color: #b91c1c !important;
}

.btn-outline-danger:hover,
.btn-soft-danger:hover {
    background: #fee2e2 !important;
    border-color: #fca5a5 !important;
    color: #991b1b !important;
}

.btn-danger {
    background: #dc2626 !important;
    border: 1px solid #dc2626 !important;
    color: #ffffff !important;
}

.btn-danger:hover {
    background: #b91c1c !important;
    border-color: #b91c1c !important;
    color: #ffffff !important;
}

/* Boutons d'action dans les tableaux (icône seule 32px OU icône + libellé auto-ajusté) */
.btn-action-table {
    min-width: 32px !important;
    width: auto !important;
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 0.52rem !important;
    font-size: 0.76rem !important;
    font-weight: 600 !important;
    border-radius: var(--aurel-btn-radius-sm) !important;
    border: 1px solid #d5dfe9 !important;
    background: #ffffff !important;
    color: #334155 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.3rem !important;
    white-space: nowrap !important;
}

.btn-action-table:hover {
    background: var(--theme-soft, #eef5f2) !important;
    border-color: var(--theme-primary, #1f6f54) !important;
    color: var(--theme-primary, #1f6f54) !important;
}

.btn-action-table.action-danger:hover {
    background: #fef2f2 !important;
    border-color: #fca5a5 !important;
    color: #dc2626 !important;
}

.table tbody td .btn-soft,
.table tbody td .btn-soft-danger,
td.cell-actions .btn,
td.cell-actions .btn-soft,
td.cell-actions .btn-soft-danger {
    min-height: 30px !important;
    height: 30px !important;
    padding: 0 0.46rem !important;
    font-size: 0.74rem !important;
    border-radius: var(--aurel-btn-radius-sm) !important;
}

.carte-app > .table-responsive,
.carte-app {
    max-width: 100%;
}

.table td,
.table th {
    padding: 0.62rem 0.56rem !important;
}

td.cell-actions {
    white-space: nowrap;
}

td.cell-actions > div {
    flex-wrap: nowrap !important;
    gap: 0.35rem !important;
}

/* Harmonisation TOTALE de TOUS les boutons placés dans le Bandeau Supérieur */
#siges-sticky-banner .banniere-actions {
    display: flex;
    align-items: center;
    gap: 0.42rem !important;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

#siges-sticky-banner .banniere-actions-page {
    display: flex;
    align-items: center;
    gap: 0.38rem !important;
    flex-wrap: nowrap !important;
}

#siges-sticky-banner .banniere-outils-systeme {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem !important;
}

#siges-sticky-banner .btn-lumiere,
#siges-sticky-banner .banniere-actions-page .btn-aurel,
#siges-sticky-banner .banniere-actions-page .btn-primary {
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 0.78rem !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    border-radius: var(--aurel-btn-radius) !important;
    background: #ffffff !important;
    border: 1px solid #ffffff !important;
    color: var(--theme-banner-start, #12362b) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14) !important;
}

#siges-sticky-banner .btn-lumiere:hover,
#siges-sticky-banner .banniere-actions-page .btn-aurel:hover,
#siges-sticky-banner .banniere-actions-page .btn-primary:hover {
    background: #f8fafc !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

#siges-sticky-banner .btn-verre-clair,
#siges-sticky-banner .banniere-actions-page .btn-soft,
#siges-sticky-banner .banniere-actions-page .btn-outline-secondary,
#siges-sticky-banner .banniere-actions-page .btn-light {
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 0.7rem !important;
    font-size: 0.77rem !important;
    font-weight: 600 !important;
    border-radius: var(--aurel-btn-radius) !important;
    background: rgba(255, 255, 255, 0.14) !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

#siges-sticky-banner .btn-verre-clair:hover,
#siges-sticky-banner .banniere-actions-page .btn-soft:hover,
#siges-sticky-banner .banniere-actions-page .btn-outline-secondary:hover,
#siges-sticky-banner .banniere-actions-page .btn-light:hover {
    background: rgba(255, 255, 255, 0.24) !important;
    border-color: rgba(255, 255, 255, 0.44) !important;
    color: #ffffff !important;
}

#siges-sticky-banner .banniere-actions-page .btn-soft-danger,
#siges-sticky-banner .banniere-actions-page .btn-danger {
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 0.8rem !important;
    font-size: 0.79rem !important;
    font-weight: 600 !important;
    border-radius: var(--aurel-btn-radius) !important;
    background: rgba(239, 68, 68, 0.22) !important;
    border: 1px solid rgba(254, 202, 202, 0.45) !important;
    color: #ffffff !important;
}

#siges-sticky-banner .banniere-actions-page .btn-soft-danger:hover,
#siges-sticky-banner .banniere-actions-page .btn-danger:hover {
    background: rgba(220, 38, 38, 0.42) !important;
    border-color: rgba(254, 202, 202, 0.75) !important;
}

#siges-sticky-banner .btn-icone-entete {
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 !important;
    border-radius: var(--aurel-btn-radius) !important;
}

#siges-sticky-banner .btn-initiales-entete {
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 0.68rem !important;
    border-radius: var(--aurel-btn-radius) !important;
    font-weight: 700 !important;
}

#siges-sticky-banner .btn-imprimer-entete {
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 0.84rem !important;
    border-radius: var(--aurel-btn-radius) !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.36) !important;
    font-weight: 700 !important;
}

/* Contrôles segmentés unifiés (Switch Mode Notes, Filtres Journal, Switch Langue) */
.switch-mode-notes,
.filtres-journal,
.lang-switch {
    border-radius: var(--aurel-btn-radius) !important;
    padding: 3px !important;
}

.switch-mode-notes a,
.switch-mode-notes button,
a.filtre-pilule,
button.filtre-pilule,
.filtre-pilule {
    border-radius: var(--aurel-btn-radius-sm) !important;
}

/* 4. FORMULAIRES, CHAMPS DE SAISIE, TABLEAUX & MODALES UNIFIÉS */
.form-control,
.form-select {
    border-radius: var(--aurel-input-radius);
    border-color: #cbd5e1;
    color: #0f172a;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--theme-primary, #1f6f54);
    box-shadow: 0 0 0 3px rgba(31, 111, 84, 0.14);
}

.form-control-sm,
.form-select-sm {
    border-radius: var(--aurel-btn-radius-sm);
}

.table thead th {
    background: #f4f7fb;
    color: #334155;
    font-size: 0.73rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 1px solid #dde6f0;
    padding-top: 0.68rem;
    padding-bottom: 0.68rem;
}

.table tbody tr {
    transition: background-color 0.12s ease;
}

.table tbody tr:hover {
    background-color: #f8fbff;
}

.modal-content {
    border-radius: 16px !important;
    border: 1px solid #d8e2ee !important;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.22) !important;
}

.modal-header {
    border-bottom: 1px solid #e6edf5;
    padding: 1rem 1.25rem;
}

.modal-footer {
    border-top: 1px solid #e6edf5;
    padding: 0.85rem 1.25rem;
}

/* 5. ESPACES ADAPTÉS AUX RÔLES D'UTILISATEURS (DASHBOARD & VUES MÉTIERS) */
.carte-espace-role {
    background: #ffffff;
    border: 1px solid #d5e1ee;
    border-left: 4px solid var(--theme-primary, #1f6f54);
    border-radius: var(--aurel-card-radius);
    padding: 1rem 1.2rem;
    box-shadow: var(--aurel-surface-shadow);
}

.carte-espace-role.ton-indigo {
    border-left-color: #3730a3;
}

.carte-espace-role.ton-amber {
    border-left-color: #b45309;
}

.carte-espace-role.ton-slate {
    border-left-color: #475569;
}

.carte-espace-role-corps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.25rem;
    flex-wrap: wrap;
}

.espace-role-icone {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: var(--theme-soft, #eaf4f0);
    color: var(--theme-primary, #1f6f54);
    display: grid;
    place-items: center;
}

.badge-profil-role {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.58rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    background: var(--theme-soft, #eaf4f0);
    color: var(--theme-primary, #1f6f54);
    border: 1px solid rgba(31, 111, 84, 0.22);
}

.badge-lecture-seule {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0.18rem 0.55rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
}

.badge-sequence-courante {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.56rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.espace-role-titre {
    font-size: 1.02rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.espace-role-mission {
    font-size: 0.82rem;
    color: #475569;
    line-height: 1.4;
}

.espace-role-raccourcis {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.carte-cours-enseignant {
    height: 100%;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    border: 1px solid #dbe4ef;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.carte-cours-enseignant:hover {
    border-color: var(--theme-primary, #1f6f54);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
    transform: translateY(-1px);
}

.ligne-classe-affectee {
    background-color: rgba(236, 253, 245, 0.45);
}

/* 6. GARDE-FOUS GÉOMÉTRIQUES GLOBAUX ANTI-DÉBORDEMENT & ANTI-SUPERPOSITION */
.panneau-principal,
#siges-main {
    min-width: 0;
    max-width: 100%;
    overflow-x: clip;
}

.stat-carte {
    min-width: 0;
    overflow: hidden;
}

.stat-corps {
    min-width: 0;
    flex: 1 1 0%;
}

.stat-ligne-valeur {
    display: flex;
    flex-wrap: wrap !important;
    align-items: baseline;
    gap: 0.15rem 0.45rem !important;
    min-width: 0;
}

.stat-libelle,
.stat-detail {
    max-width: 100%;
    white-space: normal;
    line-height: 1.25;
    overflow-wrap: break-word;
    word-break: break-word;
}

.sidebar-nom-ecole {
    font-size: 0.78rem;
    line-height: 1.22;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: break-word;
    word-break: break-word;
}

.carte-app {
    min-width: 0;
    max-width: 100%;
}

.carte-app > .table-responsive,
.table-responsive {
    max-width: 100%;
    overflow-x: auto;
}

#table-notes-par-eleve th,
#table-notes-par-eleve td {
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-carte-profil {
    min-width: 0;
    overflow: hidden;
}

.sidebar-carte-profil .min-w-0 > div,
.sidebar-carte-profil .min-w-0 > span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn,
button.btn,
a.btn,
.btn-aurel,
.btn-lumiere,
.btn-verre-clair,
.btn-soft,
.btn-soft-danger {
    max-width: 100%;
}

.btn.w-100 > span,
button.w-100 > span,
a.btn.w-100 > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

#table-notes-par-eleve th:nth-child(2),
#table-notes-par-eleve td.col-eleve-note {
    min-width: 220px;
    max-width: 300px;
}

.cellule-eleve-une-ligne {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.cellule-eleve-une-ligne .nom-eleve-une-ligne {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cellule-eleve-une-ligne .meta-eleve-inline {
    min-width: 0;
    flex: 0 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.js-btn-wm-preset {
    font-size: 0.71rem !important;
    padding: 0.22rem 0.5rem !important;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 1280px) {
    .banniere-btn-menu {
        width: 38px !important;
        min-width: 38px !important;
        padding: 0 !important;
    }
    .banniere-btn-menu > span {
        display: none !important;
    }
    #siges-sticky-banner .btn-verre-clair,
    #siges-sticky-banner .banniere-actions-page .btn-soft,
    #siges-sticky-banner .banniere-actions-page .btn-outline-secondary,
    #siges-sticky-banner .banniere-actions-page .btn-light,
    #siges-sticky-banner .btn-lumiere,
    #siges-sticky-banner .banniere-actions-page .btn-aurel,
    #siges-sticky-banner .banniere-actions-page .btn-primary,
    #siges-sticky-banner .btn-imprimer-entete {
        padding: 0 0.62rem !important;
        font-size: 0.75rem !important;
        gap: 0.32rem !important;
    }
    #siges-sticky-banner .form-select {
        width: auto !important;
        height: 36px !important;
        padding: 0 1.75rem 0 0.55rem !important;
        font-size: 0.75rem !important;
    }
}

/* Adaptation fluide du bandeau figé sur fenêtres divisées / écrans intermédiaires (< 1360px) */
@media (max-width: 1359.98px) {
    .banniere-interface.banniere-sticky,
    #siges-sticky-banner {
        height: auto !important;
        min-height: 76px !important;
        padding: 0.65rem 1rem !important;
    }

    #siges-sticky-banner .banniere-interface-corps {
        flex-wrap: wrap !important;
        row-gap: 0.48rem !important;
        column-gap: 0.75rem !important;
    }

    #siges-sticky-banner .banniere-zone-identite {
        flex: 1 1 250px !important;
        min-width: 0 !important;
    }

    #siges-sticky-banner .banniere-actions {
        flex: 0 1 auto !important;
        flex-wrap: wrap !important;
        justify-content: flex-end;
        max-width: 100% !important;
        margin-left: auto;
    }

    #siges-sticky-banner .banniere-actions-page {
        flex-wrap: wrap !important;
        max-width: 100% !important;
    }
}

@media (max-width: 991.98px) {
    .banniere-interface.banniere-sticky,
    #siges-sticky-banner {
        padding: 0.62rem 0.9rem !important;
        min-height: 64px !important;
    }

    .banniere-titre {
        font-size: 1.02rem !important;
    }

    #siges-sticky-banner .btn-lumiere,
    #siges-sticky-banner .btn-verre-clair,
    #siges-sticky-banner .banniere-actions-page .btn,
    #siges-sticky-banner .banniere-actions-page .btn-soft,
    #siges-sticky-banner .btn-icone-entete,
    #siges-sticky-banner .btn-initiales-entete,
    .banniere-btn-menu {
        height: 35px !important;
        min-height: 35px !important;
    }
}





/* ---------------------------------------------------------------------------
   Rubriques du menu latéral — séparateurs discrets pour guider la navigation
   --------------------------------------------------------------------------- */
.nav-rubrique {
    margin: 14px 0 4px;
    padding: 0 10px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: rgba(203, 213, 225, 0.62);
    user-select: none;
}
.nav-rubrique:first-of-type { margin-top: 6px; }
.sidebar-repliee .nav-rubrique { display: none; }

@media (max-width: 991.98px) {
    .nav-rubrique { color: rgba(203, 213, 225, 0.75); }
}
