@keyframes flotter {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: linear-gradient(rgb(1, 15, 52), rgb(32, 63, 136));
    color: white;
    font-family: "Montserrat", sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

.conteneur{
    background-color: rgba(255, 255, 255, 0.155);
    border-radius: 100px;
    padding-top: 10px;
    padding-bottom: 1px;
    margin-top: 20px;
    margin-bottom: 30px;
    position: relative;
    width: 95%;
    margin-inline: auto;
}

.titre {
    text-align: center;
    margin: 30px 0;
    padding: 0 20px;
}

.titre h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}
.nom_activite{
    background-color: rgba(0, 136, 255, 0.47);
    border-radius: 10px;
    width:fit-content;
    margin-inline: auto;
    padding-inline: 7px;
    border-bottom: solid white;
}
.contenu {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 30px;
    padding: 0 20px;
    flex-wrap: wrap; /* Sécurité pour éviter les débordements */
}

.img-deco {
    width: 100%;
    max-width: 700px;
    height: 400px;
    object-fit: cover;
    display: block;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

p {
    max-width: 800px;
    margin-bottom: 30px;
    line-height: 1.6;
    font-size: 1.1em;
    flex: 1;
}

h2, h3 {
    text-align: center;
    margin: 20px 0;
    font-weight: 400;
}

a {
    color: white;
}

.booleen {
    background-color: rgba(255, 255, 255, 0.1);
    max-width: 500px;
    margin: 40px auto;
    padding: 20px;
    border-radius: 10px;
    border-bottom: solid white;
}

.booleen h3 {
    margin: 15px 0;
}

.lienweb {
    display: block;
    width: 200px;
    margin: 40px auto;
    padding: 15px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.8);
    color: rgb(0, 43, 137);
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s;
}

.lienweb:hover {
    background-color: white;
    transform: scale(1.05);
}

.retour {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1.2em;
    background-color: rgba(68, 122, 184, 0.9);
    border-radius: 30px;
    transition: all 0.3s;
    text-decoration: none;
    position: absolute;
    left: 20px;
    top: 40px;
    border-bottom: solid white;
}

.retour:hover {
    background-color: white;
    color: black;

}

.description{
    align-self: center;
border-bottom: solid rgb(255, 255, 255);
border-bottom-right-radius: 10px;
padding-bottom: 20px;
}

/* Responsive : empile image et texte en dessous de 1100px */
@media (max-width: 1100px) {
    .contenu {
        flex-direction: column;
        align-items: center;
    }

    .img-deco {
        height: 300px;
    }

    p {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .titre h1 {
        font-size: 1.8em;
    }

    .img-deco {
        height: 250px;
    }

    p {
        font-size: 1em;
    }

     .booleen {
        margin: 30px 20px;
        padding: 15px;
    }
 .conteneur {
        padding-top: 60px; /* un peu moins sur très petit écran */
    }
    .retour {
        top: 20px;
        margin: 20px;
        font-size: 1em;
    }
}

