@keyframes fadeInAnimation {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

body {
    background: linear-gradient(to right, #000000, #434343);
    animation: fadeInAnimation ease 3s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

h1 {
    transition: all 1.5s 0s ease;
    text-align: center;
    color: azure;
    font-family: 'Work Sans', sans-serif;
    letter-spacing: 0.20em;
}

img {
    display: block;
    height: 29vw;
    margin: auto;
}

.displayed {
    display: block;
}

nav {
    background-color: white;
    text-align: center;
    display: block;
    margin-right: auto;
    margin-left: auto;
    top: 0;
    width: 70%;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    margin-bottom: 80px;
}

.center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: auto;
    margin-bottom: auto;
    width: 40%;
    text-align: center;
}

h1.title {
    letter-spacing: 0.15em;
    margin-left: auto;
    margin-right: auto;
    font-style: italic;
    width: 40%;
}

div.accueil {
    display: flex;
    justify-content: space-between;
}

.histoire,
.economie,
.bibliographie,
.ecologie {
    position: relative;
    background-color: #000;
    padding-left: 1em;
    padding-right: 1em;
    border-radius: 1.7em;
}

h1 a {
    letter-spacing: 0.5px;
}

.img__wrap {
    position: relative;
}

div.haut {
    /* <div class="haut"> et <div class="bas"> */
    display: flex;
    justify-content: space-between;
    position: relative;
    align-items: flex-end;
    margin-top: 1.5em;
    position: sticky;
    font-size: 2vh;
}

div.bas {
    display: flex;
    justify-content: space-between;
    position: relative;
    font-size: 2vh;
}

div.haut div,
div.bas div {
    /* Les div qui sont contenus dans <div class="haut"> et "bas" */
    margin: auto;
    position: relative;
}

.accueil a {
    color: white;
    text-decoration: none;
}

.accueil a:hover {
    color: #f7931a;
}

.img__description_layer {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    color: #000;
    visibility: hidden;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    /* transition effect. not necessary */
    transition: opacity .2s, visibility .2s;
}

.zoom {
    transition: transform .2s;
    /* Animation */
    margin: 0 auto;
}

.zoom:hover {
    transform: scale(1.3);
    /* (150% zoom - Note: if the zoom is too large, it will go outside of the viewport) */
}

@media screen and (max-width:1050px) {
    h1.title {
        width: 80%;
        font-size: 1.5em;
    }
}