/* import général*/
@import url(/CSS/general.css);

/*import header */
@import url(/CSS/header.css);

/* import footer */ 
@import url(/CSS/footer.css);

/* main */

/* index.html - section actu carousel */

#actu-carousel{
    padding-top: 5rem;
    z-index: 1;
    padding-bottom: 2rem;
}

.diapo{
    width: 100vw;
    height: 467px;
}
    
h3{
    margin: 0;
    padding: 0;
}

#news-header {
    background-color: #37474F;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    color: #fff;
    display: table;
    height: 21%;
}

#news-header a {
    display: table-cell;
    text-decoration: none;
    vertical-align: middle;
}

#news-header a h2 {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-decoration: none;
    height: 21%;
    color: #fff;
}

a.link-news {
    height: 19.75%;
    max-height: 20%;
    padding: 0;
}

.link-news .news-container {
    height: 100%;
    width: 100%;
}

.news {
    height: 100%;
    overflow: hidden;
    position: relative;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -ms-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

.news .title, .news .description {
    display: table;
    height: 100%;
    left: 0;
    margin: 0;
    position: absolute;
    width: 100%;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -ms-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

.news .title {
    text-transform: uppercase;
    font-weight: bold;
}

.news .title h2, .news .description p {
    display: table-cell;
    vertical-align: middle;
}

.news .title h2 {
    font-size: 1rem;
    margin: 0;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
}

.list-group .list-group-item-action:hover {
    background-color: #adb5bd;
}

.list-group .list-group-item-action * {
    color: #37474F;
}

.list-group .list-group-item-action:hover * {
    color: white;
}

.news:hover .title {
    margin-top: -100%;
}

.news .description {
    position: relative;
    font-weight: normal;
    line-height: 22px;
    opacity: 0;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -ms-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

.news .description p {
  height: 100px;
    margin: 0;
    overflow: hidden;
}

.news:hover .description {
    opacity: 1;
}

.hidden-mobile{
    display: none!important;
} 

/* ecran a partir de 767 */

@media screen and (min-width:767px){
    .hidden-mobile{
        display: block!important;
    }
}

@media screen and (min-width:1025px){
    #actu-carousel{
        display: flex;
    }

    #carouselExampleCaptions{
        flex: 3;
        margin: 0;
        padding: 0;
    }

    .diapo{
        width: 100%;
        height: 75vh;
    }

    #actualites{
        flex: 1;
        margin: 0;
        padding: 0;
    }

    .news .description p {
        height: 100%;
        margin: 0;
        overflow: hidden;
    }

}

.carousel-caption{
    background: rgba(155, 124, 115, 0.75);
    border-radius: 3px;
}

.ecole-bold{
    font-weight: bold;
    font-size: 1.2rem;
    color: #725233;
}

/* index.html - section description école*/

#description-ecole{
    color:#68991a;
    padding-top: 2rem;
    padding-bottom: 2rem;
    font-weight: bold;
}

#rubrique-ecole article{
    margin: 1rem;
    border: 1px solid black;
    border-radius: 3px;
    padding: 1rem;
    background-color: white;
    color: #52751a;
    box-shadow:  5px 5px 20px black;
    transition:  background-color 2s, transform 2s;
}

#rubrique-ecole article:hover{
    transform: scale(1.1);
    background-color: #9b7c73;
    color: #fff;
    margin: 2rem;
}

article .icon{
    text-align: center;
    font-size: 2rem;
}

/* pour les écrans à partir des tablettes */
@media screen and (min-width: 767px) {
    #rubrique-ecole{
        display: flex;
    }

    #rubrique-ecole article{
        flex: 1;
    }
}

/* Alghazali c'est ... */

#alghazali-cest{
    background: rgba(104, 153, 26,0.7);
    color: #fff;
    padding: 1rem 0;
}

#alghazali-cest h2{
    text-decoration: none;
}

#container-alghazali-cest p {
    font-size: 1.4rem;
    text-align: center;
    padding: 3rem;
}

@media screen and (min-width:1024px){
    #container-alghazali-cest{
        display: flex;
    }

    #container-alghazali-cest p {
        flex: 1;
        padding: 3rem 0;
    }

}


/* index.html -  section pourquoi ce site web */

#pourquoi-ce-site-web{
    padding: 3rem;
    color:  #9b7c73d2;
    font-size: 1.4rem;
    padding: 1rem;
    width: 80vw;
    margin: 0 auto;
}

#pourquoi-ce-site-web p{
    font-size: 1rem;
}

#pourquoi-ce-site-web h3, #pourquoi-ce-site-web h2{
    font-size: 1.8rem;
    text-decoration: none;
    padding: 0.5rem 0;
    color: #68991a;
}

#pourquoi-ce-site-web h2{
    font-size: 2.5rem;
}

/* On parle de nous */

#container-on-parle-de-nous{
    display: flex;
    flex-direction: column;
}

#container-on-parle-de-nous img{
    display: block;
    margin: 1rem auto;
    max-width: 90%;
    max-height: 90%;
}


@media screen and (min-width:768px){
    #container-on-parle-de-nous{
        display: flex;
        flex-direction:row;
        justify-content: space-between;
    }
    
    #container-on-parle-de-nous a{
        display: block;
        padding: 2rem;
        flex: 1;
    }
}

@media screen and (min-width:1024px) {
    #container-on-parle-de-nous img{
        filter: grayscale(1);
    }

    #container-on-parle-de-nous img:hover{
        filter: grayscale(0);
    }
}

/* mentions légales */

#card-mentions-legales{
    width: 95vw;
    margin: 2rem auto;
    padding: 0.5rem;
    box-shadow: 2px 4px 14px black;
    border-radius: 3px;
    word-wrap: break-word;
    font-size: 0.9rem;
}

#card-mentions-legales p{
    font-size: 0.9rem;
}


@media screen and (min-width:768px){
    #card-mentions-legales{
        width: 60vw;
    }

    #card-mentions-legales p{
        font-size: 1rem;
        padding: 0.3rem;
    }

    #center-mentions-legales{
        margin: 1rem 2rem;
    }
}

@media screen and (min-width:1024px){
    #center-mentions-legales p{
        font-size: 1.2rem;
    }
}

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

    #center-mentions-legales{
        width: 60%;
        margin: 1rem auto;
    }

    #center-mentions-legales p{
        font-size: 1.5rem;
    }
}

@media screen and (min-width:2560px){
    h2{
        font-size: 3rem;
    }

    #center-mentions-legales{
        width: 50%;
        margin: 1rem auto;
    }

    #center-mentions-legales p{
        font-size: 2rem;
    }
}

/* don */

#haWidget{
    width:100%;
    height:70px;
    border:none;
}

#propulse-helloasso{
    width:100%;
    text-align:center;
}