/* =========================================
    RESET ET BASE
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    color: #ffffff;
    background-color: #f8f9fa; /* Couleur de fond par défaut pour éviter le blanc pur */
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* =========================================
    HEADER (Position Fixed)
========================================= */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px; /* Hauteur du header seul */
    z-index: 1050;
    background: #093d62; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.header-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4%;
    height: 100%;
}

/* ===============================
   NAVIGATION MOBILE PALPE
   =============================== */

.mobile-navigation-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: #093d62;
    padding: 12px 5px;
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 3px 12px rgba(0,0,0,0.15);

}
.mobile-navigation-bar {
    position: sticky;
    top: 70px;
    z-index: 999;
}
.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 8px 5px;
    border-radius: 10px;
    min-width: 90px;
}

.mobile-nav-item i {
    font-size: 22px;
    margin-bottom: 5px;
    color: #816632;
}

.mobile-nav-item span {
    text-align: center;
    line-height: 1.2;
}

.mobile-nav-item:hover {
    background: rgba(255,255,255,0.1);
    color: #ffffff;
    transform: translateY(-2px);
}

.mobile-nav-item.active {
    background: #ffcc00;
    color: #093d62;
}

.mobile-nav-item.active i {
    color: #093d62;
}

/* ===============================
   MOBILE UNIQUEMENT
   =============================== */

@media (min-width: 992px) {
    .mobile-navigation-bar {
        display: none;
    }
}


/* =========================================
    MAIN CONTENT
========================================= */
.main-content {
    flex: 1 0 auto;
    width: 100%;
    /* Décalage pour le header fixe */
    margin-top: 60px; 
}

/* =========================================
    LOGOS ET ACTIONS
========================================= */
.logo-link { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 1px solid #093d62;; }
.logo-text { font-size: 18px; font-weight: 800; color: #ffffff; text-transform: uppercase; }
.header-actions { display: flex; align-items: center; gap: 15px; }
.user-profile-icon { color: #ffc107; font-size: 24px; cursor: pointer; }
.burger-menu-toggle { background: none; border: none; font-size: 22px; color: #ffffff; cursor: pointer; }

/* =========================================
    NAVIGATION
========================================= */
.desktop-nav { display: block; }
.desktop-nav ul { display: flex; align-items: center; gap: 15px; list-style: none; }
.nav-item-pc { text-decoration: none; color: #ffffff; font-weight: 600; font-size: 13px; }
.nav-item-pc:hover { color: #ffc107; }

.mobile-navigation-bar {
    display: none;
    background: #093d62;
    padding: 8px 4%;
    justify-content: space-around;
    border-top: 1px solid rgba(255,255,255,0.2);
    position: fixed;
    top: 60px;
    width: 100%;
    z-index: 1040;
}

/* =========================================
    RESPONSIVE
========================================= */
@media(max-width: 1023px) {
    .mobile-navigation-bar { display: flex; }
    .desktop-nav { display: none; }
    
    /* On ajoute 50px de hauteur supplémentaire pour la barre mobile */
    .main-content { margin-top: 110px; }
}

@media(min-width: 1024px) {
    .burger-menu-toggle { display: none; }
}