
    /* Police */
    @font-face {
    font-family: Poppins-thin;
    src: url(../police/Poppins/Poppins-Thin.ttf);

    }
    @font-face {
    font-family: Poppins-light;
    src: url(../police/Poppins/Poppins-Light.ttf);
    }
    @font-face {
    font-family: Poppins-meduim;
    src: url(../police/Poppins/Poppins-Medium.ttf);
    }
    @font-face {
    font-family: Poppins-regular;
    src: url(../police/Poppins/Poppins-Regular.ttf);
    }
    @font-face {
    font-family: Poppins-semibold;
    src: url(../police/Poppins/Poppins-SemiBold.ttf);
    }
    @font-face {
    font-family: Poppins-ExtraLight;
    src: url(../police/Poppins/Poppins-ExtraLight.ttf);
    }

    :root {
    --font-paragraphe2:Poppins-ExtraLight;
    --font-normal: Poppins-semibold;
    --font-titre: Poppins-regular;
    --font-bold: Poppins-meduim;
    --font-paragraphe: Poppins-light;
    --font-titre3: Poppins-thin;
    }


:root {
    /* --bacground: #7e5656; 
    --bacground-hover: #b23333;
    --Couleur-Background: #4c5a7d;
    --Couleur-Titre: #00c8d6;
    --Couleur-Texte: #f5f6fa;
    --Couleur-body: #f5f6fa;
    --Couleur-hover: #00b783; 
    --Couleur-logo:#eea412;
    --couleur-body: #f5f6fa;
    --Couleur-drop: #999; */


    --Couleur-Titre: #ff5b00;
    --Couleur-bouton: #00c8d6;
    --Couleur-bouton-hover: #00b783;
}

/* --- CAROUSEL --- */
.carousel5 {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 600px;
    margin-left: 15px;
    margin-right: 15px;
    margin-bottom: 0px;
    margin-top: 12px;
    border-radius: 15px;
    background: #D5F7FA;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease-in-out;
}

.carousel5-inner {
    display: flex;
    transition: transform 0.8s ease-in-out;
    width: 100%;
}

.carousel5-item {
    flex: 0 0 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    margin-top: 5%;
    padding: 0px 4%;
    gap: 30px;
    z-index: 99999;
}



.carousel5-item.info {
    position: relative; /* positionnement contextuel pour le ::before */
    overflow: hidden;
}

.carousel5-item.info::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* background-image: url('/img/Carousel/fondinfo.png'); */
    width: 700px;
    height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.1;
    z-index: 0; /* Derrière le contenu */
}

.carousel5-item.info > * {
    position: relative; /* s'assurer que le contenu est au-dessus */
    z-index: 1;
}

/* IMAGE */
.carousel5-image {
    flex: 1 1 30%;
    display: flex;
    justify-content: flex-start;
}

.carousel5-image img {
    
    width: 100%;
    max-width: 100%;
    height: auto;
    opacity: 0;
    transform-origin: top;
}

.carousel5-item.active .carousel5-image img {
    animation: revealFromTop 2s ease-in-out forwards;
}

/* TEXTE */
.carousel5-content {
    flex: 1 1 50%;
    text-align: center;
    top: 0;
}

.carousel5-content h1 {
    font-size: 3rem;
    color: #ff5b00;
    font-family: var(--font-titre);
    font-weight: 300;
    margin-bottom: 4px;
    margin-top: 40px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.carousel5-item.active .carousel5-content h1 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.carousel5-content p {
    font-family: var(--font-paragraphe);
    font-size: 1.3rem;
    color: #426fb4;
    /* color: #4a6fa5; */
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.carousel5-item.active .carousel5-content p {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.carousel5-content .carousel5-btn {
    display: inline-block;
    background: var(--Couleur-bouton);
    color: #fff;
    font-family: var(--font-titre);
    padding: 10px 15px;
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 1px;
    border-radius: 6px;
    text-decoration: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
    margin-bottom: 50px;
}

.carousel5-item.active .carousel5-content .carousel5-btn {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.8s;
}

.carousel5-content .carousel5-btn:hover {
    background: var(--Couleur-bouton-hover);
}

/* BOUTONS NAVIGATION */
.carousel5-buttons {
    position: absolute;
    bottom: 20px;
    left: 70%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel5-btn-prev,
.carousel5-btn-next {
    background: var(--Couleur-Titre);
    color: #fff;
    border: none;
    padding: 10px 18px;
    cursor: pointer;
    font-size: 0.9rem;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.carousel5-btn-prev:hover,
.carousel5-btn-next:hover {
    background: var(--Couleur-bouton-hover);
}

/* ANIMATION IMAGE */
@keyframes revealFromTop {
    0% {
        opacity: 0;
        clip-path: inset(0 0 100% 0);
    }
    25% {
        opacity: 1;
        clip-path: inset(0 0 75% 0);
    }
    50% {
        opacity: 2;
        clip-path: inset(0 0 50% 0);
    }
    75% {
        opacity: 3;
        clip-path: inset(0 0 25% 0);
    }
    100% {
        opacity: 4;
        clip-path: inset(0 0 0 0);
    }
}

/* ====== RESPONSIVE ====== */
/* responsive bouton */
@media (max-width: 980px) {
    .carousel5-buttons {
        top: 50%; 
        bottom: auto; 
        left: 0;
        right: 0;
        width: 100%;
        transform: translateY(-50%);
        display: flex;
        justify-content: space-between;
        padding: 0 10px;
        gap: 0;
    }

    .carousel5-content .carousel5-btn {
    padding: 7px 12px;
    font-size: 1rem;
    font-weight: 400;
}

}



@media (max-width: 980px) {

    .carousel5 {
        height: 500px;
    }

    .carousel5-item {
        margin-top: 5%;
    }

    .carousel5-content h1 {
        font-size: 2rem;
    }

    .carousel5-content p {
        font-size: 1.2rem;
    }

    .carousel5-btn-prev,
    .carousel5-btn-next {
        font-size: 1rem;
        padding: 7px 14px;
        border-radius: 50%;
    }
}


/* 
@media (max-width: 1100px) {

    .carousel5 {
        height: 600px;
    }

    .carousel5-item {
        margin-top: 7%;
    }

    .carousel5-content h1 {
        font-size: 2rem;
    }

    .carousel5-content p {
        font-size: 1.2rem;
    }
} */


@media (max-width: 838px) {

    .carousel5 {
        flex-direction: column;
        height: 715px;
    }

    .carousel5-item {
        flex-direction: column;
        justify-content: center;
        margin-top: 10%;
    }

    .carousel5-content h1 {
        font-size: 2rem;
        margin-top: -20px;
    }

    .carousel5-content p {
        font-size: 1rem;
    }

    .carousel5-image img {
        width: 320px;
    }
}

@media (max-width: 715px) {
    .carousel5 {
        height: 750px;
    }
}

@media (max-width: 600px) {

    .carousel5 {
        flex-direction: column;
        height: 760px;
    }

    .carousel5-item {
        flex-direction: column;
        justify-content: center;
        margin-top: 13%;
    }

}

@media (max-width: 520px) {

    .carousel5 {
        flex-direction: column;
        height: 780px;
    }

}


@media (max-width: 435px) {

    .carousel5 {
        flex-direction: column;
        height: 810px;
    }

}

@media (max-width: 400px) {

    .carousel5 {
        flex-direction: column;
        height: 830px;
    }

}


















