/*
This stylesheet concern HTML files :
index.html
*/
* {
    margin: 0;
    padding: 0;
    text-decoration: none;
    list-style: none;
}

body {
    font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: #fcfcfc;
}

/*Navigation-Bar Elements*/
.navbar {
    padding: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 50px;
    background-color: black;
    box-sizing: border-box;
    position: fixed;
    top: 0px;
}

.navbar a {
    color: white;
}

.navbar .nav-nom {
    font-size: 2em;
    font-weight: bold;
}

.navbar .nav-links {
    display: flex;
}

.navbar .nav-links li {
    margin: 0 15px;
}

li.active a {
    color: #0efff3;
}

.nav-links a:hover {
    color: #0efff3;
}

/*Header Elements (Title)*/
header{
    box-sizing: border-box;
    display: block;
    width: 100%;
    height: 20rem;
    text-align: center;
    color: #fff;
    background-color: rgb(0, 0, 0);
}

header h2{
    font-size: 3rem;
    padding-top: 10rem;
    text-transform: none;
} 

/*RWD on screen with width < 1050px*/
@media screen and (max-width: 1050px) {
    .navbar{
        padding: 0;
        position: relative;
    }

    .nav-nom{
        display: flex;
        position: absolute;
        top: 30px;
        flex-direction: column;
        width: 100%;
        justify-content: center;
        align-items: center;
    }

    .nav-links {
        top: 100px;
        position: absolute;
        display: flex;
        flex-direction: column;
        width: 100%;
        justify-content: center;
        align-items: center;
    }
    .navbar .nav-links li {
        margin: 5px 0;
    }

    header{
        box-sizing: border-box;
        display: block;
        width: 100%;
        height: 20rem;
        text-align: center;
        color: #fff;
        background-color: rgb(0, 0, 0);
    }
    
    header h2{
        font-size: 3rem;
        margin: auto 2rem;
        text-transform: none;
    } 
}

/*Formatting various text elements*/
p{
    box-sizing: border-box;
    color: rgb(51, 51, 51);
    display: block;
    font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 20px;
    font-weight: 300;
    height: auto;
    line-height: 32px;
    margin-bottom: 40px;
    margin-left: 10%;
    margin-right: 10%;
    margin-top: 40px; 
    text-align: center;
}
p a {
    text-decoration: underline;
    color: rgb(15, 114, 160);
}
   
h2 {
    margin:0 0 35px;
	text-transform:uppercase;
	font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-weight:700;
	letter-spacing:1px;
    font-size: 30px;
    text-align: center;
}

h3 {
    margin:0 0 35px;
	text-transform:uppercase;
	font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-weight:700;
	letter-spacing:1px;
    font-size: 20px;
    text-align: center;
}

main {
    margin-top: 5rem;
}

.Datas {
    display: flex;
    margin-bottom: 5rem;
}


/*Tabledata*/
table{
    width: 30%;
    border: 1px solid black;
    border-collapse: collapse;
    margin-left: 10%;
    margin-right: 5%;
}

caption{
    background-color: black;
    color: white;
    text-align: center;
    padding: 8px;
    font-weight: bold;
}
th{
    background-color: gray;
    color: white;
    text-align: center;
    padding: 8px;
    font-weight: bold;
    border: 1px solid black;
}

td{
    border: 1px solid black;
    padding-left: 2rem;
}

.lignebleue {
    background-color: rgb(142, 214, 247);
    text-align: center;
    font-weight: bold;
}

/*Metrics frames style*/
.cadres{
    width: 40%;
    margin-right: 10%;
}
.cadre {
    margin-top: 20px;
}

.cadre-contenu {
    background-color: #f0f0f0;
    padding: 10px;
    border: 1px solid #313131;
    border-radius: 5px;
}

.cadre-contenu h3 {
    margin-bottom: 10px;
}
.cadre p{
    margin-bottom: 5px;
    margin-top: 5px; 
    text-align: left;
}

/*RWD on screen with width < 1450px for datas elements*/
@media screen and (max-width: 1450px) {

    .Datas {
        flex-direction: column; 
    }

    table {
        width: 50%; 
        margin-left: 25%; 
        margin-right: 25%;
    }

    .cadres {
        width: 60%; 
        margin-left: 20%; 
        margin-right: 20%;
    }
}
/*RWD on screen with width < 900px for datas elements*/
@media screen and (max-width: 900px) {

    .Datas {
        flex-direction: column; 
    }

    table {
        width: 70%; 
        margin-left: 15%; 
        margin-right: 15%;
    }

    .cadres {
        width: 80%; 
        margin-left: 10%; 
        margin-right: 10%;
    }
}

/*footer Elements */
footer {
    background-color: black;
    color: white;
    box-sizing: border-box;
    color: white;
    display: block;
    font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 20px;
    font-weight: 300;
    height: auto;
    line-height: 32px;
    text-align: center;
}

footer a {
    background-color: black;
    color: white;
    box-sizing: border-box;
    color: white;
    font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 20px;
    font-weight: 300;
    height: auto;
    line-height: 32px;
    text-align: center;
    font-weight: bold;
    text-decoration: underline;
}
footer img {
    width: 5%;
    min-width: 70px;
}