

.carte-rubrique {
     position: relative;
     overflow: hidden;
     border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: 0.3s;
}

.carte-rubrique:hover {
    transform: translateY(-5px);
}

.carte-rubrique img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.overlay-rubrique {
    position: absolute;
    inset: 0;

    display: flex;
    flex-direction: rcolumn;
    justify-content: flex-end;

    padding: 2rem;

    background: linear-gradient(
        to top,
         rgba(0,0,0,0.75) 0%,    /* noir opaque tout en bas */
        rgba(0,0,0,0.4)  10%,   /* transition */
        rgba(0,0,0,0)    95%    /* complètement transparent dès 65% de hauteur */
    );

    z-index: 2;
}

.overlay-rubrique h3 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
    font-weight: 800;
}

.overlay-rubrique h3 a {
    color: white !important;
    text-decoration: none;
}

.overlay-rubrique p {
    margin: 0;
    color: white !important;
    font-size: 1rem;
}

.carte-actu:hover {
    transform: translateY(-5px);
}

.contenu-carte {
    padding: 1.5rem;
}

.contenu-carte h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.contenu-carte a {
    color: var(--velo2-bleu);
    text-decoration: none;
}

.bloc-agenda {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.evenement {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.date-evenement {
    min-width: 70px;
    background: linear-gradient(
        135deg,
        var(--velo2-turquoise),
        var(--velo2-vert)
    );

    color: white;
    font-weight: bold;
    border-radius: 14px;
    text-align: center;
    padding: 0.7rem;
}

.section-presentation {
    background: var(--gris-clair);
}

.footer-velo2 {
    background: var(--velo2-bleu);
    color: white;
    margin-top: 5rem;
}

.footer-velo2 h3 {
    font-weight: 800;
}

.carte-hero {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.img-hero {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}

.overlay-hero {
    position: absolute !important;;
    inset: 0 !important;;
    display: flex !important;;
    align-items: center;
    justify-content: center;
     white-space: pre-line;  /* ← interprète les retours à la ligne */
    padding: 2rem;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.75) 0%,
        rgba(0,0,0,0.4)  10%,
        rgba(0,0,0,0)    95%
    );
    z-index: 100 !important;;
}

.texte-rotatif {
    color: rgb(65, 210, 223) !important;;
    font-size: 2.6rem;
    font-weight: 700;
    text-align: center;
    padding: 2% 2%;

    /* Transition de fondu */
    opacity: 1 !important;;
    transition: opacity 0.5s ease;
}

@media (max-width: 768px) {

    .hero-velo2 {
        text-align: center;
        padding: 3rem 0;
    }

    .hero-velo2 h1 {
        font-size: 2.2rem;
    }

    .logo-velo2 {
         height: 30px ! important ;
         width: auto ! important ;
         max-width: 100%;
    }
}
