/*
Styles Velo'Cation 
by Alex Moreau
v 1.0.0
*/

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Ubuntu', sans-serif;
}

header,
footer {
    padding: 1%;
    background-color: darkgreen;
    color: white;
}

header {
    height: 130px;
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 20px;
}

section {
    padding: 2% 4%;
}

.titres {
    padding-left: 5%;
    margin-left: 1000px;
    opacity: 0;
}

h1 {
    text-align: center;
    margin: 0;
    padding: 20px 5% 20px 0px;
    background-color: #FA8219;
    color: black;
    letter-spacing: 0.3em;
    border-bottom-left-radius: 50px;
    border-top-left-radius: 50px;
}

footer {
    height: auto;
}


/************** HEADER ****************/

header div {
    display: inline-block;
}

header span {
    font-size: 3em;
    font-weight: bold;
    padding-left: 5px;
    font-style: italic;
}

#title_img {
    vertical-align: bottom;
    margin-left: -5px;
}


/************** NAV BAR ****************/

#icon_menu {
    display: none;
}

nav {
    display: inline-block;
    margin-left: 30%;
}

nav li {
    display: inline-block;
    margin-right: 120px;
    position: relative;
}

nav li a {
    color: white;
    font-size: 1em;
    font-weight: 700;
    padding: 2%;
    text-decoration: none;
    border-radius: 8px;
}

#icon_nav_p,
#icon_nav_r {
    position: absolute;
    top: -10px;
    left: -50px;
    opacity: 0;
}

nav li a:hover {
    text-shadow: 4px -3px 2px #FA8219;
}

nav li a:focus {
    outline: none;
}


/************** SECTION INFOS SLIDER *******************************/

#infos {
    height: 620px;
    padding: 2% 4%;
}

#infos_smartphones {
    display: none;
}


/************** SLIDER ****************/

#slider-container {
    position: relative;
    margin: 10px auto 0 auto;
    width: 1000px;
    height: 600px;
    background-color: black;
}

.mySlides {
    position: absolute;
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
}

.bouton-left {
    position: absolute;
    left: -30px;
    top: 50%;
    z-index: 20;
}

.bouton-right {
    position: absolute;
    right: -30px;
    top: 50%;
    z-index: 20;
}

#infos button {
    height: 60px;
    width: 60px;
    border: 0px;
    border-radius: 50%;
    font-size: 2em;
    background-color: silver;
    color: black;
    opacity: 0.7;
}

#infos button:hover {
    background-color: darkgreen;
    color: white;
    opacity: 1;
    cursor: pointer;
}

#infos button:focus {
    outline: 0;
}


/******************************* SECTION STATION + CANVAS + MAP**********************************/

#section_station {
    height: 700px;
    padding: 2% 4%;
}


/************** MAP ****************/

#map {
    height: 90%;
    width: 60%;
    float: left;
    border: 2px solid black;
}


/************** ENCART ANIMATION ****************/

.informationcard {
    position: relative;
    float: right;
    height: 100%;
    width: 35%;
}

div[class^="card"] {
    height: 100%;
    width: 100%;
    perspective-origin: center bottom;
    position: relative;
}

div[class^="card"] [class^="face"] {
    height: 100%;
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    -o-backface-visibility: hidden;
    -ms-backface-visibility: hidden;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    -moz-transform-style: preserve-3d;
    -o-transform-style: preserve-3d;
    -ms-transform-style: preserve-3d;
    transition-duration: 0.5s;
    -webkit-transition-duration: 0.5s;
    -moz-transition-duration: 0.5s;
    -o-transition-duration: 0.5s;
    -ms-transition-duration: 0.5s;
    transition-property: transform;
    -webkit-transition-property: transform;
    -moz-transition-property: transform;
    -o-transition-property: transform;
    -ms-transition-property: transform;
    transition-timing-function: ease-out;
    -webkit-transition-timing-function: ease-out;
    -moz-transition-timing-function: ease-out;
    -o-transition-timing-function: ease-out;
    -ms-transition-timing-function: ease-out;
}

div[class^="card"] .face-front {
    background-color: green;
    border-radius: 8px;
    z-index: 5;
}

div[class^="card"] .face-back {
    z-index: 0;
    transform: rotateY(-180deg);
    border-radius: 8px;
    border: 1px solid darkgreen;
}

div[class^="card"].rotated .face-front {
    z-index: 5;
    transform: rotateY(180deg);
}

div[class^="card"].rotated .face-back {
    z-index: 10;
    transform: rotateY(0deg);
}


/************** face front ****************/

#front_accueil {
    text-align: center;
    margin: 15% 5%;
}

#front_accueil img {
    margin-bottom: 30px;
}

#front_accueil p {
    font-size: 1.2em;
    text-shadow: 5px -5px 5px darkgreen;
    margin: 10px 0;
    color: white;
}


/************** TABLEAU ENCART RESERVATION ****************/

#informations_table {
    border-collapse: collapse;
    width: 100%;
}

#informations_table caption {
    background-color: darkgreen;
    color: white;
    padding: 20px;
    border-radius: 8px 8px 0 0;
    font-size: 2em;
    font-weight: 600;
}

#informations_table tr {
    height: 60px;
    padding: 15px;
    font-size: 1.3em;
}

#informations_table tr:nth-child(odd) {
    background-color: white;
}

#informations_table tr:nth-child(even) {
    background-color: gainsboro;
}

#informations_table tr:last-child th {
    border-bottom-left-radius: 8px;
    -moz-border-bottom-left-radius: 8px;
    -webkit-border-bottom-left-radius: 8px;
}

#informations_table tr:last-child td {
    border-bottom-right-radius: 8px;
    -moz-border-bottom-right-radius: 8px;
    -webkit-border-bottom-right-radius: 8px;
}

.station_tableau_titres {
    width: 30%;
    padding: 15px 10px 15px 25px;
    text-align: left;
    color: grey;
}

#informations_table td {
    text-align: center;
    padding-right: 15px;
}

.info-station {
    font-weight: bold;
    font-size: 0.8em;
}

.open {
    color: green;
}

.closed {
    color: red;
}

#acces-resa {
    height: 40px;
    width: 150px;
    background-color: green;
    color: white;
    margin: 35px auto;
    border-radius: 8px;
    padding: 15px 5px 5px 5px;
    text-align: center;
    font-size: 1.5em;
    font-weight: 300;
}

#acces-resa:hover {
    background-color: white;
    border: 1px solid green;
    color: green;
    font-weight: 700;
    cursor: pointer;
}

#acces-resa:focus {
    outline: none;
}


/************** RESERVATION FINALE ****************/

#reservation {
    background-color: white;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    border: 1px solid darkgreen;
    display: none;
}

#reservation_table {
    width: 100%;
    margin-bottom: 25px;
}

#reservation_table caption {
    font-size: 2em;
    font-weight: 600;
    text-align: center;
    margin-bottom: 25px;
}

#reservation_table th {
    padding: 5px 0 5px 30px;
    text-align: left;
    font-size: 1.2em;
}

#reservation_table td {
    font-size: 1em;
    padding-left: 5px;
}

#valid-sign,
#delete-sign {
    height: 40px;
    width: 150px;
    background-color: green;
    color: white;
    border-radius: 8px;
    padding: 15px 5px 5px 5px;
    margin-top: 30px;
    text-align: center;
    font-size: 1.5em;
    font-weight: 300;
}

#delete-sign {
    margin-left: 10%;
    float: left;
}

#valid-sign {
    margin-right: 10%;
    float: right;
}

#annule-resa {
    position: absolute;
    top: 10px;
    right: 10px;
    border-radius: 4px;
    font-size: 0.8em;
    text-align: center;
    padding: 3px;
    background-color: green;
    color: white;
}

#valid-sign:hover,
#delete-sign:hover {
    background-color: white;
    border: 1px solid green;
    color: green;
    font-weight: 700;
    cursor: pointer;
}

#valid-sign:focus,
#delete-sign:focus,
#annule-resa:focus {
    outline: none;
}


/************** CANVAS ****************/

#reservation canvas {
    border: 1px solid black;
    margin: 0 20%;
}

canvas:hover {
    cursor: url('../img/crayon.png'), default;
}

/************** RESERVATION EN COURS ****************/

#resa_encours {
    background-color: darkgreen;
    color: white;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    border: 1px solid darkgreen;
    text-align: center;
    display: none;
}

#resa_encours div {
    margin: 20% auto 0 auto;
    font-size: 2em;
}

#resa_encours #icon_voir {
    padding: 0.3em 0 0 0;
}

/*******************************  FOOTER *******************************/

#resa_footer {
    text-align: center;
}

#etat_resa,
#minuteur_resa,
#zone_btn_footer {
    display: inline-block;
    margin: 0 2%;
}

#etat_resa {
    font-size: 1.2em;
}

#minuteur_resa {
    font-size: 1.7em;
    font-weight: 900;
    color: #FA8219;
}

#annule_resa_finale {
    display: none;
    height: 30px;
    width: 120px;
    background-color: green;
    color: white;
    border-radius: 8px;
    padding: 10px 5px 5px 5px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.5em;
    font-weight: 300;
}

#annule-resa:hover,
#annule_resa_finale:hover {
    background-color: white;
    color: red;
    font-weight: 700;
    cursor: pointer;
}

#annule_resa_finale:focus {
    outline: none;
}


/***************************************************** MEDIA QUERIES ********************************************************/

/* Styles pour les écrans trés larges minimum 1700 px */

@media (min-width: 1700px) {
    nav {
        margin-left: 40%;
    }

    #reservation canvas {
        margin: 60px 10% 30px 10%;
    }

    #front_accueil p {
        font-size: 1.5em;
    }

    #informations_table caption {
        font-size: 3em;
    }

    #informations_table tbody {
        font-size: 1.3em;
    }

    #reservation_table td,
    #reservation_table th {
        font-size: 1.5em;
    }

    h2 {
        font-size: 2em;
    }

    #etat_resa,
    #minuteur_resa {
        font-size: 1.5em;
    }
}


/* Styles pour les écrans petits */

@media (min-width: 991px) and (max-width: 1280px) {

    #valid-sign,
    #delete-sign {
        width: 125px;
    }

    #delete-sign {
        margin-left: 5%;
    }

    #valid-sign {
        margin-right: 5%;
    }

    nav {
        margin-left: 17%;
    }

    #reservation canvas {
        margin: 0 4%;
    }

    #etat_resa,
    #minuteur_resa,
    #zone_btn_footer {
        display: block;
    }

    footer {
        height: 200px;
    }
}


/* Styles pour les tablettes */

@media (min-width: 768px) and (max-width: 990px) {
    header {
        height: 200px;
        padding: 3%;
    }

    nav {
        margin-left: 20%;
    }

    nav li {
        margin-right: 75px;
    }

    h1 {
        padding: 10px 0 10px 50px;
    }

    #infos {
        height: 400px;
    }

    #slider-container {
        width: 700px;
        height: 350px;
    }

    #infos button {
        height: 50px;
        width: 50px;
    }

    .bouton-left {
        left: 0;
    }

    .bouton-right {
        right: 0;
    }

    #section_station {
        height: 500px;
    }

    .informationcard {
        width: 38%;
    }

    #front_accueil img {
        width: 70%;
    }

    #front_accueil p {
        margin: 2px 0;
    }

    .station_tableau_titres {
        padding: 5px 5px 5px 15px;
    }

    #informations_table caption {
        font-size: 1.5em;
    }

    #informations_table tr {
        height: auto;
        padding: 15px;
        font-size: 1em;
    }

    #acces-resa {
        padding: 5px 0px 10px 0px;
        height: 25px;
        width: 130px;
    }

    #reservation_table {
        margin-top: 10px;
    }

    #reservation_table caption {
        font-size: 1.5em;
        margin-bottom: 5px;
        margin-top: 5px;
    }

    #reservation_table th {
        padding: 5px 0 5px 10px;
        font-size: 1em;
    }

    #reservation_table td {
        font-size: 0.8em;
        padding-left: 10px;
    }

    #reservation canvas {
        margin: 0 4%;
    }

    footer {
        height: 250px;
    }

    #valid-sign,
    #delete-sign {
        margin-top: 5px;
        padding: 5px 0px 0px 0px;
        height: 25px;
        width: 115px;
        font-size: 1.1em;
    }

    #delete-sign {
        margin-left: 5%;
    }

    #valid-sign {
        margin-right: 5%;
    }

    #resa_footer {
        margin: 0;
    }

    #etat_resa,
    #minuteur_resa,
    #zone_btn_footer {
        display: block;
        width: 100%;
        text-align: center;
        margin: 0 auto 15px;
    }

    #zone_btn_footer {
        margin-top: 35px;
    }

    #annule_resa_finale {
        padding: 5px 5px 5px 5px;
    }
}


/* Styles pour les smartphones */

@media (min-width: 300px) and (max-width: 767px) {
    header {
        height: 200px;
        padding: 0;
    }

    #title_img {
        width: 25%;
        margin-left: 0;
    }

    .header_big {
        height: 310px;
    }

    #icon_menu {
        display: block;
        height: 40px;
        width: 40px;
        margin-left: 85%;
        margin-top: 25px;
        cursor: pointer;
    }

    nav {
        font-size: 0.8em;
        text-align: center;
        display: none;
        margin: 0;
        background-color: darkgreen;
    }

    nav li {
        display: block;
        margin: 0 0 15px 0;
    }

    nav ul {
        margin: 15px 0;
    }

    #icon_nav_p,
    #icon_nav_r {
        width: 20px;
        height: 20px;
        position: relative;
        top: 0;
        left: 0;
        opacity: 1;
    }

    h1 {
        letter-spacing: normal;
    }

    #infos {
        height: 425px;
    }

    #slider-container {
        display: none;
    }

    #infos_smartphones {
        display: block;
    }

    #infos h2 {
        margin-bottom: 5px;
    }

    #infos ul {
        list-style: decimal;
        padding-right: 5px;
    }

    #infos li {
        margin-bottom: 13px;
    }

    #section_station {
        height: 1000px;
    }

    #map {
        float: none;
        margin-top: 30px;
        margin-bottom: 30px;
        height: 400px;
        width: 100%;
    }

    .informationcard {
        float: none;
        height: 500px;
        width: 100%;
    }

    #front_accueil img {
        margin-bottom: 10px;
        width: 80%;
    }

    footer {
        height: 300px;
        padding: 5%;
    }

    footer h2 {
        margin-top: 0;
        margin-bottom: 50px;
    }

    #resa_footer {
        margin: 0 auto;
    }

    #etat_resa,
    #minuteur_resa,
    #zone_btn_footer {
        display: block;
        margin: 0 auto 30px;
        width: 100%;
        text-align: center;
    }

    #zone_btn_footer {
        margin-top: 60px;
    }

    #informations_table tr {
        font-size: 1em;
        height: 45px;
        padding: 5px;
    }

    .station_tableau_titres {
        padding: 10px;
    }

    #informations_table td {
        padding-right: 10px;
    }

    #acces-resa {
        margin: 30px auto;
    }

    #reservation_table caption {
        margin-bottom: 10px;
        margin-top: 10px;
    }

    #reservation_table th {
        padding: 5px 5px 5px 10px;
        font-size: 0.8em;
    }

    #reservation_table td {
        font-size: 0.7em;
    }

    #reservation canvas {
        margin: 0;
    }

    #delete-sign {
        margin-left: 5%;
    }

    #valid-sign {
        margin-right: 5%;
    }

    #valid-sign,
    #delete-sign {
        height: 30px;
        margin-top: 15px;
        padding: 10px 5px;
        width: 110px;
    }
}
