/**
 * Shop4Moms Slider v2 - Full Width Edition
 * Design pleine largeur style Babylux
 */

/* CRITIQUE : Casse le container parent pour aller pleine largeur */
.shop4moms-slider-wrapper {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: 0;
    margin-bottom: 40px;
    padding: 0;
    overflow: hidden;
}

.shop4moms-slider {
    position: relative;
    width: 100%;
    margin: 0;
    overflow: hidden;
}

.slider-track {
    position: relative;
    width: 100%;
    /* Ratio responsive : 1920/600 = 3.2 */
    aspect-ratio: 1920 / 600;
    max-height: 600px;
}

/* Fallback pour navigateurs anciens */
@supports not (aspect-ratio: 1920 / 600) {
    .slider-track {
        height: 0;
        padding-bottom: 31.25%; /* 600/1920 = 31.25% */
    }
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

.slide-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.slide-image {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

/* PAS d'overlay sombre - on garde l'image telle quelle comme Babylux */
.slide-overlay {
    display: none;
}

.slide-content {
    position: relative;
    z-index: 2;
    width: 100%;
    color: #2c3e50;
    padding: 0;
}

.slide-content .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
}

.slide-subtitle {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0 0 15px 0;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.slide-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1;
    margin: 0 0 25px 0;
    max-width: 600px;
    color: #fff;
    text-shadow: 0 4px 12px rgba(0,0,0,0.25);
    letter-spacing: -1px;
}

.slide-description {
    font-size: 22px;
    font-weight: 400;
    line-height: 1.4;
    margin: 0 0 35px 0;
    max-width: 500px;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.slide-button {
    display: inline-block;
    background: #f4a6a6;
    color: #fff;
    padding: 18px 45px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(244, 166, 166, 0.5);
}

.slide-link:hover .slide-button {
    background: #e89090;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(244, 166, 166, 0.7);
}

/* Flèches élégantes */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #333;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    opacity: 0;
}

.shop4moms-slider:hover .slider-arrow {
    opacity: 1;
}

.slider-arrow:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 25px rgba(0,0,0,0.2);
}

.slider-prev {
    left: 40px;
}

.slider-next {
    right: 40px;
}

/* Bullets élégantes */
.slider-bullets {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.slider-bullet {
    width: 40px;
    height: 4px;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slider-bullet.active {
    background: #fff;
    width: 60px;
}

.slider-bullet:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* ========================
   RESPONSIVE
   ======================== */

/* Tablette */
@media (max-width: 1200px) {
    .slide-content .container {
        padding: 0 40px;
    }
    .slide-title {
        font-size: 52px;
    }
    .slide-description {
        font-size: 19px;
    }
}

/* Tablette portrait */
@media (max-width: 1024px) {
    .slide-title {
        font-size: 44px;
    }
    .slide-subtitle {
        font-size: 14px;
        letter-spacing: 2px;
    }
    .slide-description {
        font-size: 17px;
    }
    .slider-arrow {
        width: 45px;
        height: 45px;
        opacity: 1;
    }
    .slider-prev { left: 20px; }
    .slider-next { right: 20px; }
}

/* Mobile */
@media (max-width: 768px) {
    .slider-track {
        aspect-ratio: 4 / 5;
        max-height: 600px;
    }

    @supports not (aspect-ratio: 4 / 5) {
        .slider-track {
            padding-bottom: 125%;
        }
    }

    .slide-image {
        background-position: center center;
    }

    .slide-content .container {
        padding: 0 25px;
    }

    .slide-content {
        text-align: center;
    }

    .slide-subtitle {
        font-size: 12px;
        letter-spacing: 1.5px;
        margin-bottom: 10px;
    }

    .slide-title {
        font-size: 32px;
        margin: 0 auto 15px;
        max-width: 100%;
    }

    .slide-description {
        font-size: 15px;
        margin: 0 auto 25px;
        max-width: 100%;
    }

    .slide-button {
        padding: 14px 32px;
        font-size: 13px;
    }

    .slider-arrow {
        width: 38px;
        height: 38px;
    }

    .slider-prev { left: 10px; }
    .slider-next { right: 10px; }

    .slider-bullets {
        bottom: 20px;
        gap: 8px;
    }

    .slider-bullet {
        width: 25px;
    }

    .slider-bullet.active {
        width: 40px;
    }
}

@media (max-width: 480px) {
    .slide-title {
        font-size: 26px;
    }
    .slide-description {
        font-size: 14px;
    }
}
