/*  ASCENSE SOLUTIONS TECHNOLOGIQUES INC. 
    29 MAI 2018
*/

html, body
{
    height: 100%;
    margin: 0;
}

html
{
    width: 100%;
    font-size: 100%;
}

*
{
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
}

*:focus 
{
    outline: none;
}

a
{
    text-decoration: none;
}

img
{
    border: none;
}

header
{
    display: none;
    position: fixed;
    width: 100%;
    background-color: rgba(231, 232, 232, 0.95);
    padding: 10px 20px;;
}

header #logo
{
    width: 200px;
    height: auto;
}

aside
{
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 250px;
    padding: 20px;
    z-index: 1000;
    background-color: rgba(231, 232, 232, 0.95);
}

aside #logo
{
    display: block;
    width: 100%;
    height: auto;
}

aside form input
{
    height: 35px;
    margin: 40px 0;
    float: left;
    border-radius: 0;
    -webkit-appearance: none;
}

aside form input[type=search]
{
    width: 80%;
    border: 3px solid #0b406b;
    background: transparent;
    padding: 0 10px;
    border-radius: 0;
}

aside form input[type=submit]
{
    width: 20%;
    background-color: #0b406b;
    border: none;
    color: transparent;
    background-image: url(../images/recherche.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px;
    cursor: pointer;
}

aside nav
{
    clear: both;
    margin: 0 -20px 40px 0;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;    
    -ms-user-select: none;     
}

aside nav ul
{
    margin: 0;
    padding: 0;
}

aside nav ul li
{
    list-style-type: none;
    line-height: 35px;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    color: #231f20;
    background-image: url(../images/fleche.svg);
    background-repeat: no-repeat;
    background-position: 95%;
    background-size: 30px 30px;
    transition: all 0.3s;
}

aside nav ul li:hover
{
    color: #0b406b;
    transition: all 0.3s;
}

aside .li-principal
{
    position: relative;
}

aside .li-principal:hover .sous-menu
{
    visibility: visible;
    opacity: 1;
    transform: translateZ(0);
    transition: all 0.3s;
}

aside .titre-sous-menu
{
    margin-bottom: 5px;;
    line-height: normal;
}

aside .sous-menu
{
    position: absolute;
    left: 230px;
    top: 0;
    padding: 25px;
    color: white;
    background-color: rgba(11, 64, 107, 0.95);
    white-space: nowrap;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s;
}

aside .sous-menu ul
{
    margin-bottom: 20px;
}

aside .sous-menu ul:last-of-type
{
    margin-bottom: 0;
}

aside .sous-menu ul li
{
    background: inherit;
    text-transform: none;
    color: white;
    font-weight: 400;
    line-height: 25px;
    font-family: sans-serif;
}

aside .sous-menu ul li:hover
{
    color: white;
}

.btn1
{
    width: 100%;
    text-align: right;
    text-transform: uppercase;
    background-color: #0b406b;
    background-repeat: no-repeat;
    background-size: 30px 30px;
    background-position: 5%;
    color: white;
    padding: 15px;
    font-weight: 700;
    font-size: 12px;
    margin: 0 0 15px 0;
    transition: all 0.3s;
}

.btn2
{
    width: 200px;
    text-align: left;
    text-transform: uppercase;
    background-color: #0b406b;
    background-image: url(../images/flecheb.svg);
    background-repeat: no-repeat;
    background-size: 30px;
    background-position: right;
    color: white;
    font-weight: 700;
    padding: 10px 15px;
    margin-top: 15px;
    transition: all 0.3s;
}

.btn1:hover, .btn2:hover
{
    background-color: #164c77;
    transition: all 0.3s;
}

.clear-fix:after {
  clear: both;
  content: "";
  display: block;
}

#menu-secondaire
{
    margin: 40px 0; 
}

#menu-secondaire ul
{
    margin: 0;
    padding: 0;
}

#menu-secondaire ul li
{
    list-style-type: none;
    line-height: 30px;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 400;
    color: #231f20;
    transition: all 0.3s;
}

#menu-secondaire ul li:hover
{
    color: #0b406b;
    margin-left: 10px;
    transition: all 0.3s;
}

#edit-btn
{
    position: absolute;
    bottom: 10px;
    left: 50%;
    margin-left: -25px;
    width: 45px;
    height: 45px;
    transition: all 0.3s;
}

#edit-btn:hover
{
    transform: scale(1.1);
    transition: all 0.3s;
}

#background
{
    position: relative;
    width: 100%;
    height: 90%;
    background-size: cover;
    background-position: center;
    z-index: -1000;
}

#background-pages
{
    position: relative;
    width: 100%;
    height: 50%;
    background-size: cover;
    background-position: center;
    z-index: -1000;
}

#background h1
{
    position: absolute;
    right: 50px;
    bottom: 50px;
    margin: 0;
    color: rgba(255,255,255,0.9);
    font-weight: 800;
    font-size: 50px;
    text-transform: uppercase;
    text-shadow: 3px 2px 3px rgba(60,60,60,0.5);
}

#message-important
{
    margin: 150px auto 0;
    max-width: 650px;
    padding: 20px;
    background-color: rgba(255,255,255,0.95);
}

#conteneur-message-important
{
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0,0,0,0.7);
    z-index: 1000;
}

#message-important h2
{
    margin: 0;
    text-transform: uppercase;
    font-weight: 800;
    font-size: 30px;
    color: #0b406b;
}

#message-important img
{
    float: right;
    width: 25px;
    height: 25px;
    cursor: pointer;
}

#message-important p
{
    color: #231f20;
}

#message-important div
{
    border-bottom: 1px solid grey;
    margin-bottom: 10px;
}

#message-important div img
{
    max-width: 100%;
    width: auto;
    height: auto;
    cursor: inherit;
    display: block;
    float: inherit;
}

#message-important div:last-of-type
{
    border-bottom: 0;
    margin-bottom: 0;
}

#conteneur-principal
{
    position: relative;
    padding: 50px 50px 50px 300px;
}

#conteneur-principal h1, #titre-accueil
{
    text-transform: uppercase;
    font-weight: 800;
    font-size: 40px;
    color: #0b406b;
    margin: 0 0 20px 0;
}

#conteneur-actualites, #page
{
    display: flex;
    flex-wrap: wrap;
    align-content: space-around;
    margin: -20px;
}

.actualite
{
    width: 400px;
    color: #231f20;
    background-color: #e8e8e8;
    padding: 15px;
    flex-grow: 1;
    margin: 20px;
}

.actualite h3
{
    margin: 0;
}

.actualite h4
{
    margin: 5px 0 10px 0;
    font-size: 12px;
}

.actualite p
{
    margin: 0;
    font-weight: 400;
}

.actualite button, #historique, #message-important button
{
    background-color: #0b406b;
    color: white;
    margin-top: 10px;
    border: none;
    padding: 10px 15px;
    font-weight: 400;
    text-transform: uppercase;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.actualite button:hover, #historique:hover, #message-important button:hover
{
    background-color: #164c77;
    transition: all 0.3s;
}

#historique
{
    display: block;
    margin: 20px auto 0;
    font-weight: 700;
}

#feed-actu .tableau1
{
    width: 350px;
    display: none;
}

.tableau1
{
    border-collapse: collapse;
}

.tableau1 thead th
{
    background-color: #0b406b;
    color: white;
    padding: 10px 20px;;
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
}

.tableau1 tbody td
{
    color: #231f20;
    padding: 10px 15px;
}

.tableau1 tbody tr
{
    background-color: #f3f3f3;
}

.tableau1 tbody tr:nth-child(2n)
{
    background-color: #e8e8e8;
}

#actu-unique
{
    max-width: 1000px;
    margin: auto;
}

#actu-unique img
{
    max-width: 100%;
}

#actu-unique figure
{
    margin: 10px 0;
}

.page-main-col
{
    flex-grow: 1;
    width: 60%;
    margin: 20px;
}

.page-main-col .liste-fichiers 
{
    margin-bottom: 30px;
}

.page-main-col .liste-fichiers:last-of-type 
{
    margin-bottom: 0;
}

.page-sub-col
{
    flex-grow: 1;
    width: 30%;
    margin: 20px;
}

.page-sub-col div,.page-sub-col table
{
    margin-bottom: 20px;
    width: 100%;
}

#conteneur-barre-progression
{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: #0b406b;
    padding: 20px;
}

#conteneur-barre-progression.fixed {
    position: fixed;
    top: 0; left: 0; right: 0;
}


#barre-progression
{
    display: table;
    width: 1000px;
    margin: auto;
    padding-left: 250px;
}

.etape-progression
{
    display: table-cell;
    width: 33.33%;
    text-align: center;
    color: white;
    text-transform: uppercase;
    font-size: 13px;
}

.etape-progression h4
{
    margin-top: 0;
}

.etape-progression svg
{
    display: block;
    width: 12px;
    height: 12px;
    margin: auto;
    fill: none;
    stroke: #ffffff;
    stroke-width: 5;
    stroke-miterlimit: 10;
}

.etape-progression svg:hover
{
    fill: #ffffff;
}

#programme
{
    max-width: 1200px;
    margin: 100px auto 0;
    /*overflow: hidden*/
}

#programme h2
{
    text-transform: uppercase;
    font-weight: 800;
    font-size: 50px;
    color: #0b406b;
    margin: 0 0 50px 0;
    line-height: 50px;
}

#description-programme
{
    display: inline-block;
    width: 50%;
    vertical-align: top;
    float: right;
}

#bloc-titre-programme
{
    display: inline-block;
    vertical-align: top;
}

#description-programme p
{
    font-size: 22px;
    text-align: right;
    color: #231f20;
}

#description-programme p:first-child
{
    margin-top: 0;
}

#description-programme p:last-child
{
    margin-bottom: 0;
}

#stats-programme
{
    display: flex;
    justify-content: center;
    background-color: #f3f3f3;
    margin: 50px -50px 0 -50px;
    padding: 40px;
}

.stat
{
    display: inline-block;
    text-align: center;
    vertical-align: top;
    width: 300px;
}

.stat:nth-child(2)
{
    border-left: 1px solid grey;
    border-right: 1px solid grey;
}

.stat h3
{
    color: #0b406b;
    font-size: 30px;
    font-weight: 800;
}

.stat p
{
    font-size: 20px;
}

.stat h3, .stat p
{
    margin: 0;
}

#details-programme
{
    display: flex;
    margin-right: -50px;
}

#liste-details-programme
{
    width: 50%;
    padding: 50px 50px 50px 0;
}

#bg-details-programme
{
    width: 50%;
    background-size: cover;
    background-position: center;
}

.liste1
{
    margin-bottom: 20px;
}

.liste1:last-child
{
    margin-bottom: 0;
}

.liste1 h3
{
    font-weight: 800;
    text-transform: uppercase;
    margin: 0 0 15px;
    color: #0b406b;
}

.liste1 ul
{
    margin: 0;
    padding: 0;
}

.liste1 ul li, .tableau1 ul li
{
    color: #231f20;
    list-style-type: none;
    background-image: url(../images/fleche.svg);
    background-repeat: no-repeat;
    background-position: 0%;
    background-size: 25px;
    padding-left: 30px;
    line-height: 30px;
}

#cout-admission
{
    display: flex;
    background-color: #f3f3f3;
    margin: 0 -50px;
    padding: 30px;
}

.liste-fichiers a
{
    color: #231f20;
}

.liste-fichiers a:hover
{
    text-decoration: underline;
}

.liste-fichiers ul
{
    margin: 0;
    padding: 0;
}

.liste-fichiers ul li
{
    list-style-type: none;
    line-height: 40px;
    padding: 0 0 0 10px;
    background-image: url(../images/telecharger.svg);
    background-repeat: no-repeat;
    background-position: 98%;
    background-size: 25px;
}

.liste-fichiers ul a:nth-child(2n) li
{
    background-color: #e8e8e8;
}

.liste-fichiers ul img
{
    float: left;
    width: 22px;
    margin: 9px 10px 0 0;
}

#cout-admission .tableau1
{
    width: 45%;
    flex-grow: 1;
    margin: 20px;
}

.tableau1 h3, .liste-fichiers h3
{
    background-color: #0b406b;
    color: white;
    text-align: center;
    padding: 10px;
    margin: 0;
    text-transform: uppercase;
}

.tableau1 p
{
    background-color: #e8e8e8;
    margin: 0;
    padding: 20px 20px 0 20px;
    color: #231f20;
}

.tableau1 p:last-child
{
    padding-bottom: 20px;
}

.tableau1 ul
{
    margin: 0;
    padding: 0px 20px;
    background-color: #e8e8e8;
}

.tableau1 ul:last-child
{
    padding-bottom: 20px;
}

#cout-admission .tableau2
{
    margin: 40px 0 0;
}

.tableau2
{
    border-collapse: collapse;
}

.tableau2 thead th
{
    background-color: #0b406b;
    color: white;
    text-transform: uppercase;
}

.tableau2 thead th
{
    padding: 10px;
    text-align: left;
}

.tableau2 tr:nth-child(1n)
{
    background-color: #ffffff;
}

.tableau2 tr td
{
    padding: 10px;
}

.tableau2 tr:nth-child(2n)
{
    background-color: #e8e8e8;  
}

#galerie-photos
{
    overflow: hidden;
}

#galerie-photos h3
{
    font-weight: 800;
    text-transform: uppercase;
    color: #0b406b;
    margin-top: 50px;
}

#photos
{
    /*padding: .5vw;*/
    font-size: 0;
    /*flex-flow: row wrap; */
    /*display: flex;*/
}

#galerie-photos img
{
    cursor: pointer;
    height: auto;   
    width: 25%;
    padding-right: 10px;
    padding-bottom: 10px;
}

#contact
{
    margin-top: 50px;
    max-width: 500px;
}

#contact input, textarea
{
    width: 100%;
    margin-bottom: 20px;
    padding: 10px;
    border: none;
    border: 2px solid #0b406b;
    border-radius: 0;
    -webkit-appearance: none;
}

#contact textarea
{
    max-width: 100%;
    min-height: 150px;
}

#contact input:last-child
{
    color: white;
    background-color: #0b406b;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 0;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 0;
    -webkit-appearance: none;
}

#contact input:last-child:hover
{
    background-color: #164c77;
    border: 2px solid #164c77;
    transition: all 0.3s;
}

#horaire table 
{
    width: 100%;
}

#horaire h3 
{
    text-align: center;
    font-weight: 800;
    text-transform: uppercase;
    margin: 35px 0 15px 0;
    color: #0b406b;
}

footer
{
    text-align: center;
    background-color: #0b406b;
    color: white;
    padding: 20px;
}

footer p
{
    margin-top: 0;
}

footer img
{
    width: 150px;
    height: auto;
}
/* Bouton flottant */
.btn2-float{
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    margin-top: 0;            /* pour ne pas pousser le fixed */
    display: inline-block;    /* comme un vrai bouton cliquable */
    text-decoration: none;    /* enlève le underline du <a> */
    border:2px solid #fff;
}

/* Optionnel: petit hover */
.btn2-float:hover{
    transform: translateY(-2px);
}
@media (max-width: 768px){
  .btn2-float{
    right: 12px;
    bottom: 12px;
    width: 170px;
    background-size: 26px;
  }
}

@media only screen and (max-width: 1280px)
{
    header
    {
        display: block;
        z-index: 100000;
    }
    
    aside
    {
        display: none;
        margin-top: 89px;
    }
    
    aside #logo
    {
        display: none;
    }
    
    aside form input
    {
        margin: 10px 0 40px; 
    }
    
    #menu-mobile
    {
        float: right;
        width: 30px;
        margin-top: 20px;
    }
    
    #conteneur-principal
    {
        padding: 50px;
    }
    
    #barre-progression
    {
        padding-left: 0;
    }

    #conteneur-barre-progression.fixed {
        top: 89px;
    }
}

@media only screen and (max-width: 1024px)
{
    aside
    {
        overflow-y: scroll;
    }
    
    aside .li-principal:hover .sous-menu
    {
        display: block;
    }
    
    aside .sous-menu
    {
        display: none;
        position: inherit;
        left: 0;
        color: #231f20;
        background-color: transparent;
        opacity: 1;
        visibility: visible;
        padding: 0 0 0 20px;
    }
    
    aside .sous-menu ul li
    {
        color: #231f20;
    }
    
    aside .sous-menu ul li:hover
    {
        color: #231f20;
    }
    
    aside nav ul li
    {
        background: transparent;
    }
    
    #description-programme
    {
        float: inherit;
        width: 100%;
        margin-top: 50px;
    }
    
    #description-programme p
    {
        text-align: left;
    }
    
    #bloc-titre-programme
    {
        display: block;
    }
    
    #barre-progression
    {
        width: 100%;
    }
    
    #liste-details-programme
    {
        width: 100%;
    }
    
    #bg-details-programme
    {
        display: none;
    }
    
    #cout-admission
    {
        display: inherit;
    }
    
    #cout-admission .tableau1
    {
        margin: 0;
        width: 100%;
        overflow-x: scroll;
    }
    
    #cout-admission .tableau2
    {
        margin: 40px 0;
    }

    #galerie-photos img
    {
        width: 33.33%;
    }
}

@media only screen and (max-width: 770px)
{
    #background h1, #programme h2
    {
        font-size: 40px;
    }
    
    #background
    {
        height: 60%;
    }

    #galerie-photos img
    {
        width: 100%;
    }
}

@media only screen and (max-width: 575px)
{
    #conteneur-principal h1
    {
        font-size: 32px;
    }
    
    #stats-programme
    {
        display: inherit;
    }
    
    .stat
    {
        width: 100%;
    }
    
    .stat:nth-child(2)
    {
        bordeR: none;
        margin: 30px 0 30px 0;
    }
    
    #background h1
    {
        left: 0;
        right: 0;
        padding: 10px;
        text-align: center;
        font-size: 30px;
    }
    
    #programme h2
    {
        font-size: 35px;
    }
    
    #programme h2 br
    {
        display: inline;
    }
}

@media only screen and (max-width: 440px)
{
    body
    {
        overflow-x: hidden;
    }
    
    #conteneur-barre-progression
    {
        display: none;
        width: 100%;
    }
    
    #programme
    {
        margin: 0;
    }
    
    #conteneur-principal
    {
        padding: 25px;
    }
    
    #stats-programme
    {
        margin: 25px -25px 0 -25px;
    }
    
    #cout-admission
    {
        margin: 0 -25px;
    }
    
    .btn2
    {
        width: 100%;
    }
    
    #horaire 
    {
        overflow-x: scroll;
    }
}

@media only screen and (max-height: 700px)
{
    #edit-btn
    {
        display: none;
    }
}