html, body {
    width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/*****************/
/*    Accueil    */
/*****************/

/* Ajout des images dans une seule animation avec un décalage progressif */

@media screen and (max-width: 767px) {
    @keyframes slideshow {

        0%,
        100% {
            background-image: url("../img/accueil/accueil-1.jpg");
            opacity: 1;
        }
    }
}

@media screen and (min-width: 768px) {
    @keyframes slideshow {
        0%{
            background-image: url("../img/accueil/accueil-1.jpg");
            opacity: 1;
        }

      30% {
            background-image: url("../img/accueil/accueil-1.jpg");
            opacity: 1;
        }

        33% {
            background-image: url("../img/accueil/accueil-1.jpg");
            opacity: 0.5;
        }

        34% {
            background-image: url("../img/accueil/accueil_2.jpg");
            opacity: 0.5;
        }

        36% {
            background-image: url("../img/accueil/accueil_2.jpg");
            opacity: 1;
        }

        63% {
            background-image: url("../img/accueil/accueil_2.jpg");
            opacity: 1;
        }

        66% {
            background-image: url("../img/accueil/accueil_2.jpg");
            opacity: 0.5;
        }

        67% {
            background-image: url("../img/accueil/accueil_4.jpg");
            opacity: 0.5;
        }

        69% {
            background-image: url("../img/accueil/accueil_4.jpg");
            opacity: 1;
        }

        96% {
            background-image: url("../img/accueil/accueil_4.jpg");
            opacity: 1;
        }

        100% {
            background-image: url("../img/accueil/accueil_4.jpg");
            opacity: 0.5;
        }
    }
}

#img_accueil {
    width: 10%;
    padding: 10px;
	
}

/* #img_accueil_slogan {
    height: 50%;
} */

#accueil {
    position: relative;
    background: rgba(255, 255, 255, 0.4);
    animation: slideshow 15s infinite linear;
    background-size: cover;
    background-position: center;
    height: 91vh;
    width: 100%;
    overflow: hidden;
}

#bandeau_ss_menu_hide {
    display: none;
    position: fixed;
    top: 0px;
}

#bandeau_ss_menu,
#bandeau_ss_menu_hide {
    background: #1e2528;
    color: #fff;
    font-size: 20px;
    z-index: 99;
    width: 100%;
    position: fixed;
    bottom: 0px;
    overflow: hidden;
    white-space: nowrap;
}

#bandeau_ss_menu .icone {
    height: 55px;
}

#bandeau_ss_menu .ss_menu,
#bandeau_ss_menu_hide .ss_menu {
    z-index: 1;
    background: #1e2528;
    padding-top: 4px;
    text-align: center;
    display: inline-block;
    width: 16%;
    cursor: pointer;
}

#rubrique_accueil {
    position: relative;
}

#rubrique_accueil .contenu {
    position: relative;
    width: 100%;
    overflow: hidden;
    max-width: 100vw;
    margin: 0 auto;
}

#rubrique_accueil .bandeau_desactive {
    background: rgba(0, 0, 0, 0.8);
    z-index: 2;
    position: absolute;
    top: 0px;
    left: 0px;
    height: 100%;
    width: 100%;
}

#rubrique_accueil .bandeau {
    cursor: pointer;
}

#rubrique_accueil .bloc_grand,
#rubrique_accueil .bloc_petit {
    /* display: inline-block; */
    display: inline-block;
    margin: auto;
}

#rubrique_accueil .bloc_grand {
    width: 59%;
}

#rubrique_accueil .bloc_petit {
    width: 40%;
}

#rubrique_accueil .bloc_information,
#rubrique_accueil .bandeau {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

#rubrique_accueil .image_droite {
    float: right;
    /* margin: auto; */

}

#rubrique_accueil .image_gauche {
    float: left;
    /* margin: auto; */
}

#rubrique_accueil .titre {
    font-size: 60px;
    text-align: center;
    margin-top: 22%;
    letter-spacing: 3px;
}

#rubrique_accueil .texte,
.texte_bandeau {
    font-size: 20px;
    text-align: center;
    margin-top: 28px;
    line-height: 28px;
    letter-spacing: 2px;
}

#rubrique_accueil .point_bleu {
    margin-top: 28px;
}


/* RESPONSIVE */
@media screen and (max-width: 1728px) {
    #accueil {
        background-size: 134%;
        background-position: center;
    }
}

@media screen and (max-width: 1481px) {
    #rubrique_accueil .titre {
        font-size: 50px;
    }

    #rubrique_accueil .texte {
        font-size: 15px;
    }
}


@media screen and (max-width: 1301px) {
    #accueil {
        background-size: 198%;
        background-position: center;
    }
}

@media screen and (max-width: 1286px) {
    #rubrique_accueil .titre {
        font-size: 40px;
        margin-top: 17%;
    }

    #rubrique_accueil .texte {
        font-size: 13px;
    }
}

@media screen and (max-width: 1140px) {
    #bandeau_ss_menu .ss_menu .texte {
        font-size: 16px;
    }
}

@media screen and (max-width: 1023px) {
    #rubrique_accueil .titre {
        font-size: 30px;
        margin-top: 10%;
    }

    #rubrique_accueil .texte {
        font-size: 13px;
    }
}

@media screen and (max-width: 965px) {
    #rubrique_accueil .bloc_grand {
        width: 50%;
    }

    #rubrique_accueil .bloc_petit {
        width: 50%;
    }

    #rubrique_accueil .titre {
        font-size: 20px;
        margin-top: 8%;
    }

    #rubrique_accueil .texte {
        margin-top: 0px;
    }

    #rubrique_accueil .point_bleu {
        margin-top: 15px;
        margin-bottom: 15px;
        width: 15px;
        height: 15px;
    }
}

@media screen and (max-width: 896px) {
    #bandeau_ss_menu .ss_menu .texte {
        font-size: 13px;
    }
}

@media screen and (max-width: 874px) {
    #accueil {
        background-size: 279%;
        background-position: center;
    }
}

@media screen and (max-width: 746px) {
    #bandeau_ss_menu .ss_menu .texte {
        display: none;
        width: 100%;
    }

    #rubrique_accueil .titre {
        font-size: 20px;
        margin-top: 3%;
    }

    #rubrique_accueil .bloc_grand {
        width: 0%;
        display: none;
    }

    #rubrique_accueil .bloc_petit {
        width: 100%;
    }

    #rubrique_accueil .bandeau_desactive {
        display: none;
    }

    #rubrique_accueil .bloc_information {
        border-bottom: 1px solid #1E2528;
    }
}

@media screen and (max-width: 693px) {
    #bandeau_ss_menu .ss_menu .icone img {
        width: 30px;
    }

    #bandeau_ss_menu .ss_menu,
    #bandeau_ss_menu_hide .ss_menu {
        width: 15%;
    }

    #bandeau_ss_menu,
    #bandeau_ss_menu_hide {
        height: 42px;
    }

    #bandeau_ss_menu .icone {
        height: 38px;
    }
}

@media screen and (min-width: 642px) {

    .nav-bar-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        background-color: #ffffff93 !important; 
        background-repeat: no-repeat;
        position: fixed;
        top: 0px;
        z-index: 200;
        flex-direction: column-reverse;
    }

    .nav-bar-header #img_accueil_slogan {
        height: 30px !important;
    }

    .nav-bar-header #img_accueil {
        /* padding-block-end: 35px;
        max-height: 130px; */
        max-height: 130px;
        margin: auto;
    }
    
}

@media screen and (max-width: 641px) {
    #accueil {
        animation: slideshow 15s infinite linear;
        background-color: #fff;
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        min-height: 95vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #img_accueil_slogan {
        top: 98px;
        max-height: 0.8rem !important;
    }

    #img_accueil {
        text-align: center;
        margin: auto;
        padding: 10px 0px 23px 0px !important;
        height: 90px;
    }

    #img_accueil_slogan_pc {
        display: none;
    }

}



@media screen and (max-width: 478px) {
    #rubrique_accueil .titre {
        font-size: 17px;
    }
}

@media screen and (max-width: 457px) {
    #accueil {
        background-position: center bottom;
    }
}

@media screen and (max-width: 331px) {
    #accueil {
        background-size: 729%;
        background-position: center bottom;
    }
}


.bandeau {
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s ease, box-shadow 0.4s ease, filter 0.4s ease;
    background: #f9f9f9;
    opacity: 0.5;
    filter: grayscale(100%);
}

.bandeau.visible {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.05);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.bandeau .bloc_information {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    transition: background 0.4s ease;
    position: relative;
    z-index: 1;
}

.bandeau.visible .bloc_information {
    background: rgba(255, 255, 255, 1);
}

.bloc_grand {
    -webkit-box-shadow: -10px 0px 13px -7px #000000, 10px 0px 13px -7px #000000, 5px 5px 15px 5px rgba(0, 0, 0, 0);
    box-shadow: -10px 0px 13px -7px #000000, 10px 0px 13px -7px #000000, 5px 5px 15px 5px rgba(0, 0, 0, 0);
    border-radius: 15px;
    transform: scale(1.2);
    width: 50vw !important;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.bandeau.visible .bloc_grand {
    transform: scale(1.1);
    opacity: 0.8;
}

.bandeau::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    clip-path: ellipse(80% 80% at 50% 50%);
    transition: clip-path 0.4s ease;
    z-index: 0;
}

.bandeau.visible::before {
    clip-path: ellipse(0% 0% at 50% 50%);
}

.bandeau .bandeau_desactive {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    text-align: center;
    border-radius: 15px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.bandeau.not-visible .bandeau_desactive {
    opacity: 0;
}

.titre {
    font-size: 1.6em;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.texte_bandeau {
    color: #555;
    line-height: 1.7;
    margin-top: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.bandeau.visible .texte_bandeau {
    opacity: 1;
    transform: translateY(0);
}



.nav-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: #ffffff93;
    background-repeat: no-repeat;
    position: fixed;
    top: 0px;
    z-index: 10000;
}

#img_accueil {
    max-height: 80px;
    width: auto;
    padding: 1rem;
}

#img_accueil_slogan {
    max-height: 40px;
    width: auto;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* Assurez-vous que le menu occupe l'espace nécessaire à droite */
.nav-bar-header> :last-child {
    margin-left: auto;
}

#container_footer {
    z-index: 9999;
    position: absolute;
    width: 100%;
}