body {
    margin: 0;
    padding: 0;
    font-family: "League spartan", sans-serif;

    /* Juste pour voir l'effet du scroll */
}

/* #region HEADER*/
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    color: black;
    padding: 0px;
    text-align: center;
    transition: transform 0.3s ease-in-out;
}

h1 {
    font-family: "Advent Pro", sans-serif;
}

h1 a {
    text-decoration: none;
    color: red;
}

.inner {
    margin: 0 80px;
}

header.hidden {
    transform: translateY(-100%);
}

footer.at-bottom {
    transform: translateY(0%);
}

.flexnav li {
    padding-left: 30px;
    list-style: none;
}

nav ul a {
    text-decoration: none;
    color: black;
}

nav ul a:hover {
    color: red;
}

.flexnav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flexul {
    display: flex;
}

/* #endregion HEADER*/


/* Styles pour le menu burger */
.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: black;
    margin: 4px;
}

/* Styles pour le bouton de fermeture */
.close-btn {
    display: none;
    font-size: 2em;
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
}

/* MAIN */
main {
    min-height: 200vh;

}

.flexmain01 {
    display: flex;
    justify-content: space-between;
    padding-top: 120px;
}

.flexmain02 {
    display: flex;
    justify-content: space-between;
    padding-bottom: 80px;
    border-bottom: solid 2px black;
}

.flexmain03 {
    display: flex;
    justify-content: space-between;
    gap: 1em;
}

.text01 {
    padding-top: 90px;
    margin: 0;
    width: 700px;
    text-align: justify;
}

.text02 {
    margin: 0;
    width: 700px;
    text-align: justify;
}

.title {
    padding: 50px 0 30px;
}

h2 {
    margin: 0;
}

h3 {
    font-size: small;
    margin: 0;
    color: grey;
}

.grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1em;
    padding-top: 40px;
    padding-bottom: 80px;
    border-bottom: solid 2px black;
}

.block {
    width: 100%;
    height: 40vh;
    display: block;
}

.small {
    grid-column: span 1;
    /*background-color: gray;*/
}

.medium {
    grid-column: span 2;
    /*background-color: black;*/
}

.large {
    grid-column: span 3;
    /*background-color: darkolivegreen;*/
}

img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

video {
    width: 100%;
    padding-bottom: 300px;
}

/* #endregion MAIN */

/* Form Contact */

.contact-form {
    max-width: 600px;
    margin: 0;
    padding: 80px;
    border-radius: 8px;
}

.contact-form h2 {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

textarea {
    height: 150px;
}

button {
    width: 30%;
    padding: 10px;
    background-color: red;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

button:hover {
    background-color: rgb(176, 0, 0);
}

/* #endregion Form Contact */

/* FOOTER */

footer {
    width: 100%;
    height: 20vh;
    background-color: white;
    transform: translateY(100%);
    position: fixed;
    bottom: 0;
    transition: transform 0.3s ease-in-out;
}

.flexfooter {
    display: flex;
    justify-content: flex-start;
    border-top: solid black 2px;
}

.navfooter {
    padding-right: 50px;
}

.navfooter ul {
    padding: 0;
}

.navfooter li {
    list-style: none;
    padding-bottom: 16px;
}

/* #endregion FOOTER*/

/* Ajout des media queries pour le responsive design */

@media (max-width: 1200px) {

    .flexmain01,
    .flexmain02,
    .flexmain03 {
        flex-direction: column;
    }

    .text01,
    .text02 {
        width: 100%;
    }

    .inner {
        margin: 0 40px;
    }

    .grid {
        display: block;
        grid-template-columns: repeat(2, 1fr);
    }

    .block {
        height: auto;
    }

    video {
        padding-bottom: 100px;
    }
}

@media (max-width: 768px) {
    .flexul {
        display: none;
        flex-direction: column;
        width: 100%;
        position: fixed;
        top: 0;
        right: -100%;
        height: 100%;
        background-color: white;
        transition: right 0.3s ease-in-out;
        padding-top: 60px;
    }

    .flexnav {
        justify-content: space-between;
        position: relative;
    }

    .burger {
        display: flex;
    }

    .flexul.active {
        display: flex;
        right: 0;
    }

    .flexul.active~.close-btn {
        display: block;
    }

    .flexul li {
        text-align: center;
        padding: 10px 0;
        border-top: 1px solid #ddd;
    }

    .flexul li:first-child {
        border-top: none;
    }

    .flexmain01,
    .flexmain02,
    .flexmain03 {
        gap: 0.5em;
    }

    .inner {
        margin: 0 20px;
    }

    .grid {
        display: block;
        grid-template-columns: 1fr;
    }

    .title {
        padding: 30px 0 20px;
    }

    .block {
        height: auto;
    }

    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    video {
        width: 100%;
        padding-bottom: 50px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5em;
    }

    nav ul a {
        padding: 10px;
    }

    .text01,
    .text02 {
        padding-top: 20px;
    }

    .flexmain03 {
        padding-bottom: 100px;
    }

    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    video {
        width: 100%;
        height: auto;
        padding-bottom: 10px;
    }

    .grid {
        gap: 0.5em;
    }
}