/**
 * Page Boutique — thème sombre, sidebar filtres, grille de fiches produits.
 */

/* ---- Page & en-tête ---- */
.page-boutique {
    font-family: "HelveticaNeueLTStd", sans-serif;
    background-color: #201D22;
    color: #e0e0e0;
    min-height: 100vh;
}

.page-boutique__header {
    padding: 3rem 0 2rem;
    background-image: url('/wp-content/uploads/2026/03/boutique-header-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.page-boutique__header-content{
    margin-top: 300px; 
}
.page-boutique__surtitle {
    font-size: 1.5rem;
    font-weight: 100;
    text-transform: uppercase;
    color: #888888;
    margin-top:30px;
    margin-bottom:30px; 
    display: block;
}
.page-boutique__title {
    font-family: "Poppins", sans-serif;
    font-size: 1.75rem;
    font-weight: 400;
    text-transform: uppercase;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.page-boutique__title-accent {
    color: var(--wp--preset--color--color-1);
    font-weight: 700;
}

.page-boutique__intro {
    color: #DBDBDB;
    font-size: 1.375rem;
    line-height: 35px;
}

.page-boutique__intro p {
    margin-bottom: 0.75em;
}

@media (min-width: 992px) {
    .page-boutique__title {
        font-size: 2.25rem;
    }
}

/* ---- Layout 2 colonnes ---- */
.page-boutique__content {
    padding: 0 0 3rem;
}

.page-boutique__sidebar {
    background-color: #FFFFFF;
    padding: 1.5rem 1rem 2rem;
    color:#161615;
    border-radius: 20px;
    margin-bottom: 2rem;
}

@media (min-width: 992px) {
    .page-boutique__sidebar {
        padding: 2rem 1.5rem 3rem;
        min-height: 60vh;
        margin-bottom: 0;
    }
    .page-boutique__main {
        padding: 2rem 1.5rem 3rem !important;
    }
}

/* ---- Filtres ---- */
.boutique-filters{
    font-size: 1.125rem;
    color:#161615;
}
.boutique-filters__title {
    font-family: "Poppins", sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #201D22;
    margin-bottom: 1rem;
}

.boutique-filters__list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.boutique-filters__item {
    margin-bottom: 0.5rem;
}

.boutique-filters__item[class*="boutique-filters__item--depth-"] {
    margin-bottom: 0.5rem;
}

.boutique-filters__item--depth-0 {
    margin-bottom: 0.75rem;
    font-weight: 700;
    font-family: "Poppins", sans-serif;
    font-size: 1.25rem;
    border-top: 1px solid #2A2C2E;
    padding-top: 20px;
}
.boutique-filters__list--categories .boutique-filters__item--depth-0:first-child {
    border-top: none;
    padding-top: 0;
}
.boutique-filters__item--depth-1 {
    font-family: "HelveticaNeueLTStd", sans-serif;
    font-size: 1.125rem;
    color:#161615;
    font-weight: 300;
}
.boutique-filters__sublist {
    list-style: none;
    padding-left: 1.25rem;
    margin: 0.25rem 0 0;
}

.boutique-filters__label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    position: relative;
}

.boutique-filters__checkbox {
    position: absolute;
    opacity: 0;
    width: 1.125rem;
    height: 1.125rem;
    margin: 0;
    cursor: pointer;
}

.boutique-filters__label::before {
    content: "";
    flex-shrink: 0;
    width: 1.125rem;
    height: 1.125rem;
    border: 1px solid #888;
    background-color: #fff;
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.12);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.boutique-filters__label::after {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    margin-top: -0.5625rem;
    width: 1.125rem;
    height: 1.125rem;
    background-image:
        linear-gradient(45deg, transparent 47%, #707070 47%, #707070 53%, transparent 53%),
        linear-gradient(-45deg, transparent 47%, #707070 47%, #707070 53%, transparent 53%);
    background-size: 100% 100%, 100% 100%;
    background-repeat: no-repeat;
    background-position: 0 0, 0 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.boutique-filters__label:has(.boutique-filters__checkbox:checked)::after {
    opacity: 1;
}

/* Choix par matières : boutons sélectionnables */
.boutique-filters__section--matieres {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #444;
}

.boutique-filters__matieres {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.boutique-filters__btn-matiere {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 1.25rem;
    border: 1px solid #161615;
    border-radius: 20px;
    background-color: transparent;
    color: #161615;
    font-size: 0.75rem;
    font-weight: 300;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.boutique-filters__btn-matiere:hover {
    background-color: #161615;
    color: #fff;
}

.boutique-filters__btn-matiere.is-selected {
    background-color: #161615;
    color: #fff;
}
.boutique-filters__btn-matiere.is-selected:hover {
    border-color: #161615;
    color: #fff;
}

.boutique-filters__btn-matiere-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Mobile : accordéon filtres — ul et contenu masqués par défaut, dépliables au clic sur h3 */
@media (max-width: 991px) {
    .boutique-filters__section .boutique-filters__title {
        cursor: pointer;
        position: relative;
        padding-right: 2rem;
        user-select: none;
    }
    .boutique-filters__section .boutique-filters__title::after {
        content: "+";
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        font-size: 1.25rem;
        transition: transform 0.3s ease;
    }
    .boutique-filters__section.is-open .boutique-filters__title::after {
        transform: translateY(-50%) rotate(45deg);
    }
    .boutique-filters__section .boutique-filters__list,
    .boutique-filters__section .boutique-filters__matieres {
        display: none;
    }
    .boutique-filters__section.is-open .boutique-filters__list,
    .boutique-filters__section.is-open .boutique-filters__matieres {
        display: block;
    }
}

/* ---- Grille produits ---- */
.page-boutique__main {
    padding-left: 40px;
}
.page-boutique__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 576px) {
    .page-boutique__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .page-boutique__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

/* Zone produits : état chargement AJAX */
.js-boutique-products-area.is-loading {
    opacity: 0.6;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

/* ---- Fiche produit (variant boutique) ---- */
.product-card--boutique {
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card--boutique:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.product-card--boutique .product-card__image {
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 10px 10px 0 0;
}

.product-card--boutique .product-card__image-inner {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 10px 10px 0 0;
}

.product-card--boutique .product-card__image-placeholder {
    font-size: 0.9rem;
    color: #999;
}

.product-card--boutique .product-card__body {
    padding: 1.25rem 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #f5f5f5;
    border-radius: 0 0 10px 10px;
}

.product-card--boutique .product-card__title {
    font-size: 1.125rem;
    font-weight: 300;
    text-transform: uppercase;
    margin: 0 0 0.5rem;
    line-height: 1.3;
    color:#161615;
}

.product-card--boutique .product-card__excerpt {
    font-size: 1rem;
    color: #666;
    line-height: 20px;
    margin: 0 0 1rem;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    display: -webkit-box;
}

.product-card--boutique .product-card__btn {
    display: inline-block;
    margin-top: auto;
    padding: 0.3rem 1.25rem;
    background-color: #D31846;
    color: #fff;
    font-family: "Poppins", sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 20px;
    width: fit-content;
    transition: background-color 0.2s ease;
}

.product-card--boutique:hover .product-card__btn {
    background-color: #D31846;
}

/* ---- État vide & pagination ---- */
.page-boutique__empty,
.page-boutique__empty p {
    color: #9a9a9a;
    margin: 2rem 0;
}

.page-boutique__pagination {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.page-boutique__pagination a,
.page-boutique__pagination span {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    color: #e0e0e0;
    text-decoration: none;
    border: 1px solid #444;
    border-radius: 4px;
    font-size: 0.9rem;
}

.page-boutique__pagination a:hover {
    border-color: #c00;
    color: #c00;
}

.page-boutique__pagination .current {
    background-color: #c00;
    border-color: #c00;
    color: #fff;
}

/* ---- FAQ boutique ---- */
.page-boutique__faq {
    margin-top: 3rem;
    background-color: #fff;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.page-boutique__faq-inner {
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    padding: 2rem 4rem !important;
}

.page-boutique__faq-title {
    font-family: "Poppins", sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #161615;
    margin: 0 0 1.5rem;
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.page-boutique__faq-title::after {
    content: "";
    flex: 1;
    height: 2px;
    background-color: #161615;
    min-width: 2rem;
}

.page-boutique__faq-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-boutique__faq-item {
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 35px;
}

.page-boutique__faq-item:last-child {
    border-bottom: none;
}

.page-boutique__faq-item-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    cursor: pointer;
    text-align: left;
    width: 100%;
    border: none;
    background: none;
    font: inherit;
}

.page-boutique__faq-item-question-wrap {
    flex: 1;
    min-width: 0;
}

.page-boutique__faq-item-question {
    display: block;
    font-family: "Poppins", sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #161615;
    margin-bottom: 0;
}

/* Ligne réponse + bouton + sur la même ligne (réponse à gauche, + à droite) */
.page-boutique__faq-item-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    text-align: left;
    width: 100%;
    border: none;
    background: none;
    font: inherit;
    padding: 0;
}

.page-boutique__faq-item-toggle {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: #eee;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 400;
    color: #333;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.page-boutique__faq-item-toggle:hover {
    color: #e5e5e5;
    background-color: var(--wp--preset--color--color-1);
}

.page-boutique__faq-item.is-open .page-boutique__faq-item-toggle {
    transform: rotate(45deg);
}

/* Zone réponse à gauche du + (flex enfant pour rester sur une ligne) */
.page-boutique__faq-item-answer {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 800px;
    padding: 0.25rem 0 0;
    font-size: 1.25rem;
    color: #2A2C2E;
    line-height: 24px;
    max-height: 1.5em;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.page-boutique__faq-item.is-open .page-boutique__faq-item-answer {
    max-height: 1500px;
}

.page-boutique__faq-item-answer-content {
    font-size: inherit;
    color: inherit;
    line-height: inherit;
}

.page-boutique__faq-item-answer-content p {
    margin: 0 0 0.5rem;
}

.page-boutique__faq-item-answer-content p:last-child {
    margin-bottom: 0;
}
/* Bloc contact */
.woocommerce-shop .contact-section{
    margin-top: 0 !important;
}