/* ==========================================================================
   HOME.CSS - STYLES SPÉCIFIQUES À LA PAGE D'ACCUEIL
   ========================================================================== */

/* --- 1. Bannière Principale (Hero Slideshow) --- */
.hero-slideshow {
    height: 70vh;
    min-height: 550px;
    position: relative;
    color: white;
    overflow: hidden; /* C'est correct, on ne touche pas */
}

/* ✅ MODIFIÉ : Le sélecteur est mis à jour pour cibler la classe ".swiper" moderne. */
.hero-slideshow .swiper {
    width: 100%;
    height: 100%;
}

.hero-slideshow .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
}

.hero-slideshow .hero-content {
    max-width: 700px;
    padding: 2rem;
    /* Ajoute une légère ombre au texte pour la lisibilité sur toutes les images */
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
}

.hero-slideshow .hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
}

.hero-slideshow .hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Style des flèches de navigation du slider */
.hero-slideshow .swiper-button-next,
.hero-slideshow .swiper-button-prev {
    color: white;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    transition: var(--transition-fast);
}
.hero-slideshow .swiper-button-next:hover,
.hero-slideshow .swiper-button-prev:hover {
    background-color: rgba(26, 44, 78, 0.8); /* Fond bleu foncé au survol */
}
.hero-slideshow .swiper-button-next::after,
.hero-slideshow .swiper-button-prev::after {
    font-size: 20px;
}

/* Style de la pagination (les points) */
.hero-slideshow .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.6);
    width: 10px;
    height: 10px;
    opacity: 1;
}

.hero-slideshow .swiper-pagination-bullet-active {
    background: #FFFFFF;
    transform: scale(1.2);
}


/* --- 2. Section "Marques Populaires" (Logos) --- */
/* (Inchangé) */
.popular-brands-section {
    padding: 4rem 2rem;
    background-color: #FFFFFF; /* Fond blanc */
}
.popular-brands-section .section-title {
    color: #333;
    margin-bottom: 2.5rem;
}
.brand-logos {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}
.brand-logos img {
    height: 35px;
    filter: grayscale(100%) contrast(0%) brightness(0.6);
    opacity: 0.8;
    transition: var(--transition-fast);
}
.brand-logos img:hover {
    filter: none;
    opacity: 1;
}

/* --- 3. Section "Nos Marques les Plus Populaires" (Collage) --- */
/* (Inchangé) */
.featured-brands-section {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
    gap: 4rem;
    padding: 5rem 2rem;
    background-color: var(--cream);
}
.featured-brands-content h2 {
    font-size: 2.8rem;
    color: #1a2c4e;
    margin-bottom: 1rem;
}
.featured-brands-content p {
    margin-bottom: 2rem;
}
.image-collage-wrapper {
    position: relative;
    height: 500px;
}
.collage-card {
    position: absolute;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    border: 3px solid white;
}
.collage-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.promo-tag {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background-color: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    text-align: left;
}
.promo-tag h4 {
    color: #1a2c4e;
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}
.promo-tag p {
    margin: 0;
    font-size: 0.9rem;
}
.collage-card-1 { width: 350px; height: 400px; top: 0; left: 50px; z-index: 2; }
.collage-card-2 { width: 250px; height: 180px; top: 60px; right: 0; z-index: 3; }
.collage-card-3 { width: 300px; height: 220px; top: 280px; right: 80px; z-index: 1; }


/* ===============================================================
   NOUVEAU STYLE : Cartes de Produit "Produits Vedettes"
   =============================================================== */
#featured-products .product-card {
    position: relative; /* Contexte pour les éléments positionnés */
    border-radius: 8px;
    overflow: hidden;
    background-color: #f1f1f1;
    box-shadow: none;
    border: 1px solid #e0e0e0;
}

#featured-products .product-card-image {
    height: 280px; /* Hauteur fixe pour l'image */
}
#featured-products .product-card-image img {
    transition: transform 0.4s ease;
}

#featured-products .product-card:hover .product-card-image img {
    transform: scale(1.05); /* Léger zoom sur l'image au survol */
}

/* Contenu de la carte (nom, prix, bouton) */
#featured-products .product-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: white;
    text-align: left;
    
    /* Le contenu est légèrement décalé vers le bas par défaut */
    transform: translateY(65%);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

#featured-products .product-card:hover .product-card-content {
    /* Au survol, le contenu remonte pour se révéler entièrement */
    transform: translateY(0);
}

#featured-products .product-card-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

#featured-products .product-card-title a {
    color: var(--text-dark);
}

#featured-products .product-card-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a2c4e; /* Bleu foncé */
    
    /* Le prix est visible par défaut */
    margin: 0;
    transition: opacity 0.3s ease;
}

/* Le bouton est caché par défaut */
#featured-products .product-card .btn {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
    margin-top: 1rem;
    padding: 0.6rem 1.2rem;
    width: 100%;
    background: #1a2c4e;
    color: white;
}

#featured-products .product-card:hover .btn {
    /* Le bouton apparaît au survol */
    opacity: 1;
    transform: translateY(0);
}