/* Reset */
*{box-sizing:border-box}
html,body{height:100%}
body{
    margin:0;
    font-family:Arial, Helvetica, sans-serif;
    background:#39a5f2aa;
    color:black;
    display:flex;
    align-items:center;
    justify-content:center;
}

.hero{
    display:flex;
    align-items:center;
    justify-content:center;
    height:100vh;
    padding:0 15px; /* Ajout d'un padding latéral */
}

.image-container{
    position:relative;
    display:inline-block;
    border-radius:12px;
    overflow:hidden;
    max-width:100%; /* Important pour le responsive */
    width:100%;
}

/* Image responsive */
.image{
    width:100%; /* Au lieu de 1050px fixe */
    max-width:1050px; /* Limite la taille sur grand écran */
    height:auto;
    display:block;
    filter:brightness(135%);
}

/* Dégradé doux + texte centré */
.overlay{
    position:absolute;
    inset:0;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    padding:25px;
    color:white;
    background:linear-gradient(
        rgba(0,0,0,0.05),
        rgba(0,0,0,0.65)
    );
    font-weight: bold;
}

.overlay h1{
    font-size:2rem; /* Taille par défaut */
    margin:0 0 15px 0;
}

.overlay p{
    font-size:1.1rem;
    margin:0;
    line-height:1.5;
}

.footer{
    width:100%;
    text-align:center;
    font-size:0.95rem;
    padding:12px 0;
    color:white;
    position:fixed;
    bottom:0;
    left:0;
    backdrop-filter:blur(6px);
    background:linear-gradient(
        to top,
        rgba(0,0,0,0.15),
        rgba(0,0,0,0)
    );
}

/* Mobile */
@media(max-width:600px){
    .hero{
        padding:0 10px;
    }
    
    .overlay{
        padding:15px;
    }
    
    .overlay h1{
        font-size:1.5rem;
    }
    
    .overlay p{
        font-size:0.95rem;
    }
    
    .footer{
        font-size:0.75rem;
        padding:10px 5px;
    }
}