/* Réinitialisation propre */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* HTML et body prennent toute la hauteur */
html, body {
    width: 100%;
    height: 100%;
    font-family: 'Nunito', sans-serif;
}

/* Section principale avec image de fond responsive */
.accueil {
    width: 100%;
    height: 100vh;
    background-image: url("img/fond_01.png"); /* Ton image perso */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Effet sombre par-dessus l’image */
.accueil::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(63, 63, 63, 0.5); /* Filtre sombre */
    z-index: 1;
}

/* Texte centré et animé */
.accueil .contenu {
    position: relative;
    z-index: 2;
    color: #fff;
    text-align: center;
    font-size: 2.5rem;
    animation: fondu 2s ease-in-out;
    padding: 1rem;
}

/* Animation d'apparition */
@keyframes fondu {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive : adapter la taille du texte sur mobile */
@media (max-width: 600px) {
    .accueil .contenu {
        font-size: 2.5rem;
    }
}
