@font-face{
    font-family: 'Roboto';
    src: url('../polices/Roboto-Medium.ttf');
}
@font-face{
    font-family: 'Ganton';
    src: url('../polices/Ganton.otf');
}
html, body{
    width: 100%;
    height: 100%;
    margin: 0 auto;
    background-color: #ecf0f1;
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
}
a{
    text-decoration: none;
    color: #bdc3c7;
}
h2{
    margin-top: 60px;   
}
p, h2, h3{
    margin-left: 30px;
    margin-right: 30px;
}
h2, h3, h4{
    color: #737593;   
    font-family: 'Ganton', sans-serif;
}
h3, h4{
    font-size: 16px;
    color: #30336b;
}
h5{
    font-size: 14px;
    color: #737593;
    margin: 0;
}
#menu{
    width: 100%;
    background: #130f40;
    position: fixed;
    top: 0;
    z-index: 1;
}
#menu label, #hamburger {
    display: none;
}
#menu ul {
  list-style-type: none;
  margin: 0;
  padding: 0; 
}
#menu ul li {
  display: inline-block;
  padding: 10px 20px 10px 20px;
  box-sizing: border-box;
}
#menu ul li a {
  color: #fff;
  text-decoration: none;
}
#menu ul li a:hover {
  color: #737593;  
}
/* blocs principaux de construction */
.photos{
    display: none;
}
#header{ /* Affichage complet */
    padding-top: 60px;
    width: 100%;
    height: 100%;
    min-height: 700px;
    background-image: url(../Images/HangarEspaceDanse_Header.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    margin: 0 auto;
    color: #FFFFFF;
}

/* TEMP */
#d1{ /* Affichage complet */
    padding-top: 60px;
    width: 100%;
    height: 100%;
    min-height: 700px;
    background-image: url(../Images/HangarEspaceDanse_Header.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    margin: 0 auto;
    color: #FFFFFF;
    
    -webkit-animation: imageAnimation 20s ease-in-out infinite both; 
    -moz-animation: imageAnimation 20s ease-in-out infinite both; 
    -o-animation: imageAnimation 20s ease-in-out infinite both; 
    -ms-animation: imageAnimation 20s ease-in-out infinite both; 
    animation: imageAnimation 20s ease-in-out infinite both;  
}

#encart{ 
    width: auto;
    text-align: center;
    background-color: #1d132b;
    padding: 20px;
}
#evenements{ /* Affichage gauche */
    width: 100%;
    height: 1600px; /*remettre à 100% lorque contenu rempli */
    min-height: 400px;
    background-image: url(../Images/HangarEspaceDanse_01.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top;
    background-attachment: fixed;
}
#planning{ /* Affichage droite */
    width: 100%;
    height: 100%;
    min-height: 600px;
    background-image: url(../Images/HangarEspaceDanse_02.jpg);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: left;
}
#cours{ /* Affichage gauche */
    width: 100%;
    height: 100%;
    min-height: 1100px;
    background-image: url(../Images/HangarEspaceDanse_03.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position: 300px;
}
#professeurs{ /* Affichage complet */
    width: 100%;
    min-height: 550px;
    /*background-image: url(../Images/HangarEspaceDanse_Footer.jpg);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: bottom;
    background-attachment: fixed;*/
}
#galerie{ /* Affichage droite */
    width: 100%;
    height: 100%;
    min-height: 600px;
    background-image: url(../Images/HangarEspaceDanse_04.jpg);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: left;
}

/* Eléments en-tête */
#logo{
    width: 200px;
    height: 200px;
    margin: 0 auto;
    margin-top: 50%;
    margin-top: 250px;
    background-image: url(../Images/HangarEspaceDanse_Logo.svg);
    background-size: contain;
    
    filter: drop-shadow(0px 0px 15px white);
}
#citation{  
    font-size: 250%;
    font-style: italic;
    max-width: 500px;
    margin-left: 40px;
    margin-top: 50px;
}
#auteur{
    max-width: 500px;
    text-align: right;
    margin-top: 20px;
}

/* Eléments encart COVID */

#encart p{
    font-size: 16px;
    margin: 3px;   
    color: white;
}

/* Eléments conteneur > Evénements */
#evenements .contenu{
    width: 768px;
    height: 100%;
    background-color: #ecf0f1;
    background-image: url(../Images/HangarEspaceDanse_Monogramme.svg);
    background-repeat: no-repeat;
    background-size: 200px;
    float: left;
}
.events{
    display: inline-block;
    width: 100%;
    margin-bottom: 30px;
}
.event{
    width: 49%;
    float: left;
}
.event img{
    width: 100px;
    height: 100px;
    border-radius: 75px;
    filter: grayscale(1);
    float: left;
    margin: 12px 20px 12px 30px;
    z-index: 0;
}
.event h3{
    margin-bottom: 0;
}

.event h3 a{
    color: #30336b;
}
.event h3 a:hover{
    text-decoration: underline;
}

#AfficheToutVaBien{
    float: left;
    margin: 10px;
}

#firstevent{ 
    width: 450px;
    margin: 10px 0px 30px 30px;
    padding: 20px;
    border: solid 2px #737593;
    border-radius: 30px 30px 0 30px;
    background-color: rgba(115, 117, 147, 0.3);
    font-family: 'Roboto', sans-serif;
}

#firstevent a{
    text-decoration: none;
    color: #737593;
}

#firstevent a img{
    width: 100px;   
    float: left;
    margin-right: 20px;
    margin-left: 20px;
}

#firstevent strong{
    font-size: 15px;
}

/* Eléments conteneur > planning des cours */
#planning .contenu{
    min-width: 40%;
    height: 100%;
    background-color: #ecf0f1;
    background-image: url(../Images/HangarEspaceDanse_Monogramme.svg);
    background-repeat: no-repeat;
    background-size: 200px;
    float: right;
}
#planning table{
    margin-left: 20px;
    margin-right: 20px;
    border-spacing: 10px;
}
#planning td.jour{
    border-right: 1px #000000 solid; 
    vertical-align: bottom;
    text-align: right;
    padding-right: 10px;
}
#planning td h4{
    margin: 0px;
    padding: 0px;
}
#planning .cours:before{
    content: " : ";  
}
#planning td.jour h4:last-child{
    display: none;   
}

/* Eléments conteneur > Descriptions cours */
#cours .contenu{
    width: 768px;
    height: 100%;
    background-color: #ecf0f1;
    background-image: url(../Images/HangarEspaceDanse_Monogramme.svg);
    background-repeat: no-repeat;
    background-size: 200px;
    float: left;
}
#cours span{
    font-family: "Roboto";
    font-size: 13px;
}
#cours h3{
    margin-top: 15px;
    margin-bottom: 10px;
}
#cours p, h3{
    margin-top: 10px;
    margin-bottom: 10px;
}
.cours a{
    color: #30336b;
    font-weight: bolder;
}
.cours a:hover{
    text-decoration: underline;
}

/* Elément conteneur > professeurs */
#professeurs .contenu{
    width: 100%;
    height: 500px;
    background-color: #ecf0f1;
    background-image: url(../Images/HangarEspaceDanse_Monogramme.svg);
    background-repeat: no-repeat;
    background-size: 200px;
    border-top: solid 1px #ecf0f1;
    text-align: center;
}
#professeurs .contenu h2{
    text-align: left;
}
#professeurs .contenu div{
    display: inline-block;
    width: 16%;
    margin: 0;
    text-align: center;
    vertical-align: text-top;
}
#professeurs img{
    width: 140px;
    height: 140px;
    border-radius: 75px;
    filter: grayscale(1);
    z-index: 0;
}
#professeurs h4{
    margin: 10px 0px 10px 0px;
}
#professeurs p{
    margin: 5px 20px 5px 20px;
}
#professeurs span, b{
    color: #737593;   
}

/* Eléments conteneur > Galerie */
#galerie .contenu{
    min-width: 40%;
    height: 100%;
    background-color: #ecf0f1;
    background-image: url(../Images/HangarEspaceDanse_Monogramme.svg);
    background-repeat: no-repeat;
    background-size: 200px;
    float: right;
}
#galerie .galeries{
    height: 90px;
}
#galerie .galeries img{
    width: 80px;
    height: 80px;
    border-radius: 75px;
    filter: grayscale(1);
    float: left;
    margin: 0 20px 0 30px;
    z-index: 0;
}
#galerie .galeries h3{
    margin: 20px 0 0 0;
}

#footer{
    position: fixed;
    height: 35px;
    width: 100%;
    background-color: #130f40;
    bottom: 0px;
    padding-bottom: 4px;
}
#footer div{
    display: inline;
    width: 33%;
    margin-top: 8px;
    margin-bottom: 8px;
    float: left;
    color: white;  
    text-align: center;
}
#footer a:hover{
    color: #737593; 
}
#footer img{
    display: inline;
    vertical-align: middle;
    height: 18px;
    margin: 0 3px 0 3px;
    border: 1px solid #130f40;
}
#footer #mail{
    height: 15px;   
}


@media screen and (max-width:1280px){
    #header, #cours, #evenements{
        background-size: cover;
        background-attachment:inherit;
    }
    #citation, #auteur{
        display: none;
    }
    #cours
    {
        background-image: none;
        background-color: #ecf0f1; 
        height: auto;
    }
    #cours .contenu{ /* suppression du background et affiche largeur complète */
        width: 100%;
        padding-bottom: 50px;
    }
    #professeurs .contenu{
        height: 100%;
        margin: 0;
    }
    #professeurs h4 span{
        display: block;  /* Noms des professeurs sur deux lignes */
    }
    #footer div{
        width: auto;
    }
    #footer div:nth-child(1){
        min-width: 85px;  
        margin-left: 5px;
    }
    #footer div:last-child{
        float: right;
        margin-right: 5px;
    }
    #footer div span{
        display: none;
    }
}

/* Menu hamburger pour les tablettes portrait et les smartphones */
@media screen and (max-width:1024px){
    /* Show Hamburger */
    #menu {
        position:fixed;   
    }
    #menu label {
        display: inline-block;
        color: #fff;
        background: #130f40;
        font-style: normal;
        font-size: 1.2em;
        padding: 8px;
    }
    /* Break down menu items into vertical */
    #menu ul li {
        display: block;
    }
    #menu ul li {
        border-top: 1px solid #333;
    }
    /* Toggle show/hide menu on checkbox click */
    #menu ul {
        display: none;
    }
    #menu input:checked ~ ul {
        display: block;
    }
    
    /* remplacement des arrières-plan de section par les inter-photos */
    #evenements, #planning, #cours, #professeurs, #galerie{
        display: inline-block;
        background-image: none;
        width: 100%;
        height: auto;
    }
    #evenements .contenu,
    #planning .contenu,
    #cours .contenu,
    #professeurs .contenu,
    #galerie .contenu{
        width: 100%;
        height: auto;
        padding-bottom: 30px;
        
    }
    .photos{
        display: block;
    }
    .photos img{
        width: 100%;
    } 
    #professeurs .contenu{
        height: auto;
        padding-bottom: 30px;
        margin: 0;
    }
    #professeurs .contenu div{
        width: 100%;
        min-height: 170px;
        text-align: left;
    }
    #professeurs .contenu img{
        float: left;
        margin: 10px 25px 0 15px;
    }
    #professeurs .contenu p{
        width: 90%;
    }
    #professeurs .contenu h4 span{
        display: inline;
    }
}
/* mise en page spéciale pour les profils des professeurs */
@media screen and (max-width:550px){
    #professeurs .contenu img{
       float: none;
    }
    #professeurs .contenu div{
        width: 100%;
        min-height: 170px;
        padding-bottom: 10px;
        text-align: center;
    }
}
/* site smartphones portrait */
@media screen and (max-width:479px){
    #menu li:first-of-type{
        display: none;
    }
    #header{
        background-image: none;
        min-height: 0;
        height: auto;
        padding: 0;
    }
    #logo{   
        margin-top: 50%;
        margin-bottom: 50%;
    }
    #firstevent{
        width: 70%;
        height: inherit;
    }
    #firstevent a img{
        float: none;
        width: 250px;
    }
    #firstevent p{
        margin: auto;
        margin-top: 10px;
    }
    #evenements .event{
        width: 100%;
    }
    #professeurs .contenu{
        padding-bottom: 60px;
    } 
    #planning td.jour {
        vertical-align: top;
    } 
    #planning .cours{
        font-weight: bold;   
    }
    #planning .cours:before{
        content: "";   
    }
    #planning span{
        display: block;
    }
    #planning td.jour h4:first-child{
        display: none;   
    }  
    #planning td.jour h4:last-child{
        display: block;   
    }
    .creneau {
          display: flex;
          flex-direction: column-reverse;
        }
    .creneau:nth-child(1) { order: 2; }
    .creneau:nth-child(2) { order: 1; }
        
    #galerie .galeries h3,  #galerie .galeries h5,  #galerie .galeries p{
        margin-top: 0;
        margin-bottom: 0;
} 

@-webkit-keyframes imageAnimation { 
    0%{background-image: url("../Images/slideshow/1.jpg");}
    20%{background-image: url("../Images/slideshow/2.jpg");}
    40%{background-image: url("../Images/slideshow/3.jpg");}
    60%{background-image: url("../Images/slideshow/4.jpg");}
    80%{background-image: url("../Images/slideshow/5.jpg");}
    100%{background-image: url("../Images/slideshow/1.jpg");
}
@-moz-keyframes imageAnimation { 
    0%{background-image: url("../Images/slideshow/1.jpg");}
    20%{background-image: url("../Images/slideshow/2.jpg");}
    40%{background-image: url("../Images/slideshow/3.jpg");}
    60%{background-image: url("../Images/slideshow/4.jpg");}
    80%{background-image: url("../Images/slideshow/5.jpg");}
    100%{background-image: url("../Images/slideshow/1.jpg");
}
@-o-keyframes imageAnimation { 
    0%{background-image: url("../Images/slideshow/1.jpg");}
    20%{background-image: url("../Images/slideshow/2.jpg");}
    40%{background-image: url("../Images/slideshow/3.jpg");}
    60%{background-image: url("../Images/slideshow/4.jpg");}
    80%{background-image: url("../Images/slideshow/5.jpg");}
    100%{background-image: url("../Images/slideshow/1.jpg");
}
@-ms-keyframes imageAnimation { 
    0%{background-image: url("../Images/slideshow/1.jpg");}
    20%{background-image: url("../Images/slideshow/2.jpg");}
    40%{background-image: url("../Images/slideshow/3.jpg");}
    60%{background-image: url("../Images/slideshow/4.jpg");}
    80%{background-image: url("../Images/slideshow/5.jpg");}
    100%{background-image: url("../Images/slideshow/1.jpg");
}
@keyframes imageAnimation { 
    0%{background-image: url("../Images/slideshow/1.jpg");}
    20%{background-image: url("../Images/slideshow/2.jpg");}
    40%{background-image: url("../Images/slideshow/3.jpg");}
    60%{background-image: url("../Images/slideshow/4.jpg");}
    80%{background-image: url("../Images/slideshow/5.jpg");}
    100%{background-image: url("../Images/slideshow/1.jpg");
}