.conteneurPrincipal {
    position: relative;
    max-width: 90%;
    border: .5px solid rgba(152, 200, 255, 0.626);
    box-shadow: 0 4px 12px rgba(66, 165, 245, 0.4);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
    border-radius: 15px;
}

.boiteDefilante {
    overflow: hidden;
    border-radius: 15px;
    background: linear-gradient(to bottom, white, white, white, rgb(245, 252, 255));
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.ensembleFiches {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.fiche {
    min-width: 100%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

@media (min-width: 768px) {
    .fiche {
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
    }
    .conteneurPrincipal {
        max-width: 77%;
    }
    .separateur {
        display: block;
        background: linear-gradient(to bottom, rgb(255, 140, 0), rgb(255, 190, 110), rgb(255, 140, 0));
        height: 40%;
        position: relative;
        border-radius: 50px;
        width: 2px;
        animation: pulse-line 2s ease-in-out infinite;
    }
}

.fiche img {
    width: 100%;
    max-width: 300px;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(116, 179, 255, 0.671);
    box-shadow: 0 6px 15px rgba(188, 218, 255, 0.671);
}

@media (max-width: 768px) {
    .fiche img {
        width: 100%;
        max-width: 300px;
        height: auto;
        object-fit: cover;
        border-radius: 12px;
        border: 1px solid rgba(116, 179, 255, 0.671);
        box-shadow: 0 6px 15px rgba(188, 218, 255, 0.671);
    }
}

.contenuFiche {
    max-width: 500px;
    min-height: 250px;
    max-height: 260px;
    overflow-y: auto;
    scrollbar-width: none;
}

.contenuFiche h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #FFA500, #ffa144);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    display: inline-block;
}

.contenuFiche h2::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50%; /* longueur du soulignement */
    height: 3px;
    background: linear-gradient(90deg, #FFA500, #CC6600);
    border-radius: 2px;
}

.contenuFiche p {
    font-size: 1rem;
    color: #4a5568;
    line-height: 1.6;
    text-shadow: 0px 0px 3px rgba(0, 0, 0, 0.3);
}

.boutonsExterieurs {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    z-index: 10;
}

.boutonsExterieurs button {
    background-color: transparent;
    color: #3b82f6;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

#btnGauche {
    padding: 4px;
    background: linear-gradient(to right, #1742923a, transparent);
    animation: slide-to-left 2s ease-in-out infinite;
}

#btnDroite {
    background: linear-gradient(to right, transparent, #1742923a);
    animation: slide-to-right 2s ease-in-out infinite;
}

.boutonsExterieurs button:hover {
    transform: scale(1.2);
}

.indicateurs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    margin-bottom: 20px;
}

.pointeur {
    width: 10px;
    height: 10px;
    background-color: #e2e8f0;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pointeur.actif {
    background-color: #3b82f6;
    width: 14px;
    height: 14px;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.4);
}

.separateur {
    display: block;
}

.separateur-bas {
    margin: auto;
    display: block;
    background-color: rgb(221, 221, 221);
    height: 1px;
    position: relative;
    border-radius: 50px;
    width: 10%;
}

@keyframes pulse-line {
    0% { height: 35%; }
    50% { height: 40%; }
    100% { height: 35%; }
}

@keyframes slide-to-left {
    0% { transform: translateX(0px) scale(.7); border-top-left-radius: 2px; border-bottom-left-radius: 2px;}
    50% { transform: translateX(-8px) scale(.8); border-top-left-radius: 7px; border-bottom-left-radius: 7px;}
    100% { transform: translateX(0px) scale(.7); border-top-left-radius: 2px; border-bottom-left-radius: 2px;}
}

@keyframes slide-to-right {
    0% { transform: translateX(0px) scale(.7); border-top-left-radius: 2px; border-bottom-left-radius: 2px;}
    50% { transform: translateX( 8px) scale(.8); border-bottom-right-radius: 7px; border-top-right-radius: 7px;}
    100% { transform: translateX(0px) scale(.7); border-top-left-radius: 2px; border-bottom-left-radius: 2px;}
}

@media (max-width: 768px) {
    .contenuFiche h2 {
        font-size: 1.3rem;
        margin-bottom: 15px;
        background: linear-gradient(90deg, #FFA500, #ffa144);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
        position: relative;
        display: inline-block;
    }
}