/*
 * CATÉGORIES PRODUIT WC — Pages /categorie-produit/* (Aromatiques, Tomates, Fleurs,
 * Légumes et ses sous-catégories).
 * ==================================================================================
 * Le contenu est injecté via les hooks WC dans inc/woocommerce-archive-categorie.php.
 * Le cadre kraft (.ps-contenu-flex / .ps-contenu-border) est géré par
 * inc/woocommerce-shop.php — pas de styles ici.
 *
 * Toutes les unités en clamp()/rem/% (priorité mobile-first, cf EXIGENCES).
 * Le responsive global est traité en phase finale.
 */

/* --------------------------------------------------------------------------
   Titre H1 de la catégorie (CAS A et CAS B)
   -------------------------------------------------------------------------- */
.ps-cat-titre {
    font-family: 'OldNewspaperTypesALM', serif;
    color: #2C1810;
    font-size: clamp(2rem, 5vw, 3.5rem);
    text-align: center;
    margin: 1rem 0 1.5rem;
    line-height: 1.15;
    letter-spacing: 0.01em;
}

/* --------------------------------------------------------------------------
   CAS A — Texte long ACF en bas de page
   Pattern visuel : texte directement sur le fond kraft, sans encadré.
   Sans-serif système figée pour le confort de lecture d'un long texte ;
   les titres internes restent en OldNewspaperTypesALM (cf. plus bas).
   Cohérent avec .ps-attr-texte (taxonomy-attribut.css).
   -------------------------------------------------------------------------- */
.ps-cat-texte-long {
    font-family: 'OldNewspaperTypesALM', Georgia, serif;
    color: #2C1810;
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    line-height: 1.65;
    text-align: left;
    padding: clamp(1rem, 3vw, 2rem);
    margin: 2.5rem auto 1.5rem;
}

.ps-cat-texte-long p {
    margin: 0 0 1rem;
}

.ps-cat-texte-long p:last-child {
    margin-bottom: 0;
}

.ps-cat-texte-long a {
    color: #D4600A;
    text-decoration: underline;
    text-decoration-color: #D4600A;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.ps-cat-texte-long a:hover,
.ps-cat-texte-long a:focus {
    color: #D4600A;
    text-decoration-color: #D4600A;
}

.ps-cat-texte-long h2,
.ps-cat-texte-long h3,
.ps-cat-texte-long h4 {
    font-family: 'OldNewspaperTypesALM', serif;
    color: #4C351C;
    margin: 1.6rem 0 0.6rem;
    line-height: 1.25;
    letter-spacing: 0.005em;
}

.ps-cat-texte-long h2 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); }
.ps-cat-texte-long h3 { font-size: clamp(1.2rem, 2vw,   1.45rem); }
.ps-cat-texte-long h4 { font-size: clamp(1.1rem, 1.7vw, 1.25rem); }

.ps-cat-texte-long ul,
.ps-cat-texte-long ol {
    margin: 0 0 1rem 1.5rem;
    padding: 0;
}

.ps-cat-texte-long li {
    margin: 0 0 0.4rem;
    line-height: 1.55;
}

.ps-cat-texte-long figure {
    margin: 1.5rem auto;
    max-width: 100%;
    text-align: center;
}

.ps-cat-texte-long figure img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border: 1px solid rgba(76, 53, 28, 0.35);
}

.ps-cat-texte-long figcaption {
    font-style: italic;
    font-size: 0.95rem;
    color: #4C351C;
    text-align: center;
    margin-top: 0.5rem;
}

/* --------------------------------------------------------------------------
   CAS B — Sous-catégories (Légumes → Aubergines, Salades, etc.)
   Séparateur en pointillés kraft, généreux, premier sans bordure.
   -------------------------------------------------------------------------- */
.ps-cat-sous-section {
    margin: 3rem 0 1.5rem;
    padding-top: 2rem;
    border-top: 1px dashed rgba(76, 53, 28, 0.3);
}

.ps-cat-sous-section:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 1.5rem;
}

.ps-cat-sous-titre {
    font-family: 'OldNewspaperTypesALM', serif;
    color: #2C1810;
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    text-align: center;
    margin: 0 0 1.2rem;
    line-height: 1.2;
}

.ps-cat-sous-titre a {
    color: #2C1810;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.ps-cat-sous-titre a:hover,
.ps-cat-sous-titre a:focus {
    color: #D4600A;
}
