/* ============================================
   PAGE CATÉGORIE — Atelier Farouche
   ============================================ */

/* --- En-tête isolé : titre + fil d'ariane centrés --- */
.af-category-header {
    text-align: center;
    padding: 40px 20px 30px;
}

.af-category-header__title {
    font-weight: 800;
    font-size: 32px;
    margin: 0 0 10px;
}

.af-category-header .woocommerce-breadcrumb {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
}

.af-category-header .woocommerce-breadcrumb a {
    color: #888;
    text-decoration: none;
}

.af-category-header .woocommerce-breadcrumb a:hover {
    color: #3F22EB;
}

/* --- Section description sur fond à motif répétitif --- */
.af-category-pattern-section {
    background-repeat: repeat;
    background-size: 600px auto;
    padding: 50px 20px;
    margin-bottom: 60px; /* respiration avant la grille produits */
    display: flex;
    justify-content: center;

    /* Full-bleed : casse la contrainte de largeur du conteneur parent pour
       s'étendre bord à bord, quelle que soit la largeur du site (1200px). */
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    box-sizing: border-box;
}

.af-category-pattern-section__card {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(3px);
    border-radius: 12px;
    padding: 36px 40px;
    max-width: 1200px; /* même largeur que le conteneur standard du site */
    width: 100%;
    box-sizing: border-box;
}

.af-category-pattern-section__card p {
    margin: 0 0 14px;
    line-height: 1.7;
}

.af-category-pattern-section__card p:last-child {
    margin-bottom: 0;
}

/* Le "Lire la suite" natif via <details>/<summary>, sans JS */
.af-category-pattern-section__more {
    display: flex;
    flex-direction: column;
    margin-top: 4px;
}

.af-category-pattern-section__more summary {
    cursor: pointer;
    color: #3F22EB;
    font-weight: 700;
    font-size: 14px;
    list-style: none; /* masque le triangle par défaut sur la plupart des navigateurs */
    order: 2; /* passe après le contenu déplié plutôt qu'avant */
}

.af-category-pattern-section__more-content {
    order: 1;
}

.af-category-pattern-section__more summary::-webkit-details-marker {
    display: none; /* masque le triangle par défaut sur Chrome/Safari */
}

.af-category-pattern-section__more summary::after {
    content: ' →';
}

.af-category-pattern-section__more[open] summary::after {
    content: ' ↑';
}

.af-category-pattern-section__more[open] summary {
    margin-top: 12px; /* espace au-dessus, puisqu'il suit maintenant le texte déplié */
}

/* Libellé qui change entre l'état replié et déplié, sans JS */
.af-category-pattern-section__more .af-more-label-open {
    display: none;
}

.af-category-pattern-section__more[open] .af-more-label-closed {
    display: none;
}

.af-category-pattern-section__more[open] .af-more-label-open {
    display: inline;
}

/* --- Bloc éditorial de bas de page, replié par défaut --- */
.af-category-editorial-wrapper {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.af-category-editorial-wrapper summary {
    cursor: pointer;
    font-weight: 800;
    font-size: 20px;
    list-style: none;
}

.af-category-editorial-wrapper summary::-webkit-details-marker {
    display: none;
}

.af-category-editorial-wrapper summary::after {
    content: ' +';
    color: #3F22EB;
}

.af-category-editorial-wrapper[open] summary::after {
    content: ' −';
}

.af-category-editorial-wrapper[open] summary {
    margin-bottom: 24px;
}

.af-category-editorial {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
}

@media (min-width: 800px) {
    .af-category-editorial {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }
}

.af-category-editorial__text p {
    line-height: 1.7;
    margin: 0 0 14px;
}

.af-category-editorial__text p:last-child {
    margin-bottom: 0;
}

.af-category-editorial__image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}
