/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --gold-primary: #D4AF37;
    --gold-light: #F9E29C;
    --gold-dark: #8A6D1F;
    --dark-bg: #121212;
    --dark-accent: #1A1A1A;
    --white: #FFFFFF;
    --light-bg: #F2EFE9; /* Nouveau fond clair */
    --text-dark: #2C2C2C; /* Texte sombre pour la lisibilité */
    --gray: #888888;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
}

/* =========================================
   2. TYPOGRAPHIE & GLOBALS
   ========================================= */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    color: var(--gold-dark);
    margin-bottom: 40px;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--gold-primary);
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: transform 0.3s, background 0.3s;
}

.btn:hover {
    background-color: var(--gold-dark);
    transform: translateY(-3px);
}

/* =========================================
   3. HEADER & NAVIGATION
   ========================================= */
header {
    background-color: var(--white); /* Header blanc pour le thème clair */
    border-bottom: 2px solid var(--gold-primary);
    padding: 1rem 0;
    position: relative;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-family: 'Playfair Display', serif;
    color: var(--gold-primary);
    letter-spacing: 2px;
    font-size: 1.8rem;
    line-height: 1;
}

.logo span {
    font-size: 0.6rem;
    color: var(--gray);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links > li {
    position: relative;
    padding: 10px 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--gold-primary);
}

/* Menu déroulant */
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    border: 1px solid var(--gold-light);
    min-width: 180px;
    list-style: none;
    padding: 10px 0;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.1);
    z-index: 100;
}

.submenu li a {
    padding: 10px 20px;
    display: block;
    font-size: 0.9rem;
}

.submenu li a:hover {
    background-color: var(--light-bg);
    color: var(--gold-primary);
}

.dropdown:hover .submenu {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

/* =========================================
   4. HERO SECTION (Accueil)
   ========================================= */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1618221195710-dd6b41faaea6?auto=format&fit=crop&q=80&w=1500') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    animation: fadeIn 1.3s ease-in;
}

.hero-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: var(--gold-light);
    margin-bottom: 1rem;
}

.hero-content p {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* =========================================
   5. CARROUSEL (En Vedette)
   ========================================= */
.dynamic-showcase {
    padding: 60px 0;
}

.carousel-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.img-placeholder {
    width: 100%;
    height: 300px;
    background-color: var(--light-bg);
}

/* FIX IMAGES : Object-fit pour le carrousel */
.img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.slide-info {
    padding: 20px;
    text-align: center;
}

.slide-info h3 {
    color: var(--gold-dark);
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
}

.slide-info .price {
    display: block;
    margin-top: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--gold-primary);
}

/* =========================================
   6. GRILLE PRODUITS (Arrivages)
   ========================================= */
.products-grid {
    display: grid;
    /* 3 cartes par ligne sur ordinateur */
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.product-card {
    padding: 30px;
    background-color: var(--white);
    border: 1px solid #EAEAEA;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.product-card h3 {
    color: var(--gold-dark);
    font-family: 'Playfair Display', serif;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.product-card p {
    color: var(--text-dark);
    font-weight: bold;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

/* =========================================
   7. UNIVERS (Catégories)
   ========================================= */
.categories-section {
    padding: 60px 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.category-card {
    position: relative;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.category-img {
    width: 100%;
    height: 100%;
    background-color: var(--light-bg);
}

/* FIX IMAGES : Object-fit pour les catégories */
.category-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.category-card:hover .category-img img {
    transform: scale(1.05);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--white);
}

/* =========================================
   8. CATALOGUE & FICHES PRODUITS
   ========================================= */
.catalog-section {
    padding: 60px 0;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background: var(--white);
    border: 1px solid var(--gold-primary);
    color: var(--gold-dark);
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--gold-primary);
    color: var(--white);
}

.product-item {
    background: var(--white);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.product-item:hover {
    transform: translateY(-5px);
}

.prod-img {
    position: relative;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    
}

.prod-img img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease-in-out; /* Ajoute un fondu léger */
}
.product-item h4 {
    font-family: 'Playfair Display', serif;
    color: var(--gold-dark);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.prod-desc {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    flex-grow: 1;
}

/* Sélecteur dynamique adapté au thème clair */
.size-selector {
    width: 100%;
    padding: 8px;
    background: var(--white);
    color: var(--text-dark);
    border: 1px solid var(--gold-primary);
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}

.prod-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--gold-dark);
}

.btn-order {
    padding: 8px 15px;
    background-color: #25D366; /* Couleur de base WhatsApp */
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-order:hover {
    background-color: #1EBE5D;
}

/* =========================================
   9. SECTION CONFIANCE (Trust)
   ========================================= */
.trust-section {
    padding: 60px 0;
    background-color: var(--white);
    border-top: 1px solid #EAEAEA;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.trust-item {
    padding: 20px;
}

.trust-item .icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.trust-item h3 {
    color: var(--gold-dark);
    margin-bottom: 10px;
}

/* =========================================
   10. FOOTER
   ========================================= */
footer {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto 30px;
}

.footer-logo h2 {
    color: var(--gold-primary);
    font-family: 'Playfair Display', serif;
    margin-bottom: 10px;
}

.footer-contact p {
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: var(--gray);
}
/* =========================================
   11. ANIMATIONS & RESPONSIVE
   ========================================= */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.show {
    opacity: 1;
    transform: translateY(0);
}

/* --- MEDIA QUERIES --- */

/* Tablette (max 992px) */
@media (max-width: 992px) {
    .section-title {
        font-size: 2rem;
    }
    .hero-content h2 {
        font-size: 3rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* Mobile Standard (max 768px) */
/* --- Masqué par défaut sur ordinateur --- */
.menu-toggle {
    display: none;
}

/* --- MEDIA QUERY MOBILE (max-width: 768px) --- */
@media (max-width: 768px) {
    
    header {
        position: relative; /* Important pour caler le menu absolu juste en dessous */
        padding: 15px 0;
        z-index: 1000;
    }

    header .container {
        display: flex;
        flex-direction: row; /* Aligne le logo et le bouton burger sur la même ligne */
        justify-content: space-between;
        align-items: center;
        width: 90%;
    }

    .logo {
        text-align: left;
    }

    /* Style du bouton Burger */
    .menu-toggle {
        display: block; /* Devient visible sur mobile */
        background: none;
        border: none;
        color: var(--gold-dark);
        font-size: 2rem;
        cursor: pointer;
        transition: transform 0.2s ease;
    }

    /* Navigation flottante (ne pousse plus le Hero) */
    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%; /* Se place pile sous le header */
        left: 0;
        width: 100%;
        background-color: var(--white);
        border-bottom: 3px solid var(--gold-primary);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
        padding: 10px 0;
        
        /* Effet d'animation invisible -> visible */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease-in-out;
        z-index: 999;
    }

    /* Classe activée en JavaScript quand on clique sur le burger */
    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .nav-links > li {
        width: 100%;
    }

    .nav-links > li > a {
        display: block;
        padding: 15px;
        text-align: center;
        font-weight: 600;
        color: var(--text-dark);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-links > li:last-child > a {
        border-bottom: none;
    }

    /* Sous-menu (Nos Univers) */
    .submenu {
        position: static; 
        display: none; /* Masqué par défaut sur mobile */
        background-color: var(--light-bg);
        box-shadow: none;
    }

    /* Affiche le sous-menu au survol ou appui */
    .dropdown:hover .submenu {
        display: block;
    }

    .submenu li a {
        padding: 12px;
        text-align: center;
        font-size: 0.9rem;
        color: var(--gray);
    }

    /* =========================================
       FOOTER MOBILE (Aéré et centré)
       ========================================= */
    footer {
        padding: 40px 0 20px 0;
    }

    .footer-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 25px;
    }

    .footer-contact {
        width: 100%;
        background-color: rgba(255, 255, 255, 0.05);
        padding: 20px;
        border-radius: 10px;
    }
    .products-grid {
        /* 2 cartes par ligne sur mobile */
        grid-template-columns: repeat(2, 1fr);
        gap: 12px; /* Réduit l'espacement pour mieux gérer la largeur */
    }
    
    .prod-img img {
        height: 150px; /* Adapte la hauteur de l'image sur les petits écrans */
    }
    
    .product-item {
        padding: 12px;
    }
    
    .product-item h4 {
        font-size: 1.05rem;
    }
    
    .price {
        font-size: 1.05rem;
    }
    
    .btn-order {
        padding: 8px 10px;
        font-size: 0.9rem;
    }
}   
/* Petit Mobile (max 480px) */
@media (max-width: 480px) {
    /* Ajustement des hauteurs d'images pour les petits écrans */
    .img-placeholder, 
    .category-card {
        height: 200px; 
    }
    
    .prod-img img {
        height: 200px;
    }
    
    /* Boutons et éléments de la carte produit */
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .prod-footer {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-order {
        width: 100%;
        text-align: center;
        padding: 12px; /* Zone de clic plus large pour le doigt */
    }

    .price {
        font-size: 1.1rem;
    }
}

/* SECTION PROCESSUS */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 40px;
    text-align: center;
}
.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--gold-primary);
    color: var(--dark-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
    margin: 0 auto 20px;
}
/* =========================================
   SECTION FORMULAIRE DE LOCATION
   ========================================= */
.location-form-section {
    padding: 60px 0;
    background-color: var(--light-bg);
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--gold-dark);
    font-weight: 600;
}

.form-group input, 
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gold-primary);
    border-radius: 4px;
    background-color: var(--white);
    color: var(--text-dark);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus, 
.form-group select:focus {
    outline: none;
    border-color: var(--gold-dark);
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.3);
}

.price-display {
    text-align: center;
    margin: 30px 0 20px;
    padding: 15px;
    background-color: var(--light-bg);
    border-left: 4px solid var(--gold-primary);
    border-radius: 4px;
}

.price-display h3 {
    color: var(--dark-bg);
    font-weight: 600;
}

#totalPrice {
    color: var(--gold-dark);
    font-size: 1.5rem;
    font-weight: bold;
}