/*
Theme Name: Avada Child
Description: Child theme for Avada theme
Author: ThemeFusion
Author URI: https://theme-fusion.com
Template: Avada
Version: 1.0.0
Text Domain:  Avada
*/

/* =========================================================
   TESTIMONIAL ARROWS - Navigation prev/next
   Layout CSS Grid : [flèche] [contenu] [flèche]
                     [    pagination (full width)   ]
   ========================================================= */
.fusion-testimonials.has-testimonial-arrows {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    grid-template-rows: 1fr auto;
    column-gap: 8px;
}

.fusion-testimonials.has-testimonial-arrows .reviews {
    grid-column: 2;
    grid-row: 1;
}

.fusion-testimonials.has-testimonial-arrows .testimonial-pagination {
    grid-column: 1 / -1;
    grid-row: 2;
}

.fusion-testimonials .testimonial-nav-prev {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    justify-self: center;
}

.fusion-testimonials .testimonial-nav-next {
    grid-column: 3;
    grid-row: 1;
    align-self: center;
    justify-self: center;
}

.fusion-testimonials .testimonial-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: var(--awb-navigation-color, #333);
    color: #fff;
    border: none;
    border-radius: 0;
    padding: 0;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.fusion-testimonials .testimonial-nav-btn:hover {
    opacity: 1;
}

.fusion-testimonials .testimonial-nav-btn i {
    font-family: 'awb-icons' !important;
    speak: never;
    font-style: normal;
    font-weight: 400;
    font-size: 20px;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (max-width: 640px) {
    .fusion-testimonials.has-testimonial-arrows {
        grid-template-columns: 36px 1fr 36px;
        column-gap: 4px;
    }
    .fusion-testimonials .testimonial-nav-btn {
        width: 36px;
    }
}

/* =========================================================
   FIX GOOGLE LIGHTHOUSE - Tap Target Size
   Les points de pagination testimonials sont trop petits (12px).
   On les agrandit à min 44×44px via pseudo-element ::before
   pour garder le rendu visuel identique.
   ========================================================= */
.fusion-testimonials .testimonial-pagination {
    flex-wrap: wrap;
    row-gap: 4px;
}

.fusion-testimonials .testimonial-pagination a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 44px !important;
    min-height: 44px !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
}

.fusion-testimonials .testimonial-pagination a::before {
    content: '';
    display: block;
    flex-shrink: 0;
    width: var(--awb-navigation-size, 12px);
    height: var(--awb-navigation-size, 12px);
    border-radius: 50%;
    border: 1px solid var(--awb-navigation-color);
}

.fusion-testimonials .testimonial-pagination a.activeSlide::before,
.fusion-testimonials .testimonial-pagination a:hover::before {
    background-color: var(--awb-navigation-color);
    border-color: var(--awb-navigation-color);
}

/* =========================================================
   FIX MENU MOBILE - Scroll interne bloqué
   Avada génère max-height:max-content qui écrase 100vh
   et empêche le scroll des items qui dépassent l'écran.
   ========================================================= */
.awb-menu.collapse-enabled.mobile-mode-collapse-to-button.expanded .awb-menu__main-ul {
    max-height: calc(100dvh - 80px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
}

/* =========================================================
   FIX POPUP CLOSE BUTTON - Bouton fermeture toujours visible
   Le bouton n'a pas de texte, seulement une icône FA.
   Si FA ne se charge pas (LiteSpeed cache), le bouton devient
   invisible et le scroll reste bloqué (html overflow:hidden).
   On ajoute un × CSS de secours qui s'affiche si FA est absent.
   ========================================================= */
.off-canvas-close::before {
    content: "×";
    font-family: Arial, sans-serif !important;
    font-size: 24px;
    line-height: 1;
    font-weight: 400;
}
/* Quand FA charge correctement, l'icône FA prend le dessus */
.fas.off-canvas-close::before {
    content: "\f00d";
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900;
}