
html {
    scroll-behavior: smooth;
}

 /* ==================== VARIABLES ==================== */
        :root {
            --primary-black: #1a1a1a;
            --secondary-black: #2d2d2d;
            --gold: #c9a962;
            --gold-light: #d4b876;
            --cream: #f9f7f2;
            --white: #ffffff;
            --gray-light: #f5f5f5;
            --gray: #888888;
            --transition: all 0.3s ease;
        }
.footer-brand {
    text-align: center;
    margin-bottom: 15px;
}

.footer-logo {
    height: 70px;   /* ajuste la taille */
    width: auto;
}
        /* ==================== RESET ==================== */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Lato', sans-serif;
            color: var(--primary-black);
            background-color: var(--white);
            line-height: 1.6;
            overflow-x: hidden;
        }

        a {
            text-decoration: none;
            color: inherit;
        }

        ul {
            list-style: none;
        }

        img {
            max-width: 100%;
            height: auto;
        }

        /* ==================== TYPOGRAPHY ==================== */
        h1, h2, h3, h4 {
            font-family: 'Playfair Display', serif;
            font-weight: 500;
        }

        .subtitle {
            font-size: 0.9rem;
            letter-spacing: 3px;
            text-transform: uppercase;
            color: var(--gold);
            font-weight: 400;
        }

        /* ==================== HEADER ==================== */
       /* ==================== HEADER (CORRIGÉ) ==================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--white);
    transition: var(--transition);
}

header.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.header-top {
    background: var(--primary-black);
    color: var(--white);
    text-align: center;
    padding: 8px 0;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: 4px;
    color: var(--primary-black);
}

.logo img {
    height: 100px;
    width: auto;
}

@media (max-width: 768px) {
    .logo img {
        height: 35px;
    }
}

.logo span {
    color: var(--gold);
}

.header-icons {
    display: flex;
    gap: 25px;
    align-items: center;
}

.header-icons a {
    font-size: 1.1rem;
    position: relative;
    transition: var(--transition);
}

.header-icons a:hover {
    color: var(--gold);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--gold);
    color: var(--white);
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- SÉCURITÉ ANTI-DÉBORDEMENT DES SOUS-MENUS --- */
/* On force le masquage par défaut pour éviter qu'ils s'affichent tous en vrac */

        /* ==================== HERO SECTION ==================== */
    /* Dans la partie principale (Ordinateur) */
.hero {
    min-height: calc(100vh - 140px); /* Prend tout l'écran moins la hauteur du header */
    margin-top: 140px; /* Force TOUTE la section à commencer après le header */
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)),
                url('../logo/header.png') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    /* Supprimez le padding-top s'il y en avait un ici */
}

/* Et modifiez également dans votre bloc @media (max-width: 768px) en bas du fichier : */
@media (max-width: 768px) {
    .hero {
        background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)),
                    url('../logo/header.png') center center / cover no-repeat;
        background-attachment: scroll;
        height: 60vh;
        padding-top: 95px; /* Augmenté ici aussi pour compenser le header mobile */
    }      
}

        .hero-content {
            max-width: 800px;
            padding: 0 20px;
        }

        .hero h1 {
            font-size: 4rem;
            margin: 20px 0;
            line-height: 1.1;
            animation: fadeInUp 1s ease;
        }

        .hero p {
            font-size: 1.1rem;
            margin-bottom: 40px;
            opacity: 0.9;
            animation: fadeInUp 1s ease 0.2s both;
        }

        .btn {
            display: inline-block;
            padding: 18px 50px;
            font-size: 0.85rem;
            letter-spacing: 2px;
            text-transform: uppercase;
            border: none;
            cursor: pointer;
            transition: var(--transition);
        }

        .btn-primary {
            background: var(--gold);
            color: var(--white);
        }

        .btn-primary:hover {
            background-color: #0A3925 !important;
            transform: translateY(-2px);
        }

        .btn-outline {
            border: 2px solid var(--white);
            background: transparent;
            color: var(--white);
        }

        .btn-outline:hover {
            background: var(--white);
            color: var(--primary-black);
        }

        .hero-buttons {
            display: flex;
            gap: 20px;
            justify-content: center;
            animation: fadeInUp 1s ease 0.4s both;
        }

        /* ==================== CATEGORIES ==================== */
        .categories {
            padding: 100px 5%;
            max-width: 1400px;
            margin: 0 auto;
        }

        .section-header {
            text-align: center;
            margin-bottom: 60px;
        }

        .section-header h2 {
            font-size: 2.5rem;
            margin: 15px 0;
        }

     .categories-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:30px;
}

    .category-card{
    position:relative;
    overflow:hidden;
    height:450px;
    border-radius:20px;
    cursor:pointer;
    box-shadow:0 10px 30px rgba(0,0,0,0.12);
    transition:all .4s ease;
}

.category-card:hover{
    transform:translateY(-10px);
    box-shadow:0 20px 40px rgba(0,0,0,0.25);
}

.category-card img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform .6s ease;
}

.category-card:hover img{
    transform:scale(1.15);
}

   .category-overlay{
    position:absolute;
    inset:0;
    background:linear-gradient(
        to top,
        rgba(0,0,0,.85),
        rgba(0,0,0,.2),
        transparent
    );
    display:flex;
    align-items:flex-end;
    justify-content:center;
    padding:30px;
}

    
.category-info{
    color:white;
    text-align:center;
    transform:translateY(20px);
    transition:.4s;
}
.category-card:hover .category-info{
    transform:translateY(0);
}
.category-info h3{
    font-size:2rem;
    margin-bottom:10px;
}

.category-info span{
    display:block;
    font-size:.9rem;
    letter-spacing:2px;
    text-transform:uppercase;
    margin-bottom:15px;
    opacity:.9;
}
.category-btn{
    display:inline-block;
    padding:10px 25px;
    background:#c9a962;
    color:white;
    border-radius:30px;
    font-size:.85rem;
    letter-spacing:1px;
    transition:.3s;
    opacity:0;
}

.category-card:hover .category-btn{
    opacity:1;
}
.success-message{
    background:#d4edda;
    color:#155724;
    border:1px solid #c3e6cb;
    padding:15px;
    margin:20px auto;
    max-width:600px;
    text-align:center;
    border-radius:8px;
    font-weight:bold;
}
#toast-favori{
    position: fixed;
    top: 20px;
    right: 20px;
    background: #0A3925;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    z-index: 9999;
    opacity: 0;
    transform: translateX(100%);
    transition: all .4s ease;
}

#toast-favori.show{
    opacity: 1;
    transform: translateX(0);
}
.category-btn:hover{
    background:#0A3925;
}
.product-hover .view-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--gray-light);
    background: var(--white);
    color: var(--primary-black);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    text-decoration: none;
}
.product-hover .view-btn,
.product-hover .favorite-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--gray-light);
    background: var(--white);
    color: var(--primary-black);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
}

.product-hover .view-btn:hover,
.product-hover .favorite-btn:hover {
    background: var(--primary-black);
    color: var(--white);
    border-color: var(--primary-black);
}
.product-hover .view-btn:hover {
    background: var(--primary-black);
    color: var(--white);
    border-color: var(--primary-black);
}

        /* ==================== FEATURED PRODUCTS ==================== */
        .featured {
            padding: 100px 5%;
            background: var(--cream);
        }

        .products-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 30px;
            max-width: 1400px;
            margin: 0 auto;
        }

        .product-card {
            background: var(--white);
            transition: var(--transition);
        }

        .product-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 40px rgba(0,0,0,0.1);
        }

        .product-image {
            position: relative;
            height: 250px;
            overflow: hidden;
            background: var(--gray-light);
        }

        .product-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .product-hover {
            position: absolute;
            bottom: -50px;
            left: 0;
            right: 0;
            display: flex;
            justify-content: center;
            gap: 10px;
            padding: 15px;
            background: var(--white);
            transition: var(--transition);
        }

        .product-card:hover .product-hover {
            bottom: 0;
        }

        .product-hover button {
            width: 40px;
            height: 40px;
            border: 1px solid var(--gray-light);
            background: var(--white);
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .product-hover button:hover {
            background: var(--primary-black);
            color: var(--white);
            border-color: var(--primary-black);
        }

        .product-info {
            padding: 20px;
            text-align: center;
        }

        .product-category {
            font-size: 0.75rem;
            color: var(--gray);
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .product-title {
            font-size: 1rem;
            margin: 10px 0;
            font-family: 'Playfair Display', serif;
        }

        .product-price {
            font-weight: 600;
            color: var(--gold);
        }

        /* ==================== BANNER ==================== */
        .banner {
            display: grid;
            grid-template-columns: 1fr 1fr;
        }

        .banner-image {
            height: 600px;
            background: url('https://images.unsplash.com/photo-1490481651871-ab68de25d77d?w=800') center/cover;
            background-size: cover; /* Assure que l'image couvre bien la zone */
        background-position: center;
        }

        .banner-content {
            background: var(--gold);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 60px;
            position: relative;
        }

        .banner-text {
            max-width: 400px;
        }

        .banner-text h2 {
            font-size: 2.5rem;
            color: var(--white);
            margin: 20px 0;
        }

        .banner-text p {
            color: var(--white);
            opacity: 0.9;
            margin-bottom: 30px;
        }

        .btn-white {
            background: var(--white);
            color: var(--gold);
        }

        .btn-white:hover {
            background: var(--primary-black);
            color: var(--white);
        }

        /* ==================== SERVICES ==================== */
        .services {
            padding: 100px 5%;
            max-width: 1400px;
            margin: 0 auto;
        }

        .services-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 30px;
        }

        .service-card {
            text-align: center;
            padding: 40px 20px;
        }

        .service-icon {
            font-size: 2.5rem;
            color: var(--gold);
            margin-bottom: 20px;
        }

        .service-card h3 {
            font-size: 1.2rem;
            margin-bottom: 15px;
        }

        .service-card p {
            color: var(--gray);
            font-size: 0.9rem;
        }

        /* ==================== FOOTER ==================== */
        footer {
            background: var(--primary-black);
            color: var(--white);
            padding: 80px 5% 30px;
        }

        .footer-content {
            display: grid;
            grid-template-columns: 2fr 1fr 1fr 1fr;
            gap: 60px;
            max-width: 1400px;
            margin: 0 auto 60px;
        }

        .footer-brand .logo {
            color: var(--white);
            margin-bottom: 20px;
            display: inline-block;
        }

        .footer-brand p {
            color: #888;
            margin-bottom: 25px;
        }

        .footer-social {
            display: flex;
            gap: 15px;
        }

        .footer-social a {
            width: 40px;
            height: 40px;
            border: 1px solid #444;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition);
        }

        .footer-social a:hover {
            background: var(--gold);
            border-color: var(--gold);
        }

        .footer-links h4 {
            font-size: 1rem;
            margin-bottom: 25px;
            color: var(--white);
        }

        .footer-links ul li {
            margin-bottom: 12px;
        }

        .footer-links a {
            color: #888;
            font-size: 0.9rem;
            transition: var(--transition);
        }

        .footer-links a:hover {
            color: var(--gold);
        }

        .footer-bottom {
            border-top: 1px solid #333;
            padding-top: 30px;
            text-align: center;
            color: #666;
            font-size: 0.85rem;
        }

        /* ==================== ANIMATIONS ==================== */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* ==================== RESPONSIVE ==================== */
        @media (max-width: 1024px) {
            .categories-grid,
            .products-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .banner {
                grid-template-columns: 1fr;
            }
            
            .services-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .footer-content {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 768px) {
        
            .hero h1 {
                font-size: 2.5rem;
            }
   
            .categories-grid,
            .products-grid {
                grid-template-columns: 1fr;
            }
            
            .hero-buttons {
                flex-direction: column;
                align-items: center;
            }
        }
		/* Cache l'icône sur ordinateur */
/* Cache l'icône sur grand écran */

/* ==================== RÉGLAGES RESPONSIVE ==================== */


.view-more-products{
    text-align: center;
    margin-top: 40px;
}

.view-more-products .btn{
    padding: 15px 40px;
}
