/**
* Styles pour le carrousel de conception AMCC
*/

/* Conteneur principal */
.amcc-carousel-conception-outer {
    position: relative;
    width: 100%;
    margin: 40px 0;
    overflow: hidden; /* Masquer le débordement global */
}

.amcc-carousel-conception-container {
    position: relative;
    width: 100%;
    max-width: 100%;
}

@media (min-width: 1024px) {
    /* Viewport pour masquer le débordement */
    .amcc-carousel-conception-viewport {
        position: relative;
        width: 1500px;
        overflow: visible;
        margin: 0 auto;
        padding: 0 200px;
    }
}

@media (max-width: 1023px) {
    /* Viewport pour masquer le débordement */
    .amcc-carousel-conception-viewport {
        position: relative;
        width: 80%;
        overflow: visible;
        margin: 0 auto;
        padding: 0 200px;
    }
}

/* Track qui contient tous les slides */
.amcc-carousel-conception-track {
    display: flex;
    transition: transform 0.6s ease-in-out;
    will-change: transform;
}

/* Style des slides */
.amcc-carousel-conception-slide {
    flex: 0 0 100%;
    width: 100%;
    padding: 0 20px; /* Espacement entre les slides */
}

/* Conteneur du contenu du slide */
.amcc-carousel-conception-content {
    width: 100%;
    opacity: 0.4;
    transform: scale(0.85);
    transition: all 0.6s ease-in-out;
}

/* Slide actif */
.amcc-carousel-conception-slide.active .amcc-carousel-conception-content {
    opacity: 1;
    transform: scale(1);
}

/* Container de l'image */
.amcc-carousel-conception-image-container {
    width: 100%;
    height: 450px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background-color: #f5f5f5;
}

/* Image responsive */
.amcc-carousel-conception-image {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
}

/* Section informations */
.amcc-carousel-conception-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding: 0 ;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-in-out 0.2s;
}

/* Info visible uniquement sur le slide actif */
.amcc-carousel-conception-slide.active .amcc-carousel-conception-info {
    opacity: 1;
    transform: translateY(0);
}

/* Conteneur gauche (titre et sous-titre) */
.amcc-carousel-conception-left-content {
    flex: 0 0 35%;
}

/* Titre */
.amcc-carousel-conception-title {
    color: #1F386A !important;
    font-size: 26px !important;
    font-weight: 520 !important;
    margin: 0 !important;
    font-family: "Wix Madefor Text", Sans-serif;
    line-height: 30px !important;
}

/* Sous-titre */
.amcc-carousel-conception-subtitle {
    font-size: 16px;
    line-height: 1.6;
}

/* Description */
.amcc-carousel-conception-description {
    flex: 1;
}

/* Contrôles de navigation */
.amcc-carousel-conception-controls {
    position: absolute;
    width: calc(100% - 65px);
    left: 30px;
    top: 210px;
    display: flex;
    justify-content: space-between;
    z-index: 10;
    pointer-events: none;
}

.amcc-carousel-conception-prev,
.amcc-carousel-conception-next {
    background-color: white !important;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 20;
    pointer-events: auto;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

/* Positionnement des boutons */
.amcc-carousel-conception-prev {
    margin-left: 275px;
    background-color: white !important;
}

.amcc-carousel-conception-next {
    margin-right: 268px;
    background-color: white !important;
}

.amcc-carousel-conception-prev:hover, .amcc-carousel-conception-next:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    background-color: white !important;
}

/* Flèches */
.arrow-left,
.arrow-right {
    position: relative;
    display: inline-block;
    width: 15px;
    height: 15px;
}

.arrow-left:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 3px;
    width: 12px;
    height: 12px;
    border-top: 3px solid #ef7e0f;
    border-left: 3px solid #ef7e0f;
    transform: translateY(-50%) rotate(-45deg);
}

.arrow-right:before {
    content: "";
    position: absolute;
    top: 50%;
    right: 3px;
    width: 12px;
    height: 12px;
    border-top: 3px solid #ef7e0f;
    border-right: 3px solid #ef7e0f;
    transform: translateY(-50%) rotate(45deg);
}

/* Fallback */
.amcc-carousel-conception-fallback {
    text-align: center;
    padding: 60px 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    border: 1px solid #ddd;
}

.amcc-carousel-conception-fallback h2 {
    color: #1F386A;
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 1200px) {
    .amcc-carousel-conception-slide {
        padding: 0 15px;
    }
}

@media (max-width: 992px) {
    .amcc-carousel-conception-slide {
        padding: 0 15px;
    }

    .amcc-carousel-conception-image-container {
        height: 350px;
    }

    .amcc-carousel-conception-title {
        font-size: 28px !important;
    }
}

@media (max-width: 768px) {
    .amcc-carousel-conception-slide {
        padding: 0 10px;
    }

    .amcc-carousel-conception-viewport {
        padding: 0 50px;
    }

    .amcc-carousel-conception-image-container {
        height: 300px;
    }

    .amcc-carousel-conception-info {
        flex-direction: column;
        gap: 20px;
        padding: 0;
    }

    .amcc-carousel-conception-left-content {
        flex: 1;
        width: 100%;
    }

    .amcc-carousel-conception-title {
        font-size: 24px !important;
    }

    .amcc-carousel-conception-controls {
        top: 79px;
        width: calc(100% - 60px);
    }

    .amcc-carousel-conception-prev,
    .amcc-carousel-conception-next {
        width: 40px;
        height: 40px;
        background-color: white !important;
    }

    .amcc-carousel-conception-prev {
        margin-left: -5px;
    }

    .amcc-carousel-conception-next {
        margin-right: -5px;
    }
}

@media (max-width: 480px) {
    .amcc-carousel-conception-slide {
        padding: 0 10px;
    }

    .amcc-carousel-conception-viewport {
        padding: 0;
    }

    .amcc-carousel-conception-image-container {
        height: 200px;
    }
}
