/* Custom CSS */
/* .menu-theme {
    display: none;
} */

[id=header] .bottom [id=menu] {
    width: 100%;
    max-width: 100%;
}

[id=menu-menu-categories] > li.menu-theme > a {
    text-wrap: balance;
    cursor: pointer;
}

body:not(.home) [id=moteur] {
    top: 170px;
}

body:not(.home) [id=moteur] .after {
    display: none;
}

body:not(.home) [id=moteur] ul li {
    position: relative;
    list-style: none;
    list-style-position: outside;
    color: #333333;
    margin-bottom: 1.15rem;
    font-weight: 300;
    font-size: 1.5rem;
    line-height: 1.7;
}

body:not(.home):has([id=myDropdown].show) [id=header] {
    z-index: 1
}

body:not(.home):has([id=myDropdown].show) [id=moteur] {
    z-index: 6
}

body:not(.home):has([id=myDropdown].show) [id=moteur] .after {
    display: block;
    z-index: 0;
    opacity: 1
}

body:not(.home):has([id=myDropdown].show) [id=moteur] .dropbtn .circle {
    rotate: -180deg
}

body:not(.home) [id=myDropdown] {
    display: none;
    max-height: 0;
    -webkit-transition: max-height 0.35s linear;
    transition: max-height 0.35s linear
}

body:not(.home) [id=myDropdown].show {
    display: block;
    max-height: 580px
}

body:not(.home) .dropdown-content {
    max-height: 0;
    -webkit-transition: max-height 0.35s linear,-webkit-box-shadow 0.35s linear;
    transition: max-height 0.35s linear,-webkit-box-shadow 0.35s linear;
    transition: max-height 0.35s linear,box-shadow 0.35s linear;
    transition: max-height 0.35s linear,box-shadow 0.35s linear,-webkit-box-shadow 0.35s linear
}

body:not(.home) [id=myDropdown].show .dropdown-content {
    -webkit-box-shadow: 0 0 10px 5px #424242;
    box-shadow: 0 0 10px 5px #424242;
    max-height: 580px
}

/* Listing */
.woocommerce ul.products li.product .woocommerce-LoopProduct-link, .woocommerce-page ul.products li.product .woocommerce-LoopProduct-link, [id=produits_mis_en_avant] .woocommerce-LoopProduct-link {
    background: none;
}

.woocommerce-products-header .term-description {
    margin: 4rem 0 2rem;
}

.woocommerce ul.products li.product, .woocommerce-page ul.products li.product {
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    height: auto;
    overflow: hidden;
}

.woocommerce .addquotelistlink .quotelistadd, .woocommerce-page ul.products li.product .woocommerce .addquotelistlink .quotelistadd {
    border-radius: 25px;
}

.woocommerce ul.products li.product .prix_nom, .woocommerce-page ul.products li.product .prix_nom {
    margin-top: 0 !important;
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* ==========================================================================
   Carrousels Catégories Team Building
   ========================================================================== */

.tb-category-section:has(~ .tb-category-section) {
    margin-bottom: 50px;
}

.tb-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.tb-section-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    color: #1a202c;
}

.tb-section-header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.tb-show-all {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.2s;
    border-bottom: 1px solid currentColor;
    padding-bottom: 1px;
    white-space: nowrap;
}

.tb-show-all:hover {
    color: #000;
}

.tb-nav-arrows {
    display: flex;
    gap: 8px;
}

.tb-swiper-prev,
.tb-swiper-next {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #cbd5e0;
    background: transparent;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}

.tb-swiper-prev:hover,
.tb-swiper-next:hover {
    border-color: #000;
    color: #000;
}

.tb-swiper-prev.swiper-button-disabled,
.tb-swiper-next.swiper-button-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #cbd5e0;
    color: #cbd5e0;
}

.tb-swiper-prev svg,
.tb-swiper-next svg {
    width: 16px;
    height: 16px;
}

/* Override WooCommerce styles for Swiper */
.team-building-carousels .swiper-container {
    overflow: hidden;
    padding-bottom: 10px;
}

.team-building-carousels .swiper .products {
    display: flex !important;
    flex-wrap: nowrap !important;
    margin: 0 !important;
    padding: 0 !important;
}

.team-building-carousels .swiper .products::before,
.team-building-carousels .swiper .products::after {
    display: none !important;
}

.team-building-carousels .swiper .product img {
    width: 250px !important;
    height: 200px !important;
    object-fit: cover !important;
    border-radius: 12px 12px 0 0;
    margin: 0 !important;
}

.team-building-carousels .swiper .product {
    margin: 0 !important;
    width: 250px !important;
    flex-shrink: 0;
    max-width: 100%;

    /* Conteneur pour s'assurer que le contenu a la même hauteur et une bordure */
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    height: auto;
    overflow: hidden;
}

/* On force la zone de texte à prendre l'espace restant pour s'aligner sur la même hauteur totale */
.team-building-carousels .swiper .product .woocommerce-LoopProduct-link {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Espace autour du texte sous l'image */
.team-building-carousels .swiper .product h2.woocommerce-loop-product__title,
.team-building-carousels .swiper .product .price,
.team-building-carousels .swiper .product .prix_nom {
    padding-left: 15px;
    padding-right: 15px;
}

.team-building-carousels .swiper .product .prix_nom {
    margin-top: 0 !important;
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.team-building-carousels .swiper .product h2.woocommerce-loop-product__title {
    margin: 0 !important;
    padding: 0 !important;
    flex-grow: 1;
    font-size: 1.6rem !important;
    /* Pousse le prix vers le bas s'il y a de l'espace */
}

.team-building-carousels .swiper .product .price {
    margin-bottom: 15px;
    margin-top: auto;
    /* Aligne le prix / notation en bas de la carte ! */
}

.team-building-carousels .swiper .product .button {
    display: none;
    /* Cache potentiellement le bouton 'Ajouter au panier' s'il dépasse du cadre */
}

/* S'assure que toutes les slides ont la même hauteur dans le wrapper */
.team-building-carousels .swiper-wrapper {
    align-items: stretch;
}

.team-building-carousels .swiper .product {
    height: 100% !important;
}

/* ==========================================================================
   SEO Content Team Building Layout (Sommaire + FAQ)
   ========================================================================== */

.tb-seo-section {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 60px;
    margin-bottom: 60px;
    padding-top: 40px;
    border-top: 1px solid #e2e8f0;
    align-items: flex-start;
}

.tb-seo-sidebar {
    position: sticky;
    top: 60px;
    width: 25%;
    flex-shrink: 0;
}

.tb-seo-sidebar-sticky {
    position: sticky;
    top: 15vh;
    /* Se bloque à l'écran lors du défilement */
}

.tb-seo-sommaire-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a202c;
    font-family: "Poppins", "Trebuchet MS", sans-serif;
}

[id=content] .tb-seo-sommaire-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tb-seo-sommaire-list li {
    margin-bottom: 15px;
}

[id=content] .tb-seo-sommaire-list li::before {
    content: none;
}

.tb-seo-sommaire-list li a {
    display: flex;
    align-items: center;
    background: none !important;
    color: #718096;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
    line-height: 1.4;
}

.tb-seo-sommaire-list li a:hover {
    color: #2b6cb0;
}

.tb-seo-sommaire-list li a .number {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #cbd5e0;
    margin-right: 12px;
    font-size: 12px;
    color: #4a5568;
}

.tb-seo-content {
    width: calc(75% - 40px);
    flex-shrink: 0;
    color: #4a5568;
    line-height: 1.7;
    font-size: 15px;
}

.tb-seo-block {
    margin-bottom: 50px;
}

.tb-seo-content h2 {
    font-size: 26px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 20px;
    margin-top: 0;
    line-height: 1.3;
    font-family: "Poppins", "Trebuchet MS", sans-serif;
}

.tb-seo-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
    margin-top: 35px;
    margin-bottom: 15px;
    line-height: 1.3;
    font-family: "Poppins", "Trebuchet MS", sans-serif;
}

.tb-seo-content p {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.tb-seo-content a {
    background: -webkit-gradient(linear, left top, right top, color-stop(33.3333333333%, currentColor), color-stop(0, transparent), color-stop(0, currentColor)) var(--d, 0%) 100% / 300% 1px no-repeat;
    background: linear-gradient(90deg, currentColor 33.3333333333%, transparent 0 66.6666666667%, currentColor 0) var(--d, 0%) 100% / 300% 1px no-repeat;
    color: #23355b;
}

.tb-seo-content a:hover {
    -webkit-transition: 0.5s;
    transition: 0.5s;
    color: #6fb4aa;
    --d: 100%;
}

.tb-seo-content ul {
    margin-bottom: 25px;
    padding-left: 20px;
    list-style-type: disc;
}

.tb-seo-content ul li {
    margin-bottom: 10px;
}

/* FAQ Accordion Styles */
.tb-faq-item {
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 15px;
}

.tb-faq-item>summary {
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
    cursor: pointer;
    padding: 15px 0;
    list-style: none;
    position: relative;
    padding-right: 30px;
    transition: color 0.2s;
}

.tb-faq-item>summary::-webkit-details-marker {
    display: none;
}

.tb-faq-item>summary:hover {
    color: #2b6cb0;
}

.tb-faq-item>summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    font-weight: 400;
    color: #718096;
}

.tb-faq-item[open]>summary::after {
    content: '-';
}

.tb-faq-content {
    padding-bottom: 20px;
    padding-top: 10px;
    font-size: 15px;
    color: #4a5568;
}

@media (max-width: 991px) {
    .tb-seo-section {
        flex-direction: column;
        gap: 30px;
    }

    .tb-seo-sidebar {
        width: 100%;
        position: static;
        margin-bottom: 10px;
    }

    .tb-seo-sidebar-sticky {
        position: static;
    }

    .tb-seo-sommaire-list {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
    }

    .tb-seo-sommaire-list li {
        margin-bottom: 5px;
    }

    .tb-seo-content {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .tb-nav-arrows {
        display: none;
    }

    .tb-section-title {
        font-size: 20px;
    }
}

.woocommerce-categories-header-row {
    max-width: 1375px;
    margin: 0 auto;
    text-align: center;
}

.tb-nav-arrows.categories-nav-arrows {
    margin-bottom: -15px;
    align-self: flex-end;

}

.woocommerce-categories-header-text {
    margin-bottom: 20px !important;
}

.tb-cta-banner {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 0;
    align-items: stretch;
    /* background: #f3f3f3; */
    background: #23355b;
    border-radius: 22px;
    overflow: hidden;
    margin: 50px 0;
    /* box-shadow: 0 8px 24px rgba(0,0,0,0.08); */
}

.tb-cta-banner-content {
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tb-cta-banner-title {
    margin: 0 0 20px;
    font-size: 28px;
    line-height: 1.05;
    font-weight: 800;
    /* color: #16324a; */
    color: #fff;
}

.tb-cta-banner-text {
    margin: 0 0 32px;
    font-size: 18px;
    line-height: 1.5;
    /* color: #16324a; */
    color: #fff;
    max-width: 520px;
}

.tb-cta-banner-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-width: 210px;
    padding: 16px 30px;
    border-radius: 999px;
    /* background: linear-gradient(90deg, #b13cff 0%, #ff6b5f 100%); */
    background: #fe114d;
    color: #fff !important;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.tb-cta-banner-button:hover {
    /* transform: translateY(-1px); */
    opacity: 0.95;
    color: #fff;
}

.tb-cta-banner-visual-single {
    position: relative;
    min-height: 255px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

@media (max-width: 1024px) {
    .tb-cta-banner {
        grid-template-columns: 1fr;
    }

    .tb-cta-banner-content {
        padding: 32px 24px;
    }

    .tb-cta-banner-title {
        font-size: 36px;
    }

    .tb-cta-banner-text {
        font-size: 16px;
    }

    .tb-cta-banner-visual-single {
        min-height: 220px;
    }
}

@media (max-width: 767px) {
    .tb-cta-banner-title {
        font-size: 30px;
    }

    .tb-cta-banner-visual-single {
        min-height: 200px;
    }
}

/* ==========================================================================
   Catégories enfants – Style pills horizontaux avec flèches
   ========================================================================== */

.woocommerce-categories-list {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 1375px;
    margin: 0 auto;
    padding: 20px 0;
}

.woocommerce-categories-list {
    margin-bottom: 40px;
}

/* Conteneur scrollable */
.categories-scroll {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
}

.categories-scroll::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari */
}

/* Pill / bouton catégorie */
.categorie-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 10px 22px;
    border: 2px solid #23355b;
    border-radius: 25px;
    background-color: #ffffff;
    color: #23355b;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.categorie-pill:hover,
.categorie-pill:focus {
    background-color: #23355b;
    color: #ffffff !important;
    text-decoration: none;
    /* border-color: initial !important; */
}

/* État actif */
.categorie-pill.active {
    background-color: #23355b;
    color: #ffffff;
}

/* ==========================================================================
   Boutons flèches
   ========================================================================== */

.categories-arrow {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid #2d3436;
    border-radius: 50%;
    background-color: #ffffff;
    color: #2d3436;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.categories-arrow:hover {
    background-color: #2d3436;
    color: #ffffff;
}



/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .woocommerce-categories-list {
        padding: 16px 10px;
    }

    .categorie-pill {
        padding: 8px 16px;
        font-size: 14px;
    }

    .categories-scroll {
        gap: 8px;
    }

    .categories-arrow {
        width: 34px;
        height: 34px;
    }
}
/* END Listing */

/* ADD IFACT - 28/01/2026 - Hide price column for quote list */
.single-product [id=infos_principales] .price,
.single-product [id=infos_principales] .price + .price-infos,
.single-product [id=infos_principales] .blocElement.formules,
.page-id-23868 th.product-price,
.page-id-23868 td.product-price,
.page-id-23868 .total > td:last-of-type:has(.woocommerce-Price-amount),
body.page-template-Devis span.mentions {
    display: none;
}
/* ADD IFACT - 28/01/2026 - Hide price column for quote list */

/* ADD IFACT - Search */
.algolia-autocomplete {
    overflow-y: auto;
    max-height: 90vh;
}
/* ADD IFACT - Search */

/* Avis */
.temoignages-section {
    padding: 60px 0 0;
    background: #fff;
    position: relative;
}

body.home .temoignages-section,
body.single-product .temoignages-section {
    padding: 0;
}

.temoignages-titre {
    /* font-size: 2.5em; */
    /* font-weight: 700; */
    margin-top: 0;
    margin-bottom: 10px;
    text-align: center;
    /* color: #000; */
}

.swiper-container-wrapper {
    position: relative;
    padding-bottom: 50px;
}

.swiper-pagination {
    overflow: hidden;
    padding: 20px;
}

.swiper-avis .swiper-wrapper {
    align-items: stretch;
}

.swiper-avis .swiper-slide {
    height: auto;
    display: flex;
}

.avis-card {
    background: #F5F5F5;
    border-radius: 16px;
    padding: 25px;
    width: 100%;
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); */
    display: flex;
    flex-direction: column;
}

.avis-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 12px;
}

.avis-logo {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avis-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 13px;
    object-fit: contain;
    background: #fff;
}

.avis-logo-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 18px;
}

.avis-info {
    flex: 1;
}

.avis-nom {
    line-height: 1.2em;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: #000;
}

.avis-date {
    font-size: 13px;
    color: #666;
    margin: 0;
}

.avis-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.stars {
    color: #FBBC04;
    font-size: 18px;
    letter-spacing: 2px;
}

.avis-texte-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.avis-texte {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    flex: 1;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.avis-texte.truncated {
    max-height: 4.8em;
    position: relative;
}

.avis-texte.truncated:after {
    content: '...';
    position: absolute;
    bottom: 0;
    right: 0;
    background: linear-gradient(to right, transparent, #F5F5F5 50%);
    padding-left: 40px;
}

.avis-texte.expanded {
    max-height: none;
}

.avis-texte.expanded:after {
    display: none;
}

.lire-suite-btn {
    background: none;
    border: none;
    color: #000;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 0 0 0;
    text-align: left;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.lire-suite-btn:hover {
    color: #0d47a1;
    text-decoration: underline;
}

.swiper-pagination {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    z-index: 10;
}

.swiper-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #ccc;
    opacity: 1;
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
}

.swiper-pagination .swiper-pagination-bullet-active {
    background: #000;
    width: 24px;
    border-radius: 5px;
}

/* Single product page */
.single-product [id=galerie] [id=slider_thumbnails_produit]+.videoThumbnail {
    max-width: 180px;
}

.single-product [id=infos_principales] .accroche {
    line-height: 1.3;
    font-family: "Poppins", "Trebuchet MS", Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-weight: 600;
}

.single-product [id=infos_principales] .blocElement .title-h4 {
    color: #23355b;
    text-transform: none;
    margin: 0 0 2rem;
    font-family: "Poppins", "Trebuchet MS", Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-weight: 600;
    font-size: 2.2rem;
    line-height: 1.3;
}

.single-product [id=infos_principales] .formules .formule .title-formule {
    line-height: 1.3;
    margin: 0 0 1rem 0;
    color: #333333;
    font-family: "Poppins", "Trebuchet MS", Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-weight: 600;
}
/* END Single product page */

/* Responsive */
@media (max-width: 1280px) {
    .swiper-avis {
        padding: 20px;
    }
}

@media (max-width: 1024px) {
    .temoignages-titre {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .temoignages-titre {
        font-size: 1.8em;
    }

    .swiper-avis {
        padding: 20px 15px;
    }

    .avis-logo {
        width: 50px;
        height: 50px;
    }
}
/* END Avis */

@media all and (max-width: 1615px) {
    [id=header] .logo {
        width: 11.5vw;
    }

    [id=header] .zones {
        width: calc(100% - 11.5vw);
    }

    [id=menu-menu-categories] > li {
        font-size: 1.3rem;
    }

    [id=menu-menu-categories] > li + li {
        margin-left: 1.05vw;
    }
}

@media all and (min-width: 1149px) and (max-width: 1277px) {
    [id=menu-menu-categories] > li {
        font-size: 1.170rem;
    }
}

@media all and (max-width: 767px) {
    [id=header] .logo {
        width: 35%;
    }

    [id=header] .zones {
        width: 65%;
    }

    .single-product [id=infos_principales] .blocElement .title-h4 {
        margin: 0 0 1.5rem;
        font-size: 1.8rem;
    }
}