/* ===================== HEADER ===================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 0.8rem 0;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background-color: #ffffff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    gap: 1rem;
    position: relative;
}

/* ===================== BOUTON MENU (GAUCHE) ===================== */
.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
    order: 1;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--gv-orange, #F29200);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.menu-toggle:hover span {
    background-color: #d67f00;
}

/* Animation du burger menu */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===================== LOGO (CENTRE) ===================== */
.header-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    order: 2;
    z-index: 2;
}

.logo-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 2px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--text-primary);
    letter-spacing: 0.02em;
    line-height: 1;
}

.logo-subtitle {
    font-family: var(--font-body);
    font-size: 0.5rem;
    letter-spacing: 0.15em;
    color: var(--text-faint);
    text-transform: uppercase;
}

/* ===================== RECHERCHE (DROITE) ===================== */
.search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--gv-orange, #F29200);
    transition: color 0.3s ease;
    order: 3;
    z-index: 1001;
}

.search-toggle:hover {
    color: #d67f00;
}

.search-toggle svg {
    width: 22px;
    height: 22px;
}

/* Barre de recherche */
.search-container {
    position: absolute;
    right: 0;
    top: 100%;
    width: 0;
    overflow: hidden;
    transition: width 0.4s ease;
    background-color: var(--surface);
    border-radius: 4px;
    z-index: 1000;
}

.search-container.open {
    width: 300px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.search-form {
    display: flex;
    align-items: center;
    padding: 0.5rem;
}

.search-input {
    flex: 1;
    background: none;
    border: none;
    padding: 0.5rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    width: 100%;
}

.search-input::placeholder {
    color: var(--text-faint);
}

.search-submit {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--brand-light);
    padding: 0.5rem;
    transition: transform 0.3s ease;
}

.search-submit:hover {
    transform: scale(1.1);
}

/* ===================== MENU DÉROULANT (OVERLAY) ===================== */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 12, 16, 0.95);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    overflow-y: auto;
}

.menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

.menu-overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 6rem 2rem;
    gap: 1rem;
}

.menu-overlay-links {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
    width: 100%;
    max-width: 400px;
}

.menu-overlay-links li {
    margin-bottom: 0.5rem;
}

.menu-overlay-links a {
    display: block;
    padding: 1rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-dim);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.menu-overlay-links a:hover,
.menu-overlay-links a.active {
    color: var(--text-primary);
    background-color: var(--surface);
    transform: translateX(10px);
}

.menu-overlay-footer {
    margin-top: 2rem;
    text-align: center;
}

.menu-overlay-footer a {
    color: var(--text-faint);
    text-decoration: none;
    font-size: 0.9rem;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.menu-overlay-footer a:hover {
    color: var(--brand-light);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
    .header-container {
        padding: 0 1rem;
        gap: 0.5rem;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    .logo-subtitle {
        font-size: 0.45rem;
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
    }
    
    .search-container.open {
        width: 250px;
        right: -10px;
    }
    
    .menu-overlay-links a {
        font-size: 1.2rem;
        padding: 0.8rem;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 0.8rem;
    }
    
    .logo-text {
        font-size: 0.9rem;
    }
    
    .logo-subtitle {
        font-size: 0.4rem;
        letter-spacing: 0.1em;
    }
    
    .logo-icon {
        width: 28px;
        height: 28px;
    }
    
    .search-container.open {
        width: 200px;
        right: -15px;
    }
    
    .menu-toggle span {
        width: 20px;
    }
}



/* ===================== LOGO (CENTRE) ===================== */
.header-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    order: 2;
    z-index: 2;
}

.logo-link {
    display: block;
    text-decoration: none;
}

.logo-image {
    max-height: 50px;
    max-width: 200px;
    height: auto;
    width: auto;
    display: block;
    transition: all 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
}

/* Responsive pour le logo */
@media (max-width: 768px) {
    .logo-image {
        max-height: 40px;
    }
}

@media (max-width: 480px) {
    .logo-image {
        max-height: 35px;
    }
}