/* ═══════════════════════════════════════════════════════════
   ASSORTIS MOI — CSS Texte SEO Catégories + Voir Plus
   À ajouter dans style.css du child theme Flatsome
   ═══════════════════════════════════════════════════════════ */

/* ═══ 1. STYLE TEXTE SEO CATÉGORIES ═══
   Cible automatiquement le texte descriptif WooCommerce
   sur TOUTES les pages catégories/sous-catégories.
   Aucune modification produit par produit nécessaire.
   ═══════════════════════════════════════════════════════════ */

.term-description,
.woocommerce-products-header__description,
.category-description {
  max-width: 1200px;
  margin: 24px auto 0;
  padding: 0 20px;
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-size: 14.5px;
  line-height: 1.75;
  color: #2A1520;
}

.term-description h2,
.category-description h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 700;
  color: #1C1018;
  margin: 24px 0 8px;
  line-height: 1.25;
}

.term-description h3,
.category-description h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  color: #1C1018;
  margin: 18px 0 6px;
}

.term-description p,
.category-description p {
  margin-bottom: 12px;
  color: #5A4550;
}

/* Liens internes — rose avec underline subtil */
.term-description a,
.category-description a {
  color: #E8466A;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(232, 70, 106, 0.2);
  transition: border-color 0.2s;
}
.term-description a:hover,
.category-description a:hover {
  border-color: #E8466A;
}

/* Listes à puces — checkmarks roses */
.term-description ul,
.category-description ul {
  list-style: none;
  padding: 0;
  margin: 12px 0;
}
.term-description ul li,
.category-description ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
}
.term-description ul li::before,
.category-description ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #E8466A;
  font-weight: 700;
}

/* Bold */
.term-description strong,
.category-description strong {
  color: #1C1018;
  font-weight: 600;
}

/* Séparateur décoratif */
.term-description hr,
.category-description hr {
  border: none;
  height: 2px;
  background: linear-gradient(to right, transparent, #F0E4E8, transparent);
  margin: 20px 0;
}


/* ═══ 2. WRAPPER "VOIR PLUS" SEO-SAFE ═══
   
   POURQUOI C'EST SAFE POUR GOOGLE :
   - Le contenu est TOUJOURS dans le DOM (jamais display:none)
   - max-height + overflow:hidden est un pattern accepté par Google
   - Le texte du bouton est injecté par JS (crawler ne l'exécute pas)
   - Google indexe 100% du contenu même quand visuellement tronqué
   - Pas de <details><summary> qui peut être dévalorisé
   
   COMMENT ÇA MARCHE :
   - Le texte entier est dans .seo-text-wrapper
   - max-height: 200px limite la zone visible
   - Un gradient blanc masque la coupure
   - Au clic, max-height passe à 2000px (animation fluide)
   - Le gradient disparaît
   ═══════════════════════════════════════════════════════════ */

.seo-text-wrapper {
  position: relative;
  max-height: 280px;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.seo-text-wrapper.expanded {
  max-height: 3000px;
}

/* Gradient de fondu en bas — suggère "il y a plus" */
.seo-text-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, #FFF8F5);
  pointer-events: none;
  transition: opacity 0.3s;
}

/* Le gradient disparaît quand ouvert */
.seo-text-wrapper.expanded::after {
  opacity: 0;
}

/* Bouton "Lire la suite" — discret, pas agressif */
.seo-expand-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 8px 20px;
  background: transparent;
  border: 1.5px solid #F0E4E8;
  border-radius: 30px;
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #E8466A;
  cursor: pointer;
  transition: all 0.2s;
}

.seo-expand-btn:hover {
  background: #FDF0F3;
  border-color: #E8466A;
}

/* Flèche qui tourne quand ouvert */
.seo-expand-btn .arrow {
  transition: transform 0.3s;
  font-size: 12px;
}

.seo-expand-btn.expanded .arrow {
  transform: rotate(180deg);
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
  .term-description,
  .category-description {
    padding: 0 16px;
    font-size: 14px;
  }
  
  .seo-text-wrapper {
    max-height: 400px;
  }
}
.woocommerce-product-attributes-item--attribute_pa_type-de-manche, tr[data-attribute_name="attribute_pa_type-de-manche"] { display: none !important; }
