/* Réinitialisation de base et styles généraux */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Poppins', sans-serif;
    background-color: #f0f2f5; /* Couleur de fond neutre, peut être ajustée */
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden; /* Empêche le défilement si les icônes débordent */
}

.container {
    position: relative;
    padding: 40px 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1; /* Pour être au-dessus des icônes */
}

.content h1 {
    font-size: 2.5em; /* Ajustable */
    color: #1a1a1a;
    margin-bottom: 15px;
    font-weight: 700;
}

.content p {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Style du formulaire */
#subscribe-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px; /* Espace entre l'input et le bouton */
    flex-wrap: wrap; /* Permet au bouton de passer en dessous sur petit écran */
}

#subscribe-form input[type="email"] {
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    flex-grow: 1; /* Prend l'espace disponible */
    min-width: 200px; /* Largeur minimale */
}

#subscribe-form button {
    padding: 12px 25px;
    background-color: #3498db; /* Bleu similaire à l'image */
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#subscribe-form button:hover {
    background-color: #2980b9; /* Bleu un peu plus foncé au survol */
}

/* Messages de confirmation et d'erreur */
#confirmation-message {
    color: green;
    margin-top: 15px;
    font-weight: 600;
}

#error-message {
    color: red;
    margin-top: 15px;
    font-weight: 600;
}

/* Zone pour les animations (sera stylisée plus tard) */
.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0; /* Derrière le contenu */
}

/* Responsive Design */
@media (max-width: 640px) {
    .container {
        margin: 20px;
        padding: 30px 15px;
    }

    .content h1 {
        font-size: 2em;
    }

    .content p {
        font-size: 1em;
    }

    #subscribe-form {
        flex-direction: column; /* Empile les éléments verticalement */
        align-items: stretch; /* Étire les éléments sur toute la largeur */
    }

    #subscribe-form input[type="email"] {
        width: auto; /* Annule le flex-grow */
        margin-bottom: 10px; /* Espace sous l'input */
    }

    #subscribe-form button {
        width: 100%; /* Bouton pleine largeur */
    }
}

/* Cible uniquement le paragraphe de description */
.content p.description {
    text-align: left;
    margin: 20px 0;
    padding: 0 10%;
}

/* Cible uniquement la liste à puces */
.content ul {
    text-align: left;
    margin: 20px 0;
    padding: 0 10%;
    list-style-type: none;
}

/* Style des éléments de liste avec checkmark */
.content ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

.content ul li:before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #3498db; /* Couleur bleue pour les checkmarks */
}

/* Styles pour les icônes flottantes */
.floating-icon {
    position: absolute;
    display: block;
    user-select: none; /* Empêche la sélection du texte de l'icône */
    animation: float 20s infinite linear;
    opacity: 0.6;
}

/* Animation de flottement */
@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.3;
    }
    100% {
        transform: translateY(0) rotate(360deg);
        opacity: 0.6;
    }
}

