body {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    font-family: 'Poppins', sans-serif !important;
    background-color: #ffffff !important; /* Couleur de fond plus claire */
    justify-content: center !important;
    align-items: center !important;
    min-height: 110vh !important;
    position: relative !important;
}

.animated-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 110%;
    z-index: -1;
    overflow: hidden;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(70, 206, 214, 0.9), rgba(0, 0, 0, 0));
    opacity: 0.7;
    animation: move 10s infinite alternate ease-in-out;
}

.circle:nth-child(1) {
    width: 300px;
    height: 300px;
    top: 15%;
    left: 25%;
    animation-duration: 14s;
}

.circle:nth-child(2) {
    width: 450px;
    height: 450px;
    top: 40%;
    left: 55%;
    animation-duration: 18s;
}

.circle:nth-child(3) {
    width: 600px;
    height: 600px;
    top: 70%;
    left: 10%;
    animation-duration: 20s;
}

@keyframes move {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(80px, -80px) scale(1.3);
    }
    100% {
        transform: translate(-80px, 80px) scale(1);
    }
}

/* Formulaire de contact */
.form-container {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 100%;
    max-width: 600px; /* Amélioration pour les grands écrans */
    padding: 20px;
    box-sizing: border-box;
}


@media (min-width: 480px) {
    .form-container {
        width: 90%; /* Prend 90% de la largeur pour les petits écrans */
    }

    .card {
        padding: 15px; /* Réduire encore plus le padding dans la card */
        margin: 10px;
    }

    .floating-btn {
        padding: 12px 18px;
        font-size: 1rem;
    }

    input, textarea, button[type="submit"] {
        font-size: 0.9rem; /* Ajuster la taille des champs et boutons */
    }
}

.card {
    border-radius: 10px;
    background-color: #fff;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    width: 100%;
    padding: 30px;
    margin: 0px;
}

/* Responsivité : Réduire les paddings et marges pour les petits écrans */
@media (max-width: 768px) {
    .card {
        padding: 20px; /* Réduire le padding pour les petits écrans */
        margin: 0px; /* Réduire la marge */
    }

    .floating-btn {
        padding: 12px 20px;
        font-size: 1rem;
    }

    input, textarea, button[type="submit"] {
        font-size: 1rem; /* Ajuster la taille des champs et boutons */
    }
}

/* Formulaire de contact : Adaptations supplémentaires */
.card-body {
    padding: 0;
}

input, textarea {
    background-color: #f2f2f2;
    border: 1px solid #ccc;
    color: #333;
    border-radius: 5px;
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    font-size: 1rem;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #529dd7;
    box-shadow: 0 0 5px rgba(255, 51, 51, 0.5);
}

button[type="submit"] {
    background-color: #529dd7;
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    color: white;
    font-size: 1.2rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

button[type="submit"]:hover {
    background-color: #1866a2;
    transform: scale(1.05);
}
