/**
 * FIRPCAM — Header Institutionnel Bleu
 * Bleu #003087 | Or #C9A84C | Ivoire #F5F0E8
 */

/* ══════ TOP BAR ══════ */
.top-bar { background: var(--bleu-fonce); padding: 10px 0; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar-left { display: flex; gap: 24px; }
.top-bar-left span { color: rgba(255,255,255,0.7); font-size: 13px; font-family: var(--font-corps); display: flex; align-items: center; gap: 8px; }
.top-bar-right { display: flex; align-items: center; gap: 20px; }
.lang-switcher { display: flex; gap: 3px; }
.lang-switcher a { color: rgba(255,255,255,0.5); font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 4px; text-decoration: none; transition: var(--transition-fast); }
.lang-switcher a:hover, .lang-switcher a.active { color: #fff; background: rgba(255,255,255,0.1); text-decoration: none; }
.top-bar-right .btn-espace-membre { color: #fff; font-weight: 700; font-size: 13px; display: flex; align-items: center; gap: 5px; text-decoration: none; transition: var(--transition-fast); }
.top-bar-right .btn-espace-membre:hover { color: var(--or-antique); text-decoration: none; }

/* ══════ HEADER PRINCIPAL ══════ */
.site-header { background: var(--bleu-institutionnel); position: sticky; top: 0; z-index: 100; transition: box-shadow 0.3s ease; }
.site-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.header-main { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }

/* ══════ LOGO ══════ */
/* ══════ LOGO ══════ */
.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo:hover { text-decoration: none; }

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--or-antique), var(--or-hover));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-chiffres);
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
    box-shadow: 0 2px 10px rgba(201,168,76,0.3);
    position: relative;
}

/* Bordure dorée subtile autour de l'icône */
.logo-icon::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 12px;
    border: 1px solid rgba(201,168,76,0.25);
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-name {
    font-family: var(--font-chiffres);
    font-size: 20px;
    font-weight: 800;
    color: var(--or-antique);
    letter-spacing: 3px;
    line-height: 1;
}

.logo-subtitle {
    font-family: var(--font-corps);
    font-size: 9px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.35;
    max-width: 220px;
}

/* Ligne dorée décorative sous le nom */
.logo-name::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, var(--or-antique), transparent);
    margin-top: 4px;
}

/* ══════ NAVIGATION ══════ */
.nav-main { display: flex; align-items: center; }
.nav-list { display: flex; gap: 4px; align-items: center; }
.nav-item { position: relative; }
.nav-link { display: block; padding: 10px 16px; font-family: var(--font-corps); font-size: 15px; font-weight: 600; color: rgba(255,255,255,0.9); border-radius: var(--radius-sm); transition: var(--transition-fast); white-space: nowrap; text-decoration: none; }
.nav-link:hover { color: var(--or-antique); text-decoration: none; }
.nav-link.active { color: #fff; }
.nav-link.active::after { content: ''; position: absolute; bottom: -2px; left: 16px; right: 16px; height: 3px; background: var(--or-antique); border-radius: 2px 2px 0 0; }

/* ══════ CTA BUTTON ══════ */
.nav-cta .nav-link { background: var(--or-antique); color: #fff; border-radius: var(--radius-btn); padding: 10px 24px; margin-left: 8px; font-weight: 700; }
.nav-cta .nav-link::after { display: none; }
.nav-cta .nav-link:hover { background: var(--or-hover); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(201,168,76,0.4); }

/* ══════ DROPDOWNS ══════ */
.nav-item.has-dropdown > .nav-link::after { content: ''; display: inline-block; width: 0; height: 0; margin-left: 5px; vertical-align: middle; border-top: 4px solid currentColor; border-right: 4px solid transparent; border-left: 4px solid transparent; }
.dropdown-menu { position: absolute; top: 100%; left: 0; min-width: 280px; background: var(--blanc-pur); border-radius: 0 0 var(--radius-md) var(--radius-md); box-shadow: 0 15px 50px rgba(0,0,0,0.15); border-top: 3px solid var(--or-antique); opacity: 0; visibility: hidden; transform: translateY(8px); transition: var(--transition); z-index: 1001; padding: 8px 0; }
.nav-item.has-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-link { display: block; padding: 10px 24px; color: var(--anthracite); font-size: 15px; transition: var(--transition-fast); border-left: 3px solid transparent; text-decoration: none; }
.dropdown-link:hover { background: var(--ivoire); color: var(--bleu-institutionnel); border-left-color: var(--or-antique); text-decoration: none; }
.dropdown-divider { border-top: 1px solid #eee; margin: 4px 0; }

/* ══════ BURGER ══════ */
.burger-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 32px; height: 32px; background: none; border: none; cursor: pointer; padding: 0; position: relative; z-index: 1100; }
.burger-toggle span { display: block; width: 100%; height: 2px; background: #fff; border-radius: 2px; transition: var(--transition); transform-origin: center; }
.burger-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 4px); }
.burger-toggle.active span:nth-child(2) { opacity: 0; }
.burger-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -4px); }
