body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: #7338A0;
    color: #5e268a;
    overflow-x: hidden; /* Empêche le débordement horizontal */
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: #a772d3;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    position: relative;
    z-index: 3;
    animation: fadeInDown 1s ease-in-out;
}

.navbar .logo {
    font-size: 70px;
    font-weight: bold;
    color: #924DBF;
    text-decoration: none;
    border-bottom: 2px solid transparent; /* Soulignement transparent par défaut */
    padding-bottom: 5px; /* Espace pour le soulignement */
    transition: color 0.3s ease, border-bottom 0.3s ease;
}

.navbar .logo:hover {
    color: #7338A0;
    border-bottom: 2px solid #7338A0; /* Soulignement au survol */
}

.navbar .links {
    display: flex;
    gap: 30px;
    margin-left: auto;
}

.navbar .links a {
    color: #924DBF;
    text-decoration: none;
    font-size: 35px;
    font-weight: bold;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 2px solid transparent; /* Soulignement transparent par défaut */
    padding-bottom: 5px; /* Espace pour le soulignement */
}

.navbar .links a:hover {
    color: #7338A0;
    border-bottom: 2px solid #7338A0; /* Soulignement au survol */
}

.navbar .links a.active {
    color: #7338A0;
    border-bottom: 2px solid #7338A0; /* Soulignement pour l'élément actif */
}

.contact-container {
    background-color: #924DBF;
    color: #5e268a;
    padding: 40px 20px;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    margin-top: -30px; /* Ajuste pour chevaucher visuellement la barre de navigation */
    position: relative;
    z-index: 2;
    overflow: hidden;
    animation: fadeInUp 1s ease-in-out;
}

.contact-info {
    text-align: center;
    font-size: 24px;
    animation: fadeIn 1.5s ease-in-out;
}

.contact-info a {
    color: #5e268a;
    text-decoration: none;
    transition: text-decoration 0.3s ease;
}

.contact-info a:hover {
    text-decoration: underline;
}

.contact-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    width: 50%;
    max-width: 500px;
    margin: 30px auto;
    text-align: center;
    animation: fadeInUp 1s ease-in-out;
}

.contact-form h2 {
    color: #5e268a;
    font-size: 30px;
    animation: slideInFromLeft 1s ease-in-out;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.contact-form label {
    font-size: 20px;
    color: #5e268a;
    margin-top: 10px;
    text-align: left;
    animation: fadeIn 1.5s ease-in-out;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    max-width: 100%;
    padding: 10px;
    border: 2px solid #924DBF;
    border-radius: 5px;
    font-size: 18px;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    box-sizing: border-box;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: #a772d3;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    margin-top: 15px;
    background-color: #a772d3;
    color: #963fd8;
    font-size: 20px;
    font-weight: bold;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    animation: fadeIn 1s ease-in-out;
}

.contact-form button:hover {
    background-color: #924DBF;
    transform: scale(1.05);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media screen and (max-width: 768px) {

    .contact-container {
        padding: 20px;
    }

    .contact-info {
        font-size: 20px;
    }

    .contact-form {
        width: 90%;
        max-width: 400px;
    }

    .contact-form h2 {
        font-size: 24px;
    }

    .contact-form label {
        font-size: 18px;
    }

    .contact-form input, .contact-form textarea {
        font-size: 16px;
        padding: 8px;
    }

    .contact-form button {
        font-size: 18px;
        padding: 10px;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 15px;
    }

    .navbar .logo {
        font-size: 40px; /* Réduction de la taille du logo */
    }

    .navbar .links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
    }

    .navbar .links a {
        font-size: 20px; /* Ajustement des liens */
        padding: 10px 0;
        width: 100%;
        text-align: center;
        background-color: rgba(255, 255, 255, 0.1); /* Légère couleur de fond */
        border-radius: 10px;
    }
}