/* ========================= */
/* VARIABLES SET 2*/
/* ========================= */
:root {
    --primary: #6b4f3a;
    --secondary: #a67c52;
    --accent: #8cbf9f;
    --bg-light: #f8f5f0;
    --bg-section: #f1e7dc;
    --white: #ffffff;
    --text: #2d2d2d;

    --font-main: "Segoe UI", sans-serif;

    --section-padding: 60px 20px;
    --container-width: 90%;
}

.navbar {
    width: 100%;
    max-width: 400px;
    

    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    
    
    padding: 15px 0;
    background: var(--white);
    border-radius: 30px;
    opacity: 0.9;
    z-index: 1000;
}

.navbar-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 0;
    margin: 0;
}

.nav-links li a {
    padding: 10px;
    font-family: var(--font-main);
    color: var(--primary);
    text-decoration: none;
    transition: 0.3s ease;
    border-radius: 5px;
    font-weight: 600;
}

.nav-links li a:hover {
    color: var(--secondary);
}

.nav-links li a:hover {
    color: var(--white);
    background-color: var(--accent);
}

/* ===== BOUTON HAMBURGER ===== */
.hamburger {
    display: none;
    cursor: pointer;
    padding: 10px;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1100;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--primary);
    transition: all 0.3s ease;
}

/* ===== ANIMATION HAMBURGER --> CROIX ===== */
.navbar.active .hamburger .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.navbar.active .hamburger .bar:nth-child(2) {
    opacity: 0;
}

.navbar.active .hamburger .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 500px) {
    .hamburger {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        background-color: var(--white);
    }

    .navbar {background-color: transparent;}

    .nav-links {
        flex-direction: column;
        position: fixed;
        top: 60px;
        right: -100%;
        width: 150px;
        background: var(--white);
        padding: 30px 20px;
        gap: 40px;
        transition: right 0.3s ease;
    }

    .navbar.active .nav-links {right: 0;}
}

/* ===== SCROLL ===== */
html.menu-open,
body.menu-open {
    overflow: hidden;
}

/* BLURRED */
.blurred {
    transition: filter 0.3s ease;
    filter: blur(0);
}

.blurred.active {
    filter: blur(2px);
}