    /* --- RESET & BASE --- */
    header {
        background-color: #2c3e50;
        color: white;
        padding: 0 20px;
        height: 70px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: relative;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        z-index: 10000; /* Très élevé pour passer devant Bootstrap */
    }

    .header-logo {
        font-size: 18px;
        font-weight: bold;
        display: flex;
        align-items: center;
        text-decoration: none;
        color: white !important;
        z-index: 10001;
    }
    .header-logo img { height: 35px; margin-right: 10px; }

    /* --- NAVIGATION --- */
    .nav-custom {
        display: flex;
        align-items: center;
        flex-grow: 1;
        justify-content: space-between;
        margin-left: 20px;
    }

    .nav-links {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
    }

    .nav-links a {
        display: block;
        padding: 0 15px;
        line-height: 70px;
        color: white !important;
        text-decoration: none;
        font-size: 15px;
    }

    .nav-links a:hover { background-color: #e74c3c; }

    /* --- DROPDOWN DESKTOP --- */
    .dropdown { position: relative; }
    .dropdown-content {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        background-color: #ecf0f1;
        min-width: 220px;
        box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    }
    .dropdown:hover .dropdown-content { display: block; }
    .dropdown-content a {
        color: #333 !important;
        line-height: normal;
        padding: 12px 16px;
        border-bottom: 1px solid #ddd;
    }

    .dropdown-content a:hover {
        background-color: #34495e !important;
        color: white !important;
    }    

    /* --- USER PANEL --- */
    .user-panel { display: flex; align-items: center; gap: 15px; }
    .btn-logout {
        background-color: #e74c3c;
        color: white !important;
        padding: 6px 12px;
        border-radius: 4px;
        text-decoration: none;
        font-size: 13px;
    }

    /* --- MOBILE BURGER --- */
    .menu-toggle {
        display: none;
        cursor: pointer;
        font-size: 28px;
        color: white;
    }

    /* =========================================
       RESPONSIVE (Mobile & Tablette)
    ========================================= */
    @media screen and (max-width: 768px) {
        .menu-toggle { display: block; }

        .nav-custom {
            display: none; /* CACHÉ PAR DÉFAUT */
            position: absolute;
            top: 70px;
            left: 0;
            width: 100%;
            background-color: #2c3e50;
            flex-direction: column;
            align-items: flex-start;
            margin: 0;
            border-top: 1px solid #34495e;
            z-index: 9999;
        }

        /* Classe active pour afficher le menu */
        .nav-custom.active { display: flex !important; }

        .nav-links { flex-direction: column; width: 100%; }
        .nav-links a { 
            line-height: 50px; 
            border-bottom: 1px solid #34495e; 
            width: 100%;
        }

        /* Dropdown en mobile */
        .dropdown-content {
            position: static;
            background-color: #34495e;
            box-shadow: none;
        }
        .dropdown-content a { color: #ecf0f1 !important; padding-left: 30px; }

        .user-panel {
            width: 100%;
            padding: 15px;
            background-color: #1a252f;
            flex-direction: column;
            align-items: flex-start;
        }
    }

    @media print {

        .print-footer {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            height: 50px;
            text-align: center;
            font-size: 10px;
            color: #666;
        }

        body {
            margin-bottom: 60px; /* espace pour ne pas écraser le contenu */
        }

    }    

        /* 1. On cible tous les labels de formulaire */
    #monFormai .form-label {
        font-weight: 600;      /* Rend le texte semi-gras */
        color: #143c66;        /* Un gris-bleu foncé professionnel */
        font-size: 0.85rem;    /* Réduit légèrement la taille (standard est 1rem) */
        margin-bottom: 0.1rem; /* Colle le label au champ */
    }

    /* 2. On réduit l'espace interne des champs de saisie */
    #monFormai .form-control-sm, 
    #monFormai .form-select-sm {
        padding-top: 0.2rem;
        padding-bottom: 0.2rem;
    }

    /* 3. On stylise les légendes de section */
    #monFormai legend {
        font-size: 1rem;
        font-weight: 700;
        color: #2b6cb0;        /* Un bleu plus vif pour les titres de section */
        border-bottom: 1px solid #e2e8f0;
        margin-bottom: 10px;
    }

mark {
    background-color: #fff3cd; /* Jaune très clair */
    color: #856404;           /* Texte marron foncé */
    border-bottom: 2px solid #ffeeba;
    padding: 0;
} 

/* Style spécifique pour le nom du comité */
.nom-comite {
    font-size: 0.85rem;      /* Réduit la taille de la police (ajustez selon besoin) */
    line-height: 1.2;        /* Resserre l'espace entre les deux lignes */
    max-width: 200px;        /* Force le texte à passer à la ligne s'il dépasse cette largeur */
    margin-left: 10px;       /* Espace entre le logo et le texte */
    font-weight: bold;       /* Optionnel : pour garder de la lisibilité */
    display: inline-block;   /* Permet d'appliquer le max-width */
    
    /* Optionnel : pour éviter que les mots trop longs ne cassent le design */
    word-wrap: break-word; 
    overflow-wrap: break-word;
}

/* Option : Sur mobile, on peut réduire encore un peu si besoin */
@media (max-width: 768px) {
    .nom-comite {
        font-size: 0.75rem;
        max-width: 150px;
    }
}