* {
    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;
}

/* BURGER MENU */
.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/toiture2.jpg');
    background-size: cover;
    background-position: center top;
    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);
    }
}

/* TEXT SECTION */
#text {
    padding: 50px;
    margin: 50px auto;
    max-width: 1200px;
    border-radius: 15px;
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.15);
    width: 100%;
}

.text-container {
    display: flex;
    justify-content: space-between;
    gap: 50px;
    flex-wrap: nowrap;
}

.text-block {
    width: 48%;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.text-block.blue-background {
    background: linear-gradient(to right, #e0eafc, #cfdef3);
}

.text-block h2 {
    color: #1a2a6c;
    font-size: 30px;
    margin-bottom: 25px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

.text-block p {
    color: #333;
    font-size: 20px;
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 20px;
    font-weight: 500;
}

/* 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 */
@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;
    }

    .text-container {
        flex-direction: column;
    }

    .text-block {
        width: 100%;
        margin-bottom: 20px;
    }

    .text-block h2 {
        font-size: 26px;
    }

    .text-block p {
        font-size: 17px;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .footer-section {
        width: 90%;
        text-align: center;
    }
}
