/* public/assets/css/entete.css */

:root {
    --primary-blue: #00152e;
    --accent-blue: #0099ff;
    --gold: #FFD700;
    --red: #FF0000;
    --white: #ffffff;
    --whatsapp: #25D366;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* --- STRUCTURE PRINCIPALE --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 40px;
    transition: all 0.4s ease;
    background: transparent;
    color: white;
}

/* État "Scrolled" */
.main-header.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    color: var(--primary-blue);
}

/* Inversion logo au scroll */
.main-header.scrolled .header-logo-img {
    filter: invert(1) brightness(0);
}

.header-content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1800px;
    margin: 0 auto;
}

/* --- LOGO --- */
.brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.header-logo-img {
    width: 12vw;
    min-width: 140px;
    height: auto;
    object-fit: contain;
    transition: filter 0.3s ease;
}

/* --- NAVIGATION --- */
.nav-menu {
    display: flex;
    gap: 40px;
    list-style: none;
    margin: 0; padding: 0;
}

.nav-link {
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
    color: inherit;
    position: relative;
    padding-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0; left: 0;
    background-color: var(--accent-blue);
    transition: width 0.3s;
}

.nav-link:hover::after { width: 100%; }
.nav-link:hover { color: var(--accent-blue); }

/* --- ACTIONS AREA (NOUVEAU DESIGN) --- */
.actions-area {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Groupes d'icônes sociales en entête */
.header-socials {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-right: 20px;
    border-right: 1px solid rgba(255,255,255,0.3); /* Séparateur */
}

.main-header.scrolled .header-socials {
    border-right-color: rgba(0,0,0,0.1);
}

.h-social-btn {
    color: inherit;
    font-size: 1.2rem;
    transition: transform 0.3s, color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.h-social-btn:hover { transform: translateY(-3px); }
.h-social-btn.whatsapp:hover { color: var(--whatsapp); }
.h-social-btn.email:hover { color: var(--red); }
.h-social-btn.linkedin:hover { color: #0077b5; }

/* RECHERCHE */
.search-box {
    position: relative;
    background: rgba(255,255,255, 0.1);
    border-radius: 50px;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    border: 1px solid rgba(255,255,255, 0.2);
    transition: all 0.3s ease;
}

.main-header.scrolled .search-box {
    background: #f0f2f5;
    border-color: #ddd;
}

.search-input {
    border: none;
    background: transparent;
    outline: none;
    color: inherit;
    width: 200px; /* Plus compact pour laisser place aux icônes */
    transition: width 0.4s;
    padding-left: 10px;
    font-size: 0.95rem;
}

.search-input:focus { width: 300px; }

.search-btn {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 1.1rem;
}

/* --- BURGER MENU --- */
.burger-menu {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 10px;
    color: inherit;
}

.burger-menu span {
    width: 30px; height: 3px;
    background-color: currentColor;
    transition: 0.3s;
}

/* --- SIDEBAR MOBILE --- */
.mobile-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(0, 21, 46, 0.8); backdrop-filter: blur(5px);
    z-index: 1001; opacity: 0; visibility: hidden; transition: 0.3s;
}
.mobile-overlay.active { opacity: 1; visibility: visible; }

.mobile-sidebar {
    position: fixed; top: 0; right: -320px; width: 300px; height: 100vh;
    background: white; z-index: 1002; transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: -5px 0 20px rgba(0,0,0,0.1); display: flex; flex-direction: column; color: #333;
}
.mobile-sidebar.active { right: 0; }

.mobile-header { padding: 25px; background: #00152e; color: white; display: flex; justify-content: space-between; align-items: center; }
.mobile-title { font-size: 1.4rem; font-weight: 700; text-transform: uppercase; }
.close-mobile { background: none; border: none; color: white; font-size: 1.8rem; cursor: pointer; }

.mobile-content { padding: 30px 20px; overflow-y: auto; }

.mobile-nav-list { list-style: none; padding: 0; margin: 0; }
.mobile-nav-list li { margin-bottom: 25px; border-bottom: 1px solid #eee; padding-bottom: 15px; }
.mobile-nav-list a { text-decoration: none; color: #00152e; font-weight: 800; font-size: 1.4rem; display: flex; align-items: center; justify-content: space-between; text-transform: uppercase;}
.mobile-nav-list a i { font-size: 1rem; color: #0099ff; }

/* Réseaux Sociaux Mobile */
.mobile-socials { display: flex; justify-content: center; gap: 20px; margin-top: 40px; }
.mobile-socials a {
    width: 45px; height: 45px; background: #f4f6f9; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #00152e; font-size: 1.2rem; text-decoration: none; transition: 0.3s;
}
.mobile-socials a:hover { background: #00152e; color: #FFD700; }

/* RESPONSIVE */
@media (max-width: 992px) {
    .desktop-only { display: none !important; }
    .burger-menu { display: flex; }
    .main-header { padding: 15px 20px; }
    .actions-area { gap: 15px; }
    .header-socials { display: none; } /* On cache les icônes desktop sur mobile */
}