/* =========================================================
   ÉCOLE.PRO
   DESIGN PRINCIPAL
   ========================================================= */

* {
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;

    --sidebar: #0b1630;
    --sidebar-2: #101f42;

    --background: #f5f7fb;
    --white: #ffffff;

    --text: #172033;
    --muted: #7a8699;

    --border: #e8edf5;

    --blue: #2563eb;
    --green: #16a36a;
    --purple: #7c3aed;
    --orange: #f59e0b;
    --red: #ef4444;

    --sidebar-width: 260px;
    --topbar-height: 78px;

    --radius: 14px;

    --shadow:
        0 4px 18px rgba(24, 39, 75, 0.06);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;

    font-family:
        "Segoe UI",
        Arial,
        Helvetica,
        sans-serif;

    background: var(--background);
    color: var(--text);
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.sidebar {
    position: fixed;

    top: 0;
    bottom: 0;
    left: 0;

    width: var(--sidebar-width);

    background:
        linear-gradient(
            180deg,
            var(--sidebar) 0%,
            var(--sidebar-2) 100%
        );

    color: white;

    z-index: 1000;

    overflow-y: auto;
    overflow-x: hidden;

    scrollbar-width: thin;
    scrollbar-color:
        rgba(255,255,255,.18)
        transparent;

    box-shadow:
        5px 0 25px rgba(7, 20, 48, .12);
}


/* =========================================================
   LOGO
   ========================================================= */

.sidebar-brand {
    height: 82px;

    display: flex;
    align-items: center;

    gap: 12px;

    padding:
        15px
        19px;

    border-bottom:
        1px solid rgba(255,255,255,.07);
}

.brand-icon {
    width: 43px;
    height: 43px;

    flex: 0 0 43px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    font-size: 22px;

    background:
        linear-gradient(
            135deg,
            #3b82f6,
            #2563eb
        );

    box-shadow:
        0 7px 18px rgba(37,99,235,.35);
}

.brand-text {
    min-width: 0;
}

.brand-text strong {
    display: block;

    font-size: 21px;
    font-weight: 800;

    letter-spacing: -.3px;
}

.brand-text span {
    display: block;

    margin-top: 3px;

    color: #9fb0ce;

    font-size: 10.5px;

    white-space: nowrap;
}


/* =========================================================
   ÉCOLE DANS SIDEBAR
   ========================================================= */

.sidebar-school {
    margin:
        17px
        14px
        8px;

    padding:
        11px
        12px;

    display: flex;
    align-items: center;

    gap: 10px;

    background:
        rgba(255,255,255,.055);

    border:
        1px solid rgba(255,255,255,.06);

    border-radius: 11px;
}

.sidebar-school-icon {
    width: 32px;
    height: 32px;

    flex: 0 0 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background:
        rgba(59,130,246,.16);

    font-size: 16px;
}

.sidebar-school div {
    min-width: 0;
}

.sidebar-school small {
    display: block;

    margin-bottom: 3px;

    color: #7f92b3;

    font-size: 8px;
    font-weight: 700;

    letter-spacing: 1px;
}

.sidebar-school strong {
    display: block;

    color: #e9effa;

    font-size: 11px;
    font-weight: 600;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* =========================================================
   MENU
   ========================================================= */

.menu {
    padding:
        8px
        13px
        25px;
}

.menu-label {
    padding:
        10px
        10px
        7px;

    color: #637697;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 1.25px;
}

.menu-label-second {
    margin-top: 11px;
}

.menu a {
    position: relative;

    min-height: 42px;

    display: flex;
    align-items: center;

    gap: 12px;

    margin: 3px 0;

    padding:
        10px
        13px;

    border-radius: 9px;

    color: #b9c5d9;

    text-decoration: none;

    font-size: 13.5px;
    font-weight: 500;

    transition:
        background .18s ease,
        color .18s ease,
        transform .18s ease;
}

.menu a:hover {
    color: white;

    background:
        rgba(255,255,255,.065);

    transform:
        translateX(2px);
}

.menu a.active {
    color: white;

    background:
        linear-gradient(
            90deg,
            #2563eb,
            #3478ef
        );

    box-shadow:
        0 7px 18px rgba(37,99,235,.28);
}

.menu a.active::before {
    content: "";

    position: absolute;

    left: -13px;
    top: 9px;

    width: 3px;
    height: 24px;

    background: #60a5fa;

    border-radius:
        0
        4px
        4px
        0;
}

.menu-icon {
    width: 21px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 21px;

    font-size: 17px;
}

.menu .logout-link {
    margin-top: 7px;

    color: #f5a6ac;
}

.menu .logout-link:hover {
    color: #ffffff;

    background:
        rgba(239,68,68,.16);
}


/* =========================================================
   APPLICATION
   ========================================================= */

.app-layout {
    min-height: 100vh;

    margin-left:
        var(--sidebar-width);
}


/* =========================================================
   TOPBAR
   ========================================================= */

.topbar {
    position: sticky;

    top: 0;

    z-index: 800;

    height:
        var(--topbar-height);

    padding:
        0
        28px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;

    background:
        rgba(255,255,255,.97);

    border-bottom:
        1px solid #edf0f5;

    box-shadow:
        0 2px 10px rgba(15,23,42,.025);
}


/* =========================================================
   RECHERCHE TOPBAR
   ========================================================= */

.topbar-search {
    width:
        min(430px, 45vw);

    height: 42px;

    display: flex;
    align-items: center;

    gap: 10px;

    padding:
        0
        14px;

    background: #f6f8fc;

    border:
        1px solid #edf0f5;

    border-radius: 10px;
}

.search-icon {
    color: #8794a8;

    font-size: 21px;
}

.topbar-search input {
    width: 100%;

    border: 0;
    outline: 0;

    background: transparent;

    color: #334155;

    font-size: 13px;
}

.topbar-search input::placeholder {
    color: #9ba7b8;
}


/* =========================================================
   TOPBAR DROITE
   ========================================================= */

.topbar-right {
    display: flex;
    align-items: center;

    gap: 17px;
}

.topbar-year {
    display: flex;
    align-items: center;

    gap: 8px;

    padding-right: 17px;

    border-right:
        1px solid #edf0f5;
}

.topbar-year > span {
    font-size: 17px;
}

.topbar-year small {
    display: block;

    color: #9aa5b5;

    font-size: 9px;
}

.topbar-year strong {
    display: block;

    margin-top: 2px;

    color: #334155;

    font-size: 11px;
}


/* =========================================================
   NOTIFICATION
   ========================================================= */

.notification-button {
    position: relative;

    width: 39px;
    height: 39px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;

    border-radius: 50%;

    background: #f6f8fc;

    color: #536176;

    cursor: pointer;

    font-size: 20px;
}

.notification-dot {
    position: absolute;

    right: 6px;
    top: 5px;

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #ef4444;

    border:
        2px solid white;
}


/* =========================================================
   PROFIL ADMIN
   ========================================================= */

.admin-profile {
    display: flex;
    align-items: center;

    gap: 10px;
}

.admin-avatar {
    width: 39px;
    height: 39px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #1e40af
        );

    color: white;

    font-size: 14px;
    font-weight: 800;

    box-shadow:
        0 4px 12px rgba(37,99,235,.22);
}

.admin-info {
    min-width: 100px;
}

.admin-info strong {
    display: block;

    max-width: 145px;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: #263246;

    font-size: 12px;
}

.admin-info span {
    display: block;

    margin-top: 2px;

    color: #9aa5b5;

    font-size: 9.5px;
}

.profile-arrow {
    color: #94a3b8;

    font-size: 12px;
}


/* =========================================================
   CONTENU
   ========================================================= */

.main {
    min-height:
        calc(
            100vh - var(--topbar-height)
        );

    padding:
        27px
        30px
        45px;
}

.page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 22px;
}

.page-heading h1 {
    margin: 0;

    color: #1a2538;

    font-size: 24px;
    font-weight: 750;

    letter-spacing: -.4px;
}

.page-heading p {
    margin:
        5px
        0
        0;

    color: #9aa5b5;

    font-size: 11px;
}


/* =========================================================
   ÉLÉMENTS GÉNÉRAUX
   ========================================================= */

.box,
.dashboard-box,
.eleves-form,
.eleves-list,
.classes-box,
.matieres-box,
.bulletins-box,
.resultats-selection,
.fiche-selection {
    background: white;

    border:
        1px solid var(--border);

    border-radius:
        var(--radius);

    box-shadow:
        var(--shadow);
}

.box {
    padding: 22px;

    margin-bottom: 20px;
}


/* =========================================================
   DASHBOARD : BANDEAU ANNÉE
   ========================================================= */

.dashboard-year {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 18px;

    padding:
        13px
        17px;

    background: #ffffff;

    border:
        1px solid var(--border);

    border-radius: 11px;

    box-shadow:
        var(--shadow);
}

.dashboard-year-left {
    display: flex;
    align-items: center;

    gap: 10px;
}

.dashboard-year-icon {
    width: 35px;
    height: 35px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: #eff6ff;

    color: #2563eb;
}

.dashboard-year span {
    color: #8995a7;

    font-size: 11px;
}

.dashboard-year strong {
    color: #334155;

    font-size: 12px;
}


/* =========================================================
   DASHBOARD : CARTES
   ========================================================= */

.dashboard-cards {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 17px;

    margin-bottom: 22px;
}

.dashboard-card {
    position: relative;

    min-height: 125px;

    padding:
        18px
        18px
        16px;

    display: block;

    overflow: hidden;

    background: white;

    border:
        1px solid var(--border);

    border-radius: 13px;

    box-shadow:
        var(--shadow);

    color: var(--text);

    text-decoration: none;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.dashboard-card:hover {
    transform:
        translateY(-3px);

    box-shadow:
        0 10px 24px rgba(24,39,75,.10);
}

.dashboard-card::after {
    content: "";

    position: absolute;

    right: -18px;
    top: -20px;

    width: 80px;
    height: 80px;

    border-radius: 50%;

    background:
        rgba(37,99,235,.05);
}

.card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 12px;
}

.card-icon-box {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    font-size: 18px;
}

.dashboard-card .card-title {
    display: block;

    margin-bottom: 7px;

    color: #8995a7;

    font-size: 11px;
    font-weight: 600;
}

.dashboard-card strong {
    display: block;

    color: #1d2939;

    font-size: 25px;
    font-weight: 750;

    line-height: 1.15;
}

.card-footer {
    margin-top: 13px;

    color: #9aa5b5;

    font-size: 10px;
}


/* COULEURS DES CARTES */

.dashboard-card.blue {
    border-top:
        3px solid #3b82f6;
}

.dashboard-card.blue .card-icon-box {
    color: #2563eb;

    background: #eff6ff;
}

.dashboard-card.green {
    border-top:
        3px solid #22a06b;
}

.dashboard-card.green .card-icon-box {
    color: #16965e;

    background: #ecfdf3;
}

.dashboard-card.purple {
    border-top:
        3px solid #8b5cf6;
}

.dashboard-card.purple .card-icon-box {
    color: #7c3aed;

    background: #f5f3ff;
}

.dashboard-card.orange {
    border-top:
        3px solid #f59e0b;
}

.dashboard-card.orange .card-icon-box {
    color: #d97706;

    background: #fff7ed;
}

.dashboard-card.red {
    border-top:
        3px solid #ef4444;
}

.dashboard-card.red .card-icon-box {
    color: #dc2626;

    background: #fff1f2;
}

.dashboard-card.cyan {
    border-top:
        3px solid #06b6d4;
}

.dashboard-card.cyan .card-icon-box {
    color: #0891b2;

    background: #ecfeff;
}


/* =========================================================
   DASHBOARD : CONTENU BAS
   ========================================================= */

.dashboard-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.6fr)
        minmax(280px, .8fr);

    gap: 18px;

    margin-bottom: 20px;
}

.dashboard-panel {
    background: white;

    border:
        1px solid var(--border);

    border-radius: 13px;

    box-shadow:
        var(--shadow);

    padding: 20px;
}

.dashboard-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 18px;
}

.dashboard-panel-header h2 {
    margin: 0;

    color: #273449;

    font-size: 14px;
    font-weight: 700;
}

.dashboard-panel-header span {
    color: #9aa5b5;

    font-size: 10px;
}


/* =========================================================
   DOCUMENTS
   ========================================================= */

.dashboard-actions {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 12px;
}

.dashboard-actions a {
    min-height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding:
        11px
        14px;

    border-radius: 9px;

    background: #f5f8ff;

    border:
        1px solid #e1eaff;

    color: #2563eb;

    text-decoration: none;

    text-align: center;

    font-size: 11px;
    font-weight: 650;

    transition: .2s;
}

.dashboard-actions a:hover {
    color: white;

    background: #2563eb;

    border-color: #2563eb;
}


/* =========================================================
   BIENVENUE
   ========================================================= */

.dashboard-welcome {
    position: relative;

    overflow: hidden;

    padding:
        22px
        24px;

    background:
        linear-gradient(
            135deg,
            #173b83,
            #2563eb
        );

    border-radius: 13px;

    color: white;

    box-shadow:
        0 8px 24px rgba(37,99,235,.18);
}

.dashboard-welcome::after {
    content: "";

    position: absolute;

    right: -45px;
    top: -65px;

    width: 180px;
    height: 180px;

    border-radius: 50%;

    background:
        rgba(255,255,255,.08);
}

.dashboard-welcome h2 {
    position: relative;

    z-index: 1;

    margin:
        0
        0
        7px;

    color: white;

    font-size: 17px;
}

.dashboard-welcome p {
    position: relative;

    z-index: 1;

    max-width: 750px;

    margin: 0;

    color:
        rgba(255,255,255,.78);

    font-size: 11px;

    line-height: 1.6;
}


/* =========================================================
   FORMULAIRES GÉNÉRAUX
   ========================================================= */

form {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 13px;
}

input,
select,
textarea {
    width: 100%;

    min-height: 42px;

    padding:
        10px
        12px;

    background: #ffffff;

    border:
        1px solid #dfe5ee;

    border-radius: 9px;

    outline: none;

    color: #334155;

    font-size: 12px;

    transition:
        border-color .18s,
        box-shadow .18s;
}

textarea {
    min-height: 100px;

    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #3b82f6;

    box-shadow:
        0 0 0 3px rgba(59,130,246,.10);
}

button {
    min-height: 42px;

    padding:
        10px
        16px;

    border: 0;

    border-radius: 9px;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #1d4ed8
        );

    color: white;

    cursor: pointer;

    font-size: 12px;
    font-weight: 650;
}

button:hover {
    filter: brightness(.98);
}


/* =========================================================
   TABLEAUX
   ========================================================= */

table {
    width: 100%;

    border-collapse: collapse;

    margin-top: 15px;

    background: white;
}

th,
td {
    padding:
        12px
        11px;

    border-bottom:
        1px solid #edf0f5;

    text-align: left;

    font-size: 11px;
}

th {
    background: #f8f9fc;

    color: #667085;

    font-size: 10px;
    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: .25px;
}

td {
    color: #475467;
}

tbody tr:hover td {
    background: #fafcff;
}


/* =========================================================
   BOUTONS ACTION
   ========================================================= */

.danger {
    display: inline-flex;

    padding:
        7px
        10px;

    border-radius: 7px;

    background: #fff1f2;

    color: #dc2626;

    text-decoration: none;

    font-size: 10px;
    font-weight: 650;
}

.danger:hover {
    background: #dc2626;

    color: white;
}


/* =========================================================
   MESSAGES
   ========================================================= */

.notice {
    padding:
        12px
        14px;

    margin-bottom: 15px;

    border:
        1px solid #dbeafe;

    border-radius: 9px;

    background: #eff6ff;

    color: #1e40af;

    font-size: 12px;
}

.error {
    color: #dc2626;
}

.ok {
    color: #15803d;
}


/* =========================================================
   PAGE ÉLÈVES
   ========================================================= */

.eleves-form,
.eleves-list {
    padding: 22px;

    margin-bottom: 20px;
}

.eleves-form h2,
.eleves-list h2 {
    margin:
        0
        0
        17px;

    color: #273449;

    font-size: 16px;
}

.eleves-form form {
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
}

.eleves-list {
    overflow-x: auto;
}

.eleves-list form {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 10px;
}

.eleves-list form input {
    flex: 1;

    min-width: 220px;
}

.eleves-list form button {
    width: auto;
}

.eleves-list form a {
    color: #667085;

    text-decoration: none;

    font-size: 11px;
}


/* =========================================================
   CLASSES
   ========================================================= */

.classes-box {
    padding: 22px;

    margin-bottom: 20px;

    overflow-x: auto;
}

.classes-box h2 {
    margin:
        0
        0
        17px;

    color: #273449;

    font-size: 16px;
}

.classes-form {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr))
        auto;

    gap: 12px;
}


/* =========================================================
   MATIÈRES
   ========================================================= */

.matieres-box {
    padding: 22px;

    margin-bottom: 20px;

    overflow-x: auto;
}

.matieres-box h2 {
    margin:
        0
        0
        17px;

    color: #273449;

    font-size: 16px;
}

.matieres-form {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(170px, 1fr)
        );

    gap: 12px;
}


/* =========================================================
   BULLETINS
   ========================================================= */

.bulletins-box {
    padding: 23px;

    margin-bottom: 20px;

    overflow-x: auto;
}

.bulletins-box h2 {
    margin:
        0
        0
        7px;

    color: #273449;

    font-size: 17px;
}

.bulletins-box p {
    color: #8b96a8;

    font-size: 11px;
}

.bulletins-box form {
    grid-template-columns:
        minmax(260px, 2fr)
        140px
        auto;
}


/* =========================================================
   RÉSULTATS
   ========================================================= */

.resultats-selection {
    padding: 23px;

    margin-bottom: 20px;
}

.resultats-selection h2 {
    margin:
        0
        0
        7px;

    color: #273449;

    font-size: 17px;
}

.resultats-selection p {
    color: #8b96a8;

    font-size: 11px;
}

.resultats-selection form {
    grid-template-columns:
        minmax(250px, 2fr)
        150px
        auto;
}


/* =========================================================
   FICHE / BULLETIN IMPRIMABLE
   ========================================================= */

.fiche-selection {
    padding: 22px;

    margin-bottom: 20px;
}

.fiche-selection form {
    grid-template-columns:
        2fr
        1fr
        auto;
}

.fiche-appreciation,
.resultats-paper {
    max-width: 1100px;

    margin:
        0
        auto
        35px;

    padding: 32px;

    background: white;

    border:
        1px solid #d7dce5;

    box-shadow:
        0 5px 20px rgba(15,23,42,.07);

    color: #111;
}

.fiche-entete {
    display: grid;

    grid-template-columns:
        1fr
        2fr;

    gap: 25px;

    margin-bottom: 22px;
}

.ecole-identite {
    text-align: center;

    line-height: 1.6;
}

.fiche-titre {
    text-align: center;
}

.identite-eleve {
    width: 100%;

    border-collapse: collapse;

    margin-bottom: 20px;
}

.identite-eleve td {
    border:
        1px solid #333;

    padding:
        8px
        10px;
}

.identite-eleve .label {
    width: 150px;

    background: #f5f5f5;

    font-weight: 700;
}

.table-appreciation,
.resultats-table {
    width: 100%;

    border-collapse: collapse;

    font-size: 12px;
}

.table-appreciation th,
.table-appreciation td,
.resultats-table th,
.resultats-table td {
    padding:
        7px
        6px;

    border:
        1px solid #333;
}

.table-appreciation th,
.resultats-table th {
    background: #f1f3f5;

    color: #111;

    text-align: center;
}

.centre {
    text-align: center;
}

.table-resultats {
    width: 60%;

    border-collapse: collapse;

    margin-top: 22px;
}

.table-resultats td {
    padding:
        8px
        10px;

    border:
        1px solid #333;
}

.appreciation-generale {
    min-height: 55px;

    margin-top: 22px;

    padding: 13px;

    border:
        1px solid #333;
}

.fiche-bas,
.resultats-footer {
    display: grid;

    grid-template-columns:
        1fr
        1fr;

    margin-top: 35px;
}

.signature {
    text-align: center;
}

.zone-signature {
    height: 80px;
}


/* =========================================================
   AUTHENTIFICATION
   ========================================================= */

.center {
    min-height: 100vh;

    display: grid;

    place-items: center;

    padding: 20px;

    background:
        linear-gradient(
            135deg,
            #f4f7fb,
            #eef4ff
        );
}

.auth {
    width:
        min(440px, 100%);

    padding: 30px;

    background: white;

    border:
        1px solid var(--border);

    border-radius: 16px;

    box-shadow:
        0 15px 45px rgba(24,39,75,.10);
}

.auth h1 {
    margin-top: 0;

    text-align: center;

    color: #1e3a8a;
}

.auth form {
    display: block;
}

.auth input,
.auth select,
.auth button {
    width: 100%;

    margin:
        6px
        0;
}

.auth a {
    display: block;

    margin-top: 14px;

    text-align: center;

    color: #2563eb;

    text-decoration: none;
}


/* =========================================================
   MOBILE BUTTON
   ========================================================= */

.mobile-menu-button {
    display: none;

    position: fixed;

    top: 14px;
    left: 14px;

    z-index: 1200;

    width: 43px;
    height: 43px;

    min-height: 43px;

    padding: 0;

    border-radius: 10px;

    background: #173b83;

    box-shadow:
        0 5px 15px rgba(15,23,42,.18);

    font-size: 20px;
}

.sidebar-overlay {
    display: none;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1180px) {

    .dashboard-cards {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 900px) {

    .topbar-year {
        display: none;
    }

    .eleves-form form {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .classes-form {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .dashboard-actions {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 768px) {

    :root {
        --topbar-height: 70px;
    }

    .mobile-menu-button {
        display: flex;

        align-items: center;
        justify-content: center;
    }

    .sidebar {
        width: 255px;

        transform:
            translateX(-105%);

        transition:
            transform .25s ease;
    }

    .sidebar.open {
        transform:
            translateX(0);
    }

    .sidebar-overlay {
        position: fixed;

        inset: 0;

        z-index: 900;

        background:
            rgba(15,23,42,.50);
    }

    .sidebar-overlay.show {
        display: block;
    }

    .app-layout {
        margin-left: 0;
    }

    .topbar {
        padding:
            0
            14px
            0
            70px;
    }

    .topbar-search {
        width: 100%;
    }

    .admin-info,
    .profile-arrow {
        display: none;
    }

    .main {
        padding:
            20px
            15px
            35px;
    }

    .page-heading h1 {
        font-size: 21px;
    }

    .eleves-form form,
    .classes-form,
    .bulletins-box form,
    .resultats-selection form,
    .fiche-selection form {
        grid-template-columns: 1fr;
    }

    .fiche-appreciation,
    .resultats-paper {
        overflow-x: auto;

        padding: 18px;
    }

    .table-appreciation,
    .resultats-table {
        min-width: 850px;
    }

}


@media (max-width: 520px) {

    .topbar {
        gap: 8px;
    }

    .notification-button {
        display: none;
    }

    .admin-avatar {
        width: 35px;
        height: 35px;
    }

    .dashboard-cards {
        grid-template-columns: 1fr;

        gap: 12px;
    }

    .dashboard-card {
        min-height: 115px;
    }

    .dashboard-actions {
        grid-template-columns: 1fr;
    }

    .eleves-form form {
        grid-template-columns: 1fr;
    }

    form {
        grid-template-columns: 1fr;
    }

    .page-heading {
        align-items: flex-start;

        flex-direction: column;
    }

}


/* =========================================================
   IMPRESSION
   ========================================================= */

@media print {

    body {
        background: white !important;
    }

    .sidebar,
    .topbar,
    .mobile-menu-button,
    .sidebar-overlay,
    .page-heading,
    .no-print,
    .print-hide {
        display: none !important;
    }

    .app-layout,
    .main {
        margin: 0 !important;

        padding: 0 !important;
    }

    .fiche-appreciation,
    .resultats-paper,
    .print-card {
        width: 100% !important;

        max-width: none !important;

        margin: 0 !important;

        padding: 8mm !important;

        border: 0 !important;

        box-shadow: none !important;
    }

    .table-appreciation th,
    .resultats-table th,
    .identite-eleve .label {
        background: #eeeeee !important;

        -webkit-print-color-adjust: exact;

        print-color-adjust: exact;
    }

}
/* =========================================================
   ÉCOLE.PRO — PAGE ÉLÈVES
   ========================================================= */

.students-page-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    margin-bottom:22px;
}

.students-page-header h2{
    margin:0 0 5px;
    font-size:24px;
    font-weight:800;
    color:#172033;
}

.students-page-header p{
    margin:0;
    color:#7b8497;
    font-size:14px;
}

.students-add-button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    min-height:44px;
    padding:0 18px;
    border-radius:10px;
    background:#2563eb;
    color:#fff;
    text-decoration:none;
    font-weight:700;
    font-size:14px;
    box-shadow:0 8px 18px rgba(37,99,235,.18);
}

.students-add-button:hover{
    background:#1d4ed8;
}

.students-add-button span{
    font-size:21px;
    line-height:1;
}

/* ANNÉE ACTIVE */

.students-year-bar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    padding:16px 20px;
    margin-bottom:20px;
    background:#fff;
    border:1px solid #e6eaf0;
    border-radius:14px;
    box-shadow:0 4px 14px rgba(15,23,42,.04);
}

.students-year-info{
    display:flex;
    align-items:center;
    gap:13px;
}

.students-year-icon{
    width:43px;
    height:43px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:11px;
    background:#eff6ff;
    font-size:20px;
}

.students-year-info small{
    display:block;
    margin-bottom:3px;
    color:#8b94a7;
    font-size:11px;
    font-weight:800;
    letter-spacing:.6px;
}

.students-year-info strong{
    color:#172033;
    font-size:15px;
}

.students-count{
    display:flex;
    align-items:baseline;
    gap:6px;
    padding:8px 13px;
    border-radius:9px;
    background:#f4f7fb;
}

.students-count strong{
    color:#2563eb;
    font-size:18px;
}

.students-count span{
    color:#737d90;
    font-size:13px;
}

/* MESSAGE ERREUR */

.students-alert{
    display:flex;
    gap:12px;
    align-items:flex-start;
    padding:14px 17px;
    margin-bottom:20px;
    background:#fff1f2;
    border:1px solid #fecdd3;
    border-radius:12px;
    color:#9f1239;
}

.students-alert p{
    margin:3px 0 0;
    font-size:13px;
}

/* FORMULAIRE */

.students-form-card,
.students-list-card{
    background:#fff;
    border:1px solid #e6eaf0;
    border-radius:15px;
    box-shadow:0 5px 18px rgba(15,23,42,.05);
}

.students-form-card{
    padding:22px;
    margin-bottom:24px;
    scroll-margin-top:100px;
}

.students-section-title{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:15px;
    padding-bottom:18px;
    margin-bottom:20px;
    border-bottom:1px solid #edf0f5;
}

.students-section-title > div{
    display:flex;
    align-items:center;
    gap:12px;
}

.students-section-icon{
    width:43px;
    height:43px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:11px;
    background:#eff6ff;
    font-size:20px;
}

.students-section-title h3{
    margin:0 0 4px;
    color:#172033;
    font-size:17px;
}

.students-section-title p{
    margin:0;
    color:#8a93a5;
    font-size:13px;
}

.students-cancel-top{
    color:#64748b;
    text-decoration:none;
    font-size:13px;
    font-weight:700;
}

.students-form{
    display:grid;
    grid-template-columns:repeat(3, minmax(0,1fr));
    gap:17px;
}

.students-field{
    display:flex;
    flex-direction:column;
    gap:7px;
}

.students-field-wide{
    grid-column:span 2;
}

.students-field label{
    color:#3f485a;
    font-size:13px;
    font-weight:700;
}

.students-field label span{
    color:#ef4444;
}

.students-field input,
.students-field select{
    width:100%;
    min-height:44px;
    padding:0 13px;
    border:1px solid #dfe4ec;
    border-radius:9px;
    background:#fff;
    color:#172033;
    font:inherit;
    font-size:14px;
    outline:none;
    transition:.2s;
}

.students-field input:focus,
.students-field select:focus{
    border-color:#2563eb;
    box-shadow:0 0 0 3px rgba(37,99,235,.10);
}

.students-form-actions{
    grid-column:1/-1;
    display:flex;
    justify-content:flex-end;
    gap:10px;
    padding-top:4px;
}

.students-save-button,
.students-secondary-button{
    min-height:43px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:0 18px;
    border-radius:9px;
    font-weight:700;
    font-size:13px;
    text-decoration:none;
    cursor:pointer;
}

.students-save-button{
    border:0;
    background:#2563eb;
    color:#fff;
}

.students-save-button:hover{
    background:#1d4ed8;
}

.students-secondary-button{
    background:#fff;
    color:#536074;
    border:1px solid #dfe4ec;
}

/* LISTE */

.students-list-card{
    overflow:hidden;
}

.students-list-heading{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:15px;
    padding:20px 22px;
    border-bottom:1px solid #edf0f5;
}

.students-list-heading h3{
    margin:0 0 4px;
    color:#172033;
    font-size:18px;
}

.students-list-heading p{
    margin:0;
    color:#8a93a5;
    font-size:13px;
}

.students-total-badge{
    padding:7px 11px;
    background:#eff6ff;
    color:#2563eb;
    border-radius:20px;
    font-size:12px;
    font-weight:800;
}

/* BARRE DE RECHERCHE */

.students-toolbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:15px;
    padding:16px 22px;
    background:#fbfcfe;
    border-bottom:1px solid #edf0f5;
}

.students-search{
    display:flex;
    align-items:center;
    gap:8px;
    flex:1;
}

.students-search-box{
    display:flex;
    align-items:center;
    gap:8px;
    width:min(390px,100%);
    min-height:42px;
    padding:0 12px;
    background:#fff;
    border:1px solid #dfe4ec;
    border-radius:9px;
}

.students-search-box span{
    color:#8b95a7;
    font-size:20px;
}

.students-search-box input{
    width:100%;
    border:0;
    outline:0;
    background:transparent;
    color:#172033;
    font-size:13px;
}

.students-search-button,
.students-reset-button,
.students-print-button{
    min-height:42px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:0 14px;
    border-radius:9px;
    font-size:12px;
    font-weight:700;
    cursor:pointer;
    text-decoration:none;
}

.students-search-button{
    border:0;
    background:#2563eb;
    color:#fff;
}

.students-reset-button{
    border:1px solid #dfe4ec;
    background:#fff;
    color:#64748b;
}

.students-print{
    display:flex;
    gap:8px;
    align-items:center;
}

.students-print select{
    min-height:42px;
    max-width:220px;
    padding:0 10px;
    border:1px solid #dfe4ec;
    border-radius:9px;
    background:#fff;
    color:#4a5568;
    outline:none;
}

.students-print-button{
    border:1px solid #dbe2eb;
    background:#fff;
    color:#334155;
}

.students-print-button:hover{
    background:#f5f7fa;
}

/* TABLEAU */

.students-table-wrapper{
    width:100%;
    overflow-x:auto;
}

.students-table{
    width:100%;
    border-collapse:collapse;
    min-width:950px;
}

.students-table thead{
    background:#f7f9fc;
}

.students-table th{
    padding:13px 14px;
    text-align:left;
    color:#6b7587;
    font-size:11px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.35px;
    border-bottom:1px solid #e8ecf2;
    white-space:nowrap;
}

.students-table td{
    padding:14px;
    color:#4b5565;
    font-size:13px;
    border-bottom:1px solid #eef1f5;
    vertical-align:middle;
}

.students-table tbody tr:hover{
    background:#fafcff;
}

.students-table tbody tr:last-child td{
    border-bottom:0;
}

.students-number{
    color:#929bad !important;
    font-weight:700;
}

.students-matricule{
    display:inline-block;
    padding:5px 8px;
    background:#f1f5f9;
    border-radius:6px;
    color:#334155;
    font-size:12px;
    font-weight:700;
}

.students-name{
    color:#172033;
}

.students-class{
    display:flex;
    flex-direction:column;
    gap:2px;
}

.students-class strong{
    color:#334155;
    font-size:13px;
}

.students-class span{
    color:#8b95a7;
    font-size:11px;
}

.students-gender{
    display:inline-flex;
    padding:5px 9px;
    border-radius:20px;
    font-size:11px;
    font-weight:700;
}

.students-gender.male{
    background:#eff6ff;
    color:#2563eb;
}

.students-gender.female{
    background:#fdf2f8;
    color:#be185d;
}

/* ACTIONS */

.students-actions{
    display:flex;
    gap:6px;
    align-items:center;
}

.students-action{
    width:33px;
    height:33px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:8px;
    text-decoration:none;
    border:1px solid #e1e6ee;
    background:#fff;
    font-size:14px;
    transition:.15s;
}

.students-action:hover{
    transform:translateY(-1px);
}

.students-action.edit:hover{
    background:#eff6ff;
    border-color:#bfdbfe;
}

.students-action.print:hover{
    background:#f0fdf4;
    border-color:#bbf7d0;
}

.students-action.delete:hover{
    background:#fff1f2;
    border-color:#fecdd3;
}

/* AUCUN ÉLÈVE */

.students-empty{
    text-align:center !important;
    padding:45px 20px !important;
}

.students-empty-icon{
    margin-bottom:8px;
    font-size:30px;
}

.students-empty strong,
.students-empty span{
    display:block;
}

.students-empty strong{
    color:#334155;
    margin-bottom:5px;
}

.students-empty span{
    color:#94a3b8;
    font-size:12px;
}

/* RESPONSIVE */

@media (max-width:1100px){

    .students-form{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .students-toolbar{
        align-items:stretch;
        flex-direction:column;
    }

    .students-print{
        width:100%;
    }

    .students-print select{
        flex:1;
        max-width:none;
    }
}

@media (max-width:700px){

    .students-page-header{
        align-items:stretch;
        flex-direction:column;
    }

    .students-add-button{
        width:100%;
    }

    .students-year-bar{
        align-items:flex-start;
    }

    .students-form{
        grid-template-columns:1fr;
    }

    .students-field-wide{
        grid-column:auto;
    }

    .students-form-actions{
        flex-direction:column-reverse;
    }

    .students-save-button,
    .students-secondary-button{
        width:100%;
    }

    .students-search{
        align-items:stretch;
        flex-direction:column;
    }

    .students-search-box{
        width:100%;
    }

    .students-search-button,
    .students-reset-button{
        width:100%;
    }

    .students-print{
        flex-direction:column;
    }

    .students-print select,
    .students-print-button{
        width:100%;
    }

    .students-list-heading{
        align-items:flex-start;
    }
}
/* =========================================================
   OUVERTURE / FERMETURE FORMULAIRE ÉLÈVE
   ========================================================= */

.students-form-card{
    display:none;
}

.students-form-card.is-visible{
    display:block;
    animation:studentFormOpen .22s ease;
}

.students-add-button{
    border:0;
    cursor:pointer;
    font-family:inherit;
}

@keyframes studentFormOpen{
    from{
        opacity:0;
        transform:translateY(-8px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }
}
/* =========================================================
   ÉCOLE.PRO — PAGE CLASSES
========================================================= */

.classes-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.classes-page-header h2 {
    margin: 0 0 5px;
    font-size: 25px;
    font-weight: 800;
    color: #172033;
}

.classes-page-header p {
    margin: 0;
    font-size: 14px;
    color: #718096;
}


/* BOUTON AJOUTER */

.classes-add-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    min-height: 44px;
    padding: 0 18px;

    border-radius: 9px;
    background: #2563eb;
    color: #ffffff;

    font-size: 14px;
    font-weight: 700;
    text-decoration: none;

    box-shadow: 0 5px 14px rgba(37, 99, 235, 0.20);

    transition:
        transform .18s ease,
        background .18s ease,
        box-shadow .18s ease;
}

.classes-add-button span {
    font-size: 21px;
    font-weight: 400;
    line-height: 1;
}

.classes-add-button:hover {
    background: #1d4ed8;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 7px 18px rgba(37, 99, 235, 0.25);
}


/* =========================================================
   ANNÉE ACTIVE
========================================================= */

.classes-year-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 17px 20px;
    margin-bottom: 20px;

    background: #ffffff;
    border: 1px solid #e8edf5;
    border-radius: 12px;

    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.classes-year-info {
    display: flex;
    align-items: center;
    gap: 13px;
}

.classes-year-icon {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 42px;

    border-radius: 10px;
    background: #eff6ff;

    font-size: 19px;
}

.classes-year-info small {
    display: block;
    margin-bottom: 3px;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: .7px;

    color: #94a3b8;
}

.classes-year-info strong {
    font-size: 15px;
    color: #1e293b;
}

.classes-count {
    display: flex;
    align-items: baseline;
    gap: 6px;

    padding: 8px 13px;

    background: #f8fafc;
    border: 1px solid #edf1f7;
    border-radius: 9px;
}

.classes-count strong {
    font-size: 18px;
    color: #2563eb;
}

.classes-count span {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}


/* =========================================================
   MESSAGE D'ERREUR
========================================================= */

.classes-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    margin-bottom: 20px;
    padding: 14px 16px;

    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 10px;

    color: #9a3412;
}

.classes-alert > span {
    font-size: 18px;
}

.classes-alert strong {
    display: block;
    margin-bottom: 2px;
    font-size: 13px;
}

.classes-alert p {
    margin: 0;
    font-size: 13px;
}


/* =========================================================
   FORMULAIRE
========================================================= */

.classes-form-card {
    display: none;

    margin-bottom: 22px;
    padding: 22px;

    background: #ffffff;
    border: 1px solid #e7ecf3;
    border-radius: 12px;

    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.04);
}

.classes-form-card.is-visible {
    display: block;
    animation: classesFormOpen .22s ease;
}

@keyframes classesFormOpen {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.classes-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding-bottom: 17px;
    margin-bottom: 20px;

    border-bottom: 1px solid #edf1f6;
}

.classes-section-title > div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.classes-section-icon {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 40px;

    border-radius: 10px;
    background: #eff6ff;

    font-size: 18px;
}

.classes-section-title h3 {
    margin: 0 0 3px;
    font-size: 16px;
    font-weight: 800;
    color: #1e293b;
}

.classes-section-title p {
    margin: 0;
    font-size: 12px;
    color: #94a3b8;
}

.classes-cancel-top {
    color: #64748b;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.classes-cancel-top:hover {
    color: #ef4444;
}


/* GRILLE DU FORMULAIRE */

.classes-modern-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px 20px;
}

.classes-field {
    min-width: 0;
}

.classes-field label {
    display: block;
    margin-bottom: 7px;

    font-size: 12px;
    font-weight: 700;
    color: #475569;
}

.classes-field label span {
    color: #ef4444;
}

.classes-field input,
.classes-field select {
    width: 100%;
    height: 43px;

    padding: 0 12px;

    border: 1px solid #dce3ec;
    border-radius: 8px;

    outline: none;
    background: #ffffff;

    color: #334155;
    font-family: inherit;
    font-size: 13px;

    transition:
        border-color .18s ease,
        box-shadow .18s ease;
}

.classes-field input:focus,
.classes-field select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .10);
}

.classes-field input[readonly] {
    background: #f8fafc;
    color: #64748b;
    cursor: not-allowed;
}


/* BOUTONS FORMULAIRE */

.classes-form-actions {
    grid-column: 1 / -1;

    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;

    padding-top: 4px;
}

.classes-save-button {
    min-height: 42px;
    padding: 0 18px;

    border: 0;
    border-radius: 8px;

    background: #2563eb;
    color: #ffffff;

    font-family: inherit;
    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background .18s ease,
        transform .18s ease;
}

.classes-save-button:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.classes-save-button:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
}

.classes-secondary-button {
    min-height: 42px;
    padding: 0 17px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #dce3ec;
    border-radius: 8px;

    background: #ffffff;
    color: #64748b;

    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}


/* =========================================================
   CARTE LISTE
========================================================= */

.classes-list-card {
    overflow: hidden;

    background: #ffffff;
    border: 1px solid #e7ecf3;
    border-radius: 12px;

    box-shadow: 0 3px 12px rgba(15, 23, 42, .04);
}

.classes-list-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 19px 20px;

    border-bottom: 1px solid #edf1f6;
}

.classes-list-heading h3 {
    margin: 0 0 4px;

    font-size: 16px;
    font-weight: 800;
    color: #1e293b;
}

.classes-list-heading p {
    margin: 0;
    font-size: 12px;
    color: #94a3b8;
}

.classes-total-badge {
    padding: 6px 10px;

    border-radius: 20px;
    background: #eff6ff;

    color: #2563eb;

    font-size: 11px;
    font-weight: 800;
}


/* =========================================================
   TABLEAU
========================================================= */

.classes-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.classes-modern-table {
    width: 100%;
    min-width: 900px;

    border-collapse: collapse;
}

.classes-modern-table th {
    padding: 12px 15px;

    background: #f8fafc;
    border-bottom: 1px solid #e9eef5;

    color: #64748b;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: .35px;
    text-transform: uppercase;

    text-align: left;
    white-space: nowrap;
}

.classes-modern-table td {
    padding: 14px 15px;

    border-bottom: 1px solid #f0f3f7;

    color: #475569;
    font-size: 12px;

    vertical-align: middle;
}

.classes-modern-table tbody tr:last-child td {
    border-bottom: 0;
}

.classes-modern-table tbody tr:hover {
    background: #fbfdff;
}

.classes-number {
    width: 50px;
    color: #94a3b8 !important;
    font-weight: 700;
}

.classes-name {
    color: #1e293b;
    font-size: 13px;
}


/* TYPE DE CLASSE */

.classes-type {
    display: inline-flex;
    align-items: center;

    padding: 5px 9px;

    border-radius: 20px;

    font-size: 10px;
    font-weight: 800;
}

.classes-type.primaire {
    background: #ecfdf5;
    color: #059669;
}

.classes-type.secondaire {
    background: #eff6ff;
    color: #2563eb;
}

.classes-type.lycee {
    background: #fff7ed;
    color: #ea580c;
}

.classes-type.universite {
    background: #f5f3ff;
    color: #7c3aed;
}


/* ANNÉE */

.classes-year-badge {
    display: inline-block;

    padding: 5px 8px;

    border-radius: 6px;
    background: #f1f5f9;

    color: #64748b;

    font-size: 10px;
    font-weight: 700;
}


/* ACTIONS */

.classes-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.classes-action {
    width: 31px;
    height: 31px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 7px;

    text-decoration: none;
    font-size: 13px;

    transition:
        transform .15s ease,
        background .15s ease;
}

.classes-action:hover {
    transform: translateY(-1px);
}

.classes-action.edit {
    background: #eff6ff;
}

.classes-action.edit:hover {
    background: #dbeafe;
}

.classes-action.print {
    background: #f0fdf4;
}

.classes-action.print:hover {
    background: #dcfce7;
}

.classes-action.delete {
    background: #fef2f2;
}

.classes-action.delete:hover {
    background: #fee2e2;
}


/* AUCUNE CLASSE */

.classes-empty {
    padding: 45px 20px !important;
    text-align: center;
}

.classes-empty div {
    margin-bottom: 8px;
    font-size: 30px;
}

.classes-empty strong {
    display: block;
    margin-bottom: 5px;

    color: #334155;
    font-size: 14px;
}

.classes-empty span {
    color: #94a3b8;
    font-size: 12px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {

    .classes-modern-form {
        grid-template-columns: 1fr;
    }

    .classes-form-actions {
        grid-column: 1;
    }
}


@media (max-width: 650px) 

    .classes-page-header {
        align-items: stretch;
        flex-direction: column;
    }

    .classes-add-button {
        width: 100%;
    }

    .classes-year-bar {
        align-items: flex-start;
        flex-direction: column;
    }

    .classes-section-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .classes-list-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .classes-form-card {
        padding: 17px;
    }

    .classes-form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .classes-save-button,
    .classes-secondary-button {
        width: 100%;
    }
/* =========================================================
   ÉCOLE.PRO — NOTES — VERSION PROPRE
========================================================= */

/* EN-TÊTE */

.notes-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.notes-page-header h2 {
    margin: 0 0 4px;
    font-size: 24px;
    font-weight: 800;
    color: #172033;
}

.notes-page-header p {
    margin: 0;
    font-size: 13px;
    color: #94a3b8;
}

.notes-add-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    padding: 0 17px;
    border-radius: 9px;
    background: #2563eb;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.notes-add-button:hover {
    background: #1d4ed8;
    color: #fff;
}


/* ANNÉE ACTIVE */

.notes-year-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;

    margin-bottom: 20px;
    padding: 15px 18px;

    background: #fff;
    border: 1px solid #e5eaf1;
    border-radius: 12px;
}

.notes-year-info {
    display: flex;
    align-items: center;
    gap: 11px;
}

.notes-year-icon {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #eff6ff;
    border-radius: 9px;
}

.notes-year-info small {
    display: block;
    margin-bottom: 2px;

    color: #94a3b8;
    font-size: 10px;
    font-weight: 700;
}

.notes-year-info strong {
    color: #1e293b;
    font-size: 14px;
}

.notes-count,
.notes-total-badge {
    padding: 6px 10px;

    background: #eff6ff;
    border-radius: 20px;

    color: #2563eb;
    font-size: 11px;
    font-weight: 700;
}


/* MESSAGE ERREUR */

.notes-alert {
    display: flex;
    gap: 10px;

    margin-bottom: 18px;
    padding: 12px 14px;

    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 9px;

    color: #9a3412;
}

.notes-alert p {
    margin: 2px 0 0;
}


/* =========================================================
   CARTE FORMULAIRE
========================================================= */

.notes-form-card {
    display: none;

    margin-bottom: 22px;
    padding: 20px;

    background: #fff;
    border: 1px solid #e5eaf1;
    border-radius: 13px;

    box-shadow: 0 3px 12px rgba(15, 23, 42, .04);
}

.notes-form-card.is-visible {
    display: block;
}


/* TITRE FORMULAIRE */

.notes-section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;

    margin-bottom: 20px;
    padding-bottom: 15px;

    border-bottom: 1px solid #edf1f6;
}

.notes-section-title > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notes-section-icon {
    width: 39px;
    height: 39px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #eff6ff;
    border-radius: 9px;
}

.notes-section-title h3 {
    margin: 0 0 3px;

    color: #1e293b;
    font-size: 16px;
}

.notes-section-title p {
    margin: 0;

    color: #94a3b8;
    font-size: 11px;
}

.notes-cancel-top {
    color: #64748b;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}


/* =========================================================
   GRILLE PRINCIPALE

   LIGNE 1 : CLASSE | ÉLÈVE
   LIGNE 2 : MATIÈRE | PÉRIODE
========================================================= */

.notes-modern-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 17px 20px;
    align-items: start;
}

.notes-field,
.notes-class-field {
    width: 100%;
    min-width: 0;
    grid-column: auto;
}

.notes-field label {
    display: block;

    margin-bottom: 7px;

    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.notes-field label span {
    color: #ef4444;
}

.notes-field input,
.notes-field select {
    display: block;

    width: 100%;
    height: 43px;

    box-sizing: border-box;
    padding: 0 12px;

    background: #fff;
    border: 1px solid #dbe3ec;
    border-radius: 8px;

    outline: none;

    color: #334155;
    font-family: inherit;
    font-size: 12px;
}

.notes-field input:focus,
.notes-field select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .09);
}

.notes-field input:disabled,
.notes-field select:disabled {
    background: #f8fafc;
    color: #94a3b8;
}

.notes-field small {
    display: block;
    margin-top: 5px;

    color: #94a3b8;
    font-size: 10px;
}


/* =========================================================
   LES DEUX NOTES
========================================================= */

.notes-evaluations-block {
    grid-column: 1 / -1;

    width: 100%;
    box-sizing: border-box;

    padding: 16px;

    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
}

.notes-evaluations-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;

    margin-bottom: 13px;
}

.notes-evaluations-title strong {
    display: block;

    color: #1e293b;
    font-size: 13px;
    font-weight: 800;
}

.notes-evaluations-title p {
    margin: 2px 0 0;

    color: #94a3b8;
    font-size: 10px;
}

.notes-evaluations-title > span {
    padding: 4px 8px;

    background: #dbeafe;
    border-radius: 6px;

    color: #2563eb;
    font-size: 10px;
    font-weight: 800;
}


/* DEUX CARTES CÔTE À CÔTE */

.notes-evaluation-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
}

.notes-evaluation-box {
    min-width: 0;
    padding: 14px;

    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
}

.notes-evaluation-box-title {
    display: flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 10px;
}

.notes-evaluation-box-title > span {
    width: 33px;
    height: 33px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #eff6ff;
    border-radius: 7px;
}

.notes-evaluation-box-title strong {
    display: block;

    color: #334155;
    font-size: 12px;
}

.notes-evaluation-box-title small {
    display: block;

    margin-top: 1px;

    color: #94a3b8;
    font-size: 9px;
}


/* CHAMP NOTE */

.notes-note-input {
    position: relative;
    width: 100%;
}

.notes-note-input input {
    display: block;

    width: 100%;
    height: 43px;

    box-sizing: border-box;
    padding: 0 48px 0 12px;

    background: #fff;
    border: 1px solid #dbe3ec;
    border-radius: 8px;

    outline: none;

    color: #1e293b;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
}

.notes-note-input input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .09);
}

.notes-note-input > span {
    position: absolute;
    top: 50%;
    right: 12px;

    transform: translateY(-50%);

    color: #94a3b8;
    font-size: 10px;
    font-weight: 700;
}

.notes-evaluation-help {
    margin-top: 11px;
    padding: 8px 10px;

    background: #eff6ff;
    border-radius: 7px;

    color: #475569;
    font-size: 10px;
}


/* =========================================================
   BOUTONS
========================================================= */

.notes-form-actions {
    grid-column: 1 / -1;

    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 9px;
}

.notes-save-button {
    min-height: 42px;
    padding: 0 18px;

    border: 0;
    border-radius: 8px;

    background: #2563eb;
    color: #fff;

    font-family: inherit;
    font-size: 12px;
    font-weight: 700;

    cursor: pointer;
}

.notes-save-button:hover:not(:disabled) {
    background: #1d4ed8;
}

.notes-save-button:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.notes-secondary-button {
    min-height: 42px;
    padding: 0 16px;

    display: inline-flex;
    align-items: center;

    border: 1px solid #dbe3ec;
    border-radius: 8px;

    color: #64748b;
    text-decoration: none;

    font-size: 12px;
    font-weight: 700;
}


/* =========================================================
   TABLEAU DES NOTES
========================================================= */

.notes-list-card {
    overflow: hidden;

    background: #fff;
    border: 1px solid #e5eaf1;
    border-radius: 13px;

    box-shadow: 0 3px 12px rgba(15, 23, 42, .04);
}

.notes-list-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;

    padding: 17px 19px;

    border-bottom: 1px solid #edf1f6;
}

.notes-list-heading h3 {
    margin: 0 0 3px;

    color: #1e293b;
    font-size: 15px;
}

.notes-list-heading p {
    margin: 0;

    color: #94a3b8;
    font-size: 11px;
}

.notes-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.notes-modern-table {
    width: 100%;
    min-width: 900px;

    border-collapse: collapse;
}

.notes-modern-table th {
    padding: 11px 13px;

    background: #f8fafc;
    border-bottom: 1px solid #e8edf3;

    color: #64748b;

    font-size: 9px;
    font-weight: 800;
    text-align: left;
    text-transform: uppercase;
}

.notes-modern-table td {
    padding: 12px 13px;

    border-bottom: 1px solid #eef2f6;

    color: #475569;
    font-size: 11px;
}

.notes-modern-table tbody tr:hover {
    background: #fbfdff;
}

.notes-student-name {
    color: #1e293b;
}


/* BADGES */

.notes-score,
.notes-evaluation-badge,
.notes-period-badge {
    display: inline-flex;
    align-items: center;

    padding: 5px 7px;

    border-radius: 6px;

    font-size: 10px;
    font-weight: 700;
}

.notes-score.good {
    background: #ecfdf5;
    color: #059669;
}

.notes-score.low {
    background: #fef2f2;
    color: #dc2626;
}

.notes-evaluation-badge {
    background: #f1f5f9;
    color: #475569;
}

.notes-period-badge {
    background: #f5f3ff;
    color: #7c3aed;
}


/* ACTIONS TABLEAU */

.notes-actions {
    display: flex;
    gap: 6px;
}

.notes-action {
    width: 30px;
    height: 30px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 7px;

    text-decoration: none;
}

.notes-action.edit {
    background: #eff6ff;
}

.notes-action.delete {
    background: #fef2f2;
}


/* TABLEAU VIDE */

.notes-empty {
    padding: 35px 20px !important;
    text-align: center;
}

.notes-empty strong,
.notes-empty span {
    display: block;
}


/* =========================================================
   MOBILE — UNIQUEMENT NOTES
========================================================= */

@media (max-width: 800px) {

    .notes-page-header,
    .notes-year-bar,
    .notes-section-title,
    .notes-list-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .notes-add-button {
        width: 100%;
        box-sizing: border-box;
    }

    .notes-modern-form {
        grid-template-columns: 1fr;
    }

    .notes-evaluations-block,
    .notes-form-actions {
        grid-column: 1;
    }

    .notes-evaluation-grid {
        grid-template-columns: 1fr;
    }

    .notes-form-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .notes-save-button,
    .notes-secondary-button {
        width: 100%;
        box-sizing: border-box;
        justify-content: center;
    }
}
/* =========================================================
   ÉCOLE.PRO — BULLETINS
========================================================= */

/* EN-TÊTE */

.bulletin-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.bulletin-page-header h2 {
    margin: 0 0 4px;
    font-size: 24px;
    font-weight: 800;
    color: #172033;
}

.bulletin-page-header p {
    margin: 0;
    font-size: 13px;
    color: #94a3b8;
}


/* ANNÉE SCOLAIRE */

.bulletin-year-badge {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 210px;
    padding: 11px 14px;
    background: #fff;
    border: 1px solid #e5eaf1;
    border-radius: 10px;
}

.bulletin-year-badge > span {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    border-radius: 8px;
}

.bulletin-year-badge small {
    display: block;
    margin-bottom: 2px;
    color: #94a3b8;
    font-size: 9px;
    font-weight: 700;
}

.bulletin-year-badge strong {
    display: block;
    color: #1e293b;
    font-size: 13px;
}


/* CARTE DE SÉLECTION */

.bulletin-selection-card {
    margin-bottom: 22px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e5eaf1;
    border-radius: 13px;
    box-shadow: 0 3px 12px rgba(15, 23, 42, .04);
}

.bulletin-selection-title {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #edf1f6;
}

.bulletin-selection-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    border-radius: 9px;
    font-size: 17px;
}

.bulletin-selection-title h3 {
    margin: 0 0 3px;
    color: #1e293b;
    font-size: 16px;
    font-weight: 800;
}

.bulletin-selection-title p {
    margin: 0;
    color: #94a3b8;
    font-size: 11px;
}


/* FORMULAIRE */

.bulletin-selection-form {
    display: grid;
    grid-template-columns:
        minmax(160px, .8fr)
        minmax(240px, 1.4fr)
        minmax(160px, .8fr)
        auto;
    gap: 14px;
    align-items: end;
}

.bulletin-field {
    min-width: 0;
}

.bulletin-field label {
    display: block;
    margin-bottom: 7px;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.bulletin-field label span {
    color: #ef4444;
}

.bulletin-field select {
    display: block;
    width: 100%;
    height: 43px;
    box-sizing: border-box;
    padding: 0 12px;
    background: #fff;
    border: 1px solid #dbe3ec;
    border-radius: 8px;
    outline: none;
    color: #334155;
    font-family: inherit;
    font-size: 12px;
}

.bulletin-field select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .09);
}


/* BOUTON */

.bulletin-submit-field {
    display: flex;
}

.bulletin-display-button {
    height: 43px;
    padding: 0 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    white-space: nowrap;
    border: 0;
    border-radius: 8px;
    background: #2563eb;
    color: #fff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.bulletin-display-button:hover {
    background: #1d4ed8;
}


/* RESPONSIVE */

@media (max-width: 1000px) {

    .bulletin-selection-form {
        grid-template-columns: 1fr 1fr;
    }

    .bulletin-submit-field {
        align-items: flex-end;
    }

    .bulletin-display-button {
        width: 100%;
    }
}

@media (max-width: 700px) {

    .bulletin-page-header {
        flex-direction: column;
        align-items: stretch;
    }

    .bulletin-year-badge {
        min-width: 0;
    }

    .bulletin-selection-form {
        grid-template-columns: 1fr;
    }

    .bulletin-display-button {
        width: 100%;
    }
}

/* =========================================================
   ECOLE.PRO — BULLETIN OFFICIEL
========================================================= */

/* BOUTON IMPRIMER */

.fiche-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.fiche-actions button {
    border: 0;
    border-radius: 8px;
    padding: 11px 18px;
    background: #2563eb;
    color: #fff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(37, 99, 235, .18);
}

.fiche-actions button:hover {
    background: #1d4ed8;
}


/* =========================================================
   FEUILLE DU BULLETIN
========================================================= */

.bulletin-sheet {
    width: 100%;
    max-width: 1050px;
    margin: 0 auto 35px;
    padding: 32px;
    box-sizing: border-box;

    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 14px;

    box-shadow:
        0 8px 30px rgba(15, 23, 42, .07);
}


/* =========================================================
   EN-TÊTE
========================================================= */

.bulletin-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    padding-bottom: 22px;
    margin-bottom: 24px;

    border-bottom: 2px solid #2563eb;
}


/* ÉTABLISSEMENT */

.bulletin-school {
    display: flex;
    align-items: center;
    gap: 14px;
}

.bulletin-school-logo {
    width: 55px;
    height: 55px;
    flex: 0 0 55px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: #eff6ff;

    font-size: 27px;
}

.bulletin-school h2 {
    margin: 0 0 5px;

    color: #172033;

    font-size: 19px;
    font-weight: 800;
}

.bulletin-school p {
    margin: 0;

    color: #64748b;

    font-size: 11px;
}


/* TITRE DU DOCUMENT */

.bulletin-document-title {
    text-align: right;
}

.bulletin-document-title h1 {
    margin: 0 0 7px;

    color: #172033;

    font-size: 24px;
    font-weight: 900;

    letter-spacing: .3px;
}

.bulletin-document-title p {
    margin: 0;

    color: #2563eb;

    font-size: 12px;
    font-weight: 700;
}


/* =========================================================
   TITRES DES SECTIONS
========================================================= */

.bulletin-section-label {
    margin-bottom: 12px;

    color: #334155;

    font-size: 12px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: .5px;
}


/* =========================================================
   INFORMATIONS ÉLÈVE
========================================================= */

.bulletin-student-section {
    margin-bottom: 26px;
}

.bulletin-student-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    overflow: hidden;

    border: 1px solid #e2e8f0;
    border-radius: 10px;

    background: #f8fafc;
}

.bulletin-info-item {
    min-height: 67px;

    padding: 13px 15px;

    box-sizing: border-box;

    border-right: 1px solid #e2e8f0;
}

.bulletin-info-item:last-child {
    border-right: 0;
}

.bulletin-info-item span {
    display: block;

    margin-bottom: 5px;

    color: #94a3b8;

    font-size: 9px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: .4px;
}

.bulletin-info-item strong {
    display: block;

    color: #1e293b;

    font-size: 13px;
    font-weight: 800;
}


/* =========================================================
   TABLEAU DES NOTES
========================================================= */

.bulletin-marks-section {
    margin-bottom: 24px;
}

.bulletin-table-wrapper {
    width: 100%;

    overflow-x: auto;

    border: 1px solid #dfe6ee;
    border-radius: 10px;
}

.bulletin-marks-table {
    width: 100%;

    border-collapse: collapse;

    background: #fff;

    font-size: 11px;
}


/* EN-TÊTE TABLEAU */

.bulletin-marks-table thead th {
    padding: 12px 9px;

    background: #f1f5f9;

    border-bottom: 1px solid #dfe6ee;

    color: #475569;

    font-size: 9px;
    font-weight: 800;

    text-align: center;

    text-transform: uppercase;
    letter-spacing: .25px;
}

.bulletin-marks-table thead th:nth-child(2) {
    text-align: left;
}


/* LIGNES */

.bulletin-marks-table tbody td {
    padding: 12px 9px;

    border-bottom: 1px solid #edf2f7;

    color: #334155;
}

.bulletin-marks-table tbody tr:last-child td {
    border-bottom: 0;
}

.bulletin-marks-table tbody tr:hover {
    background: #f8fafc;
}


/* NUMÉRO */

.bulletin-number {
    width: 40px;
}


/* MATIÈRE */

.bulletin-subject {
    color: #1e293b !important;

    font-weight: 700;
}


/* CENTRAGE */

.bulletin-center {
    text-align: center;
}


/* MOYENNE EN GRAS */

.bulletin-marks-table tbody td strong {
    color: #0f172a;

    font-weight: 800;
}


/* TOTAUX */

.bulletin-marks-table tfoot th {
    padding: 12px 9px;

    background: #f8fafc;

    border-top: 2px solid #dbe3ec;

    color: #334155;

    font-size: 10px;
    font-weight: 800;
}

.bulletin-marks-table tfoot th:first-child {
    text-align: left;
}


/* AUCUNE NOTE */

.bulletin-empty {
    padding: 25px !important;

    color: #94a3b8 !important;

    text-align: center;
}


/* =========================================================
   RÉSULTATS GÉNÉRAUX
========================================================= */

.bulletin-summary {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 12px;

    margin-top: 24px;
    margin-bottom: 25px;
}

.bulletin-summary-item {
    padding: 15px;

    background: #f8fafc;

    border: 1px solid #e2e8f0;
    border-radius: 9px;

    text-align: center;
}

.bulletin-summary-item span {
    display: block;

    margin-bottom: 7px;

    color: #64748b;

    font-size: 9px;
    font-weight: 800;

    text-transform: uppercase;
}

.bulletin-summary-item strong {
    display: block;

    color: #172033;

    font-size: 16px;
    font-weight: 900;
}


/* PREMIER BLOC = MOYENNE GÉNÉRALE */

.bulletin-summary-item:first-child {
    background: #eff6ff;

    border-color: #bfdbfe;
}

.bulletin-summary-item:first-child strong {
    color: #2563eb;
}


/* =========================================================
   CRÉDITS UNIVERSITÉ
========================================================= */

.bulletin-credit-summary {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 12px;

    margin-bottom: 25px;
}

.bulletin-credit-summary > div {
    padding: 14px;

    background: #f8fafc;

    border: 1px solid #e2e8f0;
    border-radius: 9px;

    text-align: center;
}

.bulletin-credit-summary span {
    display: block;

    margin-bottom: 5px;

    color: #64748b;

    font-size: 10px;
    font-weight: 700;
}

.bulletin-credit-summary strong {
    color: #172033;

    font-size: 17px;
}


/* =========================================================
   BAS DU BULLETIN
========================================================= */

.bulletin-sheet-footer {
    display: flex;

    justify-content: space-between;
    align-items: flex-start;

    gap: 30px;

    margin-top: 30px;
    padding-top: 20px;

    border-top: 1px solid #e2e8f0;
}


/* DATE */

.bulletin-date span {
    display: block;

    margin-bottom: 5px;

    color: #94a3b8;

    font-size: 9px;
    font-weight: 700;

    text-transform: uppercase;
}

.bulletin-date strong {
    color: #334155;

    font-size: 12px;
}


/* SIGNATURE */

.bulletin-signature {
    min-width: 220px;

    text-align: center;
}

.bulletin-signature > strong {
    color: #334155;

    font-size: 11px;
}

.bulletin-signature-space {
    height: 60px;

    margin-top: 8px;

    border-bottom: 1px solid #cbd5e1;
}


/* =========================================================
   TABLETTE / MOBILE
========================================================= */

@media (max-width: 900px) {

    .bulletin-sheet {
        padding: 22px;
    }

    .bulletin-sheet-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .bulletin-document-title {
        text-align: left;
    }

    .bulletin-student-grid {
        grid-template-columns: 1fr 1fr;
    }

    .bulletin-info-item {
        border-bottom: 1px solid #e2e8f0;
    }

    .bulletin-summary {
        grid-template-columns: 1fr 1fr;
    }
}


@media (max-width: 600px) {

    .bulletin-sheet {
        padding: 16px;

        border-radius: 10px;
    }

    .bulletin-student-grid {
        grid-template-columns: 1fr;
    }

    .bulletin-info-item {
        border-right: 0;
    }

    .bulletin-summary {
        grid-template-columns: 1fr;
    }

    .bulletin-sheet-footer {
        flex-direction: column;
    }

    .bulletin-signature {
        width: 100%;
    }
}


/* =========================================================
   IMPRESSION A4
========================================================= */

@media print {

    @page {
        size: A4 portrait;
        margin: 10mm;
    }

    html,
    body {
        margin: 0 !important;
        padding: 0 !important;

        background: #fff !important;
    }


    /* ÉLÉMENTS À NE PAS IMPRIMER */

    .no-print,
    .sidebar,
    .topbar {
        display: none !important;
    }


    /* ZONE PRINCIPALE */

    .main {
        margin: 0 !important;
        padding: 0 !important;

        width: 100% !important;
        max-width: none !important;
    }


    /* BULLETIN */

    .bulletin-sheet {
        width: 100% !important;
        max-width: none !important;

        margin: 0 !important;
        padding: 8mm !important;

        border: 1px solid #cbd5e1 !important;
        border-radius: 0 !important;

        box-shadow: none !important;

        background: #fff !important;
    }


    /* ÉVITER LES COUPURES */

    .bulletin-sheet-header,
    .bulletin-student-section,
    .bulletin-marks-section,
    .bulletin-summary,
    .bulletin-credit-summary,
    .bulletin-sheet-footer {
        break-inside: avoid;
        page-break-inside: avoid;
    }


    /* TABLEAU */

    .bulletin-table-wrapper {
        overflow: visible !important;
    }

    .bulletin-marks-table {
        font-size: 9pt;
    }

    .bulletin-marks-table thead {
        display: table-header-group;
    }

    .bulletin-marks-table tr {
        break-inside: avoid;
        page-break-inside: avoid;
    }


    /* PAS D'EFFET HOVER À L'IMPRESSION */

    .bulletin-marks-table tbody tr:hover {
        background: transparent;
    }


    /* CONSERVATION DES FONDS */

    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}

/* =========================================================
   ÉCOLE.PRO — PAGE ENSEIGNANTS
========================================================= */

/* EN-TÊTE */

.teachers-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.teachers-page-header h2 {
    margin: 0 0 5px;
    color: #172033;
    font-size: 24px;
    font-weight: 800;
}

.teachers-page-header p {
    margin: 0;
    color: #8a93a5;
    font-size: 13px;
}


/* ANNÉE SCOLAIRE */

.teachers-year-badge {
    min-width: 210px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 14px;
    background: #fff;
    border: 1px solid #e5eaf1;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(15, 23, 42, .04);
}

.teachers-year-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    border-radius: 8px;
    font-size: 17px;
}

.teachers-year-badge small {
    display: block;
    margin-bottom: 2px;
    color: #94a3b8;
    font-size: 9px;
    font-weight: 800;
}

.teachers-year-badge strong {
    display: block;
    color: #334155;
    font-size: 13px;
}


/* BARRE STATISTIQUE */

.teachers-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.teachers-stat-card {
    min-width: 205px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px 17px;
    background: #fff;
    border: 1px solid #e5eaf1;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .04);
}

.teachers-stat-icon {
    width: 43px;
    height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 43px;
    border-radius: 10px;
    background: #eff6ff;
    font-size: 20px;
}

.teachers-stat-card span {
    display: block;
    margin-bottom: 2px;
    color: #8a93a5;
    font-size: 11px;
}

.teachers-stat-card strong {
    display: block;
    color: #172033;
    font-size: 21px;
    font-weight: 800;
}


/* BOUTON AJOUTER */

.teachers-add-button {
    min-height: 43px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 17px;
    border-radius: 9px;
    background: #2563eb;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 6px 15px rgba(37, 99, 235, .18);
    transition: .18s;
}

.teachers-add-button:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.teachers-add-button span {
    font-size: 18px;
}


/* ERREUR */

.teachers-alert-error {
    padding: 13px 16px;
    margin-bottom: 20px;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-radius: 10px;
    color: #9f1239;
    font-size: 12px;
}


/* CARTE FORMULAIRE */

.teachers-form-card,
.teachers-list-card {
    background: #fff;
    border: 1px solid #e5eaf1;
    border-radius: 13px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, .045);
}

.teachers-form-card {
    padding: 21px;
    margin-bottom: 22px;
    scroll-margin-top: 100px;
}

.teachers-card-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    margin-bottom: 18px;
    border-bottom: 1px solid #edf0f5;
}

.teachers-heading-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #eff6ff;
    font-size: 18px;
}

.teachers-card-heading h3 {
    margin: 0 0 3px;
    color: #172033;
    font-size: 16px;
    font-weight: 800;
}

.teachers-card-heading p {
    margin: 0;
    color: #8a93a5;
    font-size: 11px;
}


/* FORMULAIRE */

.teachers-form {
    display: block;
}

.teachers-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.teachers-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.teachers-field-full {
    grid-column: 1 / -1;
}

.teachers-field label {
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.teachers-field label span {
    color: #ef4444;
}

.teachers-field input {
    width: 100%;
    min-height: 43px;
    padding: 0 12px;
    background: #fff;
    border: 1px solid #dfe5ee;
    border-radius: 8px;
    outline: none;
    color: #334155;
    font-size: 12px;
    transition: .18s;
}

.teachers-field input::placeholder {
    color: #a0a9b8;
}

.teachers-field input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .09);
}


/* ACTIONS FORMULAIRE */

.teachers-form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 9px;
    margin-top: 18px;
    padding-top: 17px;
    border-top: 1px solid #edf0f5;
}

.teachers-cancel-button,
.teachers-save-button {
    min-height: 41px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.teachers-cancel-button {
    background: #fff;
    border: 1px solid #dfe5ee;
    color: #64748b;
}

.teachers-cancel-button:hover {
    background: #f8fafc;
}

.teachers-save-button {
    border: 0;
    background: #2563eb;
    color: #fff;
    cursor: pointer;
}

.teachers-save-button:hover {
    background: #1d4ed8;
}


/* LISTE */

.teachers-list-card {
    overflow: hidden;
}

.teachers-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 19px 21px;
    border-bottom: 1px solid #edf0f5;
}

.teachers-list-header h3 {
    margin: 0 0 4px;
    color: #172033;
    font-size: 16px;
    font-weight: 800;
}

.teachers-list-header p {
    margin: 0;
    color: #8a93a5;
    font-size: 11px;
}


/* TABLEAU */

.teachers-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.teachers-table {
    width: 100%;
    min-width: 800px;
    margin: 0;
    border-collapse: collapse;
}

.teachers-table thead {
    background: #f8fafc;
}

.teachers-table th {
    padding: 12px 14px;
    background: #f8fafc;
    border-bottom: 1px solid #e8edf3;
    color: #64748b;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .35px;
    white-space: nowrap;
}

.teachers-table td {
    padding: 13px 14px;
    border-bottom: 1px solid #eef2f6;
    color: #475569;
    font-size: 12px;
    vertical-align: middle;
}

.teachers-table tbody tr:last-child td {
    border-bottom: 0;
}

.teachers-table tbody tr:hover {
    background: #fafcff;
}


/* IDENTITÉ ENSEIGNANT */

.teacher-identity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.teacher-avatar {
    width: 37px;
    height: 37px;
    flex: 0 0 37px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 11px;
    font-weight: 800;
}

.teacher-identity strong {
    display: block;
    margin-bottom: 2px;
    color: #1e293b;
    font-size: 12px;
}

.teacher-identity small {
    display: block;
    color: #94a3b8;
    font-size: 9px;
}


/* EMAIL */

.teacher-email {
    color: #475569;
    font-size: 11px;
}


/* SPÉCIALITÉ */

.teacher-speciality {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 20px;
    background: #f0fdf4;
    color: #15803d;
    font-size: 10px;
    font-weight: 700;
}

.teacher-muted {
    color: #a0a9b8;
    font-size: 11px;
}


/* ACTIONS TABLEAU */

.teachers-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.teachers-edit-button,
.teachers-delete-button {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e1e6ee;
    border-radius: 7px;
    background: #fff;
    text-decoration: none;
    font-size: 13px;
    transition: .15s;
}

.teachers-edit-button:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    transform: translateY(-1px);
}

.teachers-delete-button:hover {
    background: #fff1f2;
    border-color: #fecdd3;
    transform: translateY(-1px);
}


/* LISTE VIDE */

.teachers-empty {
    padding: 42px 20px !important;
    text-align: center !important;
}

.teachers-empty-icon {
    margin-bottom: 8px;
    font-size: 29px;
}

.teachers-empty strong {
    display: block;
    margin-bottom: 4px;
    color: #334155;
    font-size: 13px;
}

.teachers-empty span {
    display: block;
    color: #94a3b8;
    font-size: 11px;
}


/* RESPONSIVE */

@media (max-width: 800px) {

    .teachers-page-header {
        align-items: stretch;
        flex-direction: column;
    }

    .teachers-year-badge {
        min-width: 0;
    }

    .teachers-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .teachers-stat-card {
        min-width: 0;
    }

    .teachers-add-button {
        width: 100%;
    }

    .teachers-form-grid {
        grid-template-columns: 1fr;
    }

    .teachers-field-full {
        grid-column: auto;
    }
}

@media (max-width: 520px) {

    .teachers-form-card {
        padding: 16px;
    }

    .teachers-form-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .teachers-cancel-button,
    .teachers-save-button {
        width: 100%;
    }
}

/* =========================================================
   ÉCOLE.PRO — PAGE MATIÈRES
========================================================= */

/* HAUT DE PAGE */

.subjects-page-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.subjects-page-top p {
    margin: 0;
    color: #8a93a5;
    font-size: 13px;
}

.subjects-year-badge {
    min-width: 210px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 14px;
    background: #fff;
    border: 1px solid #e5eaf1;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(15,23,42,.04);
}

.subjects-year-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    border-radius: 8px;
    font-size: 17px;
}

.subjects-year-badge small {
    display: block;
    margin-bottom: 2px;
    color: #94a3b8;
    font-size: 9px;
    font-weight: 800;
}

.subjects-year-badge strong {
    display: block;
    color: #334155;
    font-size: 13px;
}


/* STATISTIQUES + BOUTON */

.subjects-toolbar {
    display: flex;
    align-items: stretch;
    gap: 14px;
    margin-bottom: 20px;
}

.subjects-stat-card {
    min-width: 190px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px 17px;
    background: #fff;
    border: 1px solid #e5eaf1;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(15,23,42,.04);
}

.subjects-stat-icon {
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #eff6ff;
    font-size: 20px;
}

.subjects-stat-icon.classes {
    background: #f0fdf4;
}

.subjects-stat-card span {
    display: block;
    margin-bottom: 2px;
    color: #8a93a5;
    font-size: 11px;
}

.subjects-stat-card strong {
    display: block;
    color: #172033;
    font-size: 21px;
    font-weight: 800;
}

.subjects-add-button {
    min-height: 43px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-left: auto;
    align-self: center;
    padding: 0 18px;
    background: #2563eb;
    border-radius: 9px;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 6px 15px rgba(37,99,235,.18);
    transition: .18s;
}

.subjects-add-button:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.subjects-add-button span {
    font-size: 18px;
}


/* ERREUR */

.subjects-alert-error {
    padding: 13px 16px;
    margin-bottom: 20px;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-radius: 10px;
    color: #9f1239;
    font-size: 12px;
}


/* CARTES */

.subjects-form-card,
.subjects-list-card {
    background: #fff;
    border: 1px solid #e5eaf1;
    border-radius: 13px;
    box-shadow: 0 4px 16px rgba(15,23,42,.045);
}

.subjects-form-card {
    padding: 21px;
    margin-bottom: 22px;
    scroll-margin-top: 100px;
}

.subjects-card-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    margin-bottom: 18px;
    border-bottom: 1px solid #edf0f5;
}

.subjects-heading-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #eff6ff;
    font-size: 18px;
}

.subjects-card-heading h3 {
    margin: 0 0 3px;
    color: #172033;
    font-size: 16px;
    font-weight: 800;
}

.subjects-card-heading p {
    margin: 0;
    color: #8a93a5;
    font-size: 11px;
}


/* FORMULAIRE */

.subjects-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.subjects-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.subjects-field-wide {
    grid-column: 1 / -1;
}

.subjects-field label {
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.subjects-field label span {
    color: #ef4444;
}

.subjects-field input,
.subjects-field select {
    width: 100%;
    min-height: 43px;
    padding: 0 12px;
    background: #fff;
    border: 1px solid #dfe5ee;
    border-radius: 8px;
    outline: none;
    color: #334155;
    font-size: 12px;
    transition: .18s;
}

.subjects-field input:focus,
.subjects-field select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,.09);
}

.subjects-field input::placeholder {
    color: #a0a9b8;
}


/* ACTIONS FORMULAIRE */

.subjects-form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 9px;
    margin-top: 18px;
    padding-top: 17px;
    border-top: 1px solid #edf0f5;
}

.subjects-cancel-button,
.subjects-save-button {
    min-height: 41px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.subjects-cancel-button {
    background: #fff;
    border: 1px solid #dfe5ee;
    color: #64748b;
}

.subjects-cancel-button:hover {
    background: #f8fafc;
}

.subjects-save-button {
    border: 0;
    background: #2563eb;
    color: #fff;
    cursor: pointer;
}

.subjects-save-button:hover {
    background: #1d4ed8;
}


/* LISTE */

.subjects-list-card {
    overflow: hidden;
}

.subjects-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 19px 21px;
    border-bottom: 1px solid #edf0f5;
}

.subjects-list-header h3 {
    margin: 0 0 4px;
    color: #172033;
    font-size: 16px;
    font-weight: 800;
}

.subjects-list-header p {
    margin: 0;
    color: #8a93a5;
    font-size: 11px;
}

.subjects-total-badge {
    padding: 6px 10px;
    background: #eff6ff;
    border-radius: 20px;
    color: #2563eb;
    font-size: 10px;
    font-weight: 800;
}


/* TABLEAU */

.subjects-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.subjects-table {
    width: 100%;
    min-width: 850px;
    margin: 0;
    border-collapse: collapse;
}

.subjects-table thead {
    background: #f8fafc;
}

.subjects-table th {
    padding: 12px 14px;
    background: #f8fafc;
    border-bottom: 1px solid #e8edf3;
    color: #64748b;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .35px;
    white-space: nowrap;
}

.subjects-table td {
    padding: 13px 14px;
    border-bottom: 1px solid #eef2f6;
    color: #475569;
    font-size: 12px;
    vertical-align: middle;
}

.subjects-table tbody tr:last-child td {
    border-bottom: 0;
}

.subjects-table tbody tr:hover {
    background: #fafcff;
}


/* CLASSE */

.subject-class strong {
    display: block;
    margin-bottom: 2px;
    color: #1e293b;
    font-size: 12px;
}

.subject-class span {
    display: block;
    color: #64748b;
    font-size: 10px;
}

.subject-class small {
    display: block;
    margin-top: 2px;
    color: #2563eb;
    font-size: 9px;
    font-weight: 700;
}


/* MATIÈRE */

.subject-name {
    color: #1e293b;
    font-size: 12px;
}


/* COEFFICIENT */

.subject-coefficient {
    min-width: 29px;
    height: 29px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    background: #eff6ff;
    border-radius: 7px;
    color: #2563eb;
    font-size: 11px;
    font-weight: 800;
}


/* CRÉDIT */

.subject-credit {
    min-width: 29px;
    height: 29px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    background: #f0fdf4;
    border-radius: 7px;
    color: #15803d;
    font-size: 11px;
    font-weight: 800;
}


/* ENSEIGNANT */

.subject-teacher {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #475569;
    font-size: 11px;
}

.subject-muted {
    color: #a0a9b8;
    font-size: 11px;
}


/* ACTIONS */

.subjects-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.subjects-edit-button,
.subjects-delete-button {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e1e6ee;
    border-radius: 7px;
    text-decoration: none;
    font-size: 13px;
    transition: .15s;
}

.subjects-edit-button:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    transform: translateY(-1px);
}

.subjects-delete-button:hover {
    background: #fff1f2;
    border-color: #fecdd3;
    transform: translateY(-1px);
}


/* LISTE VIDE */

.subjects-empty {
    padding: 42px 20px !important;
    text-align: center !important;
}

.subjects-empty-icon {
    margin-bottom: 8px;
    font-size: 29px;
}

.subjects-empty strong {
    display: block;
    margin-bottom: 4px;
    color: #334155;
    font-size: 13px;
}

.subjects-empty span {
    display: block;
    color: #94a3b8;
    font-size: 11px;
}


/* RESPONSIVE */

@media (max-width: 850px) {

    .subjects-page-top {
        align-items: stretch;
        flex-direction: column;
    }

    .subjects-year-badge {
        min-width: 0;
    }

    .subjects-toolbar {
        flex-wrap: wrap;
    }

    .subjects-stat-card {
        flex: 1 1 180px;
    }

    .subjects-add-button {
        width: 100%;
        margin-left: 0;
    }

    .subjects-form-grid {
        grid-template-columns: 1fr;
    }

    .subjects-field-wide {
        grid-column: auto;
    }
}

@media (max-width: 520px) {

    .subjects-form-card {
        padding: 16px;
    }

    .subjects-form-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .subjects-cancel-button,
    .subjects-save-button {
        width: 100%;
    }

    .subjects-list-header {
        align-items: flex-start;
        flex-direction: column;
    }
}
/* CORRECTION ALIGNEMENT FORMULAIRE MATIÈRES */

.subjects-form-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.subjects-field-wide {
    grid-column: span 2;
}

@media (max-width: 900px) {
    .subjects-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .subjects-field-wide {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .subjects-form-grid {
        grid-template-columns: 1fr;
    }

    .subjects-field-wide {
        grid-column: auto;
    }
}
/* =========================================================
   ÉCOLE.PRO — PAGE INSCRIPTIONS
========================================================= */

.registrations-page-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.registrations-page-top p {
    margin: 0;
    color: #8a93a5;
    font-size: 13px;
}

.registrations-year-badge {
    min-width: 210px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 14px;
    background: #fff;
    border: 1px solid #e5eaf1;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(15,23,42,.04);
}

.registrations-year-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    background: #eff6ff;
    border-radius: 8px;
    font-size: 17px;
}

.registrations-year-badge small {
    display: block;
    margin-bottom: 2px;
    color: #94a3b8;
    font-size: 9px;
    font-weight: 800;
}

.registrations-year-badge strong {
    display: block;
    color: #334155;
    font-size: 13px;
}


/* STATISTIQUES */

.registrations-toolbar {
    display: flex;
    align-items: stretch;
    gap: 14px;
    margin-bottom: 20px;
}

.registrations-stat-card {
    min-width: 190px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px 17px;
    background: #fff;
    border: 1px solid #e5eaf1;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(15,23,42,.04);
}

.registrations-stat-icon {
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    border-radius: 10px;
    font-size: 20px;
}

.registrations-stat-icon.students {
    background: #f0fdf4;
}

.registrations-stat-card span {
    display: block;
    margin-bottom: 2px;
    color: #8a93a5;
    font-size: 11px;
}

.registrations-stat-card strong {
    display: block;
    color: #172033;
    font-size: 21px;
    font-weight: 800;
}


/* BOUTON NOUVELLE INSCRIPTION */

.registrations-add-button {
    min-height: 43px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    align-self: center;
    margin-left: auto;
    padding: 0 18px;
    background: #2563eb;
    border-radius: 9px;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 6px 15px rgba(37,99,235,.18);
    transition: .18s;
}

.registrations-add-button:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.registrations-add-button span {
    font-size: 18px;
}


/* ERREUR */

.registrations-alert-error {
    padding: 13px 16px;
    margin-bottom: 20px;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-radius: 10px;
    color: #9f1239;
    font-size: 12px;
}


/* CARTES */

.registrations-form-card,
.registrations-list-card {
    background: #fff;
    border: 1px solid #e5eaf1;
    border-radius: 13px;
    box-shadow: 0 4px 16px rgba(15,23,42,.045);
}

.registrations-form-card {
    padding: 21px;
    margin-bottom: 22px;
    scroll-margin-top: 100px;
}

.registrations-card-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    margin-bottom: 18px;
    border-bottom: 1px solid #edf0f5;
}

.registrations-heading-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    border-radius: 9px;
    font-size: 18px;
}

.registrations-card-heading h3 {
    margin: 0 0 3px;
    color: #172033;
    font-size: 16px;
    font-weight: 800;
}

.registrations-card-heading p {
    margin: 0;
    color: #8a93a5;
    font-size: 11px;
}


/* FORMULAIRE */

.registrations-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.registrations-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.registrations-field-wide {
    grid-column: span 2;
}

.registrations-field label {
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.registrations-field label span {
    color: #ef4444;
}

.registrations-field input,
.registrations-field select {
    width: 100%;
    min-height: 43px;
    padding: 0 12px;
    background: #fff;
    border: 1px solid #dfe5ee;
    border-radius: 8px;
    outline: none;
    color: #334155;
    font-size: 12px;
    transition: .18s;
}

.registrations-field input:focus,
.registrations-field select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,.09);
}

.registrations-field input::placeholder {
    color: #a0a9b8;
}


/* BOUTONS FORMULAIRE */

.registrations-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 18px;
    padding-top: 17px;
    border-top: 1px solid #edf0f5;
}

.registrations-cancel-button,
.registrations-save-button {
    min-height: 41px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.registrations-cancel-button {
    background: #fff;
    border: 1px solid #dfe5ee;
    color: #64748b;
}

.registrations-save-button {
    border: 0;
    background: #2563eb;
    color: #fff;
    cursor: pointer;
}

.registrations-save-button:hover {
    background: #1d4ed8;
}


/* LISTE */

.registrations-list-card {
    overflow: hidden;
}

.registrations-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 19px 21px;
    border-bottom: 1px solid #edf0f5;
}

.registrations-list-header h3 {
    margin: 0 0 4px;
    color: #172033;
    font-size: 16px;
    font-weight: 800;
}

.registrations-list-header p {
    margin: 0;
    color: #8a93a5;
    font-size: 11px;
}

.registrations-total-badge {
    padding: 6px 10px;
    background: #eff6ff;
    border-radius: 20px;
    color: #2563eb;
    font-size: 10px;
    font-weight: 800;
}


/* TABLEAU */

.registrations-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.registrations-table {
    width: 100%;
    min-width: 1000px;
    margin: 0;
    border-collapse: collapse;
}

.registrations-table th {
    padding: 12px 13px;
    background: #f8fafc;
    border-bottom: 1px solid #e8edf3;
    color: #64748b;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
}

.registrations-table td {
    padding: 13px;
    border-bottom: 1px solid #eef2f6;
    color: #475569;
    font-size: 11px;
    vertical-align: middle;
}

.registrations-table tbody tr:hover {
    background: #fafcff;
}


/* ÉLÈVE */

.registration-student {
    display: flex;
    align-items: center;
    gap: 9px;
}

.registration-avatar {
    width: 35px;
    height: 35px;
    flex: 0 0 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    border-radius: 8px;
    font-size: 14px;
}

.registration-student strong {
    display: block;
    margin-bottom: 2px;
    color: #1e293b;
    font-size: 11px;
    white-space: nowrap;
}

.registration-student small {
    display: block;
    color: #94a3b8;
    font-size: 9px;
}

.registration-class {
    color: #1e293b;
    font-size: 11px;
}

.registration-faculty {
    display: inline-flex;
    padding: 5px 8px;
    background: #eff6ff;
    border-radius: 20px;
    color: #2563eb;
    font-size: 9px;
    font-weight: 700;
}

.registration-muted {
    color: #a0a9b8;
}


/* STATUT */

.registration-status {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 800;
}

.registration-status.active {
    background: #f0fdf4;
    color: #15803d;
}

.registration-status.inactive {
    background: #fff1f2;
    color: #be123c;
}


/* ACTIONS */

.registrations-actions {
    display: flex;
    align-items: center;
    gap: 5px;
}

.registrations-edit-button,
.registrations-print-button,
.registrations-delete-button {
    width: 31px;
    height: 31px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e1e6ee;
    border-radius: 7px;
    text-decoration: none;
    font-size: 12px;
    transition: .15s;
}

.registrations-edit-button:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.registrations-print-button:hover {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.registrations-delete-button:hover {
    background: #fff1f2;
    border-color: #fecdd3;
}


/* VIDE */

.registrations-empty {
    padding: 42px 20px !important;
    text-align: center !important;
}

.registrations-empty div {
    margin-bottom: 8px;
    font-size: 28px;
}

.registrations-empty strong {
    display: block;
    margin-bottom: 4px;
    color: #334155;
    font-size: 13px;
}

.registrations-empty span {
    color: #94a3b8;
    font-size: 11px;
}


/* RESPONSIVE */

@media (max-width: 950px) {

    .registrations-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .registrations-field-wide {
        grid-column: 1 / -1;
    }
}

@media (max-width: 800px) {

    .registrations-page-top {
        align-items: stretch;
        flex-direction: column;
    }

    .registrations-year-badge {
        min-width: 0;
    }

    .registrations-toolbar {
        flex-wrap: wrap;
    }

    .registrations-stat-card {
        flex: 1 1 180px;
    }

    .registrations-add-button {
        width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 600px) {

    .registrations-form-grid {
        grid-template-columns: 1fr;
    }

    .registrations-field-wide {
        grid-column: auto;
    }

    .registrations-form-card {
        padding: 16px;
    }

    .registrations-form-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .registrations-cancel-button,
    .registrations-save-button {
        width: 100%;
    }
}
/* =========================================================
   ÉCOLE.PRO — PAGE ABSENCES
========================================================= */

.abs-page-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.abs-page-top p {
    margin: 0;
    color: #8a93a5;
    font-size: 13px;
}

.abs-year-badge {
    min-width: 210px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 14px;
    background: #fff;
    border: 1px solid #e5eaf1;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(15,23,42,.04);
}

.abs-year-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    border-radius: 8px;
    font-size: 17px;
}

.abs-year-badge small {
    display: block;
    margin-bottom: 2px;
    color: #94a3b8;
    font-size: 9px;
    font-weight: 800;
}

.abs-year-badge strong {
    display: block;
    color: #334155;
    font-size: 13px;
}


/* STATISTIQUES */

.abs-toolbar {
    display: flex;
    align-items: stretch;
    gap: 14px;
    margin-bottom: 20px;
}

.abs-stat-card {
    min-width: 190px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px 17px;
    background: #fff;
    border: 1px solid #e5eaf1;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(15,23,42,.04);
}

.abs-stat-icon {
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff7ed;
    border-radius: 10px;
    font-size: 20px;
}

.abs-stat-icon.justified {
    background: #f0fdf4;
    color: #16a34a;
    font-weight: 900;
}

.abs-stat-card span {
    display: block;
    margin-bottom: 2px;
    color: #8a93a5;
    font-size: 11px;
}

.abs-stat-card strong {
    display: block;
    color: #172033;
    font-size: 21px;
    font-weight: 800;
}


/* AJOUTER */

.abs-add-button {
    min-height: 43px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    gap: 7px;
    margin-left: auto;
    padding: 0 18px;
    background: #2563eb;
    border-radius: 9px;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 6px 15px rgba(37,99,235,.18);
    transition: .18s;
}

.abs-add-button:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}


/* ERREUR */

.abs-alert-error {
    padding: 13px 16px;
    margin-bottom: 20px;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-radius: 10px;
    color: #9f1239;
    font-size: 12px;
}


/* CARTES */

.abs-form-card,
.abs-list-card {
    background: #fff;
    border: 1px solid #e5eaf1;
    border-radius: 13px;
    box-shadow: 0 4px 16px rgba(15,23,42,.045);
}

.abs-form-card {
    padding: 21px;
    margin-bottom: 22px;
    scroll-margin-top: 100px;
}

.abs-card-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    margin-bottom: 18px;
    border-bottom: 1px solid #edf0f5;
}

.abs-heading-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    border-radius: 9px;
    font-size: 18px;
}

.abs-card-heading h3 {
    margin: 0 0 3px;
    color: #172033;
    font-size: 16px;
    font-weight: 800;
}

.abs-card-heading p {
    margin: 0;
    color: #8a93a5;
    font-size: 11px;
}


/* FORMULAIRE */

.abs-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.abs-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.abs-field label {
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.abs-field label span {
    color: #ef4444;
}

.abs-field input,
.abs-field select {
    width: 100%;
    min-height: 43px;
    padding: 0 12px;
    background: #fff;
    border: 1px solid #dfe5ee;
    border-radius: 8px;
    outline: none;
    color: #334155;
    font-size: 12px;
    transition: .18s;
}

.abs-field input:focus,
.abs-field select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,.09);
}


/* CHECKBOX JUSTIFIÉE */

.abs-check {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 18px;
    padding: 10px 13px;
    background: #f8fafc;
    border: 1px solid #e5eaf1;
    border-radius: 8px;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.abs-check input {
    width: 16px;
    height: 16px;
    accent-color: #2563eb;
}


/* BOUTONS FORMULAIRE */

.abs-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 18px;
    padding-top: 17px;
    border-top: 1px solid #edf0f5;
}

.abs-cancel-button,
.abs-save-button {
    min-height: 41px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.abs-cancel-button {
    background: #fff;
    border: 1px solid #dfe5ee;
    color: #64748b;
}

.abs-save-button {
    border: 0;
    background: #2563eb;
    color: #fff;
    cursor: pointer;
}

.abs-save-button:hover {
    background: #1d4ed8;
}


/* LISTE */

.abs-list-card {
    overflow: hidden;
}

.abs-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 19px 21px;
    border-bottom: 1px solid #edf0f5;
}

.abs-list-header h3 {
    margin: 0 0 4px;
    color: #172033;
    font-size: 16px;
    font-weight: 800;
}

.abs-list-header p {
    margin: 0;
    color: #8a93a5;
    font-size: 11px;
}

.abs-total-badge {
    padding: 6px 10px;
    background: #eff6ff;
    border-radius: 20px;
    color: #2563eb;
    font-size: 10px;
    font-weight: 800;
}


/* TABLEAU */

.abs-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.abs-table {
    width: 100%;
    min-width: 850px;
    margin: 0;
    border-collapse: collapse;
}

.abs-table th {
    padding: 12px 13px;
    background: #f8fafc;
    border-bottom: 1px solid #e8edf3;
    color: #64748b;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
}

.abs-table td {
    padding: 13px;
    border-bottom: 1px solid #eef2f6;
    color: #475569;
    font-size: 11px;
    vertical-align: middle;
}

.abs-table tbody tr:hover {
    background: #fafcff;
}


/* ÉLÈVE */

.abs-student {
    display: flex;
    align-items: center;
    gap: 9px;
}

.abs-avatar {
    width: 35px;
    height: 35px;
    flex: 0 0 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    border-radius: 8px;
    font-size: 14px;
}

.abs-student strong {
    display: block;
    margin-bottom: 2px;
    color: #1e293b;
    font-size: 11px;
    white-space: nowrap;
}

.abs-student small {
    display: block;
    color: #94a3b8;
    font-size: 9px;
}


/* MATIÈRE ET HEURE */

.abs-subject {
    display: inline-flex;
    padding: 5px 8px;
    background: #eff6ff;
    border-radius: 20px;
    color: #2563eb;
    font-size: 9px;
    font-weight: 700;
}

.abs-time {
    white-space: nowrap;
    color: #475569;
    font-weight: 600;
}


/* JUSTIFICATION */

.abs-status {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 800;
    white-space: nowrap;
}

.abs-status.yes {
    background: #f0fdf4;
    color: #15803d;
}

.abs-status.no {
    background: #fff1f2;
    color: #be123c;
}


/* ACTIONS */

.abs-actions {
    display: flex;
    align-items: center;
    gap: 5px;
}

.abs-edit-button,
.abs-delete-button {
    width: 31px;
    height: 31px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e1e6ee;
    border-radius: 7px;
    text-decoration: none;
    font-size: 12px;
    transition: .15s;
}

.abs-edit-button:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.abs-delete-button:hover {
    background: #fff1f2;
    border-color: #fecdd3;
}


/* LISTE VIDE */

.abs-empty {
    padding: 42px 20px !important;
    text-align: center !important;
}

.abs-empty div {
    margin-bottom: 8px;
    font-size: 28px;
}

.abs-empty strong {
    display: block;
    margin-bottom: 4px;
    color: #334155;
    font-size: 13px;
}

.abs-empty span {
    color: #94a3b8;
    font-size: 11px;
}


/* RESPONSIVE */

@media (max-width: 900px) {

    .abs-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {

    .abs-page-top {
        align-items: stretch;
        flex-direction: column;
    }

    .abs-year-badge {
        min-width: 0;
    }

    .abs-toolbar {
        flex-wrap: wrap;
    }

    .abs-stat-card {
        flex: 1 1 180px;
    }

    .abs-add-button {
        width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 600px) {

    .abs-form-grid {
        grid-template-columns: 1fr;
    }

    .abs-form-card {
        padding: 16px;
    }

    .abs-form-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .abs-cancel-button,
    .abs-save-button {
        width: 100%;
    }
}

/* =========================================================
   ÉCOLE.PRO — PAGE RÉSULTATS
========================================================= */

/* HAUT DE PAGE */

.results-page-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.results-page-top p {
    margin: 0;
    color: #8a93a5;
    font-size: 13px;
}

.results-year-badge {
    min-width: 215px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 14px;
    background: #fff;
    border: 1px solid #e5eaf1;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(15, 23, 42, .04);
}

.results-year-badge > span {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    border-radius: 8px;
    font-size: 17px;
}

.results-year-badge small {
    display: block;
    margin-bottom: 2px;
    color: #94a3b8;
    font-size: 9px;
    font-weight: 800;
}

.results-year-badge strong {
    display: block;
    color: #334155;
    font-size: 13px;
}


/* CARTE DE SÉLECTION */

.results-selection-card {
    padding: 20px;
    margin-bottom: 20px;
    background: #fff;
    border: 1px solid #e5eaf1;
    border-radius: 13px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, .045);
}

.results-selection-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 15px;
    margin-bottom: 17px;
    border-bottom: 1px solid #edf0f5;
}

.results-selection-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    border-radius: 9px;
    font-size: 18px;
}

.results-selection-heading h3 {
    margin: 0 0 3px;
    color: #172033;
    font-size: 16px;
    font-weight: 800;
}

.results-selection-heading p {
    margin: 0;
    color: #8a93a5;
    font-size: 11px;
}


/* ERREUR ANNÉE */

.results-alert {
    padding: 12px 14px;
    margin-bottom: 16px;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-radius: 9px;
    color: #9f1239;
    font-size: 12px;
}


/* FORMULAIRE */

.results-selection-form {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) minmax(180px, 1fr) auto;
    align-items: end;
    gap: 14px;
}

.results-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.results-field label {
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.results-field label span {
    color: #ef4444;
}

.results-field select {
    width: 100%;
    height: 43px;
    padding: 0 12px;
    background: #fff;
    border: 1px solid #dfe5ee;
    border-radius: 8px;
    outline: none;
    color: #334155;
    font-size: 12px;
    transition: .18s;
}

.results-field select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .09);
}

.results-submit-field button {
    min-height: 43px;
    padding: 0 18px;
    border: 0;
    border-radius: 8px;
    background: #2563eb;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 5px 14px rgba(37, 99, 235, .17);
    transition: .18s;
}

.results-submit-field button:hover {
    background: #1d4ed8;
}

.results-submit-field button:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
}


/* BARRE CLASSE + IMPRESSION */

.results-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 16px;
}

.results-toolbar > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.results-toolbar strong {
    color: #172033;
    font-size: 14px;
}

.results-toolbar span {
    padding: 5px 9px;
    background: #eff6ff;
    border-radius: 20px;
    color: #2563eb;
    font-size: 10px;
    font-weight: 700;
}

.results-print-button {
    min-height: 39px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    background: #fff;
    border: 1px solid #dfe5ee;
    border-radius: 8px;
    color: #334155;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    transition: .18s;
}

.results-print-button:hover {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #2563eb;
}


/* CARTES STATISTIQUES */

.results-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
    margin-bottom: 20px;
}

.results-stat-card {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 15px;
    background: #fff;
    border: 1px solid #e5eaf1;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .04);
}

.results-stat-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    border-radius: 10px;
    font-size: 18px;
}

.results-stat-icon.average {
    background: #f5f3ff;
}

.results-stat-icon.best {
    background: #fffbeb;
}

.results-stat-icon.admitted {
    background: #f0fdf4;
    color: #16a34a;
    font-weight: 900;
}

.results-stat-card span {
    display: block;
    margin-bottom: 3px;
    color: #8a93a5;
    font-size: 10px;
}

.results-stat-card strong {
    display: block;
    color: #172033;
    font-size: 16px;
    font-weight: 800;
    white-space: nowrap;
}


/* CARTE LISTE */

.results-list-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5eaf1;
    border-radius: 13px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, .045);
}

.results-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 18px 20px;
    border-bottom: 1px solid #edf0f5;
}

.results-list-header h3 {
    margin: 0 0 4px;
    color: #172033;
    font-size: 16px;
    font-weight: 800;
}

.results-list-header p {
    margin: 0;
    color: #8a93a5;
    font-size: 11px;
}

.results-count-badge {
    padding: 6px 10px;
    background: #eff6ff;
    border-radius: 20px;
    color: #2563eb;
    font-size: 10px;
    font-weight: 800;
}


/* TABLEAU */

.results-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.results-table {
    width: 100%;
    min-width: 780px;
    margin: 0;
    border-collapse: collapse;
}

.results-table th {
    padding: 12px 13px;
    background: #f8fafc;
    border-bottom: 1px solid #e8edf3;
    color: #64748b;
    font-size: 9px;
    font-weight: 800;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.results-table td {
    padding: 13px;
    border-bottom: 1px solid #eef2f6;
    color: #475569;
    font-size: 11px;
    vertical-align: middle;
}

.results-table tbody tr:last-child td {
    border-bottom: 0;
}

.results-table tbody tr:hover {
    background: #fafcff;
}

.results-center {
    text-align: center !important;
}


/* ÉLÈVE */

.results-student {
    display: flex;
    align-items: center;
    gap: 9px;
}

.results-avatar {
    width: 35px;
    height: 35px;
    flex: 0 0 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    border-radius: 8px;
    font-size: 14px;
}

.results-student strong {
    display: block;
    margin-bottom: 2px;
    color: #1e293b;
    font-size: 11px;
    white-space: nowrap;
}

.results-student small {
    display: block;
    color: #94a3b8;
    font-size: 9px;
}


/* MOYENNE */

.results-average {
    color: #1e293b;
    font-size: 11px;
}


/* RANG */

.results-rank {
    display: inline-flex;
    min-width: 30px;
    align-items: center;
    justify-content: center;
    padding: 5px 8px;
    background: #f1f5f9;
    border-radius: 20px;
    color: #475569;
    font-size: 9px;
    font-weight: 800;
}

.results-rank.first {
    background: #fffbeb;
    color: #b45309;
}


/* DÉCISION */

.results-decision {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 9px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 800;
    white-space: nowrap;
}

.results-decision.admitted {
    background: #f0fdf4;
    color: #15803d;
}

.results-decision.failed {
    background: #fff1f2;
    color: #be123c;
}

.results-decision.warning {
    background: #fffbeb;
    color: #b45309;
}


/* CRÉDITS UNIVERSITÉ */

.results-credit {
    display: inline-flex;
    min-width: 30px;
    justify-content: center;
    padding: 5px 8px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 800;
}

.results-credit.obtained {
    background: #f0fdf4;
    color: #15803d;
}

.results-credit.remaining {
    background: #fff1f2;
    color: #be123c;
}

.results-muted {
    color: #94a3b8;
}


/* AUCUN RÉSULTAT */

.results-empty {
    padding: 42px 20px !important;
    text-align: center !important;
}

.results-empty div {
    margin-bottom: 8px;
    font-size: 28px;
}

.results-empty strong {
    display: block;
    margin-bottom: 4px;
    color: #334155;
    font-size: 13px;
}

.results-empty span {
    color: #94a3b8;
    font-size: 11px;
}


/* RESPONSIVE */

@media (max-width: 1050px) {

    .results-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 850px) {

    .results-selection-form {
        grid-template-columns: 1fr 1fr;
    }

    .results-submit-field {
        grid-column: 1 / -1;
    }

    .results-submit-field button {
        width: 100%;
    }
}

@media (max-width: 700px) {

    .results-page-top {
        flex-direction: column;
        align-items: stretch;
    }

    .results-year-badge {
        min-width: 0;
    }

    .results-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .results-toolbar > div {
        justify-content: space-between;
    }

    .results-print-button {
        width: 100%;
    }
}

@media (max-width: 600px) {

    .results-selection-form {
        grid-template-columns: 1fr;
    }

    .results-submit-field {
        grid-column: auto;
    }

    .results-stats {
        grid-template-columns: 1fr;
    }

    .results-selection-card {
        padding: 16px;
    }

    .results-list-header {
        align-items: flex-start;
        flex-direction: column;
    }
}
/* =========================================================
   ÉCOLE.PRO — PAGE PAIEMENTS
========================================================= */

.payments-page-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.payments-page-top p {
    margin: 0;
    color: #8a93a5;
    font-size: 13px;
}

.payments-year-badge {
    min-width: 210px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 14px;
    background: #fff;
    border: 1px solid #e5eaf1;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(15,23,42,.04);
}

.payments-year-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    border-radius: 8px;
    font-size: 17px;
}

.payments-year-badge small {
    display: block;
    margin-bottom: 2px;
    color: #94a3b8;
    font-size: 9px;
    font-weight: 800;
}

.payments-year-badge strong {
    display: block;
    color: #334155;
    font-size: 13px;
}


/* STATISTIQUES */

.payments-toolbar {
    display: flex;
    align-items: stretch;
    gap: 14px;
    margin-bottom: 20px;
}

.payments-stat-card {
    min-width: 200px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px 17px;
    background: #fff;
    border: 1px solid #e5eaf1;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(15,23,42,.04);
}

.payments-stat-icon {
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    border-radius: 10px;
    font-size: 19px;
}

.payments-stat-icon.money {
    background: #f0fdf4;
}

.payments-stat-card span {
    display: block;
    margin-bottom: 2px;
    color: #8a93a5;
    font-size: 11px;
}

.payments-stat-card strong {
    display: block;
    color: #172033;
    font-size: 18px;
    font-weight: 800;
    white-space: nowrap;
}


/* NOUVEAU PAIEMENT */

.payments-add-button {
    min-height: 43px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    margin-left: auto;
    padding: 0 18px;
    background: #2563eb;
    border-radius: 9px;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 6px 15px rgba(37,99,235,.18);
    transition: .18s;
}

.payments-add-button:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}


/* ERREUR */

.payments-alert-error {
    padding: 13px 16px;
    margin-bottom: 20px;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-radius: 10px;
    color: #9f1239;
    font-size: 12px;
}


/* CARTES */

.payments-form-card,
.payments-list-card {
    background: #fff;
    border: 1px solid #e5eaf1;
    border-radius: 13px;
    box-shadow: 0 4px 16px rgba(15,23,42,.045);
}

.payments-form-card {
    padding: 21px;
    margin-bottom: 22px;
    scroll-margin-top: 100px;
}

.payments-card-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    margin-bottom: 18px;
    border-bottom: 1px solid #edf0f5;
}

.payments-heading-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    border-radius: 9px;
    font-size: 18px;
}

.payments-card-heading h3 {
    margin: 0 0 3px;
    color: #172033;
    font-size: 16px;
    font-weight: 800;
}

.payments-card-heading p {
    margin: 0;
    color: #8a93a5;
    font-size: 11px;
}


/* FORMULAIRE */

.payments-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.payments-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.payments-field-wide {
    grid-column: span 2;
}

.payments-field label {
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.payments-field label span {
    color: #ef4444;
}

.payments-field input,
.payments-field select {
    width: 100%;
    min-height: 43px;
    padding: 0 12px;
    background: #fff;
    border: 1px solid #dfe5ee;
    border-radius: 8px;
    outline: none;
    color: #334155;
    font-size: 12px;
    box-sizing: border-box;
    transition: .18s;
}

.payments-field input:focus,
.payments-field select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,.09);
}


/* MONTANT */

.payments-money-input {
    position: relative;
}

.payments-money-input input {
    padding-right: 65px;
}

.payments-money-input > span {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    pointer-events: none;
}


/* ACTIONS FORMULAIRE */

.payments-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 18px;
    padding-top: 17px;
    border-top: 1px solid #edf0f5;
}

.payments-cancel-button,
.payments-save-button {
    min-height: 41px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.payments-cancel-button {
    background: #fff;
    border: 1px solid #dfe5ee;
    color: #64748b;
}

.payments-save-button {
    border: 0;
    background: #2563eb;
    color: #fff;
    cursor: pointer;
}

.payments-save-button:hover {
    background: #1d4ed8;
}


/* LISTE */

.payments-list-card {
    overflow: hidden;
}

.payments-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 19px 21px;
    border-bottom: 1px solid #edf0f5;
}

.payments-list-header h3 {
    margin: 0 0 4px;
    color: #172033;
    font-size: 16px;
    font-weight: 800;
}

.payments-list-header p {
    margin: 0;
    color: #8a93a5;
    font-size: 11px;
}

.payments-count-badge {
    padding: 6px 10px;
    background: #eff6ff;
    border-radius: 20px;
    color: #2563eb;
    font-size: 10px;
    font-weight: 800;
}


/* TABLEAU */

.payments-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.payments-table {
    width: 100%;
    min-width: 950px;
    margin: 0;
    border-collapse: collapse;
}

.payments-table th {
    padding: 12px 13px;
    background: #f8fafc;
    border-bottom: 1px solid #e8edf3;
    color: #64748b;
    font-size: 9px;
    font-weight: 800;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.payments-table td {
    padding: 13px;
    border-bottom: 1px solid #eef2f6;
    color: #475569;
    font-size: 11px;
    vertical-align: middle;
}

.payments-table tbody tr:hover {
    background: #fafcff;
}


/* ÉLÈVE */

.payments-student {
    display: flex;
    align-items: center;
    gap: 9px;
}

.payments-avatar {
    width: 35px;
    height: 35px;
    flex: 0 0 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    border-radius: 8px;
    font-size: 14px;
}

.payments-student strong {
    display: block;
    margin-bottom: 2px;
    color: #1e293b;
    font-size: 11px;
    white-space: nowrap;
}

.payments-student small {
    display: block;
    color: #94a3b8;
    font-size: 9px;
}


/* MONTANT + MODE */

.payments-amount {
    color: #15803d;
    font-size: 11px;
    white-space: nowrap;
}

.payments-mode {
    display: inline-flex;
    padding: 5px 8px;
    background: #eff6ff;
    border-radius: 20px;
    color: #2563eb;
    font-size: 9px;
    font-weight: 700;
    white-space: nowrap;
}


/* ACTIONS TABLEAU */

.payments-actions {
    display: flex;
    align-items: center;
    gap: 5px;
}

.payments-edit-button,
.payments-print-button,
.payments-delete-button {
    width: 31px;
    height: 31px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e1e6ee;
    border-radius: 7px;
    text-decoration: none;
    font-size: 12px;
    transition: .15s;
}

.payments-edit-button:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.payments-print-button:hover {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.payments-delete-button:hover {
    background: #fff1f2;
    border-color: #fecdd3;
}


/* VIDE */

.payments-empty {
    padding: 42px 20px !important;
    text-align: center !important;
}

.payments-empty div {
    margin-bottom: 8px;
    font-size: 28px;
}

.payments-empty strong {
    display: block;
    margin-bottom: 4px;
    color: #334155;
    font-size: 13px;
}

.payments-empty span {
    color: #94a3b8;
    font-size: 11px;
}


/* RESPONSIVE */

@media (max-width: 950px) {
    .payments-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .payments-field-wide {
        grid-column: 1 / -1;
    }
}

@media (max-width: 800px) {
    .payments-page-top {
        flex-direction: column;
        align-items: stretch;
    }

    .payments-year-badge {
        min-width: 0;
    }

    .payments-toolbar {
        flex-wrap: wrap;
    }

    .payments-stat-card {
        flex: 1 1 200px;
    }

    .payments-add-button {
        width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 600px) {
    .payments-form-grid {
        grid-template-columns: 1fr;
    }

    .payments-field-wide {
        grid-column: auto;
    }

    .payments-form-card {
        padding: 16px;
    }

    .payments-form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .payments-cancel-button,
    .payments-save-button {
        width: 100%;
    }
}

/* =========================================================
   ÉCOLE.PRO — PAGE STATISTIQUES
========================================================= */

.statistics-page-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.statistics-page-top p {
    margin: 0;
    color: #8a93a5;
    font-size: 13px;
}

.statistics-year-badge {
    min-width: 210px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 14px;
    background: #fff;
    border: 1px solid #e5eaf1;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(15,23,42,.04);
}

.statistics-year-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    border-radius: 8px;
    font-size: 17px;
}

.statistics-year-badge small {
    display: block;
    margin-bottom: 2px;
    color: #94a3b8;
    font-size: 9px;
    font-weight: 800;
}

.statistics-year-badge strong {
    color: #334155;
    font-size: 13px;
}


/* BOUTON IMPRESSION */

.statistics-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 18px;
}

.statistics-print-button {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    background: #fff;
    border: 1px solid #dfe5ee;
    border-radius: 8px;
    color: #334155;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    transition: .18s;
}

.statistics-print-button:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #2563eb;
}


/* CARTES PRINCIPALES */

.statistics-main-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
    margin-bottom: 20px;
}

.statistics-card {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #fff;
    border: 1px solid #e5eaf1;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(15,23,42,.04);
    transition: .18s;
}

.statistics-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(15,23,42,.07);
}

.statistics-card-icon {
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 18px;
}

.statistics-card-icon.blue {
    background: #eff6ff;
}

.statistics-card-icon.violet {
    background: #f5f3ff;
}

.statistics-card-icon.orange {
    background: #fff7ed;
}

.statistics-card-icon.green {
    background: #f0fdf4;
}

.statistics-card-icon.red {
    background: #fff1f2;
}

.statistics-card span {
    display: block;
    margin-bottom: 3px;
    color: #8a93a5;
    font-size: 10px;
}

.statistics-card strong {
    display: block;
    color: #172033;
    font-size: 19px;
    font-weight: 800;
    white-space: nowrap;
}

.statistics-money-card strong {
    color: #15803d;
    font-size: 15px;
}


/* CARTES / SECTIONS */

.statistics-summary-card,
.statistics-table-card {
    background: #fff;
    border: 1px solid #e5eaf1;
    border-radius: 13px;
    box-shadow: 0 4px 16px rgba(15,23,42,.045);
}

.statistics-summary-card {
    margin-bottom: 20px;
}

.statistics-section-heading {
    padding: 17px 19px;
    border-bottom: 1px solid #edf0f5;
}

.statistics-section-heading h3 {
    margin: 0 0 3px;
    color: #172033;
    font-size: 14px;
    font-weight: 800;
}

.statistics-section-heading p {
    margin: 0;
    color: #94a3b8;
    font-size: 10px;
}


/* RÉSUMÉ */

.statistics-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 18px;
}

.statistics-summary-item {
    padding: 7px 18px;
    border-right: 1px solid #edf0f5;
}

.statistics-summary-item:first-child {
    padding-left: 4px;
}

.statistics-summary-item:last-child {
    border-right: 0;
}

.statistics-summary-item span {
    display: block;
    margin-bottom: 7px;
    color: #8a93a5;
    font-size: 10px;
}

.statistics-summary-item strong {
    color: #172033;
    font-size: 18px;
    font-weight: 800;
}

.statistics-green {
    color: #16a34a !important;
}

.statistics-red {
    color: #dc2626 !important;
}


/* DEUX TABLEAUX */

.statistics-bottom-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
    gap: 16px;
    align-items: start;
}

.statistics-table-card {
    overflow: hidden;
}

.statistics-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.statistics-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.statistics-table th {
    padding: 11px 13px;
    background: #f8fafc;
    border-bottom: 1px solid #e8edf3;
    color: #64748b;
    font-size: 9px;
    font-weight: 800;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.statistics-table td {
    padding: 12px 13px;
    border-bottom: 1px solid #eef2f6;
    color: #475569;
    font-size: 11px;
    vertical-align: middle;
}

.statistics-table tbody tr:last-child td {
    border-bottom: 0;
}

.statistics-table tbody tr:hover {
    background: #fafcff;
}

.statistics-table td strong {
    color: #1e293b;
}


/* EFFECTIF */

.statistics-effectif {
    min-width: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 8px;
    background: #eff6ff;
    border-radius: 20px;
    color: #2563eb;
    font-size: 10px;
    font-weight: 800;
}


/* PAIEMENT */

.statistics-payment-mode {
    display: inline-flex;
    padding: 5px 8px;
    background: #eff6ff;
    border-radius: 20px;
    color: #2563eb;
    font-size: 9px;
    font-weight: 700;
}

.statistics-payment-total {
    color: #15803d !important;
    white-space: nowrap;
}


/* TABLEAU VIDE */

.statistics-empty {
    padding: 30px 15px !important;
    color: #94a3b8 !important;
    text-align: center;
}


/* RESPONSIVE */

@media (max-width: 1100px) {
    .statistics-main-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .statistics-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px 0;
    }

    .statistics-summary-item:nth-child(2) {
        border-right: 0;
    }
}

@media (max-width: 850px) {
    .statistics-bottom-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .statistics-page-top {
        flex-direction: column;
        align-items: stretch;
    }

    .statistics-year-badge {
        min-width: 0;
    }

    .statistics-actions {
        justify-content: stretch;
    }

    .statistics-print-button {
        width: 100%;
    }

    .statistics-main-grid {
        grid-template-columns: 1fr;
    }

    .statistics-summary-grid {
        grid-template-columns: 1fr;
    }

    .statistics-summary-item {
        padding: 12px 4px;
        border-right: 0;
        border-bottom: 1px solid #edf0f5;
    }

    .statistics-summary-item:last-child {
        border-bottom: 0;
    }
}
/* =========================================================
   ÉCOLE.PRO — ARCHIVES / ANNÉES SCOLAIRES
========================================================= */

.archives-page-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.archives-page-top p {
    margin: 0;
    color: #8a93a5;
    font-size: 13px;
}

.archives-add-button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 17px;
    background: #2563eb;
    border-radius: 9px;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 6px 15px rgba(37,99,235,.18);
    transition: .18s;
}

.archives-add-button:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}


/* ALERTES */

.archives-alert {
    padding: 12px 15px;
    margin-bottom: 18px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 600;
}

.archives-alert.error {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #be123c;
}

.archives-alert.success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
}


/* CARTES */

.archives-form-card,
.archives-list-card,
.archives-consultation,
.archives-data-card {
    background: #fff;
    border: 1px solid #e5eaf1;
    border-radius: 13px;
    box-shadow: 0 4px 16px rgba(15,23,42,.045);
}

.archives-form-card {
    padding: 20px;
    margin-bottom: 20px;
    scroll-margin-top: 100px;
}


/* TITRE FORMULAIRE */

.archives-section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    margin-bottom: 18px;
    border-bottom: 1px solid #edf0f5;
}

.archives-heading-icon {
    width: 41px;
    height: 41px;
    flex: 0 0 41px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    border-radius: 9px;
    font-size: 18px;
}

.archives-section-heading h3 {
    margin: 0 0 3px;
    color: #172033;
    font-size: 15px;
    font-weight: 800;
}

.archives-section-heading p {
    margin: 0;
    color: #94a3b8;
    font-size: 10px;
}


/* FORMULAIRE */

.archives-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.archives-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.archives-field label {
    color: #475569;
    font-size: 11px;
    font-weight: 700;
}

.archives-field label span {
    color: #ef4444;
}

.archives-field input {
    width: 100%;
    min-height: 43px;
    padding: 0 12px;
    background: #fff;
    border: 1px solid #dfe5ee;
    border-radius: 8px;
    outline: none;
    box-sizing: border-box;
    color: #334155;
    font-size: 12px;
    transition: .18s;
}

.archives-field input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,.09);
}

.archives-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 18px;
    padding-top: 17px;
    border-top: 1px solid #edf0f5;
}

.archives-cancel-button,
.archives-save-button {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.archives-cancel-button {
    background: #fff;
    border: 1px solid #dfe5ee;
    color: #64748b;
}

.archives-save-button {
    border: 0;
    background: #2563eb;
    color: #fff;
    cursor: pointer;
}

.archives-save-button:hover {
    background: #1d4ed8;
}


/* LISTE ANNÉES */

.archives-list-card {
    margin-bottom: 22px;
    overflow: hidden;
}

.archives-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 18px 20px;
    border-bottom: 1px solid #edf0f5;
}

.archives-card-header h3 {
    margin: 0 0 3px;
    color: #172033;
    font-size: 15px;
    font-weight: 800;
}

.archives-card-header p {
    margin: 0;
    color: #94a3b8;
    font-size: 10px;
}

.archives-count {
    padding: 6px 10px;
    background: #eff6ff;
    border-radius: 20px;
    color: #2563eb;
    font-size: 10px;
    font-weight: 800;
}


/* TABLEAUX */

.archives-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.archives-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.archives-table th {
    padding: 11px 13px;
    background: #f8fafc;
    border-bottom: 1px solid #e8edf3;
    color: #64748b;
    font-size: 9px;
    font-weight: 800;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.archives-table td {
    padding: 12px 13px;
    border-bottom: 1px solid #eef2f6;
    color: #475569;
    font-size: 11px;
    vertical-align: middle;
}

.archives-table tbody tr:last-child td {
    border-bottom: 0;
}

.archives-table tbody tr:hover {
    background: #fafcff;
}


/* NOM ANNÉE */

.archives-year-name {
    display: flex;
    align-items: center;
    gap: 9px;
}

.archives-year-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    border-radius: 8px;
}

.archives-year-name strong {
    color: #1e293b;
    white-space: nowrap;
}


/* ÉTAT */

.archives-status {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 800;
    white-space: nowrap;
}

.archives-status.active {
    background: #dcfce7;
    color: #15803d;
}

.archives-status.archived {
    background: #f1f5f9;
    color: #64748b;
}


/* BOUTONS TABLEAU */

.archives-view-button,
.archives-activate-button {
    min-height: 31px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border-radius: 7px;
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.archives-view-button {
    background: #eff6ff;
    color: #2563eb;
}

.archives-view-button:hover {
    background: #dbeafe;
}

.archives-activate-button {
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
    color: #15803d;
    cursor: pointer;
}

.archives-activate-button:hover {
    background: #dcfce7;
}

.archives-current {
    color: #15803d;
    font-size: 10px;
    font-weight: 700;
}


/* CONSULTATION */

.archives-consultation {
    padding: 20px;
    margin-bottom: 20px;
    scroll-margin-top: 90px;
}

.archives-consultation-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding-bottom: 16px;
    margin-bottom: 17px;
    border-bottom: 1px solid #edf0f5;
}

.archives-consultation-label {
    display: block;
    margin-bottom: 4px;
    color: #2563eb;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .8px;
}

.archives-consultation-header h3 {
    margin: 0 0 3px;
    color: #172033;
    font-size: 19px;
    font-weight: 800;
}

.archives-consultation-header p {
    margin: 0;
    color: #94a3b8;
    font-size: 10px;
}

.archives-close-button {
    padding: 8px 11px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    color: #64748b;
    text-decoration: none;
    font-size: 10px;
    font-weight: 700;
}


/* STATISTIQUES ARCHIVE */

.archives-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.archives-stat-card {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 14px;
    background: #f8fafc;
    border: 1px solid #edf0f5;
    border-radius: 10px;
}

.archives-stat-icon {
    width: 39px;
    height: 39px;
    flex: 0 0 39px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    font-size: 16px;
}

.archives-stat-icon.blue {
    background: #dbeafe;
}

.archives-stat-icon.violet {
    background: #ede9fe;
}

.archives-stat-icon.green {
    background: #dcfce7;
}

.archives-stat-icon.red {
    background: #ffe4e6;
}

.archives-stat-card span {
    display: block;
    margin-bottom: 2px;
    color: #94a3b8;
    font-size: 9px;
}

.archives-stat-card strong {
    color: #172033;
    font-size: 18px;
    font-weight: 800;
}


/* DONNÉES ARCHIVÉES */

.archives-data-card {
    margin-top: 15px;
    overflow: hidden;
    box-shadow: none;
}

.archives-data-heading {
    padding: 14px 16px;
    border-bottom: 1px solid #edf0f5;
}

.archives-data-heading h3 {
    margin: 0;
    color: #334155;
    font-size: 12px;
    font-weight: 800;
}

.archives-small-badge {
    display: inline-flex;
    padding: 4px 8px;
    background: #eff6ff;
    border-radius: 20px;
    color: #2563eb;
    font-size: 9px;
    font-weight: 700;
}

.archives-money {
    color: #15803d !important;
    white-space: nowrap;
}

.archives-yes {
    display: inline-flex;
    padding: 4px 8px;
    background: #dcfce7;
    border-radius: 20px;
    color: #15803d;
    font-size: 9px;
    font-weight: 800;
}

.archives-no {
    display: inline-flex;
    padding: 4px 8px;
    background: #ffe4e6;
    border-radius: 20px;
    color: #be123c;
    font-size: 9px;
    font-weight: 800;
}

.archives-empty {
    padding: 28px 15px !important;
    color: #94a3b8 !important;
    text-align: center;
}


/* IMPORTANT */

.archives-important {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 15px;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 10px;
}

.archives-important p {
    margin: 0;
    color: #475569;
    font-size: 10px;
    line-height: 1.6;
}

.archives-important strong {
    color: #1e40af;
}


/* RESPONSIVE */

@media (max-width: 950px) {
    .archives-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .archives-form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .archives-page-top,
    .archives-consultation-header {
        flex-direction: column;
        align-items: stretch;
    }

    .archives-add-button {
        width: 100%;
        box-sizing: border-box;
    }

    .archives-stats-grid {
        grid-template-columns: 1fr;
    }

    .archives-form-actions {
        flex-direction: column-reverse;
    }

    .archives-cancel-button,
    .archives-save-button {
        width: 100%;
        box-sizing: border-box;
    }
}
/* =========================================================
   ÉCOLE.PRO — UTILISATEURS
========================================================= */

.users-page-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.users-page-top p {
    margin: 0;
    color: #8a93a5;
    font-size: 13px;
}

.users-admin-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    color: #2563eb;
    font-size: 10px;
    font-weight: 800;
}


/* ALERTES */

.users-alert {
    padding: 12px 15px;
    margin-bottom: 18px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 600;
}

.users-alert.success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
}

.users-alert.error {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #be123c;
}


/* STATISTIQUES */

.users-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
    margin-bottom: 20px;
}

.users-stat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #e5eaf1;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .04);
}

.users-stat-icon {
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 18px;
}

.users-stat-icon.blue {
    background: #eff6ff;
    color: #2563eb;
}

.users-stat-icon.green {
    background: #f0fdf4;
    color: #16a34a;
}

.users-stat-icon.violet {
    background: #f5f3ff;
    color: #7c3aed;
}

.users-stat-card span {
    display: block;
    margin-bottom: 3px;
    color: #8a93a5;
    font-size: 10px;
}

.users-stat-card strong {
    display: block;
    color: #172033;
    font-size: 20px;
    font-weight: 800;
}


/* FORMULAIRE */

.users-form-card,
.users-list-card {
    background: #fff;
    border: 1px solid #e5eaf1;
    border-radius: 13px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, .045);
}

.users-form-card {
    padding: 20px;
    margin-bottom: 20px;
}

.users-section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    margin-bottom: 18px;
    border-bottom: 1px solid #edf0f5;
}

.users-heading-icon {
    width: 41px;
    height: 41px;
    flex: 0 0 41px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    border-radius: 9px;
    font-size: 18px;
}

.users-section-heading h3 {
    margin: 0 0 3px;
    color: #172033;
    font-size: 15px;
    font-weight: 800;
}

.users-section-heading p {
    margin: 0;
    color: #94a3b8;
    font-size: 10px;
}


/* CHAMPS */

.users-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.users-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.users-field label {
    color: #475569;
    font-size: 11px;
    font-weight: 700;
}

.users-field label span {
    color: #ef4444;
}

.users-field input,
.users-field select {
    width: 100%;
    min-height: 43px;
    box-sizing: border-box;
    padding: 0 12px;
    background: #fff;
    border: 1px solid #dfe5ee;
    border-radius: 8px;
    outline: none;
    color: #334155;
    font-size: 12px;
    transition: .18s;
}

.users-field input:focus,
.users-field select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .09);
}


/* BOUTON AJOUTER */

.users-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
    padding-top: 17px;
    border-top: 1px solid #edf0f5;
}

.users-save-button {
    min-height: 41px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 17px;
    border: 0;
    border-radius: 8px;
    background: #2563eb;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 5px 13px rgba(37, 99, 235, .16);
    transition: .18s;
}

.users-save-button:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}


/* LISTE */

.users-list-card {
    overflow: hidden;
}

.users-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 18px 20px;
    border-bottom: 1px solid #edf0f5;
}

.users-list-header h3 {
    margin: 0 0 3px;
    color: #172033;
    font-size: 15px;
    font-weight: 800;
}

.users-list-header p {
    margin: 0;
    color: #94a3b8;
    font-size: 10px;
}

.users-count-badge {
    display: inline-flex;
    padding: 6px 10px;
    background: #eff6ff;
    border-radius: 20px;
    color: #2563eb;
    font-size: 10px;
    font-weight: 800;
}


/* TABLEAU */

.users-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.users-table {
    width: 100%;
    min-width: 700px;
    margin: 0;
    border-collapse: collapse;
}

.users-table th {
    padding: 11px 13px;
    background: #f8fafc;
    border-bottom: 1px solid #e8edf3;
    color: #64748b;
    font-size: 9px;
    font-weight: 800;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.users-table td {
    padding: 12px 13px;
    border-bottom: 1px solid #eef2f6;
    color: #475569;
    font-size: 11px;
    vertical-align: middle;
}

.users-table tbody tr:last-child td {
    border-bottom: 0;
}

.users-table tbody tr:hover {
    background: #fafcff;
}


/* UTILISATEUR */

.users-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.users-avatar {
    width: 35px;
    height: 35px;
    flex: 0 0 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    border-radius: 50%;
    color: #2563eb;
    font-size: 12px;
    font-weight: 900;
}

.users-user strong {
    color: #1e293b;
    font-size: 11px;
}


/* RÔLES */

.users-role {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 800;
    white-space: nowrap;
}

.users-role.admin {
    background: #f5f3ff;
    color: #7c3aed;
}

.users-role.secretaire {
    background: #eff6ff;
    color: #2563eb;
}

.users-role.enseignant {
    background: #fff7ed;
    color: #ea580c;
}


/* ÉTAT */

.users-status {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 800;
}

.users-status.active {
    background: #dcfce7;
    color: #15803d;
}

.users-status.inactive {
    background: #ffe4e6;
    color: #be123c;
}


/* LISTE VIDE */

.users-empty {
    padding: 35px 15px !important;
    color: #94a3b8 !important;
    text-align: center;
}


/* RESPONSIVE */

@media (max-width: 800px) {
    .users-stats {
        grid-template-columns: 1fr;
    }

    .users-form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .users-page-top {
        flex-direction: column;
        align-items: stretch;
    }

    .users-admin-badge {
        justify-content: center;
    }

    .users-form-card {
        padding: 16px;
    }

    .users-save-button {
        width: 100%;
    }

    .users-list-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
/* =========================================================
   ÉCOLE.PRO — SYSTÈME DE TRANSMISSIONS
========================================================= */

.transmissions-page {
    width: 100%;
}

.transmissions-service-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 18px;
    margin-bottom: 16px;
    background: #ffffff;
    border: 1px solid #e5eaf2;
    border-radius: 13px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, .04);
}

.transmissions-service-card span {
    display: block;
    margin-bottom: 5px;
    color: #94a3b8;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .06em;
}

.transmissions-service-card strong {
    display: block;
    color: #0f172a;
    font-size: 16px;
    font-weight: 800;
}

.transmissions-service-card small {
    padding: 7px 11px;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
}


/* COMPTEURS */

.transmissions-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.transmissions-stat {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 82px;
    padding: 15px 17px;
    background: #ffffff;
    border: 1px solid #e5eaf2;
    border-radius: 13px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, .04);
}

.transmissions-stat > span {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    flex: 0 0 43px;
    background: #eff6ff;
    border-radius: 11px;
    font-size: 19px;
}

.transmissions-stat small {
    display: block;
    margin-bottom: 3px;
    color: #64748b;
    font-size: 10px;
    font-weight: 600;
}

.transmissions-stat strong {
    display: block;
    color: #0f172a;
    font-size: 21px;
    font-weight: 800;
}


/* CARTES */

.transmissions-card {
    margin-bottom: 18px;
    background: #ffffff;
    border: 1px solid #e5eaf2;
    border-radius: 14px;
    box-shadow: 0 5px 18px rgba(15, 23, 42, .04);
    overflow: hidden;
}

.transmissions-card-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 17px 19px;
    border-bottom: 1px solid #edf1f6;
}

.transmissions-card-title h3 {
    margin: 0;
    color: #0f172a;
    font-size: 15px;
    font-weight: 800;
}

.transmissions-card-title p {
    margin: 4px 0 0;
    color: #94a3b8;
    font-size: 10px;
}


/* TABLEAUX */

.transmissions-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.transmissions-table {
    width: 100%;
    border-collapse: collapse;
}

.transmissions-table th {
    padding: 11px 13px;
    background: #f8fafc;
    border-bottom: 1px solid #e9eef5;
    color: #64748b;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .04em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.transmissions-table td {
    padding: 12px 13px;
    border-bottom: 1px solid #f0f3f7;
    color: #475569;
    font-size: 11px;
    vertical-align: middle;
}

.transmissions-table tbody tr:last-child td {
    border-bottom: 0;
}

.transmissions-table tbody tr:hover {
    background: #fbfdff;
}

.transmissions-table td strong {
    color: #1e293b;
}

.transmissions-empty {
    padding: 32px 15px !important;
    color: #94a3b8 !important;
    text-align: center !important;
}


/* STATUTS */

.transmission-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
}

.transmission-status.envoye {
    background: #fff7ed;
    color: #ea580c;
}

.transmission-status.valide {
    background: #ecfdf5;
    color: #059669;
}

.transmission-status.rejete {
    background: #fef2f2;
    color: #dc2626;
}


/* MESSAGE SANS SERVICE */

.transmissions-warning {
    padding: 15px 17px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 11px;
    color: #9a3412;
    font-size: 12px;
    font-weight: 600;
}


/* =========================================================
   DOSSIER TRANSMIS
========================================================= */

.transmission-detail {
    width: 100%;
}

.transmission-detail-card {
    margin-bottom: 18px;
    padding: 21px;
    background: #ffffff;
    border: 1px solid #e5eaf2;
    border-radius: 14px;
    box-shadow: 0 5px 18px rgba(15, 23, 42, .04);
}

.transmission-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid #edf1f6;
}

.transmission-detail-number {
    margin-bottom: 5px;
    color: #94a3b8;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .05em;
}

.transmission-detail-title {
    margin: 0 0 6px;
    color: #0f172a;
    font-size: 21px;
    font-weight: 800;
}

.transmission-detail-route {
    color: #64748b;
    font-size: 12px;
}

.transmission-detail-info {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
    padding-top: 18px;
}

.transmission-detail-info small {
    display: block;
    margin-bottom: 5px;
    color: #94a3b8;
    font-size: 9px;
    font-weight: 800;
}

.transmission-detail-info strong {
    color: #0f172a;
    font-size: 12px;
}

.transmission-detail-message {
    margin-top: 18px;
    padding: 13px 15px;
    background: #f8fafc;
    border-radius: 9px;
    color: #475569;
    font-size: 11px;
}


/* RÉSUMÉ DOSSIER */

.transmission-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.transmission-summary-card {
    padding: 17px;
    border-radius: 12px;
}

.transmission-summary-card.blue {
    background: #eff6ff;
}

.transmission-summary-card.green {
    background: #ecfdf5;
}

.transmission-summary-card small {
    display: block;
    margin-bottom: 6px;
    color: #64748b;
    font-size: 9px;
    font-weight: 800;
}

.transmission-summary-card strong {
    color: #0f172a;
    font-size: 22px;
    font-weight: 800;
}

.transmission-summary-card.green strong {
    color: #059669;
}


/* ACTIONS DOSSIER */

.transmission-detail-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.transmission-actions-right {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
}

.transmission-button {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border: 0;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.transmission-button.back {
    background: #f1f5f9;
    color: #475569;
}

.transmission-button.open {
    background: #2563eb;
    color: #ffffff;
}

.transmission-button.print {
    background: #334155;
    color: #ffffff;
}

.transmission-button.validate {
    background: #059669;
    color: #ffffff;
}

.transmission-button.reject {
    background: #dc2626;
    color: #ffffff;
}

.transmission-button:hover {
    transform: translateY(-1px);
    opacity: .94;
}


/* MOBILE */

@media (max-width: 900px) {

    .transmission-detail-info {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {

    .transmissions-service-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .transmissions-stats {
        grid-template-columns: 1fr;
    }

    .transmission-summary {
        grid-template-columns: 1fr;
    }

    .transmission-detail-header {
        flex-direction: column;
    }

    .transmission-detail-info {
        grid-template-columns: 1fr;
    }

    .transmission-detail-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .transmission-actions-right {
        flex-direction: column;
    }

    .transmission-button {
        width: 100%;
    }
}

/* =========================================================
   ÉCOLE.PRO — TRANSMISSION DES ABSENCES
========================================================= */

.abs-transmit-button {
    min-height: 43px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: 9px;
    background: #059669;
    color: #fff !important;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(5, 150, 105, .18);
}

.abs-transmit-button:hover {
    background: #047857;
}

.transmission-send-page {
    max-width: 1100px;
    margin: 0 auto;
}

.transmission-send-card {
    padding: 22px;
    background: #fff;
    border: 1px solid #e5eaf2;
    border-radius: 14px;
    box-shadow: 0 5px 18px rgba(15, 23, 42, .04);
}

.transmission-send-heading {
    margin-bottom: 20px;
}

.transmission-send-heading h2 {
    margin: 0;
    color: #0f172a;
    font-size: 21px;
}

.transmission-send-heading p {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 12px;
}

.transmission-send-route {
    display: grid;
    grid-template-columns: 1fr auto 1fr 1fr;
    align-items: center;
    gap: 15px;
    padding: 16px;
    margin-bottom: 20px;
    background: #f8fafc;
    border-radius: 11px;
}

.transmission-send-route small,
.transmission-send-stat span {
    display: block;
    margin-bottom: 5px;
    color: #94a3b8;
    font-size: 9px;
    font-weight: 800;
}

.transmission-send-route strong {
    color: #0f172a;
    font-size: 13px;
}

.transmission-send-arrow {
    color: #2563eb;
    font-size: 22px;
    font-weight: 800;
}

.transmission-send-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 20px 0;
}

.transmission-send-stat {
    padding: 17px;
    border-radius: 11px;
}

.transmission-send-stat.blue {
    background: #eff6ff;
}

.transmission-send-stat.green {
    background: #ecfdf5;
}

.transmission-send-stat.red {
    background: #fef2f2;
}

.transmission-send-stat strong {
    color: #0f172a;
    font-size: 22px;
}

.transmission-send-stat.green strong {
    color: #059669;
}

.transmission-send-stat.red strong {
    color: #dc2626;
}

.transmission-send-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
}

.transmission-send-empty {
    padding: 30px;
    margin-top: 20px;
    background: #f8fafc;
    border-radius: 11px;
    color: #64748b;
    text-align: center;
}

@media (max-width: 800px) {
    .transmission-send-route {
        grid-template-columns: 1fr;
    }

    .transmission-send-arrow {
        transform: rotate(90deg);
    }

    .transmission-send-stats {
        grid-template-columns: 1fr;
    }

    .transmission-send-actions {
        flex-direction: column;
    }
}

/* =========================================================
   ÉCOLE.PRO — BOUTON TRANSMISSION DES NOTES
========================================================= */

.notes-transmit-button {
    min-height: 43px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    margin-left: auto;
    margin-right: 10px;
    border-radius: 9px;
    background: #059669;
    color: #fff !important;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(5, 150, 105, .18);
}

.notes-transmit-button:hover {
    background: #047857;
}

@media (max-width: 700px) {
    .notes-transmit-button {
        width: 100%;
        margin: 8px 0;
    }
}