@import url("main.css");/*Import de la page de référence (header, nav, footer,...)*/

#texteEnTete h1{
    position: relative;
    animation-name: apparitionTitreH1;
    animation-duration: 4s;
}
@keyframes apparitionTitreH1{
    0%{
        top:-50px;
    }
    100%{
        top:0px;
    }
}
#texteEnTete h2{
    position: relative;
    animation-name: apparitionTitreH2;
    animation-duration: 4s;
}
@keyframes apparitionTitreH2{
    0%{
        top:65px;
    }
    100%{
        top:0px;
    }
}

/*Bandeau d'animation*/
#alerte{
    background-color:rgb(250,250,250);
}
#alerte .spinner-grow{
    margin-left: 10%;
    margin-right: 5%;
    display: inline-block;
}
article p{
    display: inline-block;
    animation-name: animationAlerte;
    animation-duration: 15s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}
@keyframes animationAlerte{
    0%{
        margin-left: 0px;
    }
    100%{
        margin-left: 28%;
    }
}

/*Texte sur image carousel*/
.carousel-caption{
    background-color: rgba(195,195,195,0.8);
    color:black;
    width:600px;
    border-radius: 20px;
    margin-left: auto;
    margin-right: auto;
}

/*Taille du carousel*/
.bd-example img
{
    min-height: 200px;
    max-height:450px;
    object-fit: cover;
}

/*Section actualités*/
#actualites iframe{
    width:100%;
    height:100%;
    min-height: 250px;
    border: 0;
}
#actualites{
    width: 80%;
    margin:auto;
    margin-top: 10px;
    border: 4px rgba(0,0,0,0.8) solid;
    border-radius: 10px;
}
#actualites .card-body{
    padding:0;
}

/*Section accès direct*/
#accesDirect{
    margin:50px 0 50px 0;
    padding:0;
    display: block;
    width: 100%;
    text-align: center;  
}

/*Bandeau titre accès direct*/
#accesDirect h4{
    margin:auto;
    border:3px rgba(0,0,0,0.8) solid;
    border-radius: 20px;
    width: 180px;
    transition:0.5s;
}
#accesDirect h4:hover{
    background-color: rgba(0,0,0,0.8);
    color:white;    
}
#accesDirect .card{
    border:0;
    display: inline-block;
    margin:20px 2% 0 2%;
}
#accesDirect .card img{
    /*Images identiques en taille*/
    border-radius: 50%;
    border:5px white solid;
    height:150px;
    width: 150px;
    margin-bottom: 20px;
}

/*Couleur de bordure d'images*/
#accesDirect #card1, #accesDirect #card3{
    border-color: rgb(90,160,100);
}
#accesDirect #card2, #accesDirect #card4{
    border-color: rgb(60,146,190);
}
#accesDirect .card-body{
    color:black;
    text-decoration:none;
}
/*Affichage au survol*/
.accesDirectPlus{
    position: absolute;
    left:45px;
    opacity: 0;
    transition:0.5s;
}
.accesDirectPlus:hover{
    opacity:0.8;
}

@media screen and (max-width : 1000px)
{
    /*Bandeau information*/
    #alerte .spinner-grow{
    margin: 0;
    }
    
    #actualites{
        width: 100%;
        margin-top: 10px;
        height:500px;
        overflow:auto;
    }
    #actualites .card {
        height:500px;
    }
    
    #accesDirect{
        margin-top: 20px;
    }
    #accesDirect h4{
        margin-bottom:10px;
    }
    #accesDirect .card{
        margin:0;
    }
    #accesDirect .card img{
        margin:0;
    }
    
}

.loadingEvent #texteEnTete h1,
.loadingEvent #texteEnTete h2,
.loadingEvent p{
    animation: 0;
}	