@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 400;
    src: url('fonts/lato-v16-latin-regular.eot');
    /* IE9 Compat Modes */
    src: local('Lato Regular'), local('Lato-Regular'), url('fonts/lato-v16-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
    url('fonts/lato-v16-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
    url('fonts/lato-v16-latin-regular.woff') format('woff'), /* Modern Browsers */
    url('fonts/lato-v16-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
    url('fonts/lato-v16-latin-regular.svg#Lato') format('svg');
    /* Legacy iOS */
}

html {
    font-size: 16px;
}

@media all and (orientation: portrait) {
    html {
        font-size: 22px;
    }
}

body {
    font-family: 'Lato', Arial, Helvetica, sans-serif;
    display: flex;
    margin: auto;
    background: black;
    color: #303030;
    max-width: 1200px;
}

@media all and (orientation: portrait) {
    body {
        flex-direction: column-reverse;
    }
}

h2 {
    text-transform: uppercase;
}

.arrowContainer {
    position: fixed;
    top: 5%;
    left: 5%;
    background-color: #0202023a;
    padding: 1rem 2rem;
    border-radius: 10rem;
    cursor: pointer;
}

.arrowContainer:hover {
    background-color: #0202028c;
}

.arrow {
    text-decoration: none;
    font-weight: bolder;
    font-size: 1.5rem;
    color: white;
}


/* Toute la barre rouge */

.barre_coloree {
    background: linear-gradient(#A80000, #C44040);
    max-width: 33%;
    display: flex;
    flex-direction: column;
    color: white;
}

.barre_coloree h2 {
    background: #303030;
    color: white;
    text-align: center;
    padding: 2%;
    font-size: 1.8rem;
}

.barre_coloree a {
    color: inherit;
}

.stat {
    display: inline;
    width: 5%;
    height: 5%;
}

.photoperso {
    display: block;
    margin: 20% auto 10% auto;
    padding: 1%;
    max-width: 220px;
    border-radius: 50%;
    background: #C44040;
}

ul {
    list-style-type: none;
}

li {
    margin: 5%;
    font-size: 1.2rem;
}

.barre_coloree article p {
    font-size: 1.2rem;
    text-align: justify;
    margin-left: 10%;
    margin-right: 10%;
}

.barre_coloree footer div {
    display: flex;
    justify-content: space-around;
}

.barre_coloree footer div img {
    width: 20%;
    height: 20%;
}


/* Agrandissement de la barre rouge en mode portrait et rétrécissement des icones loisirs*/

@media all and (orientation: portrait) {
    .barre_coloree {
        max-width: 100%;
    }
    .barre_coloree footer img {
        width: 15%;
        height: 15%;
        margin-left: 8%;
        margin-right: 8%;
        margin-bottom: 8%;
    }
}


/* Zone centrale */

h1 {
    font-size: 4rem;
    font-weight: lighter;
    font-style: normal;
    color: #505050;
    margin-top: 8%;
    margin-left: 10%;
    margin-bottom: 0;
    text-transform: uppercase;
}

em {
    font-style: normal;
    color: #B41010;
}

header h2 {
    font-size: 2rem;
    margin-left: 10%;
    margin-top: 0;
    margin-bottom: 10%;
    color: #505050;
    text-transform: none;
    font-weight: bold;
}

h2 span {
    border-bottom: 2px solid #B41010;
}

main {
    background: white;
    padding-left: 5%;
}

main img {
    display: inline-block;
    vertical-align: middle;
    margin-right: 3%;
    margin-bottom: 2%;
    width: 40px;
    height: 40px;
}

main section {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    font-size: 1.2rem;
}

@media all and (orientation: portrait) {
    main section {
        font-size: 1.3rem;
    }
}

main section h2,
main footer h2 {
    min-width: 95%;
    margin-bottom: 5%;
    border-bottom: 2px solid #B41010;
}

@media all and (orientation: portrait) {
    main section h2 {
        font-size: 2rem;
    }
}

main section h3 {
    text-transform: uppercase;
}

main section article {
    display: flex;
    flex-direction: column;
    max-width: 65%;
}

@media all and (orientation: portrait) {
    main section article {
        max-width: 95%;
    }
}

main section aside {
    min-width: 30%;
    padding-top: 2%;
    font-weight: bold;
    display: flex;
    font-size: 1rem;
}

@media all and (orientation: portrait) {
    main section aside {
        min-width: 95%;
        font-size: 1.8rem;
        padding-bottom: 2%;
    }
}

main section aside img {
    display: block;
    margin-top: 2%;
    margin-right: 5%;
    width: 15px;
    height: 15px;
}

@media all and (orientation: portrait) {
    main section aside img {
        width: 30px;
        height: 30px;
    }
}

main footer {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    font-size: 1.2rem;
}

main footer article {
    width: 50%;
}

@media all and (orientation: portrait) {
    main footer article {
        width: 90%;
        font-size: 1.8rem;
    }
}

h3,
h4 {
    margin-top: 1%;
    margin-bottom: 1%;
}