/* --- A. STYLES GLOBAUX --- */
:root {
    /* Gradient argenté aluminium/inox avec texture brossée - version foncée */
    --bg-gradient: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 255, 255, 0.02) 2px, rgba(255, 255, 255, 0.02) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0, 0, 0, 0.15) 2px, rgba(0, 0, 0, 0.15) 4px),
        linear-gradient(135deg, #6B6C70 0%, #555558 50%, #35353A 100%);
    
    /* Dégradé Sombre Premium pour le menu avec verre */
    --header-gradient: linear-gradient(135deg, rgba(52, 58, 64, 0.85) 0%, rgba(33, 37, 41, 0.85) 100%);
    
    --element-bg: rgba(255, 255, 255, 0.95);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --text-color: #1a1a1a;
    --text-light: #ffffff;
    --accent-color: #FFD700;
    --accent-color-alt: #C0C0C0;
    --accent-hover: #DAA520;
    --font-main: 'Montserrat', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background: var(--bg-gradient);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-light);
    background: linear-gradient(135deg, #FFD700, #C0C0C0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-color-alt));
    color: #ffffff;
    padding: 14px 32px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.5);
}

.btn-small {
    padding: 12px 24px;
    font-size: 0.8rem;
}

/* --- B. HEADER (En-tête Moderne avec Effet Verre) --- */
header {
    background: var(--header-gradient);
    color: var(--text-light);
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
/* Effet de lueur arc-en-ciel sous le header */
header::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(
        to right,
        #ff3b3b, #ff9100, #ffea00, #00d26a, #00a1ff, #bd00ff, #ff3b3b
    );
    background-size: 200% auto;
    animation: rainbowAnim 2s linear infinite;
    filter: blur(4px);
    opacity: 0.4;
}
/* Ligne fine arc-en-ciel juste au bord du header pour renforcer l'effet de luxe */
header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(
        to right,
        #ff3b3b, #ff9100, #ffea00, #00d26a, #00a1ff, #bd00ff, #ff3b3b
    );
    background-size: 200% auto;
    animation: rainbowAnim 2s linear infinite;
}

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

.logo {
    font-size: 1.6rem;
    font-weight: 800; /* Un peu plus gras pour bien voir les couleurs */
    letter-spacing: 2px;
    text-transform: uppercase;
    
    /* 1. Le dégradé de couleurs arc-en-ciel */
    background: linear-gradient(
        to right, 
        #ff3b3b, #ff9100, #ffea00, #00d26a, #00a1ff, #bd00ff, #ff3b3b
    );
    
    /* 2. On étire le fond à 200% pour pouvoir le faire glisser */
    background-size: 200% auto;
    
    /* 3. La magie : on masque le texte et on "découpe" le fond à la forme des lettres */
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    
    /* 4. L'animation réglée sur 2 secondes (vitesse 2) en boucle infinie */
    animation: rainbowAnim 2s linear infinite;
    
    /* On retire le text-shadow précédent car il s'affiche mal avec du texte transparent */
}

/* Logo Image Styling */
.logo-image-link {
    display: flex;
    align-items: center;
    margin-right: 20px;
    height: 100%;
}

.logo-image {
    height: 100%;
    width: auto;
    max-height: 90px;
    object-fit: contain;
    transition: all 0.3s ease;
    background: transparent;
}

.logo-image-link:hover .logo-image {
    transform: scale(1.05);
}

nav ul {
    display: flex;
    gap: 15px; /* Réduit un peu pour compenser le padding des boutons */
}

/* L'effet "bouton 3D" qui se détache au survol */
nav a {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.8);
    padding: 12px 22px;
    border-radius: 12px;
    display: inline-block;
    /* Transitions des boutons du header */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), color 1s ease;
    background: rgba(255, 255, 255, 0.05);
    background-size: 200% auto;
}

nav a:hover {
    color: #8A8B8F;
    background: linear-gradient(90deg, #FFD700, #C0C0C0, #FFD700);
    background-size: 200% auto;
    animation: gradientShift 2s linear infinite;
    backdrop-filter: blur(5px);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.25);
}

/* Icône du panier dans le menu */
.header-icons a {
    color: #ffffff;
    font-weight: 600;
}

.menu-toggle {
    display: none; 
    font-size: 1.8rem;
    cursor: pointer;
    user-select: none;
    color: #ffffff;
}

/* --- C. SECTION HÉROS --- */
.hero { 
    padding: 120px 0;
    margin-top: 70px;
}
.hero-content { 
    display: flex; 
    align-items: center; 
    gap: 60px; 
}
.hero-text { 
    flex: 1; 
}
.hero-text h1 { 
    font-size: 3.8rem; 
    font-weight: 800; 
    line-height: 1.1; 
    margin-bottom: 25px; 
    letter-spacing: -1px;
    background: linear-gradient(135deg, #FFD700, #C0C0C0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-text p { 
    font-size: 1.2rem; 
    color: rgba(255, 255, 255, 0.8); 
    margin-bottom: 40px; 
    font-weight: 400; 
}
.hero-image { 
    flex: 1; 
}
.hero-image img { 
    max-width: 100%; 
    height: auto; 
    border-radius: 20px; 
    box-shadow: 0 25px 50px rgba(255, 215, 0, 0.2);
    backdrop-filter: blur(10px);
}

/* --- D. SECTION CATÉGORIES --- */
.categories { 
    padding: 100px 0; 
}
.category-grid { 
    display: flex; 
    gap: 25px; 
}
.category-item { 
    flex: 1; 
    height: 380px; 
    background-size: cover; 
    background-position: center; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    position: relative; 
    border-radius: 20px; 
    transition: all 0.4s ease; 
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}
.category-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}
.category-item:hover { 
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(255, 215, 0, 0.2);
}
.category-text { 
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 40px; 
    border-radius: 15px; 
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 2;
}
.category-text h3 { 
    text-transform: uppercase; 
    font-size: 1rem; 
    letter-spacing: 2px; 
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-color-alt));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- E. SECTION PRODUITS --- */
.products { 
    padding: 100px 0 140px; 
}
.product-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 30px; 
}
.product-item { 
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 35px 25px; 
    text-align: center; 
    border-radius: 20px; 
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.product-item:hover { 
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(255, 215, 0, 0.2);
    background: var(--element-bg);
    border-color: rgba(255, 215, 0, 0.3);
}
.product-item img { 
    max-width: 100%; 
    height: auto; 
    margin-bottom: 20px; 
    mix-blend-mode: multiply;
    border-radius: 12px;
}
.product-item h3 { 
    font-size: 1.1rem; 
    font-weight: 600; 
    margin-bottom: 12px;
    color: var(--text-light);
}
.product-item .price { 
    font-weight: 700; 
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

/* --- F. FOOTER --- */
footer { 
    padding: 80px 0; 
    background: linear-gradient(135deg, rgba(52, 58, 64, 0.95) 0%, rgba(33, 37, 41, 0.95) 100%);
    color: var(--text-light);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    position: relative;
    overflow: hidden;
}
/* French flag gradient line at the top of the footer */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, #002395 33.33%, #ffffff 33.33%, #ffffff 66.66%, #ED2939 66.66%);
    width: 100%;
}
.footer-content { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}
.footer-logo { 
    font-size: 1.3rem; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 2px;
    background: linear-gradient(
        to right, 
        #ff3b3b, #ff9100, #ffea00, #00d26a, #00a1ff, #bd00ff, #ff3b3b
    );
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rainbowAnim 2s linear infinite;
}
.footer-links { 
    display: flex; 
    gap: 40px; 
    font-size: 0.85rem; 
    text-transform: uppercase; 
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.7);
}
.footer-links a:hover {
    color: var(--accent-color);
}

/* --- G. RESPONSIVE (Mobile & Tablet) --- */
@media (max-width: 1024px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .hero-text h1 { font-size: 3rem; }
    h2 { font-size: 2rem; }
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    
    nav ul {
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 65px;
        left: 0;
        width: 100%;
        background: rgba(33, 37, 41, 0.95);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
        padding: 20px 0;
        text-align: center;
        gap: 10px;
    }

    nav ul.active { display: flex; }

    nav a:hover {
        transform: translateY(-1px);
    }

    .hero-content { 
        flex-direction: column-reverse; 
        text-align: center;
        gap: 40px;
    }
    .hero-text h1 { font-size: 2.2rem; }
    .hero-text p { font-size: 1rem; }
    .hero { 
        padding: 80px 0;
        margin-top: 70px;
    }
    .category-grid { flex-direction: column; }
    .category-item { height: 250px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .footer-content { flex-direction: column; gap: 30px; text-align: center; }
    .footer-links { flex-direction: column; gap: 15px; }
    h2 { font-size: 1.5rem; margin-bottom: 30px; }
    .container { padding: 0 15px; }
}

@media (max-width: 480px) {
    .product-grid { grid-template-columns: 1fr; }
    .hero-text h1 { font-size: 1.8rem; }
    nav ul {
        top: 60px;
    }
    .category-item { height: 200px; }
    .category-text { padding: 15px 25px; }
    .category-text h3 { font-size: 0.8rem; }
    .hero { 
        padding: 60px 0;
        margin-top: 60px;
    }
    .hero-text { margin-bottom: 30px; }
    h2 { font-size: 1.3rem; }
    .product-item { padding: 20px 15px; }
    footer { padding: 50px 0; }
}

/* --- H. ANIMATIONS --- */
@keyframes gradientShift {
    0% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
    100% {
        background-position: 0% center;
    }
}

@keyframes rainbowAnim {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: -200% center;
    }
}