/* Styles de navigation */
header {
    background-color: #1A2A3A; /* Couleur opaque */
    padding: 1rem 1rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease-in-out;
    box-sizing: border-box;
}

header nav {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: center;
    align-items: center; /* Centrer verticalement les éléments */
    margin: 0 auto;
}

nav ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    justify-content: center; /* Centrer les éléments */
    width: 100%;
    max-width: 800px;
    margin: 0;
    transition: transform 0.3s ease-in-out;
}

nav ul li {
    margin-left: 3rem; /* Réduire l'espace entre les éléments */
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #ff6b6b;
}

.ctaheader-button {
    display: inline-block;
    background-color: #ff6b6b;
    color: #ffffff;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.ctaheader-button:hover {
    background-color: #ff8787;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1101;
    position: relative;
}

.hamburger:focus {
    outline: none;
}

.hamburger-line {
    width: 2rem;
    height: 0.25rem;
    background: #ffffff;
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

.hamburger.toggle .hamburger-line:nth-child(1) {
    transform: rotate(45deg);
}

.hamburger.toggle .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.hamburger.toggle .hamburger-line:nth-child(3) {
    transform: rotate(-45deg);
}

/* CSS pour le footer */
.footer {
    background-color: rgba(26, 42, 58, 0.8);
    color: #ffffff;
    text-align: center;
    padding: 1rem 0;
    position: relative;
    bottom: 0;
    width: 100%;
}

.footer p {
    margin: 0;
    font-size: 0.9rem;
}

/* Styles de la pop-up */
.popup {
    display: none; /* Masqué par défaut */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    z-index: 2000;
}

.popup-content {
    position: relative;
}

/* Responsive Styles pour la navigation */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
        z-index: 1101;
    }

    header nav {
        justify-content: space-between;
        margin-left: -1rem;
    }

    nav ul {
        flex-direction: column;
        background-color: rgba(26, 42, 58, 0.9);
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 100%;
        align-items: center;
        justify-content: center;
        transform: translateX(100%);
    }

    nav ul.nav-active {
        transform: translateX(0);
    }

    nav ul li {
        margin: 1.5rem 0;
    }

    nav ul li a {
        font-size: 1.5rem;
    }

    .logo {
        width: 50%;
        height: auto;
        margin-right: 1rem;
    }

    .ctaheader-button {
        font-size: 1rem; /* Ajustez cette valeur pour changer la taille du texte */
        padding: 1rem 2rem; /* Ajustez le padding si nécessaire */
    }
}