/* =========================================================
   EDNE - SITE.CSS
   Version structurée professionnelle
   ========================================================= */

/* =========================================================
   1. BASE GLOBALE
   ========================================================= */

html {
    font-size: 14px;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    background: url('/images/image_fond.png') no-repeat center center fixed;
    background-size: cover;
    position: relative;
}

    body::before {
        content: "";
        position: fixed;
        inset: 0;
        background: linear-gradient(rgba(10, 20, 50, 0.72), rgba(10, 20, 50, 0.82));
        z-index: -1;
    }

main {
    flex: 1;
}

::selection {
    background-color: #0d6efd;
    color: #ffffff;
}

::-moz-selection {
    background-color: #0d6efd;
    color: #ffffff;
}

/* Focus accessibilité */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus,
.form-select:focus {
    box-shadow: 0 0 0 0.1rem #ffffff, 0 0 0 0.25rem #258cfb;
}

/* =========================================================
   2. TEXTES / LISIBILITÉ
   ========================================================= */

body,
.page-content-light,
.page-panel,
.panel-soft,
.readable-page {
    color: #ffffff;
}

    .page-content-light h1,
    .page-content-light h2,
    .page-content-light h3,
    .page-content-light h4,
    .page-content-light h5,
    .page-content-light h6,
    .page-content-light p,
    .page-content-light label,
    .page-content-light span,
    .page-content-light li,
    .page-panel h1,
    .page-panel h2,
    .page-panel h3,
    .page-panel h4,
    .page-panel h5,
    .page-panel h6,
    .page-panel > p,
    .page-panel > label,
    .page-panel > span,
    .page-panel > li,
    .panel-soft h1,
    .panel-soft h2,
    .panel-soft h3,
    .panel-soft h4,
    .panel-soft h5,
    .panel-soft h6,
    .panel-soft p,
    .panel-soft label,
    .panel-soft span,
    .panel-soft li,
    .readable-page h1,
    .readable-page h2,
    .readable-page h3,
    .readable-page h4,
    .readable-page h5,
    .readable-page h6,
    .readable-page p,
    .readable-page label,
    .readable-page span,
    .readable-page li {
        color: #ffffff !important;
    }

    .page-content-light .text-muted,
    .page-panel .text-muted,
    .panel-soft .text-muted,
    .readable-page .text-muted {
        color: rgba(255, 255, 255, 0.82) !important;
    }

    .page-content-light a,
    .page-panel a,
    .panel-soft a,
    .readable-page a {
        color: #9ecbff;
    }

        .page-content-light a:hover,
        .page-panel a:hover,
        .panel-soft a:hover,
        .readable-page a:hover {
            color: #c7e1ff;
        }

.text-on-dark {
    color: #ffffff !important;
}

.text-on-light {
    color: #212529 !important;
}

.text-shadow-soft {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

/* =========================================================
   3. NAVBAR / FOOTER
   ========================================================= */

.edne-navbar {
    position: sticky;
    top: 0;
    z-index: 2000;
    min-height: 72px;
    background: rgba(255, 255, 255, 0.90) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
}

    .edne-navbar .container {
        position: relative;
        z-index: 2;
    }

    .edne-navbar .navbar-brand {
        color: #111 !important;
        font-size: 1.8rem;
        font-weight: 800;
        letter-spacing: 0.3px;
    }

.edne-logo {
    height: 46px;
    width: auto;
    border-radius: 10px;
}

.navbar-brand img {
    border-radius: 8px;
}

.edne-navbar .nav-link {
    color: #2e2e2e !important;
    font-weight: 500;
    padding: 0.65rem 0.9rem !important;
    border-radius: 10px;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

    .edne-navbar .nav-link:hover {
        background: rgba(13, 110, 253, 0.08);
        color: #0d6efd !important;
        transform: translateY(-1px);
    }

.edne-user-name {
    color: #0d6efd !important;
    font-weight: 700 !important;
}

.edne-user-student {
    color: #198754 !important;
}

.edne-user-prof {
    color: #d39e00 !important;
}

.edne-logout-btn {
    color: #dc3545 !important;
    font-weight: 500;
}

    .edne-logout-btn:hover {
        background: rgba(220, 53, 69, 0.08) !important;
        color: #dc3545 !important;
    }

.edne-main-container {
    padding-top: 24px;
}

.navbar,
.navbar .container,
.navbar-collapse {
    position: relative;
    z-index: 1100;
}

.dropdown-menu {
    z-index: 2000 !important;
    background: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    border-radius: 12px;
    padding: 0.5rem 0;
    min-width: 240px;
}

.dropdown-item {
    color: #212529 !important;
    font-weight: 500;
    padding: 0.75rem 1rem;
    white-space: normal;
}

    .dropdown-item:hover,
    .dropdown-item:focus {
        background-color: rgba(13, 110, 253, 0.08);
        color: #0d6efd !important;
    }

.dropdown-toggle::after {
    margin-left: 0.5rem;
}

.footer {
    margin-top: auto;
    background: transparent;
    color: rgba(255, 255, 255, 0.9) !important;
}

    .footer a {
        color: #8ec5ff !important;
    }

/* =========================================================
   4. TITRES / PANELS / CONTENEURS
   ========================================================= */

.page-title {
    color: #ffffff !important;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.65);
    margin-bottom: 1rem;
}

.page-header {
    background: rgba(8, 18, 45, 0.45);
    padding: 1rem 1.5rem;
    border-radius: 14px;
    margin-bottom: 1.5rem;
    margin-top: 0.5rem;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

    .page-header h1,
    .page-header h2,
    .page-header h3 {
        margin: 0;
        color: #ffffff !important;
        font-weight: 800;
        text-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
    }

.page-panel {
    background: rgba(8, 18, 45, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
    padding: 2rem;
    color: #ffffff;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.panel-soft {
    background: rgba(8, 18, 45, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 18px;
    padding: 1.25rem;
    color: #ffffff;
}

.readable-page {
    background: rgba(8, 18, 45, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 20px;
    padding: 2rem;
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

/* =========================================================
   5. CARTES / FORMULAIRES / ALERTES
   ========================================================= */

.card,
.card-body,
.card-title,
.card-text,
.card p,
.card span,
.card div,
.card label,
.card li,
.card th,
.card td,
.card strong,
.card small {
    color: #212529 !important;
}

.page-panel .card,
.panel-soft .card,
.readable-page .card,
.mobile-info-card {
    background: rgba(255, 255, 255, 0.97);
    color: #212529 !important;
}

    .page-panel .card *,
    .panel-soft .card *,
    .readable-page .card *,
    .mobile-info-card * {
        color: #212529 !important;
    }

    .page-panel .card .text-muted,
    .panel-soft .card .text-muted,
    .readable-page .card .text-muted,
    .mobile-info-card .text-muted {
        color: #6c757d !important;
    }

.form-control,
.form-select,
textarea {
    color: #212529;
}

    .form-control::placeholder,
    textarea::placeholder {
        color: #6c757d;
        opacity: 1;
    }

.page-content-light .form-control,
.page-content-light .form-select,
.page-panel .form-control,
.page-panel .form-select,
.panel-soft .form-control,
.panel-soft .form-select,
.readable-page .form-control,
.readable-page .form-select {
    background: rgba(255, 255, 255, 0.96);
    color: #212529 !important;
    border: none;
}

    .page-content-light .form-control:focus,
    .page-content-light .form-select:focus,
    .page-panel .form-control:focus,
    .page-panel .form-select:focus,
    .panel-soft .form-control:focus,
    .panel-soft .form-select:focus,
    .readable-page .form-control:focus,
    .readable-page .form-select:focus {
        background: #ffffff;
        color: #212529 !important;
    }

.alert {
    color: #212529;
    border-radius: 14px;
}

.badge {
    color: #fff;
    font-size: 0.85rem;
    padding: 6px 10px;
    border-radius: 6px;
}

    .badge.bg-warning,
    .badge.bg-info {
        color: #000 !important;
    }

.edne-btn {
    border-radius: 12px;
    font-weight: 600;
    padding: 0.7rem 1rem;
    transition: all 0.2s ease-in-out;
}

    .edne-btn:hover {
        transform: translateY(-2px);
    }

/* =========================================================
   6. TABLEAUX
   ========================================================= */

.edne-data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.edne-table-dark {
    color: #ffffff;
    background: rgba(7, 18, 44, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    overflow: hidden;
}

    .edne-table-dark thead th,
    .edne-table-header {
        background: rgba(255, 255, 255, 0.90);
        color: #1f2937 !important;
        border-bottom: 1px solid rgba(12, 28, 69, 0.24);
        font-weight: 700;
        letter-spacing: 0.01em;
        vertical-align: middle;
        padding: 0.7rem 0.65rem;
    }

    .edne-table-dark tbody td {
        color: #f8fbff !important;
        background: transparent;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        vertical-align: middle;
        padding: 0.65rem;
    }

    .edne-table-dark tbody tr:last-child td {
        border-bottom: none;
    }

    .edne-table-dark tbody tr:hover td {
        background: rgba(255, 255, 255, 0.05);
    }

.edne-table-actions {
    text-align: center;
    vertical-align: middle !important;
    white-space: nowrap;
    width: 230px;
}

.edne-table-action-buttons {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

    .edne-table-action-buttons .btn {
        min-width: 106px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        line-height: 1.1;
        white-space: nowrap;
    }

.edne-table-nowrap {
    white-space: nowrap;
}

.edne-table-centered {
    text-align: center !important;
}

/* Alias de compatibilité progressive */
.table-nowrap {
    white-space: nowrap;
}

.table-centered {
    text-align: center !important;
}

.table-actions {
    text-align: center;
    white-space: nowrap;
    vertical-align: middle !important;
    width: 230px;
}

.table-action-buttons {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    flex-wrap: nowrap;
}

    .table-action-buttons .btn {
        min-width: 106px;
        height: 32px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
        padding: 0.25rem 0.6rem;
    }

.table {
    color: #ffffff;
}

    .table thead th {
        background: rgba(255, 255, 255, 0.90);
        color: #212529 !important;
        text-align: center;
        vertical-align: middle;
    }

    .table tbody td {
        color: #ffffff;
        vertical-align: middle;
    }

    .table td:first-child {
        font-weight: 600;
    }

.card .table,
.card .table th,
.card .table td,
.page-panel .card .table,
.page-panel .card .table tbody td,
.page-panel .card .table thead th,
.panel-soft .card .table,
.panel-soft .card .table tbody td,
.panel-soft .card .table thead th,
.readable-page .card .table,
.readable-page .card .table tbody td,
.readable-page .card .table thead th {
    color: #212529 !important;
}

.app-table,
.eval-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
}

    .app-table thead th,
    .eval-table thead th {
        background: #eef2f7;
        color: #212529 !important;
        font-weight: 700;
        text-align: center;
        vertical-align: middle;
        padding: 12px 10px;
        white-space: nowrap;
        border: none;
    }

    .app-table tbody td,
    .eval-table tbody td {
        background: #ffffff;
        color: #212529 !important;
        vertical-align: middle;
        padding: 12px 10px;
        border-top: 1px solid #e9ecef;
    }

    .app-table tbody tr:hover td,
    .eval-table tbody tr:hover td {
        background: #f8f9fa;
    }

    .app-table a,
    .eval-table a {
        color: #0d6efd !important;
        text-decoration: none;
        font-weight: 500;
    }

        .app-table a:hover,
        .eval-table a:hover {
            text-decoration: underline;
        }

    .app-table .btn,
    .eval-table .btn {
        white-space: nowrap;
    }

    .app-table .badge,
    .eval-table .badge {
        font-size: 0.82rem;
    }

    .app-table td,
    .app-table th,
    .eval-table td,
    .eval-table th {
        font-size: 0.95rem;
    }

.gestion-classes-table-wrap {
    max-width: 980px;
    margin: 0 auto;
}

.gestion-classes-table thead th {
    background: rgba(255, 255, 255, 0.90);
    color: #212529 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.24);
    padding: 0.6rem 0.55rem;
    vertical-align: middle;
}

.gestion-classes-table tbody td {
    background: transparent !important;
    color: #ffffff !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.11);
    padding: 0.55rem 0.55rem;
    vertical-align: middle;
}

.gestion-classes-table th,
.gestion-classes-table td {
    font-size: 0.95rem;
}

.gestion-classes-table tbody tr:last-child td {
    border-bottom: none;
}

@media (min-width: 992px) {
    .gestion-classes-table {
        width: 94%;
        margin: 0 auto;
    }
}

/* Tableau ciblé Gestion Élèves : alignement et proportions dédiés */
.gestion-eleves-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.gestion-eleves-table {
    min-width: 1080px;
    table-layout: fixed;
}

.gestion-eleves-table .gestion-eleves-col-id {
    width: 7%;
}

.gestion-eleves-table .gestion-eleves-col-nom,
.gestion-eleves-table .gestion-eleves-col-prenom {
    width: 13%;
}

.gestion-eleves-table .gestion-eleves-col-date,
.gestion-eleves-table .gestion-eleves-col-identifiant {
    width: 12%;
}

.gestion-eleves-table .gestion-eleves-col-password {
    width: 15%;
}

.gestion-eleves-table .gestion-eleves-col-classe {
    width: 12%;
}

.gestion-eleves-table .gestion-eleves-col-actions {
    width: 16%;
}

.gestion-eleves-table th,
.gestion-eleves-table td,
.gestion-eleves-table thead th,
.gestion-eleves-table tbody td {
    text-align: center !important;
    vertical-align: middle !important;
    line-height: 1.3;
}

.gestion-eleves-table thead th {
    padding: 0.8rem 0.7rem;
}

.gestion-eleves-table tbody td {
    padding: 0.82rem 0.7rem;
    overflow-wrap: anywhere;
}

.gestion-eleves-table .edne-table-nowrap {
    overflow-wrap: normal;
}

.gestion-eleves-table .edne-table-actions {
    width: auto;
    padding-left: 0.65rem;
    padding-right: 0.65rem;
}

.gestion-eleves-table .edne-table-action-buttons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.45rem;
    width: 100%;
}

.gestion-eleves-table .edne-table-action-buttons .btn {
    width: 110px;
    min-width: 110px;
    max-width: 110px;
    padding: 0.34rem 0.5rem;
    line-height: 1.15;
    text-align: center !important;
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .gestion-eleves-table {
        min-width: 980px;
    }

    .gestion-eleves-table thead th,
    .gestion-eleves-table tbody td {
        font-size: 0.86rem;
        padding: 0.68rem 0.5rem;
    }

    .gestion-eleves-table .edne-table-action-buttons .btn {
        width: 105px;
        min-width: 105px;
        max-width: 105px;
        font-size: 0.78rem;
    }
}

@media (max-width: 767.98px) {
    .edne-table-dark thead th,
    .edne-table-dark tbody td {
        padding: 0.55rem 0.5rem;
        font-size: 0.88rem;
    }

    .edne-table-actions {
        width: auto;
    }

    .edne-table-action-buttons .btn {
        min-width: 96px;
        font-size: 0.8rem;
    }
}

.table-responsive {
    border-radius: 14px;
}

.edne-table-grid {
    width: 100%;
    table-layout: fixed;
}

.edne-table-grid col {
    width: auto;
}

.edne-table-grid thead th,
.edne-table-grid tbody td {
    box-sizing: border-box;
}

.eval-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

    .eval-actions form {
        margin: 0;
    }

@media (max-width: 767.98px) {
    .edne-table-grid {
        table-layout: auto;
    }
}


/* Alignement vertical global des tableaux EDNE (desktop) */
@media (min-width: 768px) {
    .edne-table-valign {
        table-layout: fixed;
    }

        .edne-table-valign thead th,
        .edne-table-valign tbody th,
        .edne-table-valign tbody td {
            vertical-align: middle !important;
            padding-top: 0.68rem;
            padding-bottom: 0.68rem;
        }

        .edne-table-valign thead th {
            line-height: 1.25;
        }

        .edne-table-valign .btn,
        .edne-table-valign .btn-group,
        .edne-table-valign .table-action-buttons,
        .edne-table-valign .edne-table-action-buttons {
            vertical-align: middle;
            align-items: center;
        }

        .edne-table-valign .table-actions,
        .edne-table-valign .edne-table-actions {
            vertical-align: middle !important;
        }
}

/* Alignements métiers globaux */
.parent-summary-table,
.parent-details-table,
.parent-bulletin-table,
.eleve-summary-table,
.eleve-notes-table,
.eleve-absences-table,
.prof-history-table,
.prof-call-table,
.prof-classes-table,
.prof-edt-table,
.notes-entry-table {
    table-layout: fixed;
    width: 100%;
}

/* =========================================================
   7. ACCUEIL EDNE
   ========================================================= */

.edne-home {
    min-height: calc(100vh - 140px);
    display: flex;
    align-items: center;
    padding: 40px 20px;
}

.edne-hero {
    text-align: center;
    color: #fff;
    margin-bottom: 3rem;
    position: relative;
}

    .edne-hero h1 {
        font-weight: 800;
        letter-spacing: 0.5px;
        text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
    }

    .edne-hero p {
        max-width: 850px;
        margin: 0 auto;
        color: rgba(255, 255, 255, 0.92);
    }

.edne-hero-title {
    font-weight: 900;
    font-size: clamp(2.5rem, 6vw, 4.6rem);
    line-height: 1.08;
    letter-spacing: 0.5px;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
    margin-bottom: 1.25rem;
}

.edne-title-red {
    color: #ce1126 !important;
}

.edne-title-yellow {
    color: #fcd116 !important;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.58);
}

.edne-title-green {
    color: #009460 !important;
}

.edne-hero::after {
    content: "";
    position: absolute;
    inset: -20px;
    pointer-events: none;
    background: radial-gradient(circle at 20% 30%, rgba(206, 17, 38, 0.12), transparent 28%), radial-gradient(circle at 50% 20%, rgba(252, 209, 22, 0.10), transparent 30%), radial-gradient(circle at 80% 30%, rgba(0, 148, 96, 0.12), transparent 28%);
    filter: blur(8px);
    z-index: 0;
}

.edne-hero > * {
    position: relative;
    z-index: 1;
}

.edne-card {
    border: none;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
    color: #212529;
}

    .edne-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    }

    .edne-card .card-body {
        padding: 2rem 1.5rem;
        color: #212529;
    }

    .edne-card h4,
    .edne-card h5,
    .edne-card p,
    .edne-card span,
    .edne-card div {
        color: #212529 !important;
    }

    .edne-card .text-muted {
        color: #6c757d !important;
    }

    .edne-card .btn {
        border-radius: 12px;
        font-weight: 700;
    }

.edne-icon {
    width: 82px;
    height: 82px;
    margin: 0 auto 1rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 2rem;
}

.edne-icon-school {
    color: #0d6efd;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.12), rgba(13, 110, 253, 0.20));
}

.edne-icon-student {
    color: #198754;
    background: linear-gradient(135deg, rgba(25, 135, 84, 0.12), rgba(25, 135, 84, 0.20));
}

.edne-icon-teacher {
    color: #d39e00;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.14), rgba(255, 193, 7, 0.22));
}

.edne-icon-parent {
    color: #0dcaf0;
    background: linear-gradient(135deg, rgba(13, 202, 240, 0.14), rgba(13, 202, 240, 0.22));
}

/* =========================================================
   8. DASHBOARDS COMMUNS
   ========================================================= */

.school-hero,
.prof-hero,
.eleve-hero {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    padding: 1.5rem;
    color: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.school-hero,
.prof-hero {
    background: linear-gradient(135deg, rgba(198, 40, 40, 0.92), rgba(27, 94, 32, 0.88));
}

.eleve-hero {
    background: linear-gradient(135deg, rgba(25, 135, 84, 0.92), rgba(13, 110, 253, 0.82));
}

    .school-hero::after,
    .prof-hero::after,
    .eleve-hero::after {
        content: "";
        position: absolute;
        right: -35px;
        bottom: -35px;
        width: 170px;
        height: 170px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.08);
        pointer-events: none;
    }

.school-hero-title,
.prof-hero-title,
.eleve-hero-title {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.school-hero-badge {
    display: inline-block;
    margin-bottom: 0.6rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.school-hero-text {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.95);
}

.section-head h2,
.section-head h3 {
    color: #ffffff !important;
    font-weight: 700;
}

.school-space .section-head,
.prof-space .section-head,
.parent-space .section-head {
    margin-top: 0.25rem;
}

.stat-card {
    border-radius: 18px;
    overflow: hidden;
}

    .stat-card .card-body {
        padding: 1.25rem 1.25rem 1.15rem;
    }

.stat-label {
    font-size: 0.92rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #6c757d !important;
    margin-bottom: 0.35rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
    color: #212529 !important;
    margin-bottom: 0.25rem;
}

.stat-hint {
    font-size: 0.88rem;
    color: #6c757d !important;
}

.stat-card-primary {
    border-top: 4px solid #0d6efd;
}

.stat-card-danger {
    border-top: 4px solid #dc3545;
}

.stat-card-warning {
    border-top: 4px solid #ffc107;
}

.stat-card-info {
    border-top: 4px solid #0dcaf0;
}

.stat-card-success {
    border-top: 4px solid #198754;
}

/* =========================================================
   9. ESPACE ÉCOLE
   ========================================================= */

.school-shortcuts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.school-shortcut-card {
    display: block;
    text-decoration: none;
    border-radius: 1rem;
    padding: 1rem 1rem 1.1rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    color: #212529 !important;
}

    .school-shortcut-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 14px 28px rgba(0, 0, 0, 0.10);
        color: #212529 !important;
    }

    .school-shortcut-card .shortcut-title,
    .school-shortcut-card .shortcut-text,
    .school-shortcut-card .shortcut-icon {
        color: inherit;
    }

.shortcut-icon {
    width: 2.7rem;
    height: 2.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.85rem;
    margin-bottom: 0.85rem;
    font-size: 1.1rem;
    background: rgba(13, 110, 253, 0.10);
}

.shortcut-title {
    font-weight: 800;
    margin-bottom: 0.35rem;
}

.shortcut-text {
    color: #6c757d !important;
    font-size: 0.92rem;
    line-height: 1.45;
}

.shortcut-primary .shortcut-icon {
    background: rgba(13, 110, 253, 0.10);
    color: #0d6efd;
}

.shortcut-success .shortcut-icon {
    background: rgba(25, 135, 84, 0.10);
    color: #198754;
}

.shortcut-warning .shortcut-icon {
    background: rgba(255, 193, 7, 0.16);
    color: #a06a00;
}

.shortcut-info .shortcut-icon {
    background: rgba(13, 202, 240, 0.14);
    color: #0a7c90;
}

.shortcut-danger .shortcut-icon {
    background: rgba(220, 53, 69, 0.10);
    color: #dc3545;
}

.shortcut-secondary .shortcut-icon {
    background: rgba(108, 117, 125, 0.12);
    color: #6c757d;
}

.shortcut-dark .shortcut-icon {
    background: rgba(33, 37, 41, 0.10);
    color: #212529;
}

/* =========================================================
   10. ESPACE PROFESSEUR
   ========================================================= */

.prof-space .page-header {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.14), rgba(13, 110, 253, 0.10));
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.panel-soft .form-label {
    color: #ffffff !important;
}

.panel-soft .btn {
    min-width: 140px;
}

.eval-table .badge {
    min-width: 70px;
    text-align: center;
}

.prof-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.prof-matieres-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.prof-matiere-badge {
    padding: 0.6rem 0.85rem;
    font-size: 0.92rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* =========================================================
   11. ESPACE PARENT
   ========================================================= */

.parent-space .page-header {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.20), rgba(13, 202, 240, 0.14));
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.parent-hero {
    padding-top: 1.2rem;
    padding-bottom: 1.2rem;
}

.parent-summary-card {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.16), rgba(13, 202, 240, 0.12));
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    padding: 1rem 1.1rem;
}

.parent-summary-title {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.45rem;
    font-weight: 800;
    letter-spacing: 0.2px;
}

.parent-login-panel {
    margin-top: 2rem;
    max-width: 100%;
}

.parent-space .card {
    border-radius: 18px;
}

.parent-space .card-header {
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
}

.parent-space .btn {
    border-radius: 12px;
}

.parent-space .form-control,
.parent-space .form-select {
    border-radius: 12px;
}

.parent-space textarea.form-control {
    border-radius: 14px;
}

.parent-space .table-responsive {
    border-radius: 16px;
}

.parent-space .app-table {
    border-radius: 16px;
    overflow: hidden;
}

    .parent-space .app-table thead th {
        background: #eef4fb;
    }

    .parent-space .app-table tbody tr:hover td {
        background: #f4f8fc;
    }

.parent-space .badge {
    border-radius: 999px;
}

.parent-space .card {
    overflow: hidden;
}

.parent-space .card-body,
.parent-space .card-header,
.parent-space .mobile-info-card {
    padding: 1rem 1.05rem;
}

.parent-space .mobile-cards {
    margin-top: 1rem;
    gap: 0.9rem;
}

.parent-space .mobile-info-card {
    border: 1px solid rgba(13, 110, 253, 0.12);
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(13, 36, 84, 0.08);
}

.parent-space .mobile-info-title {
    font-size: 1.02rem;
    font-weight: 800;
}

.parent-space .mobile-info-label {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.35px;
}

.parent-space .mobile-info-value {
    font-size: 0.94rem;
    font-weight: 600;
}

.parent-space .mobile-info-date,
.parent-space .mobile-info-card .text-muted {
    opacity: 0.82;
}

.parent-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}

    .parent-stats-grid .stat-card {
        border-radius: 20px;
        overflow: hidden;
        transition: transform 0.18s ease, box-shadow 0.18s ease;
    }

        .parent-stats-grid .stat-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
        }

    .parent-stats-grid .card-body {
        padding: 1.2rem 1.1rem;
    }

.parent-children-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.parent-child-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

    .parent-child-actions .btn {
        min-height: 46px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        white-space: normal;
        font-weight: 600;
        text-align: center;
        padding: 0.55rem 0.7rem;
    }

.parent-soft-badge {
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
}

.parent-status-badge {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.35px;
    text-transform: uppercase;
}

.parent-status-badge-type-absence {
    background: #dc3545 !important;
    color: #ffffff !important;
}

.parent-status-badge-type-retard {
    background: #ffc107 !important;
    color: #212529 !important;
}

.parent-status-badge-type-sortie {
    background: #0dcaf0 !important;
    color: #212529 !important;
}

.parent-status-badge-type-neutral {
    background: #6c757d !important;
    color: #ffffff !important;
}

.parent-status-badge-justified {
    background: #198754 !important;
    color: #ffffff !important;
}

.parent-status-badge-not-justified {
    background: #6c757d !important;
    color: #ffffff !important;
}

.parent-avg-box {
    min-width: 220px;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.08), rgba(13, 202, 240, 0.08));
    border: 1px solid rgba(13, 110, 253, 0.12);
    border-radius: 16px;
    padding: 1rem 1.1rem;
}

.parent-avg-label {
    font-size: 0.9rem;
    color: #6c757d !important;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.parent-avg-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0d6efd !important;
}

.parent-info-block {
    background: #f8f9fa;
    border-radius: 14px;
    padding: 1rem;
    height: 100%;
}

.parent-info-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #6c757d !important;
    margin-bottom: 0.35rem;
}

.parent-info-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: #212529 !important;
}

.parent-child-summary {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.09), rgba(13, 202, 240, 0.07));
}

.parent-child-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.parent-child-section-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

    .parent-child-section-nav .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        white-space: normal;
    }

.parent-periode-actions .btn {
    min-width: 100px;
}

.parent-events-type-pills {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

    .parent-events-type-pills .btn {
        min-height: 44px;
        border-radius: 12px;
        font-weight: 700;
        font-size: 0.92rem;
    }

.parent-event-mobile-card {
    border: 1px solid rgba(13, 110, 253, 0.12);
}

.parent-event-mobile-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.35rem;
}

.parent-event-type-value {
    font-weight: 700;
    text-transform: capitalize;
}

.parent-justify-summary-card {
    border: 1px solid rgba(13, 110, 253, 0.14);
}

.parent-justify-help {
    border-radius: 14px;
}

.parent-justify-form {
    display: grid;
    gap: 0.3rem;
}

.parent-justify-textarea {
    min-height: 150px;
    padding: 0.9rem 0.95rem;
    line-height: 1.45;
}

.parent-justify-feedback {
    border-radius: 12px;
}

.parent-justify-actions {
    margin-top: 0.2rem;
}

.parent-hero-summary {
    border-radius: 16px;
    border: 1px solid rgba(13, 110, 253, 0.12);
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.10), rgba(13, 202, 240, 0.08));
}

.parent-unified-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.7rem;
}

.parent-unified-actions .btn,
.parent-page-actions .btn,
.parent-filter-actions .btn,
.parent-bulletin-periods .btn {
    min-height: 46px;
    font-weight: 700;
}

/* =========================================================
   12. ESPACE ÉLÈVE
   ========================================================= */

.eleve-login-panel {
    max-width: 100%;
}

.eleve-login-card {
    border-radius: 1rem;
}

.eleve-space .page-header {
    background: linear-gradient(135deg, rgba(25, 135, 84, 0.22), rgba(13, 110, 253, 0.18));
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.eleve-hero-side {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    min-width: min(100%, 260px);
}

.eleve-hero-badge-card {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 0.9rem;
    padding: 0.85rem 1rem;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.eleve-space .section-head h3 {
    font-size: 1.15rem;
    font-weight: 800;
}

.eleve-note-badge {
    font-size: 0.92rem;
    padding: 0.5rem 0.7rem;
    border-radius: 999px;
}

.eleve-stat-class {
    font-size: 1.15rem;
    line-height: 1.25;
}

.eleve-menu {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
    margin-bottom: 1.6rem;
    align-items: stretch;
}

.eleve-menu-btn {
    min-height: 54px;
    width: 100%;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 1rem;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}

.eleve-menu-logout {
    margin: 0;
}

.eleve-menu-btn-logout {
    width: 100%;
}

/* =========================================================
   13. EMPLOI DU TEMPS
   ========================================================= */

.edt-wrapper {
    overflow-x: auto;
}

.edt-grid {
    background: rgba(255, 255, 255, 0.08);
    border-collapse: separate;
    border-spacing: 0;
    min-width: 1100px;
}

    .edt-grid thead th {
        background: rgba(13, 110, 253, 0.18);
        color: #ffffff !important;
        font-weight: 700;
        border: 1px solid rgba(255, 255, 255, 0.15);
        vertical-align: middle;
        text-transform: uppercase;
    }

.edt-heure-col,
.edt-heure-cell {
    min-width: 140px;
    position: sticky;
    left: 0;
}

.edt-heure-col {
    z-index: 3;
    background: rgba(13, 110, 253, 0.22) !important;
}

.edt-heure-cell {
    z-index: 2;
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 1rem;
    vertical-align: middle;
}

.edt-jour-col {
    min-width: 220px;
}

.edt-cell {
    height: 140px;
    min-width: 220px;
    padding: 8px;
    vertical-align: top;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.04);
}

.edt-card {
    height: 100%;
    min-height: 120px;
    border-radius: 14px;
    padding: 12px;
    text-align: left;
    background: rgba(255, 255, 255, 0.92);
    color: #212529 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
}

    .edt-card,
    .edt-card div,
    .edt-card span,
    .edt-card strong,
    .edt-card .edt-classe,
    .edt-card .edt-info {
        color: #212529 !important;
    }

        .edt-card .edt-matiere {
            color: #0d6efd !important;
        }

.edt-matiere {
    font-size: 1rem;
    font-weight: 700;
}

.edt-classe {
    font-size: 0.92rem;
    font-weight: 600;
}

.edt-info {
    font-size: 0.88rem;
    line-height: 1.35;
}

.edt-empty {
    min-height: 120px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
}

.edt-card .btn {
    min-width: 90px;
}

.edt-card .btn-warning {
    color: #212529 !important;
}

.edt-card .btn-danger {
    color: #fff !important;
}

/* =========================================================
   14. CARTES MOBILE GÉNÉRIQUES
   ========================================================= */

.mobile-cards {
    display: grid;
    gap: 1.15rem;
    margin-top: 1.25rem;
}

.mobile-info-card {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 18px;
    padding: 1.1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
    color: #212529 !important;
}

    .mobile-info-card,
    .mobile-info-card * {
        color: #212529 !important;
    }

.mobile-info-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.mobile-info-title {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.25;
    color: #212529 !important;
}

.mobile-info-date {
    font-size: 0.86rem;
    color: #6c757d !important;
    white-space: nowrap;
}

.mobile-info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-top: 1px solid #eef1f4;
}

    .mobile-info-row:first-of-type {
        border-top: none;
        padding-top: 0;
    }

.mobile-info-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: #6c757d !important;
    min-width: 96px;
}

.mobile-info-value {
    font-size: 0.92rem;
    text-align: right;
    line-height: 1.35;
    word-break: break-word;
    color: #212529 !important;
}

.mobile-edt-card .mobile-edt-matiere {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0d6efd !important;
    margin-bottom: 0.8rem;
}

/* =========================================================
   15. GRAPHIQUES / ANIMATIONS
   ========================================================= */

#presenceChart {
    min-height: 280px;
    max-height: 320px;
}

.edne-fade-up {
    animation: edneFadeUp 0.7s ease both;
}

@keyframes edneFadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================
   16. RESPONSIVE - TABLETTES ET MOBILES
   ========================================================= */

@media (min-width: 992px) {
    .prof-dashboard-grid {
        grid-template-columns: 1.1fr 0.9fr;
        align-items: start;
    }

    .eleve-hero-side {
        width: 280px;
    }
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        margin-top: 0.75rem;
        background: rgba(255, 255, 255, 0.98);
        border-radius: 16px;
        padding: 0.8rem;
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
    }

    .navbar-nav .nav-link,
    .navbar-nav button.nav-link {
        min-height: 46px;
        display: flex;
        align-items: center;
        border-radius: 12px;
        padding: 0.75rem 0.9rem !important;
    }

    .navbar-nav.ms-auto {
        margin-top: 0.5rem;
        padding-top: 0.4rem;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
    }

    .dropdown-menu {
        margin-top: 0.35rem;
        border-radius: 12px;
    }

    .eleve-menu {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }

    .eleve-menu-logout {
        grid-column: 1 / -1;
    }

    .parent-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.9rem;
    }

    .parent-child-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

        .parent-child-actions .btn:last-child {
            grid-column: 1 / -1;
        }

    .parent-child-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .parent-child-section-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .page-panel,
    .readable-page {
        padding: 1.2rem;
    }

    .page-header {
        padding: 0.95rem 1rem;
        margin-bottom: 1.2rem;
    }

        .page-header h1 {
            font-size: 1.6rem;
            line-height: 1.15;
        }

    .eval-table thead th,
    .eval-table tbody td,
    .app-table thead th,
    .app-table tbody td {
        font-size: 0.88rem;
        padding: 10px 8px;
    }

    .eval-actions {
        flex-direction: column;
        align-items: stretch;
    }

        .eval-actions .btn,
        .eval-actions form,
        .eval-actions form button {
            width: 100%;
        }

    .edt-cell {
        min-width: 180px;
        height: 130px;
    }

    .edt-card {
        padding: 10px;
    }

    .edt-matiere {
        font-size: 0.95rem;
    }

    .stat-value {
        font-size: 1.65rem;
    }

    .parent-avg-box {
        min-width: 100%;
    }

    .school-shortcuts {
        grid-template-columns: 1fr;
    }

    .badge {
        font-size: 0.78rem;
    }

    .eleve-menu {
        gap: 0.9rem;
        margin-top: 1rem;
        margin-bottom: 1.25rem;
    }

    .eleve-menu-btn {
        min-height: 50px;
        padding: 0.9rem 1rem;
    }

    .parent-filter-actions {
        flex-direction: column;
    }

        .parent-filter-actions .btn {
            min-height: 46px;
        }

    .parent-space {
        overflow-x: hidden;
    }

    .parent-space .card-body,
    .parent-space .card-header,
    .parent-space .mobile-info-card {
        padding: 0.95rem;
    }

    .parent-page-actions,
    .parent-filter-actions,
    .parent-bulletin-actions,
    .parent-bulletin-periods,
    .parent-event-mobile-badges,
    .parent-unified-actions {
        gap: 0.6rem !important;
    }

    .parent-page-actions .btn,
    .parent-filter-actions .btn,
    .parent-bulletin-actions .btn,
    .parent-bulletin-periods .btn,
    .parent-child-actions .btn,
    .parent-child-section-nav .btn,
    .parent-hero .btn,
    .parent-space .btn.edne-mobile-btn-lg {
        width: 100%;
        min-height: 46px;
    }

    .parent-event-mobile-badges {
        justify-content: flex-start;
    }

    .parent-justify-actions {
        flex-direction: column-reverse;
    }

        .parent-justify-actions .btn,
        .parent-justify-submit-btn {
            width: 100%;
            min-height: 46px;
        }
}

@media (max-width: 575.98px) {
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        border-radius: 12px;
        padding: 0.75rem;
        margin-top: 0.5rem;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
    }

    .dropdown-menu {
        position: static !important;
        transform: none !important;
        float: none;
        width: 100%;
        margin-top: 0.4rem;
        box-shadow: none;
        border-radius: 10px;
        border: 1px solid rgba(0, 0, 0, 0.08);
    }

    .navbar-nav .nav-link {
        padding: 0.7rem 0.75rem;
    }

    .dropdown-item {
        font-size: 1rem;
    }

    .edne-navbar {
        min-height: 68px;
        padding-top: 0.55rem;
        padding-bottom: 0.55rem;
    }

    .edne-main-container {
        padding-top: 18px;
    }

    .school-hero,
    .prof-hero,
    .eleve-hero {
        padding: 1.15rem;
    }

    .school-hero-title,
    .prof-hero-title,
    .eleve-hero-title {
        font-size: 1.65rem;
    }

    .school-hero-badge {
        font-size: 0.76rem;
        padding: 0.3rem 0.65rem;
    }

    .shortcut-text {
        font-size: 0.88rem;
    }

    .eleve-menu {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.9rem;
        margin-top: 1rem;
        margin-bottom: 1.35rem;
    }

    .eleve-menu-btn {
        min-height: 52px;
        justify-content: center;
        padding: 0.95rem 0.9rem;
        white-space: normal;
        text-align: center;
    }

    .eleve-menu-logout {
        grid-column: 1 / -1;
    }

    .mobile-info-card {
        padding: 1.15rem;
    }

    .mobile-info-title {
        margin-bottom: 0.15rem;
    }

    .parent-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.85rem;
    }

    .parent-summary-card {
        padding: 0.95rem 1rem;
    }

    .parent-summary-title {
        font-size: 0.98rem;
    }

        .parent-stats-grid .card-body {
            padding: 1rem 0.95rem;
        }

        .parent-stats-grid .stat-value {
            font-size: 1.75rem;
        }

        .parent-stats-grid .stat-label {
            font-size: 0.84rem;
        }

        .parent-stats-grid .stat-hint {
            font-size: 0.82rem;
            line-height: 1.3;
        }

    .parent-child-actions {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }

        .parent-child-actions .btn {
            min-height: 48px;
            font-size: 0.95rem;
        }

        .parent-child-actions .btn:last-child {
            grid-column: auto;
        }

    .parent-child-kpis,
    .parent-child-section-nav {
        grid-template-columns: 1fr;
    }

    .parent-unified-actions {
        grid-template-columns: 1fr;
    }

    .parent-periode-actions {
        flex-direction: column;
    }

        .parent-periode-actions .btn {
            width: 100%;
        }

    .notes-submit-actions .btn {
        width: 100%;
        min-height: 48px;
        font-weight: 700;
    }

    .notes-summary-grid > div {
        padding-top: 0.1rem;
        padding-bottom: 0.1rem;
    }
}

@media (max-width: 430px) {
    .page-header h1 {
        font-size: 1.42rem;
    }

    .mobile-info-card-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .mobile-info-date {
        white-space: normal;
    }

    .mobile-info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .mobile-info-value {
        text-align: left;
    }

    .mobile-info-label {
        min-width: auto;
    }

    .parent-events-type-pills {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   17. ALIGNEMENTS TABLEAUX MÉTIERS
   ========================================================= */

.parent-summary-table th,
.parent-summary-table td,
.parent-details-table th,
.parent-details-table td,
.parent-bulletin-table th,
.parent-bulletin-table td,
.eleve-summary-table th,
.eleve-summary-table td,
.eleve-notes-table th,
.eleve-notes-table td,
.eleve-absences-table th,
.eleve-absences-table td,
.prof-history-table th,
.prof-history-table td,
.prof-call-table th,
.prof-call-table td,
.prof-classes-table th,
.prof-classes-table td,
.prof-edt-table th,
.prof-edt-table td,
.notes-entry-table th,
.notes-entry-table td {
    vertical-align: middle;
}

.parent-summary-table thead th:first-child,
.parent-summary-table tbody td:first-child,
.eleve-summary-table thead th:first-child,
.eleve-summary-table tbody td:first-child {
    text-align: left !important;
}

.parent-summary-table thead th:last-child,
.parent-summary-table tbody td:last-child {
    text-align: center !important;
}

.parent-details-table thead th,
.parent-details-table tbody td,
.parent-bulletin-table thead th,
.parent-bulletin-table tbody td,
.eleve-notes-table thead th,
.eleve-notes-table tbody td,
.eleve-absences-table thead th,
.eleve-absences-table tbody td,
.prof-history-table thead th,
.prof-history-table tbody td,
.prof-call-table thead th,
.prof-call-table tbody td,
.prof-classes-table thead th,
.prof-classes-table tbody td,
.prof-edt-table thead th,
.prof-edt-table tbody td,
.notes-entry-table thead th {
    text-align: center !important;
}

.notes-entry-table tbody td:nth-child(1),
.notes-entry-table tbody td:nth-child(2),
.notes-entry-table tbody td:nth-child(5) {
    text-align: left !important;
}

.notes-entry-table tbody td:nth-child(3),
.notes-entry-table tbody td:nth-child(4) {
    text-align: center !important;
}

.notes-entry-note-cell {
    max-width: 140px;
    margin: 0 auto;
}

.notes-entry-table .form-control {
    min-height: 42px;
}

.notes-summary-card {
    border-radius: 16px;
}

.notes-summary-grid strong {
    display: inline-block;
    margin-bottom: 0.15rem;
}

.notes-layout-mobile .notes-mobile-cards {
    gap: 0.9rem;
}

.notes-mobile-card {
    border: 1px solid rgba(13, 110, 253, 0.08);
}

.notes-mobile-field {
    margin-bottom: 0.95rem;
}

.notes-mobile-switch {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.75rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    background: #f8f9fa;
}

    .notes-mobile-switch .form-check-input {
        width: 2.6rem;
        height: 1.3rem;
        margin-top: 0;
    }

    .notes-mobile-switch .small {
        line-height: 1.35;
    }

.bulletin-summary-card {
    border-radius: 16px;
}

.parent-bulletin-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.7rem;
}

.parent-bulletin-back,
.parent-bulletin-pdf {
    min-height: 46px;
}

.parent-bulletin-periods {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

    .parent-bulletin-periods .btn {
        min-height: 46px;
        min-width: 64px;
        font-weight: 700;
    }

.bulletin-section-card {
    border-radius: 16px;
}

.bulletin-matiere-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
}

.bulletin-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}

.bulletin-kpi-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 14px;
    padding: 0.8rem 0.9rem;
}

.bulletin-kpi-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #6c757d !important;
}

.bulletin-kpi-value {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.3;
}

.bulletin-table-scroll {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.bulletin-mobile-notes {
    display: grid;
    gap: 0.75rem;
}

.bulletin-note-card {
    border: 1px solid rgba(13, 110, 253, 0.08);
    border-radius: 14px;
}

.bulletin-note-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

.bulletin-note-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 11px;
    padding: 0.55rem 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.bulletin-note-label {
    font-size: 0.78rem;
    color: #6c757d !important;
    font-weight: 700;
}

.bulletin-note-value {
    font-size: 0.96rem;
    font-weight: 700;
    color: #212529 !important;
}

.bulletin-mobile-note-head {
    margin-bottom: 0.7rem;
}

.prof-call-table .form-check {
    margin-bottom: 0;
}

.prof-presences-table .prof-presence-col-title {
    text-align: center;
}

.prof-presences-table .prof-presence-radio-group {
    justify-content: center;
    padding-left: clamp(0.4rem, 1vw, 0.85rem);
}

.parent-details-table td,
.parent-bulletin-table td,
.eleve-notes-table td,
.eleve-absences-table td,
.prof-history-table td,
.prof-call-table td,
.prof-edt-table td,
.notes-entry-table td {
    white-space: nowrap;
}

/* =========================================================
   18. BADGE SCOLAIRE PROFESSIONNEL EDNE
   ========================================================= */

.badge-preview-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.75rem 0 1.25rem;
}

.badge-card-pro {
    position: relative;
    width: 100%;
    max-width: 900px;
    min-height: 560px;
    border-radius: 28px;
    overflow: hidden;
    letter-spacing: 0.2px;
    background-image: linear-gradient(180deg, rgba(5, 13, 36, 0.92), rgba(8, 22, 58, 0.95)), url('/images/image_fond.png');
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
    background-size: auto, cover;
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

    .badge-card-pro::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.10), transparent 24%), radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.08), transparent 22%);
        pointer-events: none;
        z-index: 1;
    }

.badge-card-topbar {
    height: 14px;
    background: linear-gradient( 90deg, #ce1126 0%, #ce1126 33.33%, #fcd116 33.33%, #fcd116 66.66%, #009460 66.66%, #009460 100% );
}

.badge-card-inner {
    position: relative;
    z-index: 2;
    padding: 1.4rem 1.5rem 1.6rem;
}

.badge-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.35rem;
}

.badge-brand-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.badge-logo-shell {
    width: 86px;
    height: 86px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.badge-logo-pro {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.badge-logo-fallback-pro {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.1rem;
    color: #0d1b43 !important;
    background: #ffffff;
}

.badge-brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.badge-app-name {
    font-size: 1.55rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.5px;
    color: #ffffff !important;
}

.badge-app-subtitle {
    font-size: 1rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.96) !important;
}

.badge-school-name {
    font-size: 0.98rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.82) !important;
}

.badge-guinea-stripes {
    width: 126px;
    height: 20px;
    border-radius: 999px;
    overflow: hidden;
    display: flex;
    flex-shrink: 0;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    margin-top: 0.35rem;
}

    .badge-guinea-stripes span {
        flex: 1;
        display: block;
    }

        .badge-guinea-stripes span:nth-child(1) {
            background: #ce1126;
        }

        .badge-guinea-stripes span:nth-child(2) {
            background: #fcd116;
        }

        .badge-guinea-stripes span:nth-child(3) {
            background: #009460;
        }

.badge-main-grid {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 1.4rem;
    align-items: stretch;
}

.badge-photo-zone {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    align-items: stretch;
}

.badge-photo-pro-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(180deg, #f8fafc, #e9eef5);
    border: 3px solid rgba(255, 255, 255, 0.24);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
}

    .badge-photo-pro-frame::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 24px;
        box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.15);
        pointer-events: none;
    }

.badge-photo-pro {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.badge-photo-placeholder-pro {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    color: #64748b !important;
    font-weight: 700;
    background: linear-gradient(180deg, #f8fafc, #edf2f7);
}

    .badge-photo-placeholder-pro i {
        font-size: 2rem;
        color: #94a3b8 !important;
    }

.badge-status-pro {
    min-height: 46px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1rem;
    font-weight: 800;
    font-size: 0.95rem;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
}

    .badge-status-pro.is-active {
        background: linear-gradient(135deg, #198754, #157347);
        color: #ffffff !important;
    }

    .badge-status-pro.is-inactive {
        background: linear-gradient(135deg, #6c757d, #495057);
        color: #ffffff !important;
    }

.badge-content-zone {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 24px;
    padding: 1.45rem 1.45rem 1.3rem;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.20);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    .badge-content-zone,
    .badge-content-zone * {
        color: #172033 !important;
    }

.badge-student-name-pro {
    font-size: clamp(1.9rem, 2.3vw, 2.45rem);
    font-weight: 900;
    line-height: 1.08;
    color: #111827 !important;
    margin-bottom: 0.15rem;
    text-transform: uppercase;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.badge-student-role {
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    color: #0d6efd !important;
    margin-bottom: 1rem;
}

.badge-info-pro-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.95rem;
}

.badge-info-pro-item {
    background: #f8fafc;
    border: 1px solid #e7edf5;
    border-radius: 18px;
    padding: 0.95rem 1rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

    .badge-info-pro-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
    }

    .badge-info-pro-item.badge-info-full {
        grid-column: 1 / -1;
    }

.badge-info-pro-label {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #667085 !important;
    margin-bottom: 0.35rem;
}

.badge-info-pro-value {
    font-size: 1.04rem;
    font-weight: 800;
    color: #1d2939 !important;
    line-height: 1.3;
    word-break: break-word;
}

.badge-ref-pro {
    font-size: 0.95rem;
    font-family: Consolas, "Courier New", monospace;
    letter-spacing: 0.01em;
    background: #f1f5f9;
    padding: 4px 8px;
    border-radius: 8px;
    display: inline-block;
}

.badge-footer-pro {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.15rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(16, 24, 40, 0.10);
}

.badge-country-pro {
    font-size: 1rem;
    font-weight: 900;
    color: #101828 !important;
}

.badge-motto-pro {
    font-size: 0.95rem;
    font-weight: 700;
    color: #475467 !important;
    text-align: right;
}

.badge-card-watermark {
    position: absolute;
    right: 18px;
    bottom: 8px;
    font-size: 4.4rem;
    font-weight: 900;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.05) !important;
    opacity: 0.6;
    pointer-events: none;
    z-index: 1;
}

/* =========================================================
   19. BADGE - RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {
    .badge-card-pro {
        border-radius: 20px;
    }

    .badge-card-inner {
        padding: 1rem;
    }

    .badge-card-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .badge-main-grid {
        grid-template-columns: 1fr;
    }

    .badge-photo-zone {
        align-items: center;
    }

    .badge-photo-pro-frame {
        max-width: 220px;
    }

    .badge-info-pro-grid {
        grid-template-columns: 1fr;
    }

    .badge-student-name-pro {
        font-size: 1.55rem;
    }

    .badge-footer-pro {
        flex-direction: column;
    }

    .badge-motto-pro {
        text-align: left;
    }

    .badge-logo-shell {
        width: 70px;
        height: 70px;
    }

    .badge-app-name {
        font-size: 1.2rem;
    }

    .badge-app-subtitle {
        font-size: 0.9rem;
    }
}

/* =========================================================
   20. IMPRESSION
   ========================================================= */

@media print {
    body {
        background: #ffffff !important;
    }

        body::before,
        .navbar,
        .footer,
        .no-print,
        .page-header {
            display: none !important;
        }

    .edne-main-container,
    .container {
        max-width: none !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .page-panel {
        background: #ffffff !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
    }

    .badge-preview-wrap {
        padding: 0 !important;
    }

    .badge-card-pro {
        background: #ffffff !important;
        color: #000000 !important;
        box-shadow: none !important;
        max-width: none !important;
        width: 100% !important;
        border: none !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

        .badge-card-pro::before {
            display: none !important;
        }

    .badge-content-zone {
        background: #ffffff !important;
        box-shadow: none !important;
    }

    .badge-info-pro-item {
        background: #ffffff !important;
        border: 1px solid #dddddd !important;
    }

    .badge-status-pro {
        border: 1px solid #000000;
    }

    .badge-card-watermark {
        color: rgba(0, 0, 0, 0.05) !important;
    }
}

/* =========================================================
   21. MOBILE XXL GLOBAL - AJUSTEMENTS FINAUX
========================================================= */

@media (max-width: 768px) {

    body {
        background-attachment: scroll;
    }

    .container,
    .edne-main-container {
        max-width: 100%;
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .page-panel,
    .readable-page,
    .panel-soft {
        border-radius: 18px;
        padding: 1rem;
    }

    .page-header {
        border-radius: 16px;
        padding: 1rem;
    }

        .page-header h1,
        .page-header h2,
        .page-header h3 {
            font-size: 1.45rem;
            line-height: 1.2;
        }

    .school-hero,
    .prof-hero,
    .eleve-hero {
        border-radius: 18px;
        padding: 1.15rem;
    }

    .school-hero-title,
    .prof-hero-title,
    .eleve-hero-title {
        font-size: 1.55rem;
        line-height: 1.15;
    }

    .school-hero .d-flex.gap-2,
    .prof-hero .d-flex.gap-2,
    .parent-hero .d-flex.gap-2 {
        width: 100%;
        flex-direction: column;
    }

    .school-hero .btn,
    .prof-hero .btn,
    .parent-hero .btn {
        width: 100%;
        min-height: 46px;
        justify-content: center;
    }

    .btn,
    .edne-btn {
        min-height: 44px;
        border-radius: 12px;
        white-space: normal;
        line-height: 1.2;
    }

    .btn-sm {
        min-height: 40px;
        padding-top: 0.55rem;
        padding-bottom: 0.55rem;
    }

    .form-control,
    .form-select {
        min-height: 46px;
        border-radius: 12px;
        font-size: 1rem;
    }

    textarea.form-control {
        min-height: 90px;
    }

    .form-label {
        font-size: 0.92rem;
        font-weight: 700;
    }

    .alert {
        font-size: 0.92rem;
        line-height: 1.35;
    }

    .table-responsive {
        border-radius: 16px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .app-table,
    .eval-table {
        min-width: 720px;
    }

        .app-table th,
        .app-table td,
        .eval-table th,
        .eval-table td {
            font-size: 0.86rem;
            padding: 0.75rem 0.65rem;
        }

    .eval-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

        .eval-actions .btn,
        .eval-actions form,
        .eval-actions form button {
            width: 100%;
        }

    .bulletin-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.7rem;
    }

    .bulletin-note-grid {
        grid-template-columns: 1fr;
    }

    .parent-bulletin-actions {
        flex-direction: column;
        align-items: stretch;
    }

        .parent-bulletin-back,
        .parent-bulletin-pdf,
        .parent-bulletin-periods .btn {
            width: 100%;
        }

    .parent-bulletin-periods {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.55rem;
    }
}

/* =========================================================
   22. MOBILE XXL - TRÈS PETITS ÉCRANS
========================================================= */

@media (max-width: 430px) {

    .container,
    .edne-main-container {
        padding-left: 0.65rem;
        padding-right: 0.65rem;
    }

    .page-panel,
    .readable-page,
    .panel-soft {
        padding: 0.85rem;
        border-radius: 16px;
    }

    .page-header h1,
    .page-header h2,
    .page-header h3 {
        font-size: 1.32rem;
    }

    .school-hero-title,
    .prof-hero-title,
    .eleve-hero-title {
        font-size: 1.42rem;
    }

    .school-shortcut-card {
        padding: 0.95rem;
    }

    .shortcut-icon {
        width: 2.4rem;
        height: 2.4rem;
        margin-bottom: 0.65rem;
    }

    .shortcut-title {
        font-size: 1rem;
    }

    .shortcut-text {
        font-size: 0.86rem;
    }

    .parent-stats-grid {
        grid-template-columns: 1fr;
    }

    .eleve-menu {
        grid-template-columns: 1fr;
    }

    .eleve-menu-btn {
        width: 100%;
        justify-content: center;
    }

    .bulletin-kpi-grid {
        grid-template-columns: 1fr;
    }

    .parent-bulletin-periods {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   22. ESPACE PROFESSEUR - UX MOBILE PRO
========================================================= */

.prof-mobile-header-btn {
    min-height: 46px;
}

.prof-filter-card {
    border-radius: 16px;
}

.prof-mobile-form .form-label {
    margin-bottom: 0.45rem;
}

.prof-mobile-form .form-control,
.prof-mobile-form .form-select {
    min-height: 46px;
    border-radius: 12px;
}

.edne-mobile-btn-lg {
    min-height: 46px;
    font-weight: 700;
}

.prof-mobile-action-bar .btn,
.prof-mobile-action-bar form {
    flex: 1 1 230px;
}

.presence-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border: 1px solid #d9dde2;
    border-radius: 999px;
    background: #f8f9fa;
    font-weight: 600;
}

.notes-eval-actions-desktop {
    min-width: 300px;
}

.notes-eval-mobile-card {
    margin-bottom: 0.95rem;
}

.notes-progress-badge-wrap {
    margin-top: 0.65rem;
}

.notes-eval-actions-mobile {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
    margin-top: 0.9rem;
}

    .notes-eval-actions-mobile form,
    .notes-eval-actions-mobile .btn,
    .notes-eval-actions-mobile form .btn {
        width: 100%;
    }

@media (max-width: 575.98px) {
    .prof-mobile-stack,
    .prof-mobile-stack .btn,
    .prof-mobile-stack form {
        width: 100%;
    }

    .prof-mobile-stack .btn {
        justify-content: center;
    }

    .prof-mobile-header-btn {
        width: 100%;
    }

    .prof-mobile-form .row > [class*="col-"] {
        width: 100%;
    }

    .prof-mobile-action-bar {
        flex-direction: column;
        gap: 0.75rem !important;
    }

    .prof-mobile-action-bar .btn,
    .prof-mobile-action-bar form {
        width: 100%;
        flex: 1 1 100%;
    }

    .presence-pill {
        min-height: 40px;
        padding: 0.45rem 0.7rem;
    }

    .notes-eval-mobile-card {
        border-radius: 15px;
        padding: 0.85rem 0.85rem 0.95rem;
    }

    .notes-eval-actions-mobile {
        gap: 0.6rem;
    }
}

/* FIX visibilité texte tableau (force texte noir sur fond clair) */
.eval-table tbody td {
    color: #212529 !important;
}

.eval-table .notes-cell-publie {
    color: #212529 !important;
}

    .eval-table .notes-cell-publie span {
        color: #212529 !important;
    }

/* évite héritage du thème sombre */
.panel-soft .eval-table td {
    color: #212529 !important;
}


/* =========================================================
   FIX - Évaluations : boutons actions moins larges desktop
   ========================================================= */

@media (min-width: 769px) {
    .notes-eval-actions-desktop {
        min-width: 220px;
        width: 220px;
    }

        .notes-eval-actions-desktop .btn,
        .notes-eval-actions-desktop form,
        .notes-eval-actions-desktop form .btn {
            width: 100%;
            max-width: 220px;
        }
}

