/* Styles de base pour le header */
header {
    background-color: #2c3e50;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Styles pour le logo */
.logo img {
    height: 50px;
}

/* Styles pour le bouton du menu mobile */
#menuToggle {
    display: none; /* Caché par défaut sur les grands écrans */
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    z-index: 1000; /* Assure que le bouton est au-dessus des autres éléments */
}

#menuToggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 4px 0;
    transition: transform 0.3s, opacity 0.3s;
}

/* Styles pour le menu */
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-right: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

/* Styles pour les petits écrans */
@media (max-width: 768px) {
    header {
        flex-direction: row; /* Garde le logo et le bouton sur la même ligne */
        align-items: center; /* Centre les éléments verticalement */
    }

    #menuToggle {
        display: flex; /* Afficher le bouton sur les petits écrans */
        margin-left: auto; /* Pousse le bouton à droite */
    }

    nav ul {
        display: none; /* Cacher le menu par défaut */
        flex-direction: column;
        background-color: #2c3e50;
        position: absolute;
        top: 70px;
        right: 20px;
        width: 200px;
        padding: 10px;
        border-radius: 5px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        z-index: 999; /* Assure que le menu est au-dessus des autres éléments */
    }

    nav ul li {
        margin: 10px 0;
    }

    nav ul.active {
        display: flex; /* Afficher le menu lorsqu'il est activé */
    }

    /* Animation du bouton */
    #menuToggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    #menuToggle.active span:nth-child(2) {
        opacity: 0;
    }

    #menuToggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

/* Styles pour le conteneur principal */
.container {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    text-align: center;
}

h1 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #2c3e50;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input, select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

button {
    background-color: #3498db;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

button:hover {
    background-color: #2980b9;
}
p{
    text-align: justify;
#result {
    margin-top: 20px;
    display: none;
}

#investmentChart {
    margin-top: 20px;
}

#advice {
    margin-top: 20px;
    text-align: left;
}

/* Styles pour la section "À propos" */
#a-propos {
    background-color: #f4f4f9;
    padding: 20px;
    margin-top: 20px;
    text-align: center;
}

#a-propos h2 {
    color: #2c3e50;
}

#a-propos p {
    color: #333;
    line-height: 1.6;
}