:root {
    --primary-color: #ffcd00;
    --secondary-color: #063D44;
    --third-color: #BD6231;
    --text-dark: #0a0a0a;
    --text-light: #666;
    --bg-light: #fafafa;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lexend', sans-serif;
    background: #f9fafb;
    color: var(--text-dark);
    overflow-x: hidden;
    position: relative;
}

/* Lueurs globales en arrière-plan fixes */
body::before {
    content: '';
    position: fixed;
    width: 800px;
    height: 800px;
    background: var(--primary-color);
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.15;
    top: 30%;
    left: -20%;
    animation: float 30s infinite ease-in-out;
    z-index: 0;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    width: 700px;
    height: 700px;
    background: var(--third-color);
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.12;
    bottom: 20%;
    right: -15%;
    animation: float 35s infinite ease-in-out;
    animation-delay: 10s;
    z-index: 0;
    pointer-events: none;
}

/* ============================================
   HEADER
============================================ */
.header-component {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 24px 60px;
    background: transparent;
    backdrop-filter: none;
    z-index: 1000;
    transition: all 0.6s cubic-bezier(0.215, 0.61, 0.355, 1);
    border-bottom: 1px solid transparent;
}

.header-component.scrolled {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    padding: 10px 32px;
    background: rgba(6, 61, 68, 0.98);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border-radius: 100px;
    border-bottom: 1px solid rgba(255, 205, 0, 0.2);
}

.header-inner {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo-container:hover {
    transform: translateY(-2px);
}

.logo-img {
    height: 28px;
    width: auto;
    transition: height 0.45s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.header-component.scrolled .logo-img {
    height: 22px;
}

/* Navigation */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    transition: gap 0.4s ease;
}

.header-component.scrolled .nav-menu {
    gap: 4px;
}

.nav-link {
    position: relative;
    padding: 10px 20px;
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    background: transparent;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 8px;
    transition: all 0.4s ease;
}

.nav-link:hover {
    background: rgba(6, 61, 68, 0.06);
    color: var(--secondary-color);
}

.header-component.scrolled .nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    padding: 8px 16px;
}

.header-component.scrolled .nav-link:hover {
    background: rgba(255, 205, 0, 0.15);
}

/* Cacher le bouton retour sur la page d'accueil */
.back-btn.hidden {
    display: none;
    color: var(--primary-color);
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.4s ease;
}

.dropdown-toggle:hover {
    background: rgba(6, 61, 68, 0.06);
}

.header-component.scrolled .dropdown-toggle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    padding: 8px 16px;
}

.header-component.scrolled .dropdown-toggle:hover {
    background: rgba(255, 205, 0, 0.15);
    color: var(--primary-color);
}

.dropdown-icon {
    width: 16px;
    height: 16px;
    transition: all 0.4s ease;
}

.header-component.scrolled .dropdown-icon {
    width: 14px;
    height: 14px;
}

.nav-dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    background: white;
    border-radius: 16px;
    padding: 12px;
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(6, 61, 68, 0.08);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 14px 16px;
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(255, 205, 0, 0.1);
}

.dropdown-item-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.dropdown-item-desc {
    font-size: 13px;
    color: #666;
    font-weight: 400;
}

/* Navigation Buttons */
.nav-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: gap 0.4s ease;
}

.header-component.scrolled .nav-buttons {
    gap: 8px;
}

.btn {
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.header-component.scrolled .btn {
    padding: 8px 20px;
    font-size: 13px;
}

.btn-secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 1.5px solid rgba(6, 61, 68, 0.2);
    transition: all 0.4s ease;
}

.btn-secondary:hover {
    background: rgba(6, 61, 68, 0.06);
    border-color: var(--secondary-color);
}

.header-component.scrolled .btn-secondary {
    opacity: 0;
    pointer-events: none;
    width: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--secondary-color);
    border: 1.5px solid transparent;
    transition: all 0.4s ease;
}

.btn-primary:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 61, 68, 0.2);
}

.header-component.scrolled .btn-primary {
    background: var(--primary-color);
    color: var(--secondary-color);
}

.btn svg {
    width: 16px;
    height: 16px;
    transition: all 0.4s ease;
}

.header-component.scrolled .btn svg {
    width: 14px;
    height: 14px;
}

/* --- LE BOUTON BURGER --- */
.burger-menu {
    width: 30px;
    height: 20px;
    position: fixed;
    right: 10px;
    cursor: pointer;
    z-index: 10001;
    display: none;
    flex-direction: column;
    justify-content: space-between;
}

.burger-line {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
    transform-origin: left center;
}

.header-component.scrolled .burger-line {
    background: rgba(255, 255, 255, 0.9);
}

/* Animation du Burger en Croix */
.burger-menu.active .burger-line {
    background-color: #ffffff !important;
}

.burger-menu.active .burger-line:nth-child(1) {
    transform: rotate(45deg);
    top: 0;
    background-color: #ffffff !important;
}

.burger-menu.active .burger-line:nth-child(2) {
    width: 0%;
    opacity: 0;
    background-color: #ffffff !important;
}

.burger-menu.active .burger-line:nth-child(3) {
    transform: rotate(-45deg);
    top: 20px;
    background-color: #ffffff !important;
}

/* --- L'OVERLAY DU MENU --- */
.nav-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    background-color: var(--secondary-color) !important;
    z-index: 10000 !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 100px 40px 40px 40px !important;
    box-sizing: border-box !important;
    transform: translateX(100%) !important;
    transition: transform 0.4s cubic-bezier(0.4, 0.0, 0.2, 1) !important;
    pointer-events: auto !important;
    visibility: visible !important;
}

/* Bouton de fermeture du menu */
.close-menu-btn {
    position: absolute;
    top: 30px;
    right: 40px;
    width: 48px;
    height: 48px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10002;
}

.close-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    transform: rotate(90deg);
}

.close-menu-btn svg {
    width: 24px;
    height: 24px;
}

/* Quand le menu est actif */
.nav-overlay.open {
    transform: translateX(0) !important;
    opacity: 1 !important;
}

/* --- LIENS DU MENU (Alignés à gauche) --- */
.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 25px;
    text-align: left;
    width: 100%;
}

.nav-links li {
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.4s ease;
}

.nav-links a {
    text-decoration: none;
    font-size: 28px;
    font-weight: 700;
    color: #ffffff !important;
    position: relative;
    display: inline-block;
}

/* Effet de survol sur les liens */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 4px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* --- BOUTON CONTACT (En bas) --- */
.nav-footer {
    margin-top: auto;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    transition-delay: 0.3s;
}

.btn-contact {
    display: block;
    width: 100%;
    padding: 18px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(255, 205, 0, 0.25);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-contact:active {
    transform: scale(0.98);
}

/* --- ANIMATION EN CASCADE DES LIENS --- */
.nav-overlay.open .nav-links li {
    opacity: 1;
    transform: translateX(0);
}

.nav-overlay.open .nav-footer {
    opacity: 1;
    transform: translateY(0);
}

/* Délais pour l'effet cascade */
.nav-overlay.open .nav-links li:nth-child(1) { transition-delay: 0.1s; }
.nav-overlay.open .nav-links li:nth-child(2) { transition-delay: 0.15s; }
.nav-overlay.open .nav-links li:nth-child(3) { transition-delay: 0.2s; }
.nav-overlay.open .nav-links li:nth-child(4) { transition-delay: 0.25s; }
.nav-overlay.open .nav-links li:nth-child(5) { transition-delay: 0.3s; }

/* HEADER RESPONSIVE */
@media (max-width: 1024px) {
    .header-component {
        padding: 20px 40px;
    }

    .header-component.scrolled {
        width: 70%;
        padding: 12px 30px;
    }

    .header-component .nav-menu {
        display: none;
    }

    .header-component .nav-buttons {
        display: none;
    }

    .burger-menu {
        display: flex;
        z-index: 10001;
        position: relative;
    }
}

@media (max-width: 768px) {
    .header-component {
        padding: 16px 24px;
    }

    .header-component.scrolled {
        width: 90%;
        top: 12px;
        padding: 18px 20px;
        border-radius: 50px;
    }

    .logo-img {
        height: 24px;
    }

    .header-component.scrolled .logo-img {
        height: 20px;
    }

    .nav-buttons {
        gap: 8px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .header-component.scrolled .btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .btn-secondary {
        display: none;
    }

    .details-header h2 {
        font-size: 2rem;
    }
}