/* ========================================
   INDEX.CSS - Page d'Accueil uniquement
   ======================================== */

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    height: 100%;
    width: 100%;
}

.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-content {
    position: absolute;
    left: 100px;
    top: 50%;
    transform: translateY(-50%);
    max-width: 1052px;
    z-index: 10;
}

.hero-content h1 {
    font-size: 96px;
    color: var(--bg-cream);
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-content p {
    font-size: 16px;
    color: var(--bg-cream);
    margin-bottom: 25px;
    max-width: 576px;
}

/* Products Section */
.products-section {
    padding: 50px 100px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 51px;
    margin-bottom: 50px;
}

/* Section « Nouveautés » de l'accueil : 3 produits sur une ligne */
.products-grid--nouveautes {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 50px;
}

/* Product Cards - Styles pour les liens */
.product-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-decoration: none !important;
    color: inherit !important;
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card:visited,
.product-card:active,
.product-card:link {
    color: inherit !important;
    text-decoration: none !important;
}

.product-image {
    width: 100%;
    height: 364px;
    background: #DCD7D7;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.product-details h3 {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 1px;
    color: var(--text-dark) !important;
}

.product-details p {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted) !important;
}

.product-price {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-dark) !important;
}

.products-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.products-footer p {
    max-width: 576px;
    color: rgba(25, 25, 25, 0.5);
    font-size: 16px;
}

/* Brands Section */
.brands-section {
    padding: 100px;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 21px;
}

/* Brand Cards - Styles pour les liens */
.brand-card {
    width: 100%;
    height: 423px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none !important;
    color: inherit !important;
    display: block;
}

.brand-card:visited,
.brand-card:active,
.brand-card:link {
    color: inherit !important;
    text-decoration: none !important;
}

.brand-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.brand-card:hover img {
    transform: scale(1.1);
}

.brand-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.brand-card:hover .brand-overlay {
    background: rgba(25, 25, 25, 0.5);
}

.brand-overlay h3 {
    color: white !important;
    font-size: 40px;
    text-align: center;
}

/* About Section */
.about-section {
    padding: 0 100px 100px;
}

.about-text {
    font-size: 16px;
    line-height: 1.6;
}

.about-text strong {
    font-weight: 700;
}

/* Split Content Section */
.split-section {
    padding: 0 100px 100px;
    display: flex;
    gap: 25px;
    align-items: stretch;
}

.split-image {
    width: 677px;
    height: 589px;
    background: #E0E0E0;
    overflow: hidden;
    flex-shrink: 0;
}

.split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.split-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.content-block {
    background: var(--text-dark);
    padding: 35px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
}

.content-block:first-child {
    height: 301px;
}

.content-block:last-child {
    height: 263px;
}

.content-block h3 {
    font-size: 32px;
    margin-bottom: 25px;
    line-height: 1.2;
}

.content-block p {
    font-size: 18px;
    line-height: 1.6;
    font-weight: 400;
}

/* ========================================
   Instagram Section - DÉFILEMENT INFINI CONTINU
   ======================================== */
.instagram-section {
    padding: 0;
    margin-bottom: 100px;
    overflow: hidden;
}

.instagram-section .section-title {
    padding: 0 100px;
    margin-bottom: 50px;
}

.instagram-grid {
    display: flex;
    overflow: hidden;
    position: relative;
}

.instagram-scroll {
    display: flex;
    gap: 15px;
    animation: scrollInstagram 60s linear infinite;
    will-change: transform;
}

@keyframes scrollInstagram {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.instagram-card {
    width: 274px;
    height: 343px;
    flex-shrink: 0;
    background: #C99797;
    overflow: hidden;
    border-radius: 0;
    position: relative;
}

.instagram-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.instagram-cta {
    text-align: center;
    padding: 50px 100px 0;
}

/* ========================================
   RESPONSIVE - Page d'accueil
   ======================================== */

@media (max-width: 1400px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .instagram-card {
        width: 250px;
        height: 310px;
    }
}

@media (max-width: 1024px) {
    .hero {
        height: 100vh;
    }

    .hero-content {
        left: 40px;
    }

    .hero-content h1 {
        font-size: 64px;
    }

    .products-section,
    .brands-section,
    .about-section,
    .split-section {
        padding-left: 40px;
        padding-right: 40px;
    }
    
    .instagram-section .section-title,
    .instagram-cta {
        padding-left: 40px;
        padding-right: 40px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .split-section {
        flex-direction: column;
    }

    .split-image {
        width: 100%;
    }
    
    .instagram-scroll {
        gap: 10px;
    }
    
    .instagram-card {
        width: 220px;
        height: 275px;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 62vh;
        min-height: 400px;
        max-height: 560px;
    }

    .hero-content {
        left: 20px;
        right: 20px;
    }

    .hero-content h1 {
        font-size: 40px;
    }

    /* Bestsellers : 2 par ligne, plus compact */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px 12px;
        margin-bottom: 32px;
    }

    .product-image {
        height: auto;
        aspect-ratio: 4 / 5;
    }

    .product-info {
        flex-direction: column;
        gap: 2px;
    }

    .product-details h3 { font-size: 13.5px; line-height: 1.25; }
    .product-details p { font-size: 11px; }
    .product-price { font-size: 13.5px; }

    /* Fournisseurs : 2 par ligne */
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .brand-card {
        height: auto;
        aspect-ratio: 3 / 4;
    }

    .brand-overlay h3 {
        font-size: 20px;
    }

    .products-section,
    .brands-section,
    .about-section {
        padding: 40px 20px;
    }

    /* "Découvrir les produits" : bouton et texte séparés */
    .products-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .products-footer p { font-size: 14px; }

    /* Section "Votre magasin" + cartes noires */
    .split-section {
        padding: 0 20px 40px;
        gap: 16px;
    }

    .split-image {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
        max-height: 360px;
    }

    .content-block {
        height: auto !important;
        padding: 24px 22px;
        overflow: visible;
    }

    .content-block h3 {
        font-size: 22px;
        margin-bottom: 12px;
    }

    .content-block p {
        font-size: 15px;
        line-height: 1.55;
    }

    .instagram-section .section-title,
    .instagram-cta {
        padding-left: 20px;
        padding-right: 20px;
    }

    .instagram-scroll { gap: 10px; }

    .instagram-card {
        width: 190px;
        height: 238px;
    }
}

/* ── Petits mobiles (≤ 480px) ──────────────────────────────────────────── */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 32px;
        line-height: 1.15;
    }

    .hero-content p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .products-section,
    .brands-section,
    .about-section {
        padding: 32px 16px;
    }

    .split-section {
        padding: 0 16px 32px;
    }

    .section-title h2,
    .about-section h2,
    .split-section h2 {
        font-size: 26px;
        line-height: 1.2;
    }

    .instagram-card {
        width: 150px;
        height: 188px;
    }

    img {
        max-width: 100%;
        height: auto;
    }
}