/* --- DESIGN GENERAL (THEME NOIR ET VIOLET) --- */
:root {
    --primary-color: #8E44AD;
    --primary-dark: #6C3483;
    --bg-color: #0a0a0a;
    --text-color: #FFFFFF;
    --accent-gold: #D4AF37;
    --gradient-purple: linear-gradient(135deg, #8E44AD, #6C3483);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* --- ANIMATION KEYFRAMES --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* --- EN-TETE --- */
header {
    background: linear-gradient(180deg, #111 0%, var(--bg-color) 100%);
    padding: 20px;
    text-align: center;
    border-bottom: 4px solid var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.logo-img {
    width: 130px; 
    height: 130px;
    object-fit: cover;
    display: block;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(142, 68, 173, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(142, 68, 173, 0.5);
}

/* --- NAVIGATION --- */
nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

nav a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

nav a.btn-nav {
    background: var(--gradient-purple);
    border: none;
    padding: 10px 20px;
}

nav a.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(142, 68, 173, 0.4);
}

/* --- HERO SECTION --- */
.hero {
    background: linear-gradient(135deg, rgba(142, 68, 173, 0.1) 0%, rgba(0, 0, 0, 0.9) 100%);
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="%238E44AD" stroke-width="2" opacity="0.1"/><line x1="10" y1="50" x2="90" y2="50" stroke="%238E44AD" stroke-width="2" opacity="0.1"/></svg>') center/200px repeat;
    opacity: 0.3;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out;
}

.hero h1 {
    font-size: 2.8em;
    margin: 0 0 15px 0;
    background: linear-gradient(90deg, #fff, var(--primary-color), #fff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

.hero p {
    font-size: 1.3em;
    color: #ccc;
    margin: 0 0 30px 0;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.hero-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    font-size: 0.95em;
}

.hero-badge svg { width: 20px; height: 20px; }

/* --- SECTION TITRE --- */
.section-title {
    text-align: center;
    padding: 60px 20px 30px;
}

.section-title h2 {
    font-size: 2em;
    margin: 0;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-purple);
    border-radius: 2px;
}

/* --- GRILLE DE PRODUITS --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    justify-content: center;
}

/* --- CARTE PRODUIT --- */
.product-card {
    background: rgba(255, 255, 255, 0.03); 
    color: var(--text-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5); 
    border: 1px solid rgba(142, 68, 173, 0.2); 
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    animation: fadeInUp 0.6s ease-out backwards;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(142, 68, 173, 0.3);
    border-color: var(--primary-color);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.badge-new {
    background: linear-gradient(135deg, #8E44AD, #6C3483);
    color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* --- CORRECTION DE L'IMAGE POUR QU'ELLE SOIT GRANDE --- */
.product-image-container {
    height: 280px; /* Hauteur fixe pour la zone image */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: transparent;
}

.product-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; 
    transition: transform 0.3s ease;
    filter: drop-shadow(0px 10px 15px rgba(0,0,0,0.8)); 
    transform: scale(1.35); /* Garde ton zoom demandé */
}

.product-card:hover .product-image {
    transform: scale(1.45); /* Zoom au survol */
}

/* --- INFOS TEXTE DE LA CARTE --- */
.product-info {
    padding: 10px 25px 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
}

.product-title {
    font-weight: 700;
    font-size: 1.15em;
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-category {
    font-size: 0.85em;
    color: #aaa;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-price {
    font-size: 1.6em;
    color: var(--primary-color); 
    margin-bottom: 20px;
    font-weight: 800;
}

/* --- BOUTONS D'ACHAT JUMEAUX --- */
.buttons-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.btn-vinted,
.btn-beebs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 0;
    background: var(--gradient-purple); 
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9em;
    border: none;
    cursor: pointer;
}

.btn-vinted:hover,
.btn-beebs:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(142, 68, 173, 0.4); 
}

.btn-vinted svg,
.btn-beebs svg { width: 18px; height: 18px; }

/* --- TEXTE PROMO ELEGANT SOUS LE BOUTON --- */
.promo-text {
    font-size: 0.85em;
    color: #bbb;
    margin-top: -6px; 
    margin-bottom: 5px;
}

.promo-text strong {
    color: var(--accent-gold);
    font-weight: bold;
}

/* --- INFO SECTION --- */
.info-section {
    background: linear-gradient(180deg, transparent 0%, rgba(142, 68, 173, 0.05) 100%);
    padding: 60px 20px;
}

.info-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.info-card {
    padding: 30px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border: 1px solid rgba(142, 68, 173, 0.2);
    transition: all 0.3s ease;
}

.info-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.info-card svg {
    width: 48px;
    height: 48px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.info-card h3 { margin: 0 0 10px 0; font-size: 1.2em; }
.info-card p { margin: 0; color: #999; font-size: 0.95em; }

/* --- PIED DE PAGE --- */
footer {
    text-align: center;
    padding: 50px 20px;
    background: linear-gradient(180deg, var(--bg-color) 0%, #111 100%);
    border-top: 2px solid var(--primary-color);
}

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

.footer-logo {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(142, 68, 173, 0.5);
    margin-bottom: 20px;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.footer-links a { color: #ccc; text-decoration: none; transition: color 0.3s; display: flex; align-items: center; gap: 8px; }
.footer-links a:hover { color: var(--primary-color); }
.footer-links svg { width: 20px; height: 20px; }

footer p { color: #666; font-size: 0.9em; margin: 0; }
footer p a { color: var(--primary-color); text-decoration: none; }
footer p a:hover { text-decoration: underline; }

/* --- MEDIA QUERIES MOBILE (CORRECTION ICI) --- */
@media (max-width: 768px) {
    .header-content { 
        flex-direction: column; 
        padding: 10px;
    }
    
    .logo-img {
        width: 100px;
        height: 100px;
    }

    nav { 
        flex-wrap: wrap; 
        justify-content: center; 
        gap: 10px;
    }

    .hero {
        padding: 40px 15px;
    }

    .hero h1 { font-size: 1.8em; }
    .hero p { font-size: 1em; }
    
    .hero-badges { 
        flex-direction: column; 
        align-items: center; 
        gap: 10px;
    }

    /* Important pour les images zoomées sur mobile */
    .product-image-container {
        height: 220px; /* Un peu moins haut sur mobile */
        padding: 10px;
    }

    .product-image {
        transform: scale(1.2); /* Zoom légèrement réduit sur mobile pour que ça ne déborde pas */
    }

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

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}