/* assets/css/limited-edition.css */

:root {
    --mauve: #B79AC5;
    --noir: #1A1A1A;
    --or: #D4AF8C;
    --blanc-casse: #F9F7F5;
    --gris: #3E3E3E;
    --rose-pale: #FCE4EC;
    --charcoal: #2C2C2C;
    --font-titre: 'Playfair Display', serif;
    --font-texte: 'Montserrat', sans-serif;
}

/* ----- RESET MOBILE ----- */
html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ----- HERO BANNER ----- */
.limited-hero {
    width: 100%;
    margin: 0;
    padding: 0;
}
.hero-image-container {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
}
.hero-img {
    width: 100%;
    height: auto;
    display: block;
}
.hero-text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
    width: 90%;
    max-width: 800px;
}
.hero-text-overlay h1 {
    font-family: var(--font-titre);
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 2px;
}
.hero-text-overlay p {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 25px;
}
.hero-btn {
    display: inline-block;
    background: white;
    color: var(--noir);
    padding: 12px 36px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    transition: 0.3s;
    text-decoration: none;
    border: none;
    cursor: pointer;
}
.hero-btn:hover {
    background: var(--mauve);
    color: white;
    transform: scale(1.05);
}

/* ----- CATEGORIES CARROUSEL – 9 images carrées (car1.jpg à car9.jpg) ----- */
.limited-categories {
    padding: 80px 0;
    background: white;
    width: 100%;
}
.categories-scroll-container {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin-top: 40px;
    padding-bottom: 15px;
    -webkit-overflow-scrolling: touch;
}
.categories-scroll-container::-webkit-scrollbar {
    display: none;
}
.categories-scroll-track {
    display: flex;
    gap: 25px;
    width: max-content;
}
.category-card {
    flex: 0 0 240px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}
.category-card:hover {
    transform: scale(1.02);
}
.category-card img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    display: block;
}

/* ----- BANNER ----- */
.limited-banner {
    width: 100%;
    padding: 0;
}
.banner-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.banner-image {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/5;
    object-fit: cover;
}
.banner-overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
    width: 90%;
    max-width: 800px;
}
.banner-overlay-content h3 {
    font-family: var(--font-titre);
    font-size: 2.2rem;
    margin-bottom: 15px;
    font-weight: 700;
}
.banner-overlay-content p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    font-weight: 300;
}
.banner-btn {
    display: inline-block;
    background: white;
    color: var(--noir);
    padding: 10px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    transition: 0.3s;
    text-decoration: none;
}
.banner-btn:hover {
    background: var(--mauve);
    color: white;
    transform: scale(1.05);
}

/* ----- THE ICONS – image et texte séparés, taille imposante ----- */
.limited-featured {
    padding: 80px 0;
    background: var(--blanc-casse);
    width: 100%;
}
.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}
.featured-item {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    max-width: 380px;
    margin: 0 auto;
    width: 100%;
}
.featured-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 40px rgba(183, 154, 197, 0.15);
}
.featured-image {
    aspect-ratio: 2/3;
    overflow: hidden;
}
.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}
.featured-item:hover .featured-image img {
    transform: scale(1.08);
}
.featured-info {
    padding: 25px 20px 30px;
    text-align: center;
    background: white;
}
.featured-info h4 {
    font-family: var(--font-titre);
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--noir);
    font-weight: 700;
}
.featured-desc {
    font-size: 0.95rem;
    color: var(--gris);
    margin-bottom: 12px;
}
.featured-price {
    font-weight: 700;
    color: var(--mauve);
    font-size: 1.3rem;
    margin-bottom: 20px;
}
.featured-btn {
    display: inline-block;
    background: var(--noir);
    color: white;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.8rem;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    min-height: 48px;
}
.featured-btn:hover {
    background: var(--mauve);
    color: white;
    transform: scale(1.05);
}

/* ----- 50/50 STORY LAYOUT ----- */
.limited-story {
    padding: 80px 0;
    background: white;
    width: 100%;
}
.story-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.story-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}
.story-image img {
    width: 100%;
    height: auto;
    display: block;
}
.story-text h2 {
    font-family: var(--font-titre);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--noir);
}
.story-text p {
    font-size: 1rem;
    color: var(--gris);
    line-height: 1.6;
    margin-bottom: 20px;
}
.story-btn {
    display: inline-block;
    background: var(--noir);
    color: white;
    padding: 12px 32px;
    border-radius: 40px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: 0.2s;
}
.story-btn:hover {
    background: var(--mauve);
    color: white;
    transform: scale(1.05);
}

/* ----- ESSENTIALS – 4 produits carrés, overlay Shop Now, prix sous l'image ----- */
.limited-essentials {
    padding: 80px 0;
    background: var(--blanc-casse);
    width: 100%;
}
.essentials-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 40px;
}
.essential-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.02);
    transition: box-shadow 0.3s;
}
.essential-card:hover {
    box-shadow: 0 12px 25px rgba(0,0,0,0.05);
}
.essential-image {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
}
.essential-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.essential-card:hover .essential-image img {
    transform: scale(1.05);
}
.essential-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.essential-card:hover .essential-overlay {
    opacity: 1;
}
.essential-btn {
    background: white;
    color: var(--noir);
    padding: 10px 24px;
    border-radius: 40px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: 0.2s;
    border: none;
    text-decoration: none;
    display: inline-block;
}
.essential-btn:hover {
    background: var(--mauve);
    color: white;
    transform: scale(1.05);
}
.essential-info {
    padding: 15px;
    text-align: center;
}
.essential-info h4 {
    font-family: var(--font-titre);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--noir);
}
.essential-price {
    font-weight: 600;
    color: var(--mauve);
    font-size: 0.95rem;
}

/* ----- RESPONSIVE MOBILE – CARROUSELS HORIZONTAUX ----- */
@media (max-width: 1024px) {
    .hero-text-overlay h1 { font-size: 2.8rem; }
    .hero-text-overlay p { font-size: 1.1rem; }
    .featured-grid { grid-template-columns: repeat(2, 1fr); }
    .essentials-grid { grid-template-columns: repeat(2, 1fr); }
    .story-layout { gap: 30px; }
}

@media (max-width: 768px) {
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    /* Espacement des sections pour éviter que la barre ne touche le sous-titre */
    .section-header {
        margin-bottom: 30px;
    }
    .section-title {
        margin-bottom: 15px;
    }
    .section-title::after {
        bottom: -10px;
    }
    .section-subtitle {
        display: block;
        margin-top: 15px;
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .hero-text-overlay h1 {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }
    .hero-text-overlay p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    .hero-btn {
        padding: 8px 24px;
        font-size: 0.7rem;
    }

    .category-card {
        flex: 0 0 180px;
    }

    .banner-overlay-content h3 {
        font-size: 1.5rem;
    }
    .banner-overlay-content p {
        font-size: 0.85rem;
    }
    .banner-btn {
        padding: 8px 24px;
        font-size: 0.7rem;
    }

    /* ----- THE ICONS : passage en carrousel horizontal ----- */
    .featured-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 20px;
        padding-bottom: 15px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .featured-grid::-webkit-scrollbar {
        display: none;
    }
    .featured-item {
        flex: 0 0 300px; /* plus large pour mobile */
        max-width: 300px;
        margin: 0;
    }

    /* ----- ESSENTIALS : passage en carrousel horizontal ----- */
    .essentials-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 20px;
        padding-bottom: 15px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .essentials-grid::-webkit-scrollbar {
        display: none;
    }
    .essential-card {
        flex: 0 0 260px; /* largeur augmentée */
        max-width: 260px;
        margin: 0;
    }

    .story-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .story-text h2 {
        font-size: 1.8rem;
    }

    .site-footer .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .payment-icons {
        font-size: 1.8rem;
        gap: 12px;
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .section-subtitle {
        font-size: 0.8rem;
        margin-top: 12px;
    }

    .hero-text-overlay h1 {
        font-size: 1.5rem;
    }
    .hero-text-overlay p {
        font-size: 0.8rem;
    }
    .hero-btn {
        padding: 7px 20px;
        font-size: 0.65rem;
    }

    .category-card {
        flex: 0 0 150px;
    }

    .banner-overlay-content h3 {
        font-size: 1.2rem;
    }
    .banner-overlay-content p {
        font-size: 0.75rem;
    }
    .banner-btn {
        padding: 7px 20px;
        font-size: 0.65rem;
    }

    /* Ajustement des tailles sur très petit écran */
    .featured-item {
        flex: 0 0 280px;
        max-width: 280px;
    }
    .featured-info h4 {
        font-size: 1.1rem;
    }
    .featured-price {
        font-size: 1.1rem;
    }
    .featured-btn {
        padding: 12px 24px;
        font-size: 0.7rem;
        min-height: 44px;
    }

    .essential-card {
        flex: 0 0 240px;
        max-width: 240px;
    }

    .story-text h2 {
        font-size: 1.5rem;
    }

    .payment-icons {
        font-size: 1.6rem;
        gap: 10px;
    }
    .footer-contact p {
        font-size: 0.8rem;
    }
}

@media (max-width: 400px) {
    .hero-text-overlay h1 {
        font-size: 1.3rem;
    }
    .category-card {
        flex: 0 0 130px;
    }
    .banner-overlay-content h3 {
        font-size: 1rem;
    }
    .featured-item {
        flex: 0 0 260px;
    }
    .essential-card {
        flex: 0 0 220px;
    }
    .payment-icons {
        font-size: 1.4rem;
    }
}