/* ========================================================
   RESET & BASE
   ======================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: "Montserrat", sans-serif;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: "Playfair Display", serif;
}

/* ========================================================
   HEADER
   ======================================================== */
header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    padding: 25px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: transparent;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled {
    background: rgba(10, 76, 86, 0.98);
    backdrop-filter: blur(20px);
    padding: 15px 60px;
    box-shadow: 0 4px 30px rgba(217, 164, 65, 0.2);
}

.logo img {
    height: 60px;
    width: auto;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled .logo img { height: 50px; }

.logo:hover img {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 20px rgba(217, 164, 65, 0.6);
}

nav ul { list-style: none; display: flex; gap: 45px; }

nav a {
    text-decoration: none;
    color: #faf3E0;
    font-weight: 500;
    font-size: 15px;
    position: relative;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -8px; left: 50%;
    transform: translateX(-50%);
    width: 0; height: 2px;
    background: linear-gradient(90deg, #D9A441, #f4c467);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

nav a:hover { color: #D9A441; transform: translateY(-2px); }
nav a:hover::after { width: 100%; }

/* Dropdown */
.dropdown { position: relative; }

.dropdown-menu {
    position: absolute;
    top: 100%; left: 0;
    list-style: none;
    background: rgba(10, 76, 86, 0.98);
    backdrop-filter: blur(20px);
    min-width: 200px;
    box-shadow: 0 10px 40px rgba(217, 164, 65, 0.2);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(217, 164, 65, 0.2);
    display: block;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-menu li a {
    display: block;
    padding: 15px 20px;
    color: #faf3E0;
    font-weight: 400;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.dropdown-menu li a:hover {
    background: rgba(217, 164, 65, 0.2);
    color: #D9A441;
    border-left-color: #D9A441;
    padding-left: 30px;
}

/* ========================================================
   HAMBURGER
   ======================================================== */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 200;
}

.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background: #faf3E0;
    border-radius: 2px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

/* Croix quand ouvert */
.hamburger.is-active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.hamburger.is-active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger.is-active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ========================================================
   RESPONSIVE HEADER
   ======================================================== */
@media (max-width: 1024px) {
    header {
        padding: 20px 40px;
    }
    nav ul {
        gap: 25px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 15px 20px;
    }

    .hamburger {
        display: flex;
    }

    #main-nav {
        display: none;
        position: fixed;
        top: 0; left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(10, 76, 86, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 150;
    }

    #main-nav.nav-open {
        display: flex;
    }

    #main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    #main-nav a {
        font-size: 1.3rem;
        letter-spacing: 2px;
    }

    /* Dropdowns en mobile : affichés en dessous directement */
    .dropdown-menu {
        position: static;
        opacity: 1;
        transform: none;
        pointer-events: auto;
        background: transparent;
        backdrop-filter: none;
        box-shadow: none;
        border: none;
        display: none;
        text-align: center;
    }

    .dropdown:hover .dropdown-menu,
    .dropdown.open .dropdown-menu {
        display: block;
    }

    .dropdown-menu li a {
        padding: 8px 20px;
        font-size: 1rem;
        border-left: none;
    }

    .dropdown-menu li a:hover {
        padding-left: 20px;
        background: transparent;
    }
}

@media (max-width: 480px) {
    header {
        padding: 12px 15px;
    }
}
