/* app.css */

* {
    font-family: "Poppins", sans-serif;
    margin: 0;
    padding: 0;
}

.hero-gradient {
    background: linear-gradient(180deg, #302d63 0%, #201e47 100%);
    position: relative;
    padding: 4rem 1rem;
    color: white;
    text-align: center;
    overflow: hidden;
}
.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.3;
    background-image: url("/uploads/medias/p3120330.JPG");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    mix-blend-mode: luminosity;
}
.bgcolor {
    padding: 30px 0;
    background: linear-gradient(180deg, #302d63 0%, #201e47 100%);
}
.bgcolor .titleH3 {
    color: #fff;
}
.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
}
.hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    text-transform: uppercase;
    color: #f3f4f6;
}
.hero-subtitle {
    font-size: 1.25rem;
    color: #dbeafe;
    max-width: 80%;
    margin: 0 auto;
    line-height: 1.6;
    margin-bottom: 30px;
    text-align: center;
}

/* BREADCRUMBS */

.breadcrumb-wrapper {
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 0;
    margin-bottom: 2rem;
    margin-bottom: 0rem;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 0;
    margin-bottom: 2rem;
    margin-bottom: 0rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;

}

/* Le bloc fil d'Ariane doit pouvoir retrecir pour laisser la troncature operer */
.breadcrumb-wrapper > nav {
    min-width: 0;
    flex: 1 1 auto;
}

.reassurance-strip {
    flex: 0 0 auto;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.5rem;
    min-width: 0;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: #6b7280;
    white-space: nowrap;
}

/* Le nom du produit (dernier item) peut etre tres long : on tronque au lieu de casser la ligne */
.breadcrumb-item--product {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.breadcrumb-item a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
    font-size: 11px;
}

.breadcrumb-item a:hover {
    color: #4c5ca4;
}

.breadcrumb-separator {
    color: #d1d5db;
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

.breadcrumb-item.active {
    color: #1f2937;
    font-weight: 600;
    pointer-events: none;
    font-size: 12px;
}

/* Version avec icône maison pour l'accueil */
.breadcrumb-home-icon {
    width: 16px;
    height: 16px;
    margin-right: 4px;
    vertical-align: middle;
}

/* FILTERS */
/* Container du Widget */
.bolt-sidebar-widget {
    background: white;
    border-radius: 1.25rem;
    border: 1px solid #e5e7eb;
    padding: 1.5rem 9px;
    position: sticky;
    top: 1rem;
}

/* Champ de recherche */
.filter-search-container {
    margin-bottom: 1.5rem;
    position: relative;
}

.filter-search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    background-color: #f9fafb;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.2s;
    box-sizing: border-box;
}

.filter-search-input:focus {
    border-color: #4c5ca4;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(76, 92, 164, 0.1);
}

.filter-search-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    color: #9ca3af;
    pointer-events: none;
}

/* Listes */
.bolt-filter-list,
.bolt-sub-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bolt-sub-list {
    padding-left: 1rem;
    display: none;
    border-left: 1px solid #e5e7eb;
    margin-left: 0.75rem;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
}

/* Ouverture Accordéon */
.bolt-filter-item.bolt-open > .bolt-sub-list {
    display: block;
}

/* Ligne de filtre (Flexbox) */
.bolt-filter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 0.5rem;
    transition: all 0.2s;
    margin-bottom: 2px;
}

.bolt-filter-row:hover {
    background-color: #f9fafb;
}

/* Lien et Texte */
.bolt-filter-link {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0.75rem;
    padding: 0px 10px;
    color: #4b5563;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

/* États Actifs */
.bolt-filter-item.bolt-active > .bolt-filter-row {
    background-color: #eff6ff;
}

.bolt-filter-item.bolt-active > .bolt-filter-row .bolt-filter-link {
    color: #4c5ca4;
    font-weight: 700;
}

/* Badge Compteur */
.bolt-count {
    font-size: 0.6rem;
    background: #f3f4f6;
    color: #9ca3af;
    padding: 0.1rem 0.4rem;
    border-radius: 0.4rem;
    font-weight: 600;
}

.bolt-filter-item.bolt-active .bolt-count {
    background: #4c5ca4;
    color: white;
}

/* Icône de Toggle (Chevron) */
.bolt-toggle-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 0.4rem;
    transition: background 0.2s;
}

.bolt-toggle-icon:hover {
    background-color: #e5e7eb;
}

.bolt-toggle-icon::after {
    content: "";
    width: 5px;
    height: 5px;
    border-right: 2px solid #9ca3af;
    border-bottom: 2px solid #9ca3af;
    transform: rotate(-45deg);
    transition: transform 0.3s ease;
    margin-top: -2px;
}

.bolt-filter-item.bolt-open > .bolt-filter-row .bolt-toggle-icon::after {
    transform: rotate(45deg);
    margin-top: -4px;
}

.hidden-filter {
    display: none !important;
}

/* PAGINATION */

.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 4rem;
    margin-bottom: 2rem;
}

.bolt-pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.5rem;
    align-items: center;
}

.bolt-pagination li {
    display: inline-flex;
}

.bolt-pagination li a,
.bolt-pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.5rem;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    background-color: white;
    color: #4b5563;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

/* État Survol */
.bolt-pagination li a:hover {
    border-color: #4c5ca4;
    color: #4c5ca4;
    background-color: #f3f4f6;
    transform: translateY(-2px);
}

/* Page Active */
.bolt-pagination li.active span {
    background-color: #4c5ca4;
    border-color: #4c5ca4;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(76, 92, 164, 0.2);
}

/* État Désactivé (Précédent/Suivant) */
.bolt-pagination li.disabled span {
    color: #d1d5db;
    background-color: #f9fafb;
    border-color: #f3f4f6;
    cursor: not-allowed;
}

/* Flèches Précédent / Suivant */
.bolt-pagination .prev-page,
.bolt-pagination .next-page {
    font-size: 1.1rem;
}

/* Points de suspension (...) */
.bolt-pagination li.dots span {
    border: none;
    background: transparent;
    cursor: default;
}

/* Pagination responsive */
@media (max-width: 768px) {
    .bolt-pagination {
        gap: 0.25rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    .bolt-pagination li a,
    .bolt-pagination li span {
        min-width: 32px;
        height: 32px;
        font-size: 0.75rem;
        padding: 0 0.35rem;
        border-radius: 0.5rem;
    }
    .pagination-wrapper {
        margin-top: 2rem;
    }
}

/* Horizontal nav */
.horizontal-nav-wrapper {
    padding: 30px 0;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}
.horizontal-nav-wrapper::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: -200px;
    top: 0;
    right: -200px;
    z-index: -1;

    background: linear-gradient(180deg, #302d63 0%, #201e47 100%);
}
.title {
    margin-top: 30px;
    /*
     * Le titre des pages catalogue est passe de h2 a h1 : c'est le seul titre
     * de la page, et son absence privait 394 pages de leur h1. La marge basse
     * est figee pour que le rendu reste identique — un navigateur applique
     * 0.83em a un h2 et 0.67em a un h1.
     */
    margin-bottom: 0.83em;
    font-size: 20px;
    padding: 0;
}
.titleProduct {
    padding: 20px 0;
    color: #1f2937;
    font-size: 28px;
}

.horizontal-nav-wrapper .container {
    max-width: 1576px;
    margin: 0 auto;
}
.titleH3 {
    color: #4c5ca4;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 1.25rem;
    margin-bottom: 20px;
    text-align: center;
}

.slider-relative {
    position: relative;
    display: flex;
    align-items: center;
}

.slider-container {
    overflow-x: auto;
    display: flex;
    gap: 1rem;
    padding: 0.5rem 0.25rem 1rem 0.25rem;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    min-width: 100%;
}

.slider-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.nav-card-item {
    flex: 0 0 200px;
    background: white;
    border-radius: 1rem;
    border: 3px solid transparent;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
        justify-content: center;
}

.nav-card-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.nav-card-item.active {
    border-color: #4c5ca4;
    box-shadow: 0 0 0 4px rgba(76, 92, 164, 0.1);
}

.nav-card-icon {
    height: 120px;
    background: linear-gradient(180deg, #302d63 0%, #201e47 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.nav-card-icon img {
    width: 48px;
    height: 48px;
    filter: brightness(0) invert(1);
}

.nav-card-icon img.brand-logo {
    filter: none;
    width: 96px;
    height: auto;
}

.nav-card-icon img.product-image {
    filter: none;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}

.nav-card-content {
    padding: 1rem;
    text-align: center;
}

.nav-card-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 0.25rem;
    display: block;
    line-height: 1.2;
}

.nav-card-count {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* Boutons de navigation */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.slider-btn:hover {
    background: #f9fafb;
}
.slider-btn.left {
    left: -20px;
}
.slider-btn.right {
    right: -20px;
}
.slider-btn.desktop-hidden {
    display: none;
}
.desktop-centered {
    justify-content: center;
}

/* TOAST */

/* Container de l'alerte */
.alert.auto-dismiss {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
    max-width: 450px;
    background: #fff;
    border: none;
    border-radius: 12px;
    box-shadow:
        0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -2px rgba(0, 0, 0, 0.05);
    display: flex !important;
    gap: 5px;
    padding: 1rem 1.5rem;
    overflow: hidden;

    flex-direction: column;
    align-items: flex-start;
}

/* Couleurs selon le type */
.alert-danger {
    border-left: 5px solid #ef4444;
    color: #b91c1c;
}
.alert-success {
    border-left: 5px solid #10b981;
    color: #047857;
}
.alert-warning {
    border-left: 5px solid #f59e0b;
    color: #b45309;
}

/* Icone et Titre */
.alert i {
    font-size: 1.25rem;
}
.alert-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    display: block;
}

/* Bouton Fermer */
.btn-close {
    background: transparent;
    border: none;
    margin-left: auto;
    cursor: pointer;
    color: #9ca3af;
}

/* Barre de progression en bas */
.progress-bar-msg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.05);
}

.progress-inner-msg {
    height: 100%;
    width: 100%;
    background: currentColor; /* Prend la couleur du texte de l'alerte */
    transition: width 0.1s linear;
}

/* Animation */
.animated.fadeInDown {
    animation: fadeInDown 0.4s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.select2-container--default
    .select2-selection--multiple
    .select2-selection__choice__remove {
    border: none;
}

.select2-container--default
    .select2-selection--multiple
    .select2-selection__choice {
    background-color: #4c5ca4;
    border: none;
    color: white;
    padding: 0px 8px 0px 17px;
    border-radius: 0.25rem;
}

/* ========================================
   RESPONSIVE — Mobile (max-width: 768px)
   ======================================== */
@media (max-width: 768px) {
    .titleH3 {
       
        font-size: 1rem;
        margin-bottom: 15px;
      
    }
    .nav-card-content {
        padding: 0.5rem;
        text-align: center;
    }
    .related-products-section {
        margin-top: 3rem;
        padding-top: 1.52rem;
        border-top: 1px solid #e5e7eb;
    }
    .related-title{
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .titleProduct {
        font-size: 18px;
        padding: 10px 0;
    }
    .hero-gradient {
        padding: 2.5rem 10px;
    }
    .hero-title {
        font-size: clamp(1.2rem, 5vw, 2rem);
        line-height: 20px;
    }
    .hero-subtitle {
        font-size: 1rem;
        max-width: 100%;
         line-height: 20px;
         margin: 0;
    }
    .breadcrumb-wrapper {
        padding: 0.75rem 10px;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }
    /* Nav bornee a 100% pour que le fil d'Ariane reste dans la largeur. */
    .breadcrumb-wrapper > nav {
        width: 100%;
    }
    /* Fil d'Ariane long : passe a la ligne au lieu de scroller horizontalement. */
    .breadcrumb-list {
        flex-wrap: wrap;
        row-gap: 0.35rem;
    }
    /* Bande de reassurance masquee sur mobile (place limitee). */
    .reassurance-strip {
        display: none;
    }
    .breadcrumb-item {
        font-size: 0.75rem;
    }
    .breadcrumb-separator {
        font-size: 0.6rem;
        margin-left: 0.25rem;
    }
    .horizontal-nav-wrapper {
        padding: 20px 10px;
        margin-bottom: 1.5rem;
    }
    .horizontal-nav-wrapper .container {
        padding: 0;
    }
    .slider-container {
        padding-left: 0;
    }
    .alert.auto-dismiss {
        min-width: auto;
        max-width: calc(100vw - 2rem);
        right: 1rem;
        left: 1rem;
    }
    .nav-card-item {
        flex: 0 0 160px;
    }
    .nav-card-icon {
        height: 90px;
    }
    .slider-btn.desktop-hidden {
        display: flex !important;
    }
    .desktop-centered {
        justify-content: flex-start !important;
    }
}
