/* =============================================================================
   Variables CSS
   ========================================================================== */
:root {
    --primary-color: #d4af37; /* Or */
    --secondary-color: #333;
    --light-color: #f4f4f4;
    --dark-color: #222;
    --transition: all 0.3s ease;
}

/* =============================================================================
   Reset et styles de base
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--secondary-color);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
}

.btn:hover {
    background: #b5942a;
    transform: translateY(-2px);
}

/* Style pour les boutons Commander */
.order-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #25D366; /* Couleur WhatsApp */
    color: white !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.order-btn:hover {
    background-color: #128C7E !important; /* Couleur WhatsApp plus foncée au survol */
    transform: translateY(-2px);
}

.order-btn i {
    font-size: 1.2em;
}

/* =============================================================================
   Navigation (Bureau)
   ========================================================================== */
header {
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    max-width: 1400px;
    margin: 0 auto;
}

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

/* Styles de base des liens de navigation */
.nav-links li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 8px 12px;
    border-radius: 4px;
    overflow: hidden;
    display: inline-block;
    transform-origin: center;
}

/* Animation de clic sur les liens */
.nav-links li a.clicked {
    animation: clickEffect 0.3s ease-out;
}

@keyframes clickEffect {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

.nav-links li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(212, 175, 55, 0.1);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.nav-links li a:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links li a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-links li a:active {
    transform: translateY(0);
}

/* Animation du menu burger */
.menu-toggle {
    display: none; /* Masqué par défaut, affiché sur mobile */
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
    padding: 8px;
    border-radius: 4px;
    position: relative;
    z-index: 1001;
}

.menu-toggle:active {
    transform: scale(0.95);
}

/* Animation de l'icône du menu */
.menu-toggle i {
    transition: transform 0.3s ease;
}

.menu-toggle.active i {
    transform: rotate(90deg);
}

.menu-toggle {
    padding: 8px;
    border-radius: 4px;
    position: relative;
    z-index: 1001;
}

.menu-toggle:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Cacher le panier mobile par défaut */
.mobile-cart {
    display: none;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 40px;
    width: auto;
    border-radius: 50%;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
    transition: var(--transition);
}

/* Styles pour le menu mobile */
@media (max-width: 768px) {
    /* Ajustements pour la navigation mobile */
    .nav-links {
        display: flex;
        flex-direction: column;
        width: 80%;
        max-width: 300px;
        text-align: center;
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
        z-index: 1000;
        padding: 2rem;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        right: 0;
        opacity: 1;
        visibility: visible;
    }
    
    /* Animation d'entrée du menu mobile */
    @keyframes slideInRight {
        from {
            transform: translateX(100%);
            opacity: 0;
        }
        to {
            transform: translateX(0);
            opacity: 1;
        }
    }
    
    .nav-links.active {
        animation: slideInRight 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-link {
        display: block;
        padding: 1rem;
        font-size: 1.2rem;
    }

    .mobile-cart {
        display: block;
        margin-top: 2rem;
        padding-top: 2rem;
        border-top: 1px solid #eee;
        width: 100%;
    }

    .mobile-cart a {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        font-size: 1.2rem;
    }

    .cart {
        display: none;
    }
}

.nav-links a {
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    bottom: 0;
    left: 0;
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Panier */
.cart {
    position: relative;
    cursor: pointer;
    margin-left: 2rem;
}

.cart i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

/* =============================================================================
   Section Héros avec vidéo
   ========================================================================== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    margin-top: 60px;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* =============================================================================
   Filtres de la Collection
   ========================================================================== */
/* Les styles de filtres ont été déplacés dans responsive.css pour une meilleure organisation */

/* =============================================================================
   Section Collection
   ========================================================================== */
.collection {
    padding: 5rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.collection h2, .about h2, .contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin: 0 auto 3rem;
    position: relative;
    display: block;
    width: 100%;
}

.collection h2::after, .about h2::after, .contact h2::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    background: var(--primary-color);
    bottom: -10px;
    left: 25%;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    justify-items: center; /* Centre les éléments de la grille */
    gap: 2rem;
    margin: 3rem auto 0;
    padding: 0 15px;
    max-width: 1400px;
    width: 100%;
    box-sizing: border-box;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0 auto;
    width: 100%;
    max-width: 280px; /* Largeur maximale pour les grands écrans */
}

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

.product-image {
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.product-info {
    padding: 0.8rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-card .btn,
.product-card .order-btn {
    margin: 6px auto 0;
    width: 95%;
    max-width: 200px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6px 10px;
    font-size: 0.85rem;
    letter-spacing: 0.2px;
    font-weight: 600;
    min-height: 32px;
}

.product-info h3 {
    margin: 0.2rem 0 0.1rem;
    font-size: 1.1rem;
}

.price {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1rem;
    margin: 0.2rem 0;
}

/* =============================================================================
   Section À Propos
   ========================================================================== */
.about {
    background: var(--light-color);
    padding: 5rem 5%;
    text-align: center;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* =============================================================================
   Section Contact
   ========================================================================== */
.contact {
    text-align: center;
}

.contact-methods {
    max-width: 500px;
    margin: 0 auto;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.whatsapp-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 15px 0;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    background: #25D366;
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.whatsapp-btn:hover {
    background: #128C7E;
}

.whatsapp-btn i {
    font-size: 1.2rem;
    margin-right: 10px;
}

.whatsapp-btn span {
    flex-grow: 1;
}

.whatsapp-btn small {
    opacity: 0.9;
    font-size: 0.85rem;
    margin-left: 10px;
}

.contact-note {
    color: #666;
    font-size: 0.85rem;
    margin-top: 15px;
}

@media (min-width: 768px) {
    .whatsapp-buttons {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .whatsapp-btn {
        width: 48%;
        margin: 0;
    }
}

.contact {
    padding: 5rem 5%;
    max-width: 800px;
    margin: 0 auto;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

#contact-form input,
#contact-form textarea {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

#contact-form textarea {
    height: 150px;
    resize: vertical;
}

/* =============================================================================
   Pied de Page
   ========================================================================== */
footer {
    background: var(--dark-color);
    color: white;
    padding: 4rem 5% 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto 2rem;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
    max-width: 1400px;
    margin: 0 auto;
    font-size: 0.9rem;
    color: #aaa;
}


/* =============================================================================
   Éléments Flottants
   ========================================================================== */
/* Bouton WhatsApp flottant */
.whatsapp-flottant {
    position: fixed;
    bottom: 80px; /* Au-dessus de la barre de navigation mobile */
    right: 20px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: transform 0.3s ease;
}

.whatsapp-flottant:hover {
    transform: scale(1.1);
}

/* =============================================================================
   Animations
   ========================================================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}
