html, head, body{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #001b24;
    color: #FFFFFF;
}

h1{
    display: none;
}

h2 {
    margin-top: 0;
    color:#ee7553;
    margin-bottom: 30px;
}
h3 {
    margin-top: 0;
    font-weight: normal;
}
section {
    margin-bottom: 150px;
}
main {
    max-width: 80%;
    margin: auto;
}
a{
    color: #FFF;
    text-decoration: none;
}
/* Styles for the Menu - TOP BAR*/
/* ******************************************************************************************************************** */
.top-bar {
        display: flex;
        align-items: stretch;
        background-color: #0088b0;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        width: 40%;
        margin: 0 auto 20px;
        height: 64px; /* fixed height so children can use 100% */
        padding-left: 12px;
        gap: 12px;
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;
        min-width: 450px;
    }

    nav {
        flex-grow: 1;
        display: flex;
        justify-content: center;
        margin: 0; /* remove vertical margins so nav fills top-bar height */
        align-items: center;
    }

    nav ul {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        gap: 15px;
    }

    nav ul li a {
        text-decoration: none;
        color: #FFFFFF;
        padding: 10px 15px;
        display: block;
        transition: background-color 0.3s;
    }

    nav ul li a:hover {
        background-color: #006f8c;
        border-radius: 4px;
    }


/* Footer styles */
/* ******************************************************************************************************************** */
.main-footer {
    position: relative;
    background: #1f97ba;
    color: white;
    margin-top: 200px;
    padding-bottom: 20px;
}

.footer-text {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 10px;
}

.footer-text a {
    color: #fff;
}
.footer-text a:hover {
    text-decoration: underline;
}
/* --- Configuration du SVG --- */
.waves-container {
    position: absolute;
    top: -100px;
    width: 100%;
    height: 100px;
    overflow: hidden;
    line-height: 0;
}

.waves {
    position: relative;
    width: 100%;
    height: 100%;
    margin-bottom: -7px;
}

/* --- L'Animation --- */
.parallax > use {
    animation: move-forever 20s cubic-bezier(.55, .5, .45, .5) infinite;
}

/* Vague 1 (Arrière) : Plus lente pour l'effet de profondeur */
.parallax > use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 12s; /* Durée plus longue = plus lent */
}

/* Vague 2 (Devant) */
.parallax > use:nth-child(2) {
    animation-delay: -4s;
    animation-duration: 10s;
}

/* Le mouvement horizontal */
@keyframes move-forever {
    0% {
        transform: translate3d(-90px, 0, 0);
    }
    100% {
        transform: translate3d(85px, 0, 0);
    }
}


/* elements styles*/

button{
    background: linear-gradient(45deg, #1f97ba, #8fcaa7);
    color: white;
    border: none;
    padding: 10px 20px;
    margin-right: 10px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    transition: background 0.5s;
}
button:hover{
    background: #8fcaa7;
} 

/* 404 Page */
/* ******************************************************************************************************************** */
.error-404 {
    text-align: center;
    padding: 75px 20px;
    margin: auto;
}
.error-404 h2:first-child {
    font-size: 6em;
    margin-bottom: 20px;
}
.btn-return-home {
    display: inline-block;
    margin-top: 20px;
    background: linear-gradient(45deg, #1f97ba, #8fcaa7);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.5s;
}
.btn-return-home>a{
    color: white;
    text-decoration: none;
}
.btn-return-home:hover {
    background: #8fcaa7;
}
.btn-return-home>a:hover {
    text-decoration: none;
} 


/* styles for smartphone */
/* ******************************************************************************************************************** */
@media screen and (max-width: 768px) {
    section{
        margin-top: 3em !important; 
    }
    .top-bar {
        flex-direction: column;
        height: auto;
        width: 80%;
        padding: 10px 0;
        gap: 8px;
        min-width: unset;
    }
    .waves-container {
        height: 50px;
        top: -50px;
    }
}