/* Arrière-plan bleu élégant pour l'université */
.fond-bleu-elegant {
    background-color: #0F2C59 !important;
}

/* --- LE CADRE BLANC (LA CAPSULE) : TAILLE VERROUILLÉE & CENTRÉE --- */
#header .header-body .custom-super-capsule {
    background-color: #ffffff !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06) !important;
    border-radius: 40px !important; /* Belle forme de pilule */
    padding: 0 25px !important;     /* Pas de padding vertical pour contrôler la hauteur exacte */
    margin: 15px 0 !important;
    border: none !important;
    
    /* On force une hauteur fixe et compacte pour la capsule */
    height: 70px !important; 
    min-height: 70px !important;
    display: flex !important;
    align-items: center !important; /* Centre tout le monde verticalement */
}

/* On désactive les hauteurs minimales géantes de Porto à l'intérieur de la capsule */
#header .header-body .custom-super-capsule .header-row {
    height: 100% !important;
    min-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important; /* Aligne le logo à gauche et le menu à droite sur la même ligne */
}

/* --- LOGO PARFAITEMENT ALIGNÉ --- */
.custom-logo-padding {
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
}

.custom-logo-padding img {
    max-height: 48px !important; /* Ajuste la taille du logo pour qu'il rentre joliment */
    width: auto !important;
}

/* --- ALIGNEMENT VERTICAL DU MENU --- */
#header .header-body .custom-super-capsule .header-nav {
    margin: 0 !important;
    padding: 0 !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
}

#header .header-body .custom-super-capsule .header-nav-main {
    margin: 0 !important;
    padding: 0 !important;
}

#header .header-body .custom-super-capsule ul.nav-pills {
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important; /* Force les boutons sur la ligne médiane */
}

/* --- LES BOUTONS ORANGE : PROPRES ET PROPORTIONNELS --- */
#header .header-body .custom-super-capsule ul.nav-pills > li.custom-nav-item {
    margin: 0 4px !important;
    display: flex !important;
    align-items: center !important;
}

#header .header-body .custom-super-capsule ul.nav-pills > li.custom-nav-item > a.custom-orange-btn {
    color: #ffffff !important;
    background-color: #FF5A00 !important;
    border-radius: 20px !important;
    
    /* Padding équilibré pour un bouton élégant */
    padding: 8px 18px !important; 
    font-size: 13px !important;
    font-weight: 600 !important;
    
    /* Supprime les étirements de ligne de Porto */
    line-height: 1 !important;
    height: auto !important;
    min-height: unset !important;
    
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    
    text-transform: none !important;
    border: none !important;
    transition: all 0.2s ease-in-out !important;
}

/* Effets Hover / Active */
#header .header-body .custom-super-capsule ul.nav-pills > li.custom-nav-item > a.custom-orange-btn:hover {
    background-color: #e04f00 !important;
    color: #ffffff !important;
}

#header .header-body .custom-super-capsule ul.nav-pills > li.custom-nav-item > a.custom-orange-btn.active {
    background-color: #FF5A00 !important;
    color: #ffffff !important;
}

/* --- SÉPARATEUR ET LOUPE DE RECHERCHE --- */
.custom-divider {
    width: 1px !important;
    height: 25px !important; /* Légèrement réduit pour s'accorder aux boutons */
    background-color: #e5e7eb !important;
    margin: 0 15px !important;
    align-self: center !important;
}

#header .header-body .custom-super-capsule .header-nav-features {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}