:root {
    --green: #0f3d2e;
    --gold: #c8a96a;
    --cream: #f5f1e6;
    --nav-cream: #FAF4E4;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--cream);
    color: #333;
}

/* NAVBAR - Version desktop */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    padding: 0 50px;
    background: var(--nav-cream);
    backdrop-filter: blur(8px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.logo {
    position: absolute;
    left: 50px;
}

.logo img {
    height: 60px;
    transition: all 0.3s ease;
}

.nav-links {
    margin: 0 auto;
    display: flex;
    gap: 40px;
}

.nav-links a {
    position: relative;
    text-decoration: none;
    color: var(--green);
    font-weight: 500;
    font-size: 16px;
    transition: 0.3s;
    padding: 5px 0;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--gold);
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--gold);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Menu burger (masqué par défaut) */
.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 24px;
    color: var(--green);
    position: absolute;
    right: 20px;
    z-index: 1001;
    background: rgba(245, 241, 230, 0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Menu mobile (masqué par défaut) */
.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--nav-cream);
    backdrop-filter: blur(8px);
    z-index: 1000;
    padding: 80px 30px 30px;
    transition: all 0.5s ease;
    box-shadow: 5px 0 20px rgba(0, 0, 0, 0.1);
}

.mobile-nav.active {
    left: 0;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.mobile-nav-links a {
    position: relative;
    text-decoration: none;
    color: var(--green);
    font-weight: 500;
    font-size: 18px;
    transition: 0.3s;
    padding: 8px 0;
}

.mobile-nav-links a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--gold);
    transition: 0.3s;
}

.mobile-nav-links a:hover {
    color: var(--gold);
}

.mobile-nav-links a:hover::after {
    width: 100%;
}

/* HERO - Éclairage optimisé */
.hero {
    height: 100vh;
    background:
        linear-gradient(
            rgba(245, 241, 230, 0.15) 0%,
            rgba(15, 61, 46, 0.3) 50%,
            rgba(0, 0, 0, 0.2) 100%
        ),
        url('../img/medine-hero-bg.jpg') center/cover no-repeat fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    filter: brightness(1.1) contrast(1.05);
}

.hero::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(64, 64, 64, 0.436);
    z-index: 1;
}

.hero-content {
    position: relative;
    text-align: center;
    color: var(--white);
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

/* LOGO HERO */
.hero-logo {
    width: 320px;
    max-width: 80%;
    margin-bottom: 20px;
    filter:
        brightness(1.2)
        drop-shadow(0 0 10px rgba(255, 255, 255, 0.737))
        drop-shadow(0 0 6px rgba(15, 61, 46, 0.5))
        drop-shadow(0 0 2px rgba(255, 255, 255, 0.269));
    animation: float 6s ease-in-out infinite;
    transition: filter 0.5s ease;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

.hero p {
    font-size: 22px;
    margin-bottom: 30px;
    font-weight: 300;
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.btn {
    display: inline-block;
    padding: 14px 35px;
    background: var(--gold);
    color: var(--white);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.605);
}

.btn:hover {
    background: var(--green);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 61, 46, 0.3);
}

/* SECTION PRODUITS */
.products-section {
    padding: 120px 50px;
    background: var(--cream);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    color: var(--green);
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gold);
}

.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(200, 169, 106, 0.1);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
    border-color: rgba(200, 169, 106, 0.3);
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: transform 0.4s ease;
}

.card:hover img {
    transform: scale(1.03);
}

.card h3 {
    margin: 0;
    color: var(--green);
    font-size: 20px;
    font-weight: 500;
}

/* FOOTER */
footer {
    background: var(--green);
    color: var(--white);
    text-align: center;
    padding: 40px;
    font-size: 14px;
}

/* RESPONSIVE - Version mobile */
@media (max-width: 768px) {
    /* Navbar devient menu burger */
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
    }

    nav {
        padding: 0 20px;
        height: 70px;
    }

    /* Hero mobile */
    .hero-logo {
        width: 250px;
    }

    .hero p {
        font-size: 18px;
    }

    /* Produits mobile */
    .products-section {
        padding: 80px 20px;
    }

    .products {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .card {
        padding: 20px 15px;
    }

    .card img {
        height: 180px;
    }

    .card h3 {
        font-size: 18px;
    }

    /* Section titre */
    .section-title h2 {
        font-size: 32px;
    }
}
