/* ===== TITRE & TEXTE ===== */

.texte {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px 30px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.texte p {
    margin: 15px 0;
    text-align: justify;
}

/* ===== CARROUSEL (Desktop) ===== */
.carousel-container {
    position: relative;
    margin: 50px auto;
    width: 100%;
    max-width: 1000px;
    height: 500px;
}

.carousel {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.carousel img {
    position: absolute;
    max-width: 500px;
    max-height: 350px;
    object-fit: contain;
    background: #000;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    transition: transform 0.7s ease, opacity 0.7s ease;
    opacity: 0;
    z-index: 0;
}

.carousel img.active {
    transform: translateX(0) scale(1.2);
    opacity: 1;
    z-index: 5;
}

.carousel img.left1 { transform: translateX(-250px) scale(0.9); opacity: 0.8; z-index: 4; }
.carousel img.left2 { transform: translateX(-450px) scale(0.7); opacity: 0.5; z-index: 3; }
.carousel img.right1 { transform: translateX(250px) scale(0.9); opacity: 0.8; z-index: 4; }
.carousel img.right2 { transform: translateX(450px) scale(0.7); opacity: 0.5; z-index: 3; }

.btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    font-size: 30px;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
}

.btn.prev { left: 10px; }
.btn.next { right: 10px; }

/* ===== RESPONSIVE MOBILE (specifique a cette page) ===== */
@media (max-width: 768px) {

    .carousel-container {
        height: 350px;
        margin: 20px auto;
    }

    .carousel img {
        max-width: 80%;
    }

    .carousel img.left1 { transform: translateX(-100px) scale(0.8); opacity: 0.4; }
    .carousel img.right1 { transform: translateX(100px) scale(0.8); opacity: 0.4; }
    .carousel img.left2, .carousel img.right2 { display: none; }

    .carousel img.active { transform: translateX(0) scale(1.1); }

    .texte {
        padding: 15px;
        margin: 20px 0;
    }

    .texte p { text-align: left; }
}
