* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    font-family: 'Segoe UI', 'Calibri', Verdana, Arial, Helvetica, sans-serif;
    font-size: 14px;
    background: #f0f2f5;
    color: #2c3e50;
    line-height: 1.6;
    min-height: 100%;
    padding-top: 60px;
}

h2 {
    font: bold 16px 'Segoe UI', Calibri, Verdana, sans-serif;
    color: #1a3a5c;
    padding: 0 0 15px 0;
}

ul { list-style: none; margin: 0; padding: 0; }
img { border: none; max-width: 100%; }
a { color: #1a3a5c; text-decoration: none; transition: color 0.2s; }
a:hover { color: #2c6fbb; text-decoration: underline; }
input, select, textarea, button { transition: all 0.2s ease; }

/* ===== TOP NAVIGATION ===== */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, #1a3a5c, #2c6fbb);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    height: 60px;
}

.nav-container {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    height: 60px;
    padding: 0 20px;
    position: relative;
}

.nav-brand { flex-shrink: 0; margin-right: 30px; }
.nav-brand a { display: flex; align-items: center; text-decoration: none; color: #fff; gap: 10px; min-width: 0; overflow: hidden; }

.brand-icon {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.2);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold; font-size: 18px; color: #fff;
    flex-shrink: 0;
}

.brand-text { font-size: 15px; font-weight: 600; white-space: nowrap; }

.nav-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer;
    padding: 5px; margin-left: auto;
}

.nav-toggle span {
    display: block; width: 24px; height: 2px;
    background: #fff; border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav-menu { display: flex; align-items: center; flex: 1; justify-content: flex-start; }
.nav-list { display: flex; align-items: center; gap: 0; list-style: none; }
.nav-item { position: relative; }

.nav-link {
    display: flex; align-items: center;
    padding: 0 16px; height: 60px;
    color: #c8d6e5; text-decoration: none;
    font-size: 13px; font-weight: 500;
    transition: all 0.2s ease; white-space: nowrap;
}

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

.nav-link:active {
    background: rgba(255,255,255,0.15);
}

/* ===== DROPDOWN (unused, kept for compat) ===== */

.sub-dropdown > a::after {
    content: ''; display: inline-block; margin-left: 8px;
    border: 4px solid transparent; border-left-color: #999;
    vertical-align: middle; float: right; margin-top: 4px;
}

.nav-user {
    display: flex; align-items: center; gap: 12px;
    margin-left: auto; padding-left: 20px;
    border-left: 1px solid rgba(255,255,255,0.15);
    flex-shrink: 0;
}

.user-info { color: #90caf9; font-size: 13px; }

.btn-logout, .btn-login, .btn-profil {
    padding: 7px 16px; border-radius: 4px;
    text-decoration: none; font-size: 13px; font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-profil {
    background: rgba(44,111,187,0.35); color: #fff;
    border: 1px solid rgba(44,150,255,0.35);
}

.btn-profil:hover {
    background: rgba(44,111,187,0.55);
    border-color: rgba(44,150,255,0.6);
}

.btn-logout {
    background: rgba(255,255,255,0.1); color: #c8d6e5;
    border: 1px solid rgba(255,255,255,0.2);
}

.btn-logout:hover {
    background: rgba(255,68,68,0.2);
    border-color: rgba(255,68,68,0.3); color: #ff6b6b;
}

.btn-login { background: rgba(255,255,255,0.15); color: #fff; }
.btn-login:hover { background: rgba(255,255,255,0.25); }

.school-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    color: #fff; padding: 3px 10px;
    border-radius: 12px; font-size: 11px;
    font-weight: 600; letter-spacing: 0.5px;
    margin-right: 8px; border: 1px solid rgba(255,255,255,0.25);
}

/* ===== OLD ELEMENTS (hidden) ===== */
.entete { display: none; }
.menu, .connexion2, #monmenu { display: none; }

/* ===== MAIN CONTENT ===== */
.corp {
    padding: 25px 30px 40px;
    background: #f0f2f5;
    width: auto;
    position: relative;
}

.corp td { font-size: 14px; }

.corp legend {
    font-size: 15px; font-weight: bold;
    color: #1a3a5c; padding: 0 8px;
}

.corp td input, .corp td select { font-size: 14px; }

.position_titre {
    display: block; margin-bottom: 20px;
    width: 100%;
}

/* ===== FORM STYLING ===== */
.formulaire {
    border: 1px solid #e0e3e8;
    border-radius: 8px;
    width: 100%; max-width: 600px;
    padding: 25px 30px 30px;
    font-size: 14px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    margin: 0 auto 25px;
}

.formulaire fieldset {
    border: 1px solid #e8eaed;
    border-radius: 6px;
    padding: 18px 22px;
    background: #fafbfc;
}

.formulaire legend {
    font-size: 15px; font-weight: bold; color: #1a3a5c;
    padding: 0 10px;
}

.formulaire input[type="text"],
.formulaire input[type="password"],
.formulaire input[type="number"],
.formulaire input[type="email"],
.formulaire select {
    width: 100%; max-width: 350px; height: 38px;
    border: 1px solid #d0d4d9;
    border-radius: 4px; padding: 0 12px;
    font-size: 14px; background: #fff; color: #333;
    margin: 3px 0;
}

.formulaire input:focus,
.formulaire select:focus {
    border-color: #2c6fbb;
    box-shadow: 0 0 0 3px rgba(44,111,187,0.12);
    outline: none;
}

.formulaire input[type="submit"],
.formulaire button[type="submit"] {
    background: #1a3a5c; color: #fff;
    border: none; border-radius: 4px;
    padding: 10px 30px;
    font-size: 14px; font-weight: 600;
    cursor: pointer; margin-top: 10px;
}

.formulaire input[type="submit"]:hover,
.formulaire button[type="submit"]:hover {
    background: #2c6fbb;
}

/* ===== AUTH PAGE ===== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a3a5c, #2c6fbb);
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 420px;
}

.auth-header {
    text-align: center;
    color: #fff;
    margin-bottom: 30px;
}

.auth-logo {
    width: 64px; height: 64px;
    background: rgba(255,255,255,0.2);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; font-weight: bold; color: #fff;
    margin: 0 auto 15px;
}

.auth-header h1 { font-size: 20px; margin-bottom: 5px; }
.auth-header p { font-size: 14px; opacity: 0.8; }

.auth-card {
    background: #fff;
    border-radius: 12px;
    padding: 35px 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    text-align: center;
}

.auth-card .auth-icon { font-size: 36px; margin-bottom: 10px; }
.auth-card h2 { font-size: 18px; color: #1a3a5c; margin-bottom: 20px; padding: 0; }

.auth-alert {
    background: #fff3cd;
    color: #856404;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 18px;
    text-align: center;
}

.auth-field {
    margin-bottom: 16px;
    text-align: left;
}

.auth-field label {
    display: block;
    font-size: 13px; font-weight: 600; color: #555;
    margin-bottom: 5px;
}

.auth-field input {
    width: 100%; height: 44px;
    border: 1px solid #d0d4d9;
    border-radius: 6px; padding: 0 14px;
    font-size: 14px; color: #333;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-field input:focus {
    border-color: #2c6fbb;
    box-shadow: 0 0 0 3px rgba(44,111,187,0.12);
    outline: none;
}

.auth-btn {
    width: 100%; height: 44px;
    background: #1a3a5c; color: #fff;
    border: none; border-radius: 6px;
    font-size: 15px; font-weight: 600;
    cursor: pointer;
    margin-top: 5px;
    position: relative;
    z-index: 4;
    box-shadow: 0 2px 6px rgba(26,58,92,0.25);
    transition: background 0.2s;
}

.auth-btn:hover { background: #2c6fbb; }

.auth-footer-links {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-link {
    color: #2c6fbb;
    font-size: 13px;
    text-decoration: none;
}

.auth-link:hover { text-decoration: underline; }

.auth-suspended p {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.5;
}

/* ===== LOGIN MODAL (deprecated) ===== */
.modal {
    display: none; position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center; justify-content: center;
}

.modal-content {
    background: #fff; border-radius: 10px;
    width: 100%; max-width: 400px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-close {
    position: absolute; top: 12px; right: 16px;
    font-size: 28px; cursor: pointer; color: #999;
    transition: color 0.2s; line-height: 1;
}

.modal-close:hover { color: #333; }

.modal-header {
    background: linear-gradient(135deg, #1a3a5c, #2c6fbb);
    color: #fff; padding: 25px 30px 18px;
    border-radius: 10px 10px 0 0; text-align: center;
}

.modal-header h3 { font-size: 20px; margin-bottom: 5px; color: #fff; }
.modal-header p { font-size: 13px; opacity: 0.8; margin: 0; }

.login-form { padding: 22px 30px 28px; }

.form-group { margin-bottom: 16px; }

.form-group label {
    display: block; font-size: 13px;
    font-weight: 600; color: #555; margin-bottom: 5px;
}

.form-group input {
    width: 100%; height: 42px;
    border: 1px solid #d0d4d9;
    border-radius: 6px; padding: 0 14px;
    font-size: 14px; color: #333;
}

.form-group input:focus {
    border-color: #2c6fbb;
    box-shadow: 0 0 0 3px rgba(44,111,187,0.12);
    outline: none;
}

.btn-submit {
    width: 100%; height: 44px;
    background: #1a3a5c; color: #fff;
    border: none; border-radius: 6px;
    font-size: 15px; font-weight: 600;
    cursor: pointer; margin-top: 8px;
}

.btn-submit:hover { background: #2c6fbb; }

/* ===== DASHBOARD ===== */
.dashboard {
    max-width: 1000px;
    margin: 0 auto;
}

.dashboard h1 {
    font-size: 24px; color: #1a3a5c;
    margin-bottom: 20px; text-align: center;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-card {
    background: #fff;
    border-radius: 8px;
    padding: 30px 25px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    border: 1px solid #e8eaed;
    text-align: center;
    transition: all 0.2s ease;
}

.dashboard-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.card-full { grid-column: 1 / -1; max-width: 400px; margin: 0 auto; }

.card-icon { font-size: 32px; margin-bottom: 10px; }
.dashboard-card h3 { font-size: 16px; color: #1a3a5c; margin-bottom: 6px; }
.dashboard-card p { font-size: 13px; color: #777; margin-bottom: 15px; }

.dashboard-card a {
    display: inline-block;
    padding: 8px 22px;
    background: #1a3a5c; color: #fff;
    text-decoration: none;
    border-radius: 4px; font-size: 13px; font-weight: 600;
}

.dashboard-card a:hover {
    background: #2c6fbb;
    text-decoration: none;
}

.welcome-message {
    display: flex;
    align-items: center;
    gap: 18px;
    background: linear-gradient(135deg, #14233c 0%, #1a3a5c 55%, #2c6fbb 100%);
    color: #fff;
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 22px;
    text-align: left;
    box-shadow: 0 8px 24px rgba(20, 35, 60, 0.18);
    position: relative;
    overflow: hidden;
}
.welcome-message::after {
    content: "";
    position: absolute;
    right: -40px;
    top: -60px;
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}
.welcome-message .wm-body { flex: 1; position: relative; z-index: 1; }
.welcome-message h2 { color: #fff; font-size: 20px; font-weight: 800; margin: 0 0 4px; }
.welcome-message p { opacity: 0.85; font-size: 13px; margin: 0; line-height: 1.5; }
.welcome-message p strong { color: #fff; opacity: 1; font-weight: 700; }
.welcome-message .wm-badge { position: relative; z-index: 1; text-align: right; flex-shrink: 0; }
.welcome-message .wm-badge .b1 {
    display: inline-block;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    letter-spacing: 1px;
}
.welcome-message .wm-badge .b2 { display: block; font-size: 10.5px; color: #b9c9e2; margin-top: 7px; }
@media (max-width: 640px) {
    .welcome-message .wm-badge { display: none; }
    .welcome-message { flex-wrap: wrap; padding: 16px; text-align: center; justify-content: center; }
    .welcome-message .wm-body { text-align: center; flex-basis: 100%; }
    .welcome-message h2 { font-size: 17px; }
}

/* ===== FOOTER ===== */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-footer {
    background: #fff;
    border-top: 1px solid #e0e3e8;
    text-align: center;
    padding: 15px 20px;
    font-size: 13px;
    color: #888;
    flex-shrink: 0;
    margin-top: auto;
}

.main-footer p { margin: 0; }

/* backward compat */
.pied { text-align: center; font-size: 13px; color: #888; background: #fff; border-top: 1px solid #e0e3e8; padding: 15px 20px; }

/* ===== UTILITY ===== */
.text-center { text-align: center; margin: 10px 0; }
.text-center button, .text-center a { display: inline-block; }

/* ===== BUTTON OVERRIDES ===== */
button[style*="background-color: red"],
button[style*="background: red"],
button[style*="background:red"] {
    background: #1a3a5c !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 8px 20px !important;
    cursor: pointer !important;
}

button[style*="background-color: red"]:hover,
button[style*="background: red"]:hover,
button[style*="background:red"]:hover {
    background: #2c6fbb !important;
}

button[style*="background-color: red"] a,
button[style*="background: red"] a,
button[style*="background:red"] a {
    color: #fff !important;
    font-size: 13px !important;
    text-decoration: none !important;
    font-weight: 600;
}

th[style*="background-color: red"] { background: #1a3a5c !important; color: #fff !important; }
th[style*="background-color: orange"] { background: #e67e22 !important; color: #fff !important; }
th[style*="background-color: blue"] { background: #2c6fbb !important; color: #fff !important; }

/* ===== ALERT BOXES ===== */
.alert-success { background: #d4edda; color: #155724; padding: 10px; border-radius: 5px; margin-bottom: 15px; }
.alert-error { background: #f8d7da; color: #721c24; padding: 10px; border-radius: 5px; margin-bottom: 15px; }

/* ===== RESPONSIVE ===== */
@media screen and (max-width: 1024px) {
    .nav-toggle {
        display: flex;
        order: 5;
        margin-left: auto;
        flex-shrink: 0;
        align-items: center;
        justify-content: center;
        padding: 8px 10px;
        border: 1px solid rgba(255,255,255,0.35);
        border-radius: 8px;
        background: rgba(255,255,255,0.08);
        min-width: 46px;
        min-height: 36px;
        position: relative;
        z-index: 5;
    }
    .nav-toggle span { width: 26px; height: 3px; }
    .nav-toggle:hover { background: rgba(255,255,255,0.18); }
    .nav-toggle:active { background: rgba(44,111,187,0.6); }

    .nav-brand { flex: 0 1 auto; min-width: 0; margin-right: 8px; }
    .nav-brand .brand-text { max-width: 42vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

    .nav-menu {
        display: none;
        position: absolute; top: 60px; left: 0; right: 0;
        background: #1a3a5c;
        flex-direction: column;
        padding: 10px 0;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    }

    .nav-menu.active { display: flex; }

    .nav-list { flex-direction: column; width: 100%; }
    .nav-item { width: 100%; }

    .nav-link {
        padding: 12px 20px; height: auto;
        width: 100%; border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .nav-user {
        width: 100%;
        margin-left: 0;
        padding: 12px 16px 16px;
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.08);
        gap: 8px;
        flex-direction: column;
        align-items: stretch;
    }
    .nav-user .user-info { display: block; text-align: center; color: #c8d6e5; font-size: 12px; padding-bottom: 6px; }
    .nav-user .school-badge { display: inline-block; align-self: center; margin: 0 0 4px; }
    .nav-user .btn-profil,
    .nav-user .btn-logout,
    .nav-user .btn-login {
        display: block; width: 100%; text-align: center;
        padding: 10px; font-size: 13px;
    }

    .corp { padding: 15px; }
    .formulaire { max-width: 100%; padding: 15px; }
    .formulaire input, .formulaire select { max-width: 100%; }
    .modal-content { max-width: 95%; margin: 20px; }
}

@media screen and (min-width: 1025px) and (max-width: 1750px) {
    .nav-container { padding: 0 12px; }
    .nav-link { padding: 0 8px; font-size: 12px; }
    .nav-brand { margin-right: 12px; flex: 0 1 auto; min-width: 0; }
    .nav-brand .brand-text { font-size: 13px; max-width: 30vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .nav-menu { min-width: 0; }
    .nav-list { overflow-x: auto; min-width: 0; }
    .nav-user { gap: 8px; padding-left: 10px; }
    .nav-user .user-info { display: none; }
}

@media screen and (max-width: 480px) {
    .nav-container { padding: 0 10px; }
    .brand-icon { width: 30px; height: 30px; font-size: 15px; }
    .nav-brand .brand-text { max-width: 30vw; font-size: 13px; }
    .nav-user .btn-profil,
    .nav-user .btn-logout,
    .nav-user .btn-login { font-size: 12px; padding: 9px; }
}

/* ===== NOVA PORTAL ===== */
.nova-portal {
    min-height: 100vh;
    background: #f5f7fa;
    margin-top: -60px;
}

.nova-hero {
    background: linear-gradient(135deg, #0f1f3d, #1a3a5c, #2c6fbb);
    color: #fff;
    text-align: center;
    padding: 8px 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 60px;
}

.nova-hero-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-shrink: 0;
    padding: 0;
}

.nova-hero-logo {
    width: 46px; height: 46px;
    background: rgba(255,255,255,0.15);
    border-radius: 13px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 24px; font-weight: bold;
    backdrop-filter: blur(4px);
    flex-shrink: 0;
}

.nova-hero-brand {
    text-align: left;
}

.nova-hero-brand h1 {
    font-size: 21px;
    margin: 0;
    letter-spacing: -0.5px;
    text-align: left;
    white-space: nowrap;
}

.nova-hero-center {
    flex: 1 1 auto;
    text-align: center;
    padding: 0 8px;
}

.nova-sub {
    font-size: 13px;
    opacity: 0.8;
    margin: 0;
    line-height: 1.35;
}

.nova-hero-right {
    flex-shrink: 0;
    text-align: right;
    padding: 4px 10px;
    border-radius: 8px;
    background: rgba(255,255,255,0.12);
}

.nova-tagline {
    font-size: 13.5px;
    opacity: 0.9;
    margin: 0;
    text-align: right;
    white-space: nowrap;
}

.nova-contact {
    background: #fafbfd;
    border-bottom: 1px solid #e6eaf0;
    padding: 24px 20px;
    display: flex;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.nova-contact-inner {
    max-width: none;
    width: 100%;
    display: block;
    text-align: center;
    overflow: hidden;
}

.nova-contact-intro {
    font-size: 17px;
    color: #33475f;
    font-weight: 600;
    letter-spacing: 0.2px;
    white-space: nowrap;
    flex-shrink: 0;
}

.nova-contact-items {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px 26px;
    width: max-content;
    animation: gs-marquee 70s linear infinite;
    will-change: transform;
}

@keyframes gs-marquee {
    0%   { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.nova-contact-item {
    font-size: 16px;
    color: #5c6b7d;
    font-weight: 500;
    letter-spacing: 0.2px;
    white-space: nowrap;
    flex-shrink: 0;
}

.nova-contact-item a {
    color: #3478b5;
    text-decoration: none;
    font-weight: 600;
}

.nova-contact-item a:hover {
    text-decoration: underline;
}

.nova-schools-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px 30px;
}

.nova-schools-section h2 {
    font-size: 20px;
    color: #1a3a5c;
    margin-bottom: 6px;
    text-align: center;
}

.nova-schools-sub {
    text-align: center;
    color: #888;
    font-size: 14px;
    margin-bottom: 30px;
}

.nova-schools-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nova-school-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border: 1px solid #e0e3e8;
    border-radius: 10px;
    padding: 16px 20px;
    text-decoration: none;
    color: #333;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.nova-school-card:hover {
    border-color: #2c6fbb;
    box-shadow: 0 3px 12px rgba(44,111,187,0.12);
    transform: translateY(-1px);
}

.nova-school-icon {
    width: 48px; height: 48px;
    background: #eef2f7;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: bold;
    color: #1a3a5c;
    flex-shrink: 0;
}

.nova-school-info { flex: 1; min-width: 0; }
.nova-school-info h3 { font-size: 15px; margin: 0; color: #1a3a5c; }
.nova-school-info p { font-size: 13px; color: #888; margin: 2px 0 0; }

.nova-school-arrow {
    color: #c0c4c8;
    font-size: 18px;
    font-weight: bold;
    flex-shrink: 0;
    transition: color 0.2s, transform 0.2s;
}

.nova-school-card:hover .nova-school-arrow {
    color: #2c6fbb;
    transform: translateX(3px);
}

.nova-empty {
    text-align: center;
    color: #999;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    border: 1px dashed #d0d4d9;
}

.nova-footer {
    text-align: center;
    padding: 30px 20px 50px;
    font-size: 14px;
    color: #999;
}

.nova-admin-link {
    color: #2c6fbb;
    text-decoration: none;
    font-weight: 600;
}

.nova-admin-link:hover { text-decoration: underline; }

.nova-admin-section {
    max-width: 380px;
    margin: 0 auto;
    padding: 10px 20px 50px;
    text-align: center;
}

.nova-admin-section h2 {
    font-size: 16px;
    color: #1a3a5c;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e0e3e8;
}

.nova-admin-form {
    background: #fff;
    border: 1px solid #e0e3e8;
    border-radius: 10px;
    padding: 25px 24px;
    text-align: center;
}

.nova-admin-form .auth-field input {
    width: 100%; height: 42px;
    border: 1px solid #d0d4d9;
    border-radius: 6px;
    padding: 0 14px;
    font-size: 14px;
}

.nova-admin-form .auth-field input:focus {
    border-color: #2c6fbb;
    box-shadow: 0 0 0 3px rgba(44,111,187,0.12);
    outline: none;
}

.nova-admin-form .auth-btn {
    width: 100%; height: 42px;
    background: #1a3a5c; color: #fff;
    border: none; border-radius: 6px;
    font-size: 14px; font-weight: 600;
    cursor: pointer;
}

.nova-admin-form .auth-btn:hover { background: #2c6fbb; }

.nova-admin-form .auth-alert {
    font-size: 13px;
    padding: 8px 12px;
    margin-bottom: 14px;
    border-radius: 6px;
    background: #fff3cd;
    color: #856404;
}

@media (max-width: 600px) {
    .nova-hero { flex-direction: column; padding: 14px 16px; min-height: auto; gap: 8px; justify-content: center; }
    .nova-hero-top { flex-direction: row; align-items: center; justify-content: center; gap: 8px; padding: 0; }
    .nova-hero-logo { width: 36px; height: 36px; font-size: 19px; border-radius: 10px; }
    .nova-hero-brand { text-align: left; }
    .nova-hero-brand h1 { text-align: left; font-size: 18px; margin: 0; }
    .nova-hero-center { flex: none; padding: 0; }
    .nova-tagline { text-align: center; font-size: 12.5px; white-space: normal; }
    .nova-hero-right { flex-shrink: 1; text-align: center; background: none; padding: 0; }
    .nova-sub { font-size: 12px; }
    .nova-school-card { padding: 12px 14px; }
    .nova-school-icon { width: 40px; height: 40px; font-size: 16px; }
}

/* ===== PRINT ===== */
@media print {
    .top-nav, .pied { display: none !important; }
    body { padding-top: 0; padding-bottom: 18mm; }
    footer.main-footer {
        display: block !important;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 4px 12px;
        font-size: 10px;
        line-height: 1.4;
        color: #666;
        background: #fff;
        border-top: 1px solid #ccc;
        margin: 0;
    }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f0f2f5; }
::-webkit-scrollbar-thumb { background: #c0c4c8; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #a0a4a8; }
