/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', Arial, sans-serif;
    background: #FADCDC; /* Rose très pale uniforme pour toutes les pages */
    color: #000000;
    line-height: 1.6;
}

/* Header Styles */
.site-header {
    background: #ffffff;
    color: #000000;
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.logo-container {
    display: flex;
    align-items: center;
    margin-right: auto;
}

.logo-img {
    height: 80px;
    width: auto;
    max-width: 300px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-left: auto;
}

.main-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: #000000;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    padding: 12px 0; /* Augmenté pour plus de zone de survol */
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover {
    color: #666666;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #000000;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* === CORRECTION MENU DÉROULANT === */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 8px;
    z-index: 1001;
    margin-top: 15px; /* Augmenté pour créer un espace */
    border: 1px solid rgba(0, 0, 0, 0.1);
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none; /* Important pour éviter les clics pendant l'animation */
}

.dropdown-content a {
    color: #000000;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    pointer-events: auto; /* Réactiver les clics sur les liens */
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background: #f8f8f8;
    color: #000000;
}

/* Zone de sécurité invisible entre le lien et le menu */
.dropdown-content::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 100%;
    height: 15px;
    background: transparent;
}

/* État hover - menu visible */
.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Délai de fermeture pour éviter la disparition brutale */
.dropdown {
    transition: all 0.3s ease 0.1s;
}

/* Main Content */
main {
    margin-top: 100px;
    padding: 20px;
    min-height: calc(100vh - 200px);
    background: #FADCDC; /* Assure que le main a aussi le fond rose */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    background: #FADCDC; /* Fond rose pour le container */
}

/* Produits Grid */
.produits {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
}

.produit-item {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    width: 280px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.produit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.produit-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.produit-item h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #000000;
}

.produit-item p {
    color: #666666;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.produit-item strong {
    font-size: 1.3rem;
    color: #000000;
    display: block;
    margin-bottom: 15px;
}

/* Buttons */
.btn {
    display: inline-block;
    background: #000000;
    color: #ffffff;
    padding: 12px 25px;
    border: 2px solid #000000;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    background: #333333;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Bouton outline avec fond blanc et texte noir */
.btn-outline {
    background: #ffffff;
    color: #000000;
    border: 2px solid #ffffff;
    padding: 12px 25px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: pointer;
    text-align: center;
}

.btn-outline:hover {
    background: #000000;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Panier Styles */
.produit-panier {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.produit-panier h3 {
    color: #000000;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.produit-panier p {
    color: #666666;
    margin-bottom: 5px;
}

/* Footer */
footer {
    background: #ffffff;
    color: #000000;
    padding: 40px 20px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        padding: 0 20px;
    }
    
    .logo-img {
        height: 60px;
    }
    
    main {
        margin-top: 80px;
        padding: 15px;
    }
    
    .produit-item {
        width: 100%;
        max-width: 300px;
    }
    
    .btn, .btn-outline {
        padding: 10px 20px;
        font-size: 0.8rem;
    }

    /* Correction dropdown mobile */
    .dropdown-content {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin-top: 10px;
        display: none; /* Cacher par défaut sur mobile */
        pointer-events: auto;
    }

    .dropdown.active .dropdown-content {
        display: block; /* Afficher quand actif sur mobile */
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 15px;
    }
    
    .logo-img {
        height: 50px;
    }
    
    main {
        margin-top: 70px;
        padding: 10px;
    }
    
    .btn, .btn-outline {
        padding: 8px 16px;
        font-size: 0.75rem;
        display: block;
        margin: 10px auto;
        width: 90%;
        max-width: 250px;
    }
}