.wrap-section-activite {
    font-family:'Nunito',sans-serif;
    /*min-height: 92vh;*/
    margin: 0;
    margin-top:122px;
    padding-bottom: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.wrap-section-titre{font-family:'Nunito',sans-serif;
    margin: 0;
    margin-top:122px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;}


.wrap-section-titre h1{margin: 50px 0px;font-weight: bold;color:#0b1224;}
.wrap-section-titre h2{margin: 50px 0px;font-weight: bold;color:#333;}

#wrap-section-activite-compagnie h1{padding: 10px;background:#DB0049;text-align: center;}
#wrap-section-activite-ecole h1{padding: 10px;background:#5ec6a1;color:#333;text-align: center;}
#wrap-section-activite-circo h1,#wrap-section-activite-circo h2, #titre-principal-index{padding: 10px;background:#FF6A4D;width: 100%;text-align: center;}

.wrap-section-activite h2{margin-bottom: 50px;text-transform: uppercase;font-weight: 800;color:#222;}

#wrap-section-activite-circo{background: url(interface/pattern_circus.png) repeat #FF6A4D;}
#wrap-section-activite-ecole{background: url(interface/pattern_circus2.png) repeat #5ec6a1;}
#wrap-section-activite-compagnie{background: url(interface/pattern_circus5.png) repeat #DB0049;}

.wrap-section-activite section {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.activite {
    position: relative;
    transition: width 1s;
    cursor: pointer;
    border: 1px solid #444;
    border-radius: 5px;
    overflow: hidden;
    text-align: justify;
}

.activite-circo{width: 400px;height: 500px;border-radius:15px 15px;}
.activite-circo:hover{width: 500px;}
.activite-ecole{width: 300px;height: 500px;border-radius:0px 0px 15px 15px;}
.activite-ecole:hover{width: 400px;}
.activite-compagnie{width: 250px;height: 500px;border-radius:0px 0px 15px 15px;}
.activite-compagnie:hover{width: 350px;}


/*border: 2px solid #ecf0f1;*/

/*.activite:hover {
    width: 500px;
}*/

.activite:hover .activite-titre {
    display:none;
}

.activite .info {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-color: rgba(0,0,0,0.7);
    color: #fff;
    padding: 30px 20px;
    box-sizing: border-box;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;

}

.activite .info-circo{top: 500px;height: 500px;width: 500px;}
.activite .info-ecole{top: 500px;height: 500px;width: 400px;}
.activite .info-compagnie{top: 500px;height: 500px;width: 350px;}

.activite:hover .info {
    top: 0;
}
.activite img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.activite-titre{
    position: absolute;
    bottom:10%;
    padding: 15px 0px;
    background-color: rgba(255,255,255,.8);
    width: 100%;
    text-transform: uppercase;
    text-align: center;
    font-size: .8em;
    font-weight: 800;
}
.activite-titre h3{margin:0;color:#444;text-transform: uppercase;}

.activite .info h3 {
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 15px;
}
.info a {
    font-size: 18px;
    color: #f39c12;
    font-weight: 800;
    text-transform: uppercase;
    padding: 8px 10px;
    margin-top: 15px;
    background: #fff;
}
.info a:hover {
    text-decoration: none;
    color: #d35400;
}

/* Par défaut sur desktop : le lien ne prend pas toute la largeur */
.link-section {
    color: #fff;
    display: inline-block;
    height: 100%;
    text-decoration: none;
}

/* Sur mobile : on garde des cartes pleine largeur */
@media screen and (max-width: 750px) {
    .wrap-section-activite section .link-section {
        display: block;
        width: 100%;
    }
}

/*.link-section-block{color:#fff;display: block;width: 100%;height: 100%;}*/
/*.link-section-block p{font-size: .8em;text-transform: none;font-weight: normal;}*/
.link-section:hover{color:#fff;}
.link-section:visited{color:#fff;}
.link-section:active{color:#fff;}
/*.link-section h3{color:#fff;font-weight: 800;font-size:.9em;}*/
.link-section p{font-size: .8em;text-transform: none;font-weight: normal;}
.link-section p:hover{color:#fff;}

/* Sur écrans moyens/petits, l’overlay occupe toute la carte */
@media screen and (max-width: 1050px){
    .activite .info-circo,
    .activite .info-ecole,
    .activite .info-compagnie{
        width: 100%;
        height: 100%;
    }
}

/* Ajustement du décalage vertical quand le header n’est plus fixe */
@media screen and (max-width: 670px){
    .wrap-section-activite {
        margin-top: 0;
        padding-top: 20px;
    }
}

@media screen and (max-width: 750px) {
    .wrap-section-activite section {
        flex-direction: column;
    }
    .activite {
        width: 350px;
    }
    .activite .info {
        top: 0;
    }
}
