/*
 * UAO — Université Alassane Ouattara
 * Override couleurs thème Owlio → palette logo UAO
 *
 * Primaire  : #1e3272 (bleu marine — globe & texte du logo)
 * Accent    : #c9a227 (or — couleur académique)
 * Hover     : #0d1f5c (bleu marine foncé)
 * Light     : #e8ecf6 (teinte marine très claire)
 */

/* ─── Variables Bootstrap ───────────────────────────────────────────────── */
:root {
    --bs-primary:              #1e3272;
    --bs-primary-rgb:          30, 50, 114;
    --bs-link-color:           #1e3272;
    --bs-link-hover-color:     #0d1f5c;
    --bs-btn-bg:               #1e3272;
    --bs-btn-border-color:     #1e3272;
    --uao-primary:             #1e3272;
    --uao-primary-dark:        #0d1f5c;
    --uao-primary-light:       #e8ecf6;
    --uao-gold:                #c9a227;
    --uao-gold-dark:           #a8831c;
}

/* ─── Couleur primaire générale ─────────────────────────────────────────── */
.text-primary               { color: #1e3272 !important; }
.bg-primary                 { background-color: #1e3272 !important; }
.border-primary             { border-color: #1e3272 !important; }

/* ─── Boutons primaires ─────────────────────────────────────────────────── */
.btn-primary {
    background-color: #1e3272 !important;
    border-color:     #1e3272 !important;
    color: #fff !important;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active {
    background-color: #0d1f5c !important;
    border-color:     #0d1f5c !important;
}
.btn-primary:focus,
.btn-primary.focus {
    box-shadow: 0 0 0 0.25rem rgba(30, 50, 114, 0.35) !important;
}

.btn-outline-primary {
    color:        #1e3272 !important;
    border-color: #1e3272 !important;
}
.btn-outline-primary:hover,
.btn-outline-primary.active,
.btn-outline-primary:active,
.btn-check:checked + .btn-outline-primary {
    background-color: #1e3272 !important;
    color: #fff !important;
}

/* ─── Nav header / sidebar ──────────────────────────────────────────────── */
.nav-header {
    background: #1e3272 !important;
}
.deznav {
    background: #1e3272 !important;
}
.deznav .metismenu > li > a {
    color: rgba(255,255,255,0.75) !important;
    border-radius: 8px;
    margin: 0 8px;
    width: calc(100% - 16px);
    transition: background-color .18s ease, color .18s ease, padding-left .18s ease;
}
.deznav .metismenu > li > a:hover,
.deznav .metismenu > li.mm-active > a {
    color: #fff !important;
    background: rgba(255,255,255,0.1) !important;
}
.deznav .metismenu > li > a:hover {
    padding-left: 2.1rem;
}
.deznav .metismenu > li.mm-active > a i,
.deznav .metismenu > li > a:hover i {
    color: #c9a227 !important;
}
.deznav .metismenu > li > a i {
    transition: color .18s ease, transform .18s ease;
}
.deznav .metismenu > li > a:hover i {
    transform: scale(1.08);
}
.deznav .metismenu ul a {
    color: rgba(255,255,255,0.6) !important;
    transition: color .15s ease, background-color .15s ease, padding-left .15s ease;
    border-radius: 6px;
}
.deznav .metismenu ul a:hover,
.deznav .metismenu ul .mm-active > a {
    color: #c9a227 !important;
    background: rgba(255,255,255,0.06) !important;
    padding-left: 5rem;
}
/* Icônes flaticon dans la sidebar */
.deznav .metismenu > li > a i {
    color: rgba(255,255,255,0.6) !important;
}
/* Flèche des sous-menus : rotation fluide au lieu d'un saut instantané */
.deznav .metismenu .has-arrow:after {
    transition: transform .25s ease;
}
/* Déploiement/repli des sous-menus : easing plus doux que le défaut du plugin */
.deznav .metismenu ul {
    transition: height .25s cubic-bezier(.4, 0, .2, 1) !important;
}
/* Retour clavier/tactile cohérent avec le survol souris */
.deznav .metismenu > li > a:focus-visible,
.deznav .metismenu ul a:focus-visible {
    outline: 2px solid #c9a227;
    outline-offset: -2px;
}

/* ─── Header / Topbar ───────────────────────────────────────────────────── */
.header {
    background: #fff !important;
    border-bottom: 2px solid #1e3272 !important;
}

/* ─── Hamburger ─────────────────────────────────────────────────────────── */
/*
 * Sur desktop : .nav-control est positionné right:-4rem, donc hors du
 * .nav-header (fond marine) → lignes marines sur fond clair.
 * Sur mobile (overlay) : le .nav-header disparaît et le bouton se retrouve
 * dans le .header (fond blanc) → on conserve les lignes marines + léger fond.
 */
.hamburger .line {
    background-color: #1e3272 !important;
}

@media only screen and (max-width: 1023px) {
    /* Cercle de fond pour améliorer la cliquabilité et le contraste */
    .nav-control {
        background: rgba(30, 50, 114, 0.08) !important;
        border-radius: 6px !important;
        padding: 4px 8px !important;
        /* Le burger (~42px) + gap doit dépasser la nav-header (5rem=80px) :
           right négatif suffisamment grand pour qu'il n'empiète pas sur le logo */
        right: -3.5rem !important;
    }
}

@media only screen and (max-width: 767px) {
    .nav-control {
        right: -3.5rem !important;
    }
}

@media only screen and (max-width: 575px) {
    .nav-control {
        right: -3.25rem !important;
    }
}

/* ─── Logo nav-header : icône carrée fond marine → or en hover ──────────── */
.nav-header .brand-logo img.logo-abbr {
    border: 2px solid rgba(255,255,255,0.2);
}

/* ─── Liens actifs / focus ──────────────────────────────────────────────── */
a { color: #1e3272; }
a:hover { color: #0d1f5c; }

/* ─── Badges / pills primary ────────────────────────────────────────────── */
.badge.bg-primary,
.badge-primary:not(.light) { background-color: #1e3272 !important; }
/* Variante claire : fond marine très clair + texte marine → LISIBLE.
   (Sans ça, le !important ci-dessus forçait fond marine + texte marine du
   `.light` = texte foncé sur fond foncé, illisible — ex. badge « WAVE ».)     */
.badge-primary.light,
.badge.bg-primary.light {
    background-color: #e8ecf6 !important;
    color: #1e3272 !important;
}

/* ─── Pagination ────────────────────────────────────────────────────────── */
.page-item.active .page-link {
    background-color: #1e3272 !important;
    border-color:     #1e3272 !important;
}
.page-link { color: #1e3272 !important; }
.page-link:focus { box-shadow: 0 0 0 0.25rem rgba(30,50,114,.25) !important; }

/* ─── Progress bars ─────────────────────────────────────────────────────── */
.progress-bar { background-color: #1e3272 !important; }

/* ─── Accordions ────────────────────────────────────────────────────────── */
.accordion-button:not(.collapsed) {
    color: #1e3272 !important;
    background-color: #e8ecf6 !important;
    box-shadow: inset 0 -1px 0 rgba(30,50,114,.125) !important;
}

/* ─── Form focus ────────────────────────────────────────────────────────── */
.form-control:focus,
.form-select:focus {
    border-color: #1e3272 !important;
    box-shadow: 0 0 0 0.25rem rgba(30, 50, 114, 0.2) !important;
}
.form-check-input:checked {
    background-color: #1e3272 !important;
    border-color:     #1e3272 !important;
}

/* ─── Dropdown active ───────────────────────────────────────────────────── */
.dropdown-item.active,
.dropdown-item:active {
    background-color: #1e3272 !important;
}

/* ─── Selecteurs (bootstrap-select) : option active/survolee en GRIS ──────── */
/* Le marine ci-dessus rend les options des listes deroulantes peu lisibles.  */
/* On le remplace par un gris clair + texte fonce, uniquement dans les selects.*/
.bootstrap-select .dropdown-menu .dropdown-item.active,
.bootstrap-select .dropdown-menu .dropdown-item:active,
.bootstrap-select .dropdown-menu .dropdown-item.selected,
.bootstrap-select .dropdown-menu .dropdown-item:hover,
.bootstrap-select .dropdown-menu .dropdown-item:focus,
.bootstrap-select .dropdown-menu li.selected > a,
.bootstrap-select .dropdown-menu li.active > a,
.bootstrap-select .dropdown-menu li > a:hover,
.bootstrap-select .dropdown-menu li > a:focus {
    background-color: #eef1f6 !important;
    color: #1F2432 !important;
}

/* ─── Tabs nav-pills ────────────────────────────────────────────────────── */
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    background-color: #1e3272 !important;
}
.nav-link { color: #1e3272; }

/* ─── Widget / card accent ──────────────────────────────────────────────── */
.card-bx.style-1,
[class*="bg-primary"] { background-color: #1e3272 !important; }

/* ─── Welcome auth panel gradient → marine ─────────────────────────────── */
.welcome-content::after {
    background: linear-gradient(160deg, #1e3272 0%, #0d1f5c 100%) !important;
    opacity: 0.82 !important;
}

/* ─── Auth layout bouton primaire ───────────────────────────────────────── */
.btn-primary-auth {
    background: #1e3272 !important;
}
.btn-primary-auth:hover {
    background: #0d1f5c !important;
}

/* ─── Auth input focus ──────────────────────────────────────────────────── */
.auth-input-icon i:not(.toggle-password) { color: #1e3272 !important; }
.auth-input-icon .form-control:focus {
    border-color: #1e3272 !important;
    box-shadow: 0 0 0 3px rgba(30,50,114,.12) !important;
}

/* ─── Lien mot de passe oublié ──────────────────────────────────────────── */
.auth-form a { color: #1e3272 !important; }

/* ─── Sidebar footer link ───────────────────────────────────────────────── */
.add-menu-sidebar { background: rgba(255,255,255,0.08) !important; }

/* ─── List group active ─────────────────────────────────────────────────── */
.list-group-item.active {
    background-color: #1e3272 !important;
    border-color:     #1e3272 !important;
}

/* ─── Table striped / hover ─────────────────────────────────────────────── */
.table-primary {
    --bs-table-bg: rgba(30,50,114,.1) !important;
}

/* ─── SVG logo gradient dans la navbar ─────────────────────────────────── */
.svg-logo-rect { fill: #1e3272 !important; }
.svg-logo-title { fill: #1e3272 !important; }

/* ─── Couleur or pour les accents / highlights ──────────────────────────── */
.text-gold      { color: #c9a227 !important; }
.bg-gold        { background-color: #c9a227 !important; }
.border-gold    { border-color: #c9a227 !important; }

/* ─── University badge sur les pages auth ───────────────────────────────── */
.university-badge {
    background: rgba(255,255,255,0.15) !important;
    border-color: rgba(255,255,255,0.3) !important;
}

/* ─── Correctif : permettre le scroll vertical de la page ───────────────── */
/* Le template vendor met overflow:hidden sur #main-wrapper, ce qui coupe    */
/* le contenu long. On le remplace par overflow-x:hidden pour garder        */
/* uniquement le masquage horizontal (scroll horizontal inutile).           */
#main-wrapper {
    overflow: visible !important;
    overflow-x: hidden !important;
}

/* ─── Chevron sur les <select class="form-control"> ─────────────────────── */
/* Bootstrap applique `appearance:none` a .form-control SANS ajouter de       */
/* chevron : les listes deroulantes en .form-control n'ont donc aucune fleche.*/
/* On restaure le meme chevron que .form-select, en un seul endroit, pour     */
/* tous les formulaires. Les selects enhances (select2/selectpicker) sont     */
/* masques : cette regle reste sans effet visible sur eux.                    */
select.form-control:not([multiple]):not([size]) {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.25rem;
}

/* ─── Modals hauts : jamais coupés hors écran ──────────────────────────────
   Sur une fenêtre courte, un modal-dialog-centered avec beaucoup de champs
   déborde en haut (titre) et en bas (bouton Enregistrer) → inutilisable.
   On borne directement la hauteur du CORPS et on le rend défilant : l'en-tête
   et le pied (boutons) restent toujours visibles. Indépendant de la structure
   (le .modal-body peut être imbriqué dans un <form>). Sans effet visible sur
   les petits modals (rien à faire défiler). Couvre TOUS les modals (centrés ou
   non) ; on exclut le plein écran (modal-fullscreen), déjà géré par Bootstrap. */
.modal-dialog:not([class*="fullscreen"]) .modal-body {
    max-height: calc(100vh - 12rem);
    overflow-y: auto;
}

/* ─── Comptes « année expirée » : boutons verrouillés ──────────────────────
   Posés par compte-expire.js quand le compte est expiré (hors pages docs /
   messagerie / profil). La vraie protection reste le middleware serveur.      */
.est-verrouille {
    opacity: .5 !important;
    cursor: not-allowed !important;
    filter: grayscale(.4);
    box-shadow: none !important;
}
.est-verrouille .fa-lock { color: #b8860b !important; }

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — correctifs transverses (toutes les pages sous layout.app)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Menu replié (icônes seules) : les titres de section des barres latérales
   Secrétariat et Comité débordaient sur le contenu → masqués. */
[data-sidebar-style="full"] #main-wrapper.menu-toggle .deznav .secretariat-titre,
[data-sidebar-style="full"] #main-wrapper.menu-toggle .deznav .secretariat-dept,
[data-sidebar-style="full"] #main-wrapper.menu-toggle .deznav .comite-menu-titre,
[data-sidebar-style="mini"] .deznav .secretariat-titre,
[data-sidebar-style="mini"] .deznav .secretariat-dept,
[data-sidebar-style="mini"] .deznav .comite-menu-titre {
    display: none !important;
}

/* Menu replié : info-bulle du libellé (script dans layout.app). */
.uao-menu-bulle {
    position: fixed; z-index: 1100; transform: translateY(-50%); pointer-events: none;
    background: #1e3272; color: #fff; font-size: .82rem; font-weight: 600; white-space: nowrap;
    padding: .4rem .75rem; border-radius: 6px; box-shadow: 0 6px 18px rgba(0,0,0,.18);
    opacity: 0; visibility: hidden; transition: opacity .12s ease;
}
.uao-menu-bulle.visible { opacity: 1; visibility: visible; }
.uao-menu-bulle::before {
    content: ""; position: absolute; left: -5px; top: 50%; transform: translateY(-50%);
    border: 5px solid transparent; border-left: 0; border-right-color: #1e3272;
}

/* Titres de carte : le thème force « Capitalize » (« Cours De L'année »),
   incorrect en français → casse d'origine conservée. */
.card-title { text-transform: none; }

/* Tableaux : jamais plus larges que l'écran, défilement horizontal interne. */
.table-responsive { -webkit-overflow-scrolling: touch; }
.dataTables_wrapper { max-width: 100%; }

/* En-tête : nom et rôle sur une seule ligne chacun (un nom long passait sur
   trois lignes et sortait de la barre). */
.header-profile .header-info span,
.header-profile .header-info small {
    display: block; max-width: 190px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* En-tête trop chargé sur petit portable (menu déplié) : le profil sortait de
   l'écran. Dates de l'année masquées (gardées dans l'info-bulle), recherche
   et nom resserrés. */
/* La partie gauche (recherche, année) cède la place ; la droite (commission,
   notifications, profil) ne rétrécit jamais et ne sort plus de l'écran. */
.header .navbar-collapse { min-width: 0; }
.header .header-left { min-width: 0; flex: 1 1 auto; }
.header .header-left .dashboard_bar { min-width: 0; flex-wrap: nowrap; }
.header .header-right { flex-shrink: 0; }
#uao-search-wrap { min-width: 150px; flex: 0 1 360px; }
.header .header-left .badge,
.header .header-left .dropdown > .badge {
    min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.header .header-left .dropdown { min-width: 0; }

@media (max-width: 1699.98px) {
    .header .uao-annee-dates { display: none; }
}
@media (max-width: 1499.98px) {
    .header-profile .header-info span,
    .header-profile .header-info small { max-width: 150px; }
}
@media (max-width: 1199.98px) {
    #uao-search-wrap { max-width: 190px; margin-right: .25rem !important; }
    .header-profile .header-info span,
    .header-profile .header-info small { max-width: 130px; }
}

/* En-tête : le nom complet de l'utilisateur écrasait la barre sur tablette. */
@media (max-width: 991.98px) {
    .header-profile .header-info { display: none !important; }
    .header-profile > a.nav-link .fa-caret-down { margin-left: .35rem !important; }
}

@media (max-width: 767.98px) {
    /* Titres de page + fil d'Ariane + bouton d'action : empilés proprement. */
    .form-head { gap: .5rem; }
    .form-head > .btn, .form-head > a.btn { margin-left: 0 !important; }
    .form-head h2, .form-head .h2 { font-size: 1.35rem; }
    .breadcrumb { flex-wrap: wrap; font-size: .82rem; }

    /* Fenêtres modales : pleine largeur utile sur téléphone. */
    .modal-dialog { margin: .5rem; }
    .modal-lg, .modal-xl { max-width: calc(100% - 1rem); }

    /* DataTables : longueur / recherche / pagination sur leur propre ligne. */
    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter,
    .dataTables_wrapper .dataTables_info,
    .dataTables_wrapper .dataTables_paginate { float: none !important; text-align: left !important; }
    .dataTables_wrapper .dataTables_filter input { width: 100% !important; margin-left: 0 !important; }
    .dataTables_wrapper .dataTables_paginate { margin-top: .5rem; }
    .dataTables_wrapper .dataTables_paginate .paginate_button { padding: .25rem .55rem !important; }

    /* Boutons d'actions groupés dans les cellules : retour à la ligne permis. */
    td .d-flex.gap-1 { flex-wrap: wrap; }

    /* Cartes : marges internes réduites. */
    .card-body { padding: 1rem; }
    .card-header { padding: .85rem 1rem; flex-wrap: wrap; gap: .5rem; }
}


/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE — en-tête : année consultée et recherche toujours accessibles (2026-11-19)
   ═══════════════════════════════════════════════════════════════════════════ */
.uao-search-ouvrir {
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 40px; height: 40px; border: 0; border-radius: 50%; background: #f3f4f9; color: #2f3a8f; font-size: 1rem;
}
.uao-search-ouvrir[aria-expanded="true"] { background: #2f3a8f; color: #fff; }
@media (max-width: 991.98px) {
    /* Barre de recherche ouverte : pleine largeur sous l'en-tête. */
    #uao-search-wrap.uao-search-mobile {
        display: flex !important; position: fixed !important; left: 0; right: 0; top: var(--uao-entete, 5rem);
        max-width: none !important; min-width: 0; margin: 0 !important; padding: .6rem .75rem;
        background: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.12); z-index: 1050;
    }
    #uao-search-wrap.uao-search-mobile #uao-search-dropdown {
        left: .75rem !important; right: .75rem; min-width: 0 !important; max-width: none !important; width: auto;
    }
    .header .dashboard_bar { gap: .5rem !important; }
}
@media (max-width: 575.98px) {
    /* Année : icône + « 2025-2026 » seulement ; le menu déroulant reste disponible. */
    .header .uao-annee-prefixe { display: none; }
    .header .uao-annee, .header .uao-annee > .badge { padding: .4rem .65rem !important; font-size: .74rem !important; }
    .header .uao-annee .dropdown-menu { min-width: 200px !important; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE — audit complet de la plateforme (2026-11-19)
   Correctifs transverses issus de l'analyse des pages de tous les rôles.
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 767.98px) {
    /* Onglets nombreux : une seule ligne qui défile horizontalement. */
    .content-body .nav-tabs:not(.flex-column),
    .content-body .nav-pills:not(.flex-column):not(.nav-fill) {
        flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: thin;
    }
    .content-body .nav-tabs .nav-link, .content-body .nav-pills .nav-link { white-space: nowrap; }
    /* Tableaux enveloppés par le script de layout.app (.uao-tableau-mobile). */
    .uao-tableau-mobile { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
@media (max-width: 575.98px) {
    /* Rangées de boutons / filtres : retour à la ligne au lieu de déborder. */
    .content-body .d-flex:not(.flex-nowrap):not(.flex-column) { flex-wrap: wrap; }
    .content-body .btn-group:not(.btn-group-vertical) { flex-wrap: wrap; }
    .content-body .btn-group:not(.btn-group-vertical) > .btn { flex: 1 1 auto; }

    /* Champs de filtre à largeur fixe (style="width:…") : toute la largeur disponible. */
    .content-body :not(td):not(th) > select[style*="width"],
    .content-body :not(td):not(th) > input[style*="width"]:not([type="checkbox"]):not([type="radio"]),
    .content-body :not(td):not(th) > .bootstrap-select[style*="width"] {
        width: 100% !important; max-width: 100% !important; flex: 1 1 100%;
    }
    .content-body .bootstrap-select:not(.input-group-btn) { max-width: 100%; }

    /* Saisie confortable : 16 px évite le zoom automatique d'iOS ; cibles tactiles suffisantes. */
    .content-body .form-control, .content-body .form-select, .content-body select,
    .content-body textarea, .content-body input[type="text"], .content-body input[type="search"],
    .content-body input[type="number"], .content-body input[type="date"], .content-body input[type="email"],
    .modal .form-control, .modal .form-select, .dataTables_wrapper .dataTables_filter input { font-size: 16px !important; }
    .content-body .btn-xs { padding: .35rem .6rem; min-height: 32px; }
    .content-body .btn-sm { min-height: 36px; }

    /* Fenêtres modales : pied de fenêtre qui passe à la ligne. */
    .modal-footer { flex-wrap: wrap; gap: .4rem; }
    .modal-footer > * { margin: 0 !important; }

    /* Titres de page longs et bandeaux d'accueil. */
    .content-body h2, .content-body .h2 { overflow-wrap: anywhere; }
    .content-body .container-fluid { padding-left: .75rem; padding-right: .75rem; }
}

/* Pastille « Année en cours / consultée » : flèche du thème (::after, positionnée hors de la pastille
   et à moitié coupée) remplacée par un chevron interne. */
.header .uao-annee .dropdown-toggle::after { display: none !important; content: none !important; }
.header .uao-annee .dropdown-toggle { overflow: hidden; }
.header .uao-annee .uao-annee-chevron { flex: 0 0 auto; font-size: .62em; margin-left: .2rem; opacity: .85; transition: transform .2s; }
.header .uao-annee .dropdown-toggle[aria-expanded="true"] .uao-annee-chevron { transform: rotate(180deg); }
.header .uao-annee > .badge, .header .uao-annee .dropdown-toggle { box-shadow: none; }

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE — en-tête et marges (2026-11-26)
   ☰ et loupe ne se chevauchent plus, chevron de l'année entier, plus de
   débordement de 3 px des .row (gouttière 15 px = marge de la grille).
   ═══════════════════════════════════════════════════════════════════════════ */
/* Année courte (« 25-26 ») masquée hors téléphone ; la pastille ne se laisse jamais rétrécir */
.header .uao-annee-court { display: none; }
.header .dashboard_bar > .uao-annee { flex: 0 0 auto; }
.header .uao-annee .dropdown-toggle, .header span.uao-annee { white-space: nowrap; }
@media (max-width: 1199.98px) { .header .uao-annee-prefixe { display: none; } }
@media (max-width: 767.98px) {
    .header .header-left .dashboard_bar { margin-left: 1.9rem; }
    .content-body .container-fluid { padding-left: 15px; padding-right: 15px; }
}
@media (max-width: 575.98px) {
    .header .uao-annee { padding: 0 !important; flex: 0 0 auto; }
    .header .uao-annee .dropdown-toggle { overflow: visible; max-width: none; white-space: nowrap; padding: .38rem .55rem !important; font-size: .72rem !important; gap: .2rem !important; }
    .header .uao-annee .fa-calendar-alt { display: none; }
    .header span.uao-annee { padding: .38rem .55rem !important; font-size: .72rem !important; }
    .header .uao-annee-long { display: none; }
    .header .uao-annee-court { display: inline !important; }
    /* En-tête compact : la pastille d'année n'est plus rognée (≈ 263 px disponibles) */
    .header .header-left .dashboard_bar { margin-left: 1.6rem; gap: .3rem !important; }
    .header #uao-search-ouvrir { width: 34px !important; height: 34px !important; min-width: 0 !important; padding: 0 !important; flex: 0 0 auto; }
    .header .header-right > .nav-item { padding-left: 3px !important; }
    .header .header-right > .nav-item > .nav-link { width: 36px !important; height: 36px !important; min-width: 0 !important; padding: 0 !important;
        display: flex !important; align-items: center; justify-content: center; }
    .header .header-right > .nav-item > .nav-link svg, .header .header-right > .nav-item > .nav-link i { font-size: 1rem; }
    .header .header-right .header-profile > .nav-link img { width: 34px !important; height: 34px !important; }
}

/* ─── Pastilles de niveaux d'étude (Étudiants, PV, Évaluations reçues — 2026-11-27) ───
   Compactes : « Tous » + les 8 niveaux tiennent sur une ligne en bureau (plus de « Doctorat » seul). */
.uao-pastilles { gap: .4rem !important; }
.uao-pastilles > .btn { padding: .32rem .75rem !important; font-size: .78rem !important; border-radius: 20px !important; line-height: 1.4; }
.uao-pastilles > .btn .badge { font-size: .66rem; padding: .18em .45em; }

/* Menu latéral : place réservée à la flèche des entrées dépliantes (le libellé passe à la ligne au lieu de la chevaucher, ex. « Notes et évaluation ») */
.deznav .metismenu > li > a.has-arrow { padding-right: 2.4rem !important; }
