/**
 * ED Home Slider - Styles CSS
 *
 * @author    Energiedin
 * @copyright Energiedin
 */

/* Container principal */
.ed-homeslider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #f8f9fa;
}

.ed-homeslider {
    position: relative;
    width: 100%;
}

/* Slides */
.ed-slide {
    display: none;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.ed-slide.active {
    display: block;
    opacity: 1;
}

.ed-slide-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 500px;
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 60px 40px;
}

/* Contenu texte */
.ed-slide-content {
    flex: 0 0 50%;
    max-width: 50%;
    padding-right: 40px;
    z-index: 2;
}

.ed-slide-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #f7941d;
    margin: 0 0 10px 0;
    line-height: 1.1;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.ed-slide-subtitle {
    font-size: 2rem;
    font-weight: 400;
    color: #333;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.ed-slide-description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Bouton CTA */
.ed-slide-button-wrapper {
    margin-top: 25px;
}

.ed-slide-button {
    display: inline-block;
    padding: 15px 35px;
    background-color: #f7941d;
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.ed-slide-button:hover {
    background-color: #e8850d;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(247, 148, 29, 0.4);
}

/* Image */
.ed-slide-image {
    flex: 0 0 50%;
    max-width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ed-slide-image img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 450px;
}

/* Contrôles de navigation */
.ed-slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    pointer-events: none;
    z-index: 10;
}

.ed-slider-prev,
.ed-slider-next {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.ed-slider-prev:hover,
.ed-slider-next:hover {
    background-color: #f7941d;
    color: #fff;
}

.ed-slider-prev:hover svg,
.ed-slider-next:hover svg {
    stroke: #fff;
}

.ed-slider-prev svg,
.ed-slider-next svg {
    width: 24px;
    height: 24px;
    stroke: #333;
    transition: stroke 0.3s ease;
}

/* Points de navigation */
.ed-slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 20px 0 30px;
}

.ed-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #ccc;
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.ed-slider-dot:hover {
    border-color: #f7941d;
}

.ed-slider-dot.active {
    background-color: #f7941d;
    border-color: #f7941d;
}

/* Responsive Design */
@media (max-width: 992px) {
    .ed-slide-inner {
        flex-direction: column;
        text-align: center;
        min-height: auto;
        padding: 40px 30px;
    }

    .ed-slide-content {
        flex: 0 0 100%;
        max-width: 100%;
        padding-right: 0;
        margin-bottom: 30px;
        order: 1;
    }

    .ed-slide-image {
        flex: 0 0 100%;
        max-width: 100%;
        order: 2;
    }

    .ed-slide-title {
        font-size: 2.5rem;
    }

    .ed-slide-subtitle {
        font-size: 1.5rem;
    }

    .ed-slider-prev,
    .ed-slider-next {
        width: 40px;
        height: 40px;
    }

    .ed-slider-prev svg,
    .ed-slider-next svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 576px) {
    .ed-slide-inner {
        padding: 30px 20px;
    }

    .ed-slide-title {
        font-size: 1.8rem;
    }

    .ed-slide-subtitle {
        font-size: 1.2rem;
    }

    .ed-slide-description {
        font-size: 1rem;
    }

    .ed-slide-button {
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    .ed-slide-image img {
        max-height: 300px;
    }

    .ed-slider-prev,
    .ed-slider-next {
        width: 35px;
        height: 35px;
    }

    .ed-slider-prev svg,
    .ed-slider-next svg {
        width: 18px;
        height: 18px;
    }

    .ed-slider-dots {
        padding: 15px 0 20px;
    }

    .ed-slider-dot {
        width: 10px;
        height: 10px;
    }
}

/* Animation pour les slides */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.ed-slide.active .ed-slide-content {
    animation: slideIn 0.6s ease-out;
}

/* Style alternatif avec image à fond */
.ed-slide.ed-slide-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.ed-slide.ed-slide-bg .ed-slide-inner {
    background: linear-gradient(90deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.7) 50%, rgba(255,255,255,0) 100%);
}

.ed-slide.ed-slide-bg .ed-slide-content {
    flex: 0 0 60%;
    max-width: 60%;
}

.ed-slide.ed-slide-bg .ed-slide-image {
    display: none;
}
