section.hero {
    position: relative;
    text-align: center;
    padding: 3rem 1rem;
    background: url("../images/ciel-bleu-Xc0pV41.webp") no-repeat center center;
    background-size: cover;
    color: #003F5C; /* Texte bleu nuit */
    border-bottom: 2px solid #EAF8F3;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centrage horizontal */
}

section.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.5); /* Blanc avec 50% d'opacité */
    z-index: 1;
}

section.hero .text-container {
    width: 100%;
    max-width: 780px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

section.hero > * {
    position: relative;
    z-index: 2;
}

section.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-family: 'Lobster', cursive;
    text-align: center; /* Centré par défaut */
}

section.hero p {
    font-size: 1.2rem;
    margin: 0;
    text-align: center;
    align-self: flex-end; /* Décalage à droite sur grand écran */
    margin-top: 1rem;
    padding-left: 10%; /* Décalage pour correspondre à l'effet souhaité */
}

.benefits {
    position: relative;
    width: 700px; /* Largeur totale de l'ellipse */
    height: 500px; /* Hauteur totale de l'ellipse */
    margin: 3rem auto;
    background: #EFF9E3;
    border-radius: 50%; /* Forme elliptique */
    border: 2px dashed transparent; /* Ligne pour débogage (remplacez par transparent une fois terminé) */
    max-width: 100%;
}

.bubble {
    position: absolute;
    background-color: #FFFFFF;
    border: 2px solid #A4D8E8;
    border-radius: 50%;
    width: 150px;
    height: 100px;
    display: flex;
    flex-direction: column; /* Empile les éléments verticalement */
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 1rem;
    font-weight: bold;
    color: #003F5C;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1;
    transform: translate(-50%, -50%);
}

.bubble strong {
    font-size: 1.2rem;
    color: #003F5C;
}

.bubble span {
    font-weight: normal;
    font-size: 0.9rem;
    color: #6E6E6E;
    margin-top: 0.5rem;
    text-transform: uppercase;
}

/* Positionnement des bulles sur l'ellipse */
.bubble:nth-child(1) { width: 200px; top: 10%; left: 50%; }    /* Haut */
.bubble:nth-child(2) { top: 20%; left: 75%; }   /* Haut-droite */
.bubble:nth-child(3) { top: 40%; left: 90%; }   /* Droite */
.bubble:nth-child(4) { top: 65%; left: 80%; }   /* Bas-droite */
.bubble:nth-child(5) { top: 85%; left: 63%; }   /* Bas */
.bubble:nth-child(6) { top: 65%; left: 20%; }   /* Bas-gauche */
.bubble:nth-child(7) { top: 40%; left: 10%; }   /* Gauche */
.bubble:nth-child(8) { top: 20%; left: 25%; }   /* Haut-gauche */
.bubble:nth-child(9) { top: 85%; left: 37%; } /* Position intermédiaire */


/* Tablettes (768px et moins) */
@media (max-width: 768px) {
    section.hero {
        align-items: center; /* Centrage complet pour tablette */
    }

    section.hero p {
        align-self: center; /* Recentre le texte */
        padding-left: 0; /* Supprime le décalage */
    }

}


/* Mobiles (480px et moins) */
@media (max-width: 480px) {

    section.hero h2 {
        font-size: 2rem; /* Ajuste la taille du texte */
    }

    section.hero p {
        font-size: 1rem; /* Réduit la taille pour mobile */
    }

    .benefits {
        display: block; /* La section devient un bloc classique */
        width: 100%; /* Prend toute la largeur */
        height: auto; /* S'ajuste en hauteur */
        background: none; /* Supprime le fond elliptique */
        border: none; /* Supprime la bordure */
    }

    .bubble {
        position: static; /* Supprime le positionnement absolu */
        width: auto; /* Prend la largeur de son conteneur */
        height: auto; /* Ajuste automatiquement la hauteur */
        margin: 1rem auto; /* Ajoute de l'espacement entre les bulles */
        padding: 1rem;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Une ombre plus discrète */
        text-align: left; /* Texte aligné à gauche pour la liste */
        transform: none; /* Supprime la transformation */
    }

    .bubble:nth-child(1) { width: auto; }

    .bubble span {
        text-align: center;
    }

    .bubble {
        font-size: 0.8rem;
    }
}