/* Définition pour tout */
* {
    font-family: "Montserrat-Regular";
    color: whitesmoke;
}

html {
    /* Pour Edge/Internet Explorer ou connexion lente (vidéo pas encore affiché) */
    background-color: rgb(245, 245, 247);

    /* scroll smooth pour le bouton remonter en haut */
    scroll-behavior: smooth;

    /* Taille minimum */
    min-height: 400px;
    min-width: 800px;
}

body#mainbody {
    /* Enleve la scroll bar sur la premiere page (index.html & indexen.html) */
    overflow-y: hidden;
}

body {
    /* body full viewport */
    margin: 0;
    
    /* Couleur si la vidéo met du temps a arrivé (connexion lente) */
    background-color: whitesmoke;
}

header {margin: 0}

/* Titres */
h1 {
    /* Font */
    font-family: cursive;
    font-family: "Quantum";

    /* box style */
    box-shadow: 0px 3px 10px #999;
    border-style: solid;
    border-radius: 4px;

    /* box scale */
    width: 35%;
    padding: 10px;

    /* box animation */
    animation: transitrans 1s;
}

h2 {   
    /* Font */
    font-size: 15px;
    box-shadow: 0px 3px 10px #999;

    /* box style */
    border-style: solid;
    border-radius: 4px;

    /* box animation */
    animation: transitrans 1s;
}

h2.p1 {
    /* box style */
    background-color: steelblue;
}

h2.p2 {
    /* box style */
    background-color: lightskyblue;
}

h2.p3 {
    /* box style */
    background-color: lightblue;
}

h3 {
    /* Font */
    font-family: sans-serif;
    font-weight: bold;

    /* box style */
    border-bottom-style: solid;
    border-color: whitesmoke;

    /* box scale */
    width: 300px;

    /* box animation */
    animation: transitrans 1s;
}

/* Centre texte */
.middle {
    /* Font */
    text-align: center;
}

/* Menu */
nav {
    /* Font */
    text-align: center;

    /* box style */
    background-color: black;

    /* box scale */
    position: relative;
    width: 100%;
    top: 0px;
    right: 0px;
    left: 0px;
    
}

/* Bouton menu */
nav > button {
    /* Font */
    font-size: 100%;

    /* box style */
    border-style: none;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    outline-color: transparent;
    background-color: black;

    /* box scale */
    padding: 10px 20px;

    /* Cursor */
    cursor: pointer;
}

/* Bouton page actuel */
nav > button.actual {
    /* box style */
    background-color: skyblue;

    /* Cursor */
    cursor: not-allowed;
}

/* Bouton menu EVENT: onHover */
nav > button:hover {
    /* Font */
    color: gray;
}

/* Bouton menu EVENT: onClick */
nav > button:focus {
    /* Font */
    color: olive;
}

/* Image dans menu */
img#innav {
    /* box scale */
    width: 5%;
    min-width: 40px;
    max-width: 60px;
    margin: 10px;
}

/* Image dans footer */
img#license {
    /* box scale */
    height: 17px;
    position: relative;
    top: 4px;
}

/* reScale img  */
img.fit-picture {
    /* box style */
    border-style: solid;
    border-width: thick;
    border-radius: 4px;
    border-color: whitesmoke;

    /* box scale */
    display: block;
    padding: 15px;
    width: 650px;

    /* box animation */
    animation: transitrans 1s;
    
    /* Transistion */
    transition-property: all;
    transition-duration: 1s ;
}

/* Source image*/
.sourceimg > i {
    /* Font */
    font-size: 70%;

    /* box scale */
    float: right;
    right: 100px;

    /* box animation */
    animation: transitrans 1s;
}

/* Texte part AutoSize */
section.autosize,
div.autosize {
    /* Background */
    background-image: url("../img/Asphalt10_col.jpg");
    background-repeat: repeat;
    background-size: 500px 500px;
    background-color: rgb(62, 63, 68);

    /* box style */
    border-style: none;
    border-radius: 10px;

    /* box scale */
    flex: none;
    padding: 20px;
    width: 92%;
    max-width: 50%;
    min-width: 800px;
    margin-top: 30px;
    margin-bottom: 30px;
    position: relative;
}

/* Video écran de début */
video#mainvid {
    /* Video */
    object-fit: cover;

    /* box style */ 
    background-image: radial-gradient(cornflowerblue, lightskyblue, cornflowerblue);

    /* box scale */
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;

    /* box animation */
    animation: transitrans 0.5s;
}

.videoback {
    /* Video */
    object-fit: cover;
    
    /* box scale */
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;

    /* box animation */
    animation: transitrans 4s;
}

/* Boutons */
.But {
    /* Font */
    font-weight: bold;
    font-weight: bold;

    /* box style */
    outline-color: transparent;
    border-radius: 30px;
    border-style: none;
    background-color: royalblue;

    /* box scale */
    padding: 5px 30px;
    margin-top: 10px;

    /* box animation */
    animation: transitrans 1s;

    /* box Cursor */
    cursor: pointer;
}

/* Boutons EVENT: onHover */
.But:hover {
    /* box style */
    background-color: cornflowerblue;
    animation: buttransi 1s;
}

/* Boutons EVENT: onClick */
.But:focus {
    /* box style */
    background-color: lightskyblue;
}

@keyframes buttransi {
    from {
        transform: scale(1,1);
    }
    50% {
        transform: scale(1.1,1.1);
    }
    to {
        transform: scale(1,1);
    }
}

/* Pied de bas de page */
footer {
    /* box style */
    background-color: rgb(245, 245, 247);

    /* box scale */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
}

/* Paragraphe normal */
p {
    /* Font */
    font-size: 85%;
}

/* Paragraphe + de marge en haut */
p.specialh {
    /* box scale */
    margin-top: 50px;
    margin-bottom: 5px;
}

/* Paragraphe marge normal */
p.specialh ~ p.special {
    /* box scale */
    margin-top: 5px;
    margin-bottom: 5px;
}

/* Paragraphe + de marge en bas */
p.special ~ p.specialb {
    /* box scale */
    margin-top: 5px;
    margin-bottom: 50px;
}

/* Marge dans section / div (mar) */
section.mar,
div.mar {
    /* box scale */
    margin-bottom: 100px;
}

/* Paragraphe style dans section h[1,2,3] obligatoire */
h3 ~ p,
h2 ~ p,
h1 ~ p {
    /* box scale */
    max-width: 50%;
    min-width: 700px;
    margin-bottom: 50px;
    margin-top: 50px;

    /* Font */
    word-spacing: 12px;
    line-height: 20px;

    /* Animation */
    animation: transitrans 1s;
}

/* Paragraphe style premiere lettre dans section */
section > p::first-letter {
    /* Font */
    font-size: 200%;
}

/* Texte dans index.html */
p#maintxt {
    /* Font */
    font-weight: bold;
    font-size: 200%;
    color: royalblue;

    /* box style */
    mix-blend-mode: difference;

    /* box animation */
    animation: transitrans 4s;
}

/* Source dans index.html */
div#main > i {
    /* Font */
    font-weight: bold;

    /* box style */
    mix-blend-mode: difference;

    /* box scale */
    position: fixed;
    bottom: 0px;
    right: 0px;
    margin: 10px;

    /* box animation */
    animation: transitrans 4s;
}

/* Style d'écriture dans footer */
footer > p {
    /* Font */
    font-size: 80%;
    color: darkgrey;

    /* box scale */
    margin: 10px;
}

/* Liens */
a:link,
a:visited,
a:hover {
    /* Font */
    color: lightblue;
}

/* Sélection texte */
::selection {
    /* Background */
    background: cornflowerblue;
}

/* Ajout Police Montserrat-Regular */
@font-face {
    font-family: "Montserrat-Regular";
    src: url("../fonts/Montserrat-Regular.ttf") format("ttf");
    src: url("../fonts/Montserrat-Regular.woff") format("woff");
}

/* Ajout Police Quantum */
@font-face {
    font-family: "Quantum";
    src: url("../fonts/Quantum.ttf") format("ttf");
    src: url("../fonts/Quantum.woff") format("woff");
}

/* Texte sur Video */
#texte_video {
    /* Font */
    text-align: center;

    /* box scale */
    position: relative;
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Grosse lettre */
span.hi {
    /* Font */
    font-weight: bold;
    color: skyblue;

    /* box animation */
    animation: transitrans 3s;
}

/* Liste */
section > ul {
    /* Liste */
    list-style-type: none;

    /* box style */
    border-color: lightcyan;
    border-style: solid;
    border-radius: 4px;

    /* box scale */
    padding: 5px;
    width: 250px;

    /* box animation */
    animation: transitrans 1s;
}

section > ul > li {
    /* Liste */

    /* box style */
    border-color: lightblue;
    border-style: solid;
    border-radius: 4px;

    /* box scale */
    padding: 5px;

    /* box animation */
    animation: transitrans 1s;
}

section > ul > li > ul {
    /* Liste */
    list-style-type: none;

    /* Font */
    color: skyblue;

    /* box style */
    border-color: lightskyblue;
    border-style: solid;

    /* box scale */
    padding: 5px;
    border-radius: 4px;

    /* box animation */
    animation: transitrans 1s;
}

/* 2 eme a propos en encadre rouge */
section > ul > li:nth-child(6) > ul {
    /* box style */
    border-color: red;
}

/* index en encadre olive */
section > ul > li:nth-child(1),
section > ul > li:nth-child(2) {
    /* box style */
    border-color: olive;
}

/* Langue dans index et indexen */
div#mainlang {
    /* box style */
    border-style: none;
    border-radius: 15px;
    background-color: royalblue;

    /* Font */
    font-weight: bold;
    font-size: 100%;

    /* box scale */
    position: fixed;
    bottom: 0;
    left: 0;
    margin: 10px;
    padding: 0px 10px;

    /* box animation */
    animation: transitrans 1s;
}

/* Langue dans footer */
strong#lang,
strong#lang > a {
    /* Lien */
    color: whitesmoke;
    font-weight: bold;

    /* box style */
    border-radius: 15px;
    border-style: none;
    background-color: royalblue;

    /* box scale */
    padding: 0px 5px;
}

div#mainlang > p > a {
    /* Font */
    color: whitesmoke;
}

/* Gallery */
div.gallery {
    /* Font */
    text-align: center;

    /* box animation */
    animation: transitrans 1s;
}

/* Gallery image style */
div.gallery > img {
    /* box scale */
    width: calc(750px / 3);
    padding: 15px;
    border-style: solid;
    border-width: thick;
    border-radius: 4px;
    border-color: whitesmoke;
    
    /* Transistion */
    transition-property: all;
    transition-duration: 1s ;
}

/* Barre sépration */
div.barre {
    /* box style */
    background-color: whitesmoke;

    /* box scale */
    display: block;
    max-width: 50%;
    min-width: 700px;
    height: 5px;
    border-style: none;
    border-radius: 5px;

    /* box animation */
    animation: transitrans 1s;
}

/* Bouton retour en haut */
strong#reenha > a {
    /* Font */
    color: whitesmoke;
    font-weight: bold;

    /* box style */
    background-color: royalblue;

    /* box scale */
    border-radius: 15px;
    border-style: none;
    padding: 0px 10px;
}

/* Keyframe transition invible a visible */
@keyframes transitrans {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Auto margin middle */
.marginauto {
    /* box scale */
    margin-left: auto;
    margin-right: auto;
    display: block;
}

/* Zoom on image */
section > img:hover , .gallery > img:hover {
    /* box scale */
    width: 95%;
    
    /* box style */
    border-color: skyblue;
    
    /* Transistion */
    transition-property: all;
    transition-duration: 1s ; 
}

section > img:hover{
    /* box scale */
    width: 95%;
}
.gallery > img:hover {
    /* box scale */
    width: 45%;
    
}

/* Info texte avec gallety avant */
.fit-picture ~ div.info > strong,
.gallery ~ div.info > strong {
    /* Font */
    color: darkgrey;
    font-size: 70%;
    text-align: center;
}

/* Info image */
div.info > img {
    /* box scale */
    height: 10px;
}