/* HERO VIDEO  En-tête transparent au-dessus du hero */
body:has(.hero-video) header, body:has(.hero-video) {
    background: transparent !important;
}

body:has(.hero-video) header {
    z-index: 20;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

/* Vidéo pleine largeur */
.hero-video {
    margin-top: 0!important;
    width: 100%;
    max-width: none !important;
    max-height: 300px;

}


/* mini agenda */
.tribe-events-widget-events-list__header h2 {
    font-size: 36px!important;
}

.tribe-events-widget h3.tribe-events-widget-events-list__event-title a {
    font-size: 16px!important;
}
.tribe-events-widget h3.tribe-events-widget-events-list__event-title {
    line-height: 22px!important;
}
.tribe-events-widget .tribe-events-widget-events-list__event-date-tag-month, .tribe-events-widget .tribe-events-widget-events-list__event-date-tag-daynum {
    font-weight: 400!important;
}
.tribe-events-widget a.tribe-events-widget-events-list__view-more-link {
    background: transparent none;
    border-color: rgb(43, 39, 38);
    border-width: 1px;
    border-style: solid;
    padding-top: calc(1rem - 1px);
    padding-right: calc(2.25rem - 1px);
    padding-bottom: calc(1rem - 1px);
    padding-left: calc(2.25rem - 1px);
    border-radius: 9999px!important;
    color: rgb(43, 39, 38)!important;
    text-decoration: none;
    margin-top: 15px;
}

.tribe-events-widget .tribe-events-widget-events-list__header, .tribe-events-widget-events-list__event-header {
     position: static!important;
}


/* CARROUSEL DE TEMOIGNAGES */

.testimonial-slider {
    position: relative;
    max-width: 700px;
    margin: auto;
    text-align: center;
}

.testimonial-track {
    display: grid;
    grid-template-columns: 1fr;
}

.testimonial {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.7s ease, visibility 0s linear 0.7s;
    padding: 10px;
}

.testimonial.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.7s ease;
}


.testimonial-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #ffffff;
}

.testimonial-avatar span {
    font-weight: 600;
    color: #333333;
}


.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.testimonial p {
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.8;
}

.testimonial-author {
    display: block;
    margin-top: 20px;
    font-weight: 600;
}

/* NAVIGATION */

.testimonial-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 25px;
}

.testimonial-arrow {
    border: none;
    background: transparent;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
}

.testimonial-dots {
    display: flex;
    align-items: center;
    gap: 10px;
}

.testimonial-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: none;
    padding: 0;
    cursor: pointer;
}

.testimonial-dot.active {
    transform: scale(1.3);
}


/* LIEN VERS TOUS LES TEMOIGNAGES */

.testimonial-more {
    margin-top: 25px;
}

/* ACCESSIBILITE : REDUCTION DES ANIMATIONS */

@media (prefers-reduced-motion: reduce) {
    .testimonial,
    .testimonial.active {
        transition: none;
    }

    .testimonial-dot.active {
        transform: none;
    }
}


/* BOUTON PAUSE / REPRISE */

.testimonial-slider .testimonial-pause {
    appearance: none;
    -webkit-appearance: none;
    border: none !important;
    outline: none;
    box-shadow: none !important;
    background: transparent !important;
    border-radius: 0 !important;

    width: 34px;
    height: 34px;
    min-width: 34px;
    padding: 0 !important;
    margin: 0;

    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.testimonial-slider .pause-icon {
    display: block !important;
    width: 10px;
    height: 13px;
    border-left: 3px solid white;
    border-right: 3px solid white;
    box-sizing: border-box;
}

.testimonial-slider .testimonial-pause.is-paused .pause-icon {
    width: 0;
    height: 0;
    border-left: 11px solid white;
    border-right: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    margin-left: 3px;
}



