* {
    box-sizing: border-box;
    margin: 0px;
    padding: 0px;
}

body {
    background: #799dcf;
}

main {
    margin-left: auto;
    margin-right: auto;
    display: block;
    width: 100%;
    text-align: center;
    font-family: sans-serif;
}


/* Caracteristiques de l'image*/

.imge {
    width: 80%;
    border-radius: 20px;
    box-shadow: 0px 0px 8px black;
}


/* Animation piece */

#piece {
    visibility: hidden;
    float: left;
    position: absolute;
    z-index: 1000;
    left: 1px;
}


/* Animation image */

.imge:hover {
    -webkit-transform: scale(1.02);
    transform: scale(1.02);
    box-shadow: 0px 0px 15px black;
}

h1 {
    margin: 20px;
    text-shadow: 2px 2px 3px black;
    color: #dee9fc;
}


/* Parametres des parties */

section {
    display: block;
    border-radius: 15px;
    padding: 8px;
    box-shadow: 2px 2px 3px black;
    background: #dee9fc;
    -webkit-transform: scale(1);
    transform: scale(1);
    -webkit-transition: .3s ease-in-out;
    transition: .3s ease-in-out;
    z-index: 10;
}

h2 {
    margin: 20px;
}

p {
    display: block;
    text-align: left;
}


/* Liens */

section a {
    text-decoration-line: none;
    color: darkblue;
}


/* Couleur de la ligne des liens */

.underline {
    background-image: linear-gradient(90deg, rgba(184, 209, 244, 1) 0%, rgba(184, 209, 244, 1) 98%);
    background-repeat: no-repeat;
    background-size: 100% 0.2em;
    background-position: 0 88%;
    transition: background-size 0.25s ease-in;
}


/* Animation des liens */

.underline:hover {
    background-size: 100% 88%;
}

.nav {
    display: flex;
    position: sticky;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(88, 123, 169, 0.93);
    top: 0;
    z-index: 1000;
}


/* Parametres blocs Fonctions Succes Avenir */

.menu {
    list-style-type: none;
    display: flex;
    font-family: sans-serif;
    font-weight: bold;
    margin-right: 1px;
}


/*Sous-menu*/

.mder {
    list-style-type: none;
    display: none;
    text-align: center;
    background-color: rgba(88, 123, 169, 0.93);
    padding: 1rem;
    width: auto;
    padding: 0px;
    border-radius: 0px 0px 5px 5px;
}


/* Texte menu */

.menu a {
    text-decoration-line: none;
    display: grid;
    color: black;
    align-content: center;
    justify-content: center;
    color: aliceblue;
}


/* Animation passage souris*/

.menu a {
    position: relative;
    overflow: hidden;
    will-change: color;
    transition: color .25s ease-out;
}

.menu a::before,
.menu a::after {
    content: "";
    width: 0;
    height: 3px;
    background-color: var(--textUnderlinedLineColor, currentColor);
    position: absolute;
    bottom: 0;
}

.menu a::before {
    left: 50%;
    transform: translateX(-50%);
}

.menu a::after {
    right: 50%;
    transform: translateX(50%);
}

.menu a:hover::before,
.menu a:hover::after {
    width: 100%;
    transition-duration: .2s;
}

.menu li {
    display: block;
    position: relative;
}

.menu ul {
    position: absolute;
    z-index: 1000;
    left: 0;
    right: 0;
}


/* Adaptation ecrans */

@media screen and (max-width: 355px) {
    .logo {
        width: 4rem;
        margin-left: 13px
    }
    .menu a {
        padding: 3px 3px;
    }
    section {
        margin: 20px 8px;
    }
    p {
        margin: 10px 10px;
    }
}

@media screen and (min-width: 356px) and (max-width: 499px) {
    .menu a {
        padding: 10px 8px;
    }
    section {
        margin: 20px 8px;
    }
    .logo {
        width: 7rem;
        margin-left: 13px
    }
    p {
        margin: 10px 10px;
    }
}

@media screen and (min-width: 500px) and (max-width: 699px) {
    .menu a {
        padding: 20px 30px;
    }
    section {
        margin: 20px 25px;
    }
    nav>ul>li:hover .mder {
        display: block;
    }
    .logo {
        width: 7rem;
        margin-left: 13px
    }
    p {
        margin: 20px 30px;
    }
    section:hover {
        box-shadow: 5px 5px 10px black;
        -webkit-transform: scale(1.003);
        transform: scale(1.003);
    }
    .imge {
        -webkit-transform: scale(1);
        transform: scale(1);
        -webkit-transition: .3s ease-in-out;
        transition: .3s ease-in-out;
        z-index: 10;
    }
}

@media screen and (min-width: 700px) and (max-width: 1199px) {
    section {
        margin: 20px 40px;
    }
    .menu a {
        padding: 20px 40px;
    }
    nav>ul>li:hover .mder {
        display: block;
    }
    .logo {
        width: 7rem;
        margin-left: 13px
    }
    p {
        margin: 20px 45px;
    }
    section:hover {
        box-shadow: 5px 5px 10px black;
        -webkit-transform: scale(1.003);
        transform: scale(1.003);
    }
    .imge {
        -webkit-transform: scale(1);
        transform: scale(1);
        -webkit-transition: .3s ease-in-out;
        transition: .3s ease-in-out;
        z-index: 10;
    }
    #piece {
        animation-name: mon_animation;
        animation-duration: 2s;
    }
    @keyframes mon_animation {
        from {
            transform: translate(0px, 0px);
            visibility: visible;
        }
        to {
            transform: translate(800px, 0px);
        }
    }
}

@media screen and (min-width: 1200px) {
    section {
        width: 1100px;
        margin: 20px auto;
    }
    .menu a {
        padding: 20px 40px;
    }
    nav>ul>li:hover .mder {
        display: block;
    }
    .logo {
        width: 7rem;
        margin-left: 13px
    }
    p {
        margin: 20px 45px;
    }
    section:hover {
        box-shadow: 5px 5px 10px black;
        -webkit-transform: scale(1.003);
        transform: scale(1.003);
    }
    .imge {
        -webkit-transform: scale(1);
        transform: scale(1);
        -webkit-transition: .3s ease-in-out;
        transition: .3s ease-in-out;
        z-index: 10;
    }
    #piece {
        animation-name: mon_animation;
        animation-duration: 2s;
    }
    @keyframes mon_animation {
        from {
            transform: translate(0px, 0px);
            visibility: visible;
        }
        to {
            transform: translate(1700px, 0px);
        }
    }
}