/**
 * 💎 CHARI INFO - AJUSTEMENTS HEADER & NAVIGATION PREMIUM
 */

:root {
    --brand-primary: #C0152A;
    --brand-dark: #1a1a1a;
    --brand-gold: #d4af37;
    --topbar-height: 36px;
    --font-almarai: 'Almarai', sans-serif;
    --header-nav-blur: 12px;
}

/* 1. TOP BAR — bandeau pro, lisible */
.topbar {
    height: var(--topbar-height);
    background: linear-gradient(180deg, #222 0%, #141414 100%);
    color: #f5f5f5;
    font-size: 12px;
    font-family: var(--font-almarai);
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    letter-spacing: 0.02em;
}

.topbar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.topbar__date {
    opacity: 0.9;
    font-weight: 400;
}

.topbar__social {
    display: flex;
    gap: 15px;
    align-items: center;
}

.topbar__social-link {
    color: #ffffff !important;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    display: flex;
}

.topbar__social-link:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.topbar__social-link svg {
    width: 14px;
    height: 14px;
}

/* 2. HEADER MAIN (LOGO AREA) */
.site-header {
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: none !important;
}

.header-main-wrapper {
    background: #ffffff;
    box-shadow: 0 1px 0 rgba(13, 13, 13, 0.06), 0 8px 24px rgba(13, 13, 13, 0.04);
    padding: 6px 5% !important;
    position: relative;
    z-index: 10;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: auto !important; /* Dynamisme selon le logo */
    padding: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
}

.site-logo__img {
    max-height: 64px !important;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

/* Supprime l'espace sous la breaking news si présente */
.breaking-bar {
    margin-bottom: 0 !important;
}

/* 3. NAVIGATION — barre sticky type média (verre léger + ombre au scroll) */
.main-nav {
    background: rgba(26, 26, 26, 0.94) !important;
    padding: 0;
    margin-bottom: 0;
    transition: box-shadow 0.35s ease, background-color 0.35s ease;
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .main-nav {
        background: rgba(26, 26, 26, 0.88) !important;
        -webkit-backdrop-filter: saturate(1.15) blur(var(--header-nav-blur));
        backdrop-filter: saturate(1.15) blur(var(--header-nav-blur));
    }
}

.main-nav.is-scrolled {
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.35);
}

.main-nav__inner {
    display: flex;
    justify-content: center !important; /* Centrage total */
    align-items: center;
}

.main-nav__menu {
    display: flex;
    justify-content: center;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav__link {
    display: block;
    padding: 15px 5px;
    color: #ffffff !important;
    font-family: var(--font-almarai) !important;
    font-weight: 600 !important;
    font-size: 15px;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

/* Hover Gold */
.main-nav__link:hover {
    color: var(--brand-gold) !important;
}

/* Animation Underline Rouge (RTL Style: de droite à gauche) */
.main-nav__link::after {
    content: '';
    position: absolute;
    bottom: 10px;
    right: 0;
    width: 0;
    height: 3px;
    background-color: var(--brand-primary);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-nav__link:hover::after {
    width: 100%;
    left: auto; /* Force l'expansion depuis la droite en RTL */
}

/* Ajustement pour LTR si nécessaire */
[dir="ltr"] .main-nav__link::after {
    right: auto;
    left: 0;
}

/* Correction pour mobile si hamburger est présent */
@media (max-width: 991px) {
    .main-nav__inner {
        justify-content: space-between !important;
    }
    .header-main-wrapper {
        padding: 8px 15px;
    }
    .site-logo__img {
        max-height: 60px !important;
    }
}
