* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
}

/* HEADER */
header {
    background-color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 175px;
    padding: 10px 20px;
}

header .logo {
    flex-shrink: 0;
}

header .logo img {
    max-width: 150px;
    height: auto;
}

header nav {
    display: flex;
    justify-content: space-around;
    flex-grow: 1;
}

header nav ul {
    list-style-type: none;
    display: flex;
    padding: 0;
    margin: 0;
}

header nav ul li {
    display: inline-block;
    padding: 0 60px;
    white-space: nowrap;
}

header nav ul li a {
    color: #04234F;
    text-decoration: none;
    font-size: 20px;
    transition: color 0.3s, transform 0.3s;
}

header nav ul li a:hover {
    color: black;
    transform: scale(1.1);
    font-size: 22px;
}

/* Menu Burger */
.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.burger div {
    width: 30px;
    height: 3px;
    background-color: #04234F;
    margin: 5px;
    transition: all 0.3s ease;
}

.nav-links {
    display: flex;
}

/* HERO */
#hero {
    background-color: #166EBA;
    background-image: url('../img/vue-inspirante-lumiere-du-matin_23-2148851773.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    color: #04234F;
    text-align: center;
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    z-index: 1;
    position: relative;
}

#hero h1 {
    font-size: 3em;
    font-weight: bold;
    margin-bottom: 20px;
    letter-spacing: 3px;
    opacity: 0;
    animation: fadeIn 1s ease-out 1s forwards;
}

#hero p {
    font-size: 1.5em;
    font-weight: bold;
    opacity: 0;
    animation: fadeIn 1s 1.5s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CAROUSEL */
#section-carousel {
    margin: 80px auto;
    display: flex;
    justify-content: center;
}

.carousel {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 80px auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.carousel-track-container {
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 800px;
    object-fit: cover;
    display: block;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    border: none;
    padding: 10px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    z-index: 1;
    border-radius: 50%;
}

.carousel-button:hover {
    background: rgba(255, 255, 255, 0.6);
}

.carousel-button.prev {
    left: 10px;
}

.carousel-button.next {
    right: 10px;
}

/* FOOTER */
#footer-principal {
    background-color: #04234F;
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.footer-section {
    width: 30%;
    padding: 10px;
    margin: 10px;
}

.footer-section h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.footer-section p,
.footer-section ul {
    font-size: 1em;
    color: white;
}

.footer-section ul {
    list-style-type: none;
    padding: 0;
}

.footer-section ul li a {
    text-decoration: none;
    color: white;
    display: block;
    margin: 5px 0;
}

.footer-section ul li a:hover {
    color: black;
}

footer p {
    margin-top: 20px;
    font-size: 0.9em;
    color: white;
}

/* RESPONSIVE MOBILE */
@media (max-width: 768px) {
    header {
        height: auto;
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }

    .logo img {
        max-width: 100px;
    }

    .burger {
        display: flex;
        position: absolute;
        top: 15px;
        right: 20px;
        z-index: 10;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: white;
        position: absolute;
        top: 100px;
        left: 0;
        text-align: center;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        padding: 15px 0;
    }

    .carousel-slide img {
        height: auto;
    }

    .carousel-button {
        font-size: 1.5rem;
        padding: 8px;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .footer-section {
        width: 90%;
        text-align: center;
    }
}
