/* ==========================================================================
   HEADER & NAVIGATION
========================================================================== */
.main-header {
    background-color: var(--bleu-menu);
    color: var(--blanc);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 5%;
    position: relative;
    z-index: 100;
    min-height: 80px;
}

/* --- Logo --- */
.main-header .logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.main-header .logo img {
    width: 100%;
    height: auto;
    max-width: 260px;
    max-height: 70px;
    object-fit: contain;
    display: block;
}

/* --- Menu principal --- */
.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    font-family: 'Typo-Mulish', sans-serif;
    color: var(--gris-bleu);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a.active {
    color: var(--blanc);
    border-bottom: 2px solid var(--jaune-rac);
    padding-bottom: 5px;
}

.nav-menu a:hover {
    color: var(--jaune-rac);
}

.nav-menu a.btn-cta {
    color: #20183B;
    font-weight: 700;
}

/* --- Bouton d'action (CTA) --- */
.btn-cta {
    background-color: var(--jaune-rac);
    color: #20183B;
    padding: 12px 28px;
    text-decoration: none;
    border-radius: 50px;
    font-family: 'Typo-MulishBold', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 213, 79, 0.15);
}

.btn-cta i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.btn-cta:hover {
    background-color: #FFE48C;
    color: #20183B;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 213, 79, 0.3);
}

.btn-cta:hover i {
    transform: translateX(4px) translateY(-4px);
}

.cta-mobile {
    display: none;
}

/* --- Bouton Burger --- */
.burger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 110;
}

.burger-bar {
    width: 100%;
    height: 3px;
    background-color: var(--blanc);
    transition: all 0.3s ease;
}

.burger-btn.open .burger-bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.burger-btn.open .burger-bar:nth-child(2) {
    opacity: 0;
}

.burger-btn.open .burger-bar:nth-child(3) {
    transform: translateY(-9px) rotate(-44deg);
}

/* ==========================================================================
   RESPONSIVE HEADER
========================================================================== */
@media (max-width: 1200px) {
    .main-header .logo img { max-width: 200px; }
    .nav-menu ul { gap: 15px; }
    .nav-menu a { font-size: 0.9rem; }
    .btn-cta { padding: 10px 18px; font-size: 0.85rem; }
}

@media (max-width: 992px) {
    .cta-desktop { display: none; }
    .cta-mobile { display: inline-flex; }
    .burger-btn { display: flex; }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bleu-menu);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .nav-menu.open {
        max-height: 500px;
        padding-bottom: 2rem;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 2rem 0 1.5rem 0;
        width: 100%;
    }

    .nav-menu a.active {
        border-bottom: none;
        color: var(--blanc);
    }
}

@media (max-width: 768px) {
    .main-header .logo img { max-width: 180px; max-height: 50px; }
}

@media (max-width: 480px) {
    .main-header { padding: 0.5rem 15px; min-height: 60px; }
    .main-header .logo img { max-width: 150px; max-height: 40px; }
}