/**
 * Contrôles du slider hero de l'accueil : flèches et pagination.
 *
 * Les autres carrousels du site utilisent .swiper-nav-btn, masqué en dessous
 * de 1430px. Des boutons masqués ne sont pas focusables : le hero a donc ses
 * propres classes, visibles à toutes les tailles d'écran.
 *
 * Chargé après styles.min.css et swiper-bundle.min.css, ce qui évite d'avoir
 * à recourir à !important.
 */

.page-template-home .hero-slider .hero-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    color: #fff;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.page-template-home .hero-slider .hero-nav-prev {
    left: 15px;
}

.page-template-home .hero-slider .hero-nav-next {
    right: 15px;
}

.page-template-home .hero-slider .hero-nav-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.page-template-home .hero-slider .hero-nav-btn .arrow-prev {
    transform: rotate(180deg);
}

.page-template-home .hero-slider .hero-nav-btn:hover {
    background: rgba(0, 0, 0, 0.85);
}

/* Ajoutée par Swiper sur la première et la dernière diapositive */
.page-template-home .hero-slider .hero-nav-btn.swiper-button-disabled {
    opacity: 0.4;
    cursor: default;
}

.page-template-home .hero-slider .hero-pagination {
    bottom: 15px;
    z-index: 10;
}

/* Les puces sont rendues en <button> par swiper-a11y.js. Swiper neutralise
   déjà les styles natifs du contrôle via button.swiper-pagination-bullet ;
   on le réaffirme ici pour ne pas en dépendre. */
.page-template-home .hero-slider .hero-pagination button.swiper-pagination-bullet {
    padding: 0;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
}

.page-template-home .hero-slider .hero-pagination .swiper-pagination-bullet {
    width: 14px;
    height: 14px;
    margin: 0 6px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.7);
    opacity: 0.6;
    cursor: pointer;
}

.page-template-home .hero-slider .hero-pagination .swiper-pagination-bullet-active {
    opacity: 1;
}

/* Indicateur de focus, sur fond photo donc doublé d'un liseré sombre */
.page-template-home .hero-slider .hero-nav-btn:focus-visible,
.page-template-home .hero-slider .hero-pagination .swiper-pagination-bullet:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
    box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.7);
}

/* Repli pour les navigateurs sans :focus-visible */
.page-template-home .hero-slider .hero-nav-btn:focus,
.page-template-home .hero-slider .hero-pagination .swiper-pagination-bullet:focus {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.page-template-home .hero-slider .hero-nav-btn:focus:not(:focus-visible),
.page-template-home .hero-slider .hero-pagination .swiper-pagination-bullet:focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
}

@media only screen and (min-width: 650px) {
    .page-template-home .hero-slider .hero-nav-btn {
        width: 60px;
        height: 60px;
    }

    .page-template-home .hero-slider .hero-nav-btn svg {
        width: 30px;
        height: 30px;
    }

    .page-template-home .hero-slider .hero-nav-prev {
        left: 30px;
    }

    .page-template-home .hero-slider .hero-nav-next {
        right: 30px;
    }
}
