/* ============================================ */
/* texte du carrousel*/
.body-section {
    background: url('../img/fond.png') no-repeat center center;
}
.team-header {
    text-align: center; 
    padding: 0 20px;
    margin-bottom: 40px;
}

.team-title {
    font-size: 3.5em; 
    font-weight: 700;
    font-family: 'Poppins', sans-serif; 
    color: white;
    margin-bottom: 10px;
}

.team-subtitle {
    font-size: 1.2em; 
    font-weight: 400;
    font-family: 'Poppins', sans-serif;
    color: #A0A0A0; 
    max-width: 800px;
    margin: 0 auto; 
    line-height: 1.6;
}

/* ============================================ */
/* style du carrousel */

.carousel-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px;
    position: relative;
    overflow: hidden; 
    mask-image: linear-gradient(to right, white 0%, white 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, white 0%, white 95%, transparent 100%); 
}

.carousel {
    position: relative;
    overflow: hidden;
    background: transparent;
    padding: 0; 
}

.carousel-track {
    display: flex;
    transition: transform 1.0s ease-in-out; 
    width: max-content; 
    gap: 30px; 
    padding: 40px 0; 
}

.carousel-slide {
    flex: 0 0 350px; 
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    background: transparent;
}

.member-image {
    width: 100%; 
    height: 100%; 
    border-radius: 20px; 
    object-fit: contain; 
    object-position: center; 
    background: url('../img/header.jpg') no-repeat center center;
    background-size: cover; 
    filter: brightness(60%);
    padding: 0; 
}

.member-info {
    text-align: left; 
    max-width: none;
    color: white;
    padding: 15px 0 0 0;
}

.member-name {
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 5px; 
    text-shadow: none;
}

.member-role {
    font-size: 1em; 
    color: #A0A0A0; 
    margin-bottom: 0;
    font-weight: 400;
}

.member-description {
    display: none; 
}

.carousel-indicators, .indicator {
    display: none;
}

/* ============================================ */
/* Boutons de navigation */

.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    pointer-events: none;
    z-index: 10;
}

.carousel-btn {
    pointer-events: all;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5em;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 50px;
    padding: 0;
    margin: 0;
    font-family: 'Courier New', monospace;
    text-align: center;
    font-weight: bold;
}

.carousel-btn#prevBtn {
    padding-left: 3px;
}

.carousel-btn#nextBtn {
    padding-right: 3px;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.carousel-btn:active {
    transform: scale(0.95);
}

/* ============================================ */
/* Section Instagram */
.instagram-section {
    text-align: center;
    padding: 65px 20px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.instagram-title {
    font-size: 2.5em;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    color: white;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo_insta{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20%;
    height: 20%;
    padding-top: 70px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    filter: brightness(80%);
}

.logo_insta:hover {
    transform: scale(1.1);
    filter: brightness(95%);
}

/* ============================================ */
/* RESPONSIVE - GRANDS ÉCRANS (max-width: 1400px) */
/* ============================================ */
@media (max-width: 1400px) {
    .carousel-container {
        max-width: 1200px;
        padding: 50px 20px;
    }
    
    .carousel-slide {
        flex: 0 0 320px;
    }
    
    .carousel-track {
        gap: 25px;
    }
}

/* ============================================ */
/* RESPONSIVE - LAPTOPS (max-width: 1200px) */
/* ============================================ */
@media (max-width: 1200px) {
    .team-title {
        font-size: 3.2em;
    }
    
    .team-subtitle {
        font-size: 1.1em;
        max-width: 700px;
    }
    
    .carousel-container {
        max-width: 1000px;
        padding: 45px 20px;
    }
    
    .carousel-slide {
        flex: 0 0 300px; 
    }
    
    .carousel-track {
        gap: 25px;
    }
    
    .carousel-btn {
        width: 45px;
        height: 45px;
        font-size: 1.8em;
    }
    
    .instagram-title {
        font-size: 2.2em;
    }
    
    .logo_insta {
        width: 22%;
    }
}

/* ============================================ */
/* RESPONSIVE - PETITS LAPTOPS (max-width: 1024px) */
/* ============================================ */
@media (max-width: 1024px) {
    .team-title {
        font-size: 3em;
    }
    
    .team-subtitle {
        font-size: 1.05em;
        max-width: 650px;
    }
    
    .carousel-container {
        padding: 40px 15px;
    }
    
    .carousel-slide {
        flex: 0 0 280px;
    }
    
    .carousel-track {
        gap: 22px;
        padding: 35px 0;
    }
    
    .member-name {
        font-size: 1.4em;
    }
    
    .member-role {
        font-size: 0.95em;
    }
    
    .instagram-section {
        padding: 55px 20px 35px;
    }
    
    .instagram-title {
        font-size: 2em;
    }
    
    .logo_insta {
        width: 25%;
        padding-top: 60px;
    }
}

/* ============================================ */
/* RESPONSIVE - TABLETTES PORTRAIT (max-width: 900px) */
/* ============================================ */
@media (max-width: 900px) {
    .team-title {
        font-size: 2.8em;
    }
    
    .team-subtitle {
        font-size: 1em;
        max-width: 600px;
    }
    
    .carousel-container {
        padding: 35px 15px;
    }
    
    .carousel-slide {
        flex: 0 0 260px;
    }
    
    .carousel-track {
        gap: 20px;
        padding: 30px 0;
    }
    
    .carousel-btn {
        width: 42px;
        height: 42px;
        font-size: 1.7em;
    }
    
    .instagram-title {
        font-size: 1.9em;
    }
    
    .logo_insta {
        width: 28%;
    }
}

/* ============================================ */
/* RESPONSIVE - TABLETTES (max-width: 768px) */
/* ============================================ */
@media (max-width: 768px) {
    .team-title {
        font-size: 2.6em;
    }
    
    .team-subtitle {
        font-size: 0.95em;
        max-width: 550px;
        padding: 0 15px;
    }
    
    .carousel-container {
        padding: 30px 10px;
        mask-image: linear-gradient(to right, white 0%, white 90%, transparent 100%);
        -webkit-mask-image: linear-gradient(to right, white 0%, white 90%, transparent 100%);
    }
    
    .carousel-track {
        gap: 25px;
        padding: 25px 0;
    }

    .carousel-slide {
        flex: 0 0 320px;
    }
    
    .member-image {
        border-radius: 15px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.3em;
    }
    
    .member-name {
        font-size: 1.4em;
    }
    
    .member-role {
        font-size: 0.95em;
    }
    
    .instagram-section {
        padding: 45px 20px 30px;
    }
    
    .instagram-title {
        font-size: 1.8em;
    }
    
    .logo_insta {
        width: 30%;
        padding-top: 50px;
    }
}

/* ============================================ */
/* RESPONSIVE - MOBILE LARGE (max-width: 600px) */
/* ============================================ */
@media (max-width: 600px) {
    .team-title {
        font-size: 2.4em;
    }
    
    .team-subtitle {
        font-size: 0.9em;
        max-width: 500px;
    }
    
    .carousel-container {
        padding: 25px 10px;
        mask-image: linear-gradient(to right, white 0%, white 85%, transparent 100%);
        -webkit-mask-image: linear-gradient(to right, white 0%, white 85%, transparent 100%);
    }
    
    .carousel-slide {
        flex: 0 0 280px;
    }
    
    .member-image {
        border-radius: 12px;
    }
    
    .carousel-track {
        gap: 20px;
        padding: 20px 0;
    }
    
    .carousel-btn {
        width: 38px;
        height: 38px;
        font-size: 1.2em;
    }
    
    .member-name {
        font-size: 1.3em;
    }
    
    .member-role {
        font-size: 0.9em;
    }
    
    .instagram-title {
        font-size: 1.6em;
    }
    
    .logo_insta {
        width: 35%;
    }
}

/* ============================================ */
/* RESPONSIVE - MOBILE STANDARD (max-width: 500px) */
/* ============================================ */
@media (max-width: 500px) {
    .team-title {
        font-size: 2.2em; 
    }

    .team-subtitle {
        font-size: 0.85em;
        max-width: 450px;
    }

    .carousel-container {
        padding: 20px 10px;
        mask-image: linear-gradient(to right, white 0%, white 80%, transparent 100%);
        -webkit-mask-image: linear-gradient(to right, white 0%, white 80%, transparent 100%);
    }

    .carousel-slide {
        flex: 0 0 260px;
    }
    
    .carousel-track {
        gap: 18px;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1.1em;
    }

    .member-name {
        font-size: 1.25em;
    }

    .member-role {
        font-size: 0.9em;
    }
    
    .instagram-section {
        padding: 35px 15px 25px;
    }
    
    .instagram-title {
        font-size: 1.5em;
    }
    
    .logo_insta {
        width: 40%;
        padding-top: 40px;
    }
}

/* ============================================ */
/* RESPONSIVE - MOBILE PETIT (max-width: 400px) */
/* ============================================ */
@media (max-width: 400px) {
    .team-title {
        font-size: 2em;
    }

    .team-subtitle {
        font-size: 0.8em;
        max-width: 400px;
    }

    .carousel-container {
        mask-image: linear-gradient(to right, white 0%, white 75%, transparent 100%);
        -webkit-mask-image: linear-gradient(to right, white 0%, white 75%, transparent 100%);
    }

    .carousel-slide {
        flex: 0 0 240px;
    }
    
    .carousel-track {
        gap: 15px;
    }
    
    .carousel-btn {
        width: 32px;
        height: 32px;
        font-size: 1em;
    }

    .member-name {
        font-size: 1.2em;
    }

    .member-role {
        font-size: 0.85em;
    }
    
    .instagram-title {
        font-size: 1.3em;
    }
    
    .logo_insta {
        width: 45%;
        padding-top: 35px;
    }
}