/*
Theme Name: Telemac Plants
Theme URI: https://github.com/telemac/telemac
Author: Telemac
Author URI: https://telemac.dev
Description: Variante "Plants" du thème Telemac, pensée pour les sites de jardinage, botanique, plantes et succulentes. Polices Bree Serif + Roboto, accent vert nature, homepage magazine avec outil interactif pour jardiniers.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: telemac
Requires at least: 5.0
Requires PHP: 7.4
*/

/* ============================================================
   TELEMAC PLANTS — Variante Plants
   Polices: Bree Serif (titres) + Roboto (corps)
   Accent: vert nature #41bb41
   ============================================================ */

/* Polices chargées via wp_enqueue_scripts (voir functions.php) */
h1, h2, h3, h4, h5, h6,
.tc-hero-split h1,
.tc-about-text h2,
.tc-mag-overlay h3,
.tc-article-body h3,
.tc-editorial-quote blockquote p {
  font-family: 'Bree Serif', Georgia, 'Times New Roman', serif !important;
  letter-spacing: -0.01em;
}
body, p, a, .tc-btn, .tc-badge {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* ============================================================
   BASE (mobile-first)
   ============================================================ */
/* Note: Critical CSS (reset, header, hero) is inline in header.php
   This file handles below-the-fold styles */

/* ============================================================
   COMMON COMPONENTS
   ============================================================ */

/* Section spacing — Fix 8: 4pt grid (48px mobile) */
.tc-section { padding: 48px 0; }
.tc-section-alt { background: var(--tc-bg-alt); }
.tc-text-center { text-align: center; }
.tc-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Line accent */
.tc-line { width: 60px; height: 4px; background: var(--tc-accent); border-radius: 3px; margin: 0 auto 16px; }
.tc-line-left { margin-left: 0; }

/* Subtitle — Fix 1: type scale token */
.tc-subtitle { color: var(--tc-text-light); font-size: var(--text-md); margin-bottom: 32px; line-height: 1.6; }

/* Badge — Fix 5: de-pill (4px radius) */
.tc-badge { display: inline-block; background: var(--tc-accent); color: oklch(99% 0 0); padding: 3px 12px; border-radius: 4px; font-size: var(--text-xs); font-weight: 700; }

/* Button — Fix 4: no translateY, Fix 5: de-pill (8px), Fix 9: specific transitions */
.tc-btn { display: inline-block; background: var(--tc-accent); color: oklch(99% 0 0); padding: 12px 32px; border-radius: 8px; font-weight: 700; font-size: var(--text-base); text-decoration: none; transition: background .2s var(--tc-ease), color .2s var(--tc-ease); border: none; cursor: pointer; }
.tc-btn:hover { background: var(--tc-dark); color: var(--tc-accent); }
.tc-btn-alt { background: var(--tc-dark); color: var(--tc-accent); }
.tc-btn-alt:hover { background: oklch(99% 0 0); color: var(--tc-dark); }

/* Grid */
.tc-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }

/* ============================================================
   ABOUT HOME (Persona section)
   ============================================================ */
/* Fix 8: 4pt grid (32px gap) */
.tc-about-split { display: flex; flex-direction: column; align-items: center; gap: 32px; text-align: center; }
.tc-persona-avatar-large { width: 120px; height: 120px; background: var(--tc-accent-light); border: 3px solid var(--tc-accent-border); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.tc-persona-avatar-large span { font-size: var(--text-2xl); font-weight: 800; color: var(--tc-accent); }
.tc-persona-avatar-large--photo { padding: 0; background: transparent; border-color: var(--tc-accent-border); }
.tc-persona-avatar-large--photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Fix 6: label uses dark instead of accent */
.tc-about-label { color: var(--tc-dark); font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 8px; }
.tc-about-text h2 { font-size: var(--text-xl); margin-bottom: 16px; }
.tc-about-text p { color: var(--tc-text-light); font-size: var(--text-base); line-height: 1.8; margin-bottom: 12px; }

/* ============================================================
   MAGAZINE GRID (Featured posts — 2-1-2 layout)
   ============================================================ */
.tc-mag-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.tc-mag-card { position: relative; overflow: hidden; border-radius: var(--tc-radius); display: block; text-decoration: none; }
/* Fix 9: specific transition property */
.tc-mag-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--tc-ease); }
.tc-mag-card:hover img { transform: scale(1.03); }
.tc-mag-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 16px; background: linear-gradient(transparent 0%, oklch(0% 0 0 / 0.75) 100%); color: oklch(99% 0 0); }
.tc-mag-overlay .tc-badge { font-size: var(--text-xs); padding: 2px 10px; }
.tc-mag-overlay h3 { font-size: var(--text-sm); color: oklch(99% 0 0); line-height: 1.3; margin-top: 8px; }
.tc-mag-overlay p { font-size: var(--text-xs); opacity: .85; margin-top: 8px; line-height: 1.5; display: none; }
/* Fix 6: mag-author uses light text instead of accent */
.tc-mag-author { font-size: var(--text-xs); color: oklch(85% 0.01 60); font-style: italic; display: block; margin-top: 8px; }
.tc-mag-main { min-height: 280px; }
.tc-mag-small { min-height: 180px; }

/* ============================================================
   EDITORIAL FOOTER (Quote + Author)
   ============================================================ */
.tc-editorial { background: var(--tc-bg-alt); }
/* Fix 8: 32px gap */
.tc-editorial-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
/* Fix 6: label uses dark instead of accent */
.tc-editorial-label { color: var(--tc-dark); font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 12px; }
.tc-editorial-quote blockquote { border: none; background: none; padding: 0; margin: 0 0 20px; font-style: italic; }
.tc-editorial-quote blockquote p { font-size: var(--text-xl); font-weight: 700; color: var(--tc-dark); line-height: 1.4; font-style: italic; }
.tc-editorial-desc { color: var(--tc-text-light); font-size: var(--text-sm); line-height: 1.7; margin: 20px 0; }
.tc-author-card { background: var(--tc-bg); border-radius: var(--tc-radius); padding: 32px; text-align: center; box-shadow: var(--tc-shadow); }
.tc-persona-avatar { width: 72px; height: 72px; background: var(--tc-accent-light); border: 2px solid var(--tc-accent-border); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; overflow: hidden; }
.tc-persona-avatar span { font-size: var(--text-lg); font-weight: 800; color: var(--tc-accent); }
.tc-persona-avatar--photo { padding: 0; background: transparent; }
.tc-persona-avatar--photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tc-author-card h3 { font-size: var(--text-md); color: var(--tc-dark); margin-bottom: 4px; }
/* Fix 6: author role uses text-light instead of accent */
.tc-author-role { color: var(--tc-text-light); font-size: var(--text-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.tc-author-bio { color: var(--tc-text-light); font-size: var(--text-sm); line-height: 1.7; margin-bottom: 16px; }
.tc-author-tags { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   PARTNERS BLOCK
   ============================================================ */
.tc-partners { background: var(--tc-bg); padding: 64px 0; }
.tc-partners-label { color: var(--tc-accent); font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; margin: 0 0 8px; }
.tc-partners-title { font-size: var(--text-2xl); font-weight: 700; color: var(--tc-dark); margin: 0 0 24px; padding-bottom: 16px; border-bottom: 1px solid var(--tc-border); }
.tc-partners-title em, .tc-partners-title i { color: var(--tc-dark); font-family: Georgia, 'Times New Roman', serif; font-style: italic; }
.tc-partners-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; gap: 16px; }
.tc-partner-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 32px 24px; background: var(--tc-bg); border: 1px solid var(--tc-border); border-radius: var(--tc-radius); text-align: center; text-decoration: none; transition: box-shadow .2s var(--tc-ease), border-color .2s var(--tc-ease); min-height: 100px; }
a.tc-partner-card:hover { box-shadow: 0 8px 24px oklch(0% 0 0 / 0.06); border-color: var(--tc-accent-border); }
.tc-partner-logo { display: block; max-width: 160px; }
.tc-partner-logo img { max-width: 100%; max-height: 60px; height: auto; object-fit: contain; display: block; }
.tc-partner-name { display: block; font-size: var(--text-md); font-weight: 600; color: var(--tc-dark); font-family: Georgia, 'Times New Roman', serif; }
.tc-partner-tagline { display: block; font-size: var(--text-xs); color: var(--tc-text-light); text-transform: uppercase; letter-spacing: 1.5px; margin-top: 2px; }

/* ============================================================
   "VU SUR" BLOCK (press / media logos)
   ============================================================ */
.tc-seenon { background: var(--tc-bg-alt); padding: 32px 0; }
.tc-seenon-row { display: flex; flex-direction: column; align-items: center; gap: 20px; flex-wrap: wrap; }
.tc-seenon-label { color: var(--tc-text-light); font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; margin: 0; }
.tc-seenon-logos { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 32px; }
.tc-seenon-logos li { display: flex; align-items: center; }
.tc-seenon-logos img { max-height: 36px; width: auto; max-width: 140px; object-fit: contain; opacity: .85; transition: opacity .2s var(--tc-ease); display: block; }
.tc-seenon-logos a:hover img { opacity: 1; }

/* ============================================================
   MISSION CARDS (legacy, kept for customizer override)
   ============================================================ */
/* Fix 4: no translateY hover, Fix 8: 4pt grid (24px padding), Fix 9: specific transitions */
.tc-mission-card { background: var(--tc-bg); border-radius: var(--tc-radius); padding: 24px; border: 1px solid var(--tc-border); position: relative; overflow: hidden; transition: box-shadow .2s var(--tc-ease); text-align: left; }
.tc-mission-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--tc-accent); }
.tc-mission-card:hover { box-shadow: 0 8px 24px oklch(0% 0 0 / 0.08); }
.tc-num { width: 40px; height: 40px; background: var(--tc-dark); color: var(--tc-accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: var(--text-sm); margin-bottom: 16px; }
.tc-mission-card h3 { font-size: var(--text-lg); color: var(--tc-dark); margin-bottom: 8px; }
.tc-mission-card p { color: var(--tc-text-light); font-size: var(--text-base); line-height: 1.7; }

/* ============================================================
   CATEGORY CARDS
   ============================================================ */
/* Fix 4: no translateY hover, Fix 9: specific transitions */
.tc-cat-card { background: var(--tc-bg); border-radius: var(--tc-radius); overflow: hidden; box-shadow: var(--tc-shadow); transition: box-shadow .2s var(--tc-ease); text-decoration: none; display: block; }
.tc-cat-card:hover { box-shadow: 0 8px 24px oklch(0% 0 0 / 0.1); }
.tc-cat-card img { width: 100%; height: 180px; object-fit: cover; }
.tc-cat-icon { font-size: 48px; padding: 32px 0; text-align: center; background: var(--tc-bg-alt); }
.tc-cat-body { padding: 20px; text-align: left; }
.tc-cat-body h3 { font-size: var(--text-md); color: var(--tc-dark); margin: 8px 0 8px; }
.tc-cat-body p { color: var(--tc-text-light); font-size: var(--text-sm); line-height: 1.6; margin: 0 0 12px; }
.tc-cat-link { color: var(--tc-dark); font-weight: 700; font-size: var(--text-sm); }

/* ============================================================
   ARTICLE CARDS (homepage, archive, related)
   ============================================================ */
/* Fix 4: no translateY hover, Fix 9: specific transition */
.tc-article-card { background: var(--tc-bg); border-radius: var(--tc-radius); overflow: hidden; box-shadow: var(--tc-shadow); transition: box-shadow .2s var(--tc-ease); }
.tc-article-card:hover { box-shadow: 0 8px 24px oklch(0% 0 0 / 0.1); }
.tc-article-card img { width: 100%; height: 180px; object-fit: cover; }
.tc-article-body { padding: 16px; }
.tc-article-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.tc-article-body h2, .tc-article-body h3 { font-size: var(--text-base); line-height: 1.4; margin: 8px 0 8px; }
.tc-article-body h2 a, .tc-article-body h3 a { color: var(--tc-dark); text-decoration: none; }
.tc-article-body h2 a:hover, .tc-article-body h3 a:hover { color: var(--tc-accent); }
.tc-excerpt { color: var(--tc-text-light); font-size: var(--text-sm); line-height: 1.6; margin: 0 0 12px; }
.tc-date { color: var(--tc-text-light); font-size: var(--text-xs); }
.tc-article-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.tc-read-more { color: var(--tc-accent); font-weight: 600; font-size: var(--text-sm); }

/* ============================================================
   WHY SECTION
   ============================================================ */
/* Fix 8: 4pt grid, Fix 6: why-card h3 uses white not accent, Fix 9: specific transitions */
.tc-why { background: var(--tc-dark); color: oklch(99% 0 0); padding: 48px 0; }
.tc-why h2 { color: oklch(99% 0 0); }
.tc-why .tc-subtitle { color: oklch(99% 0 0 / 0.7); }
.tc-why-card { background: oklch(99% 0 0 / 0.06); border: 1px solid oklch(99% 0 0 / 0.1); border-radius: var(--tc-radius); padding: 24px; text-align: center; transition: background .2s var(--tc-ease), border-color .2s var(--tc-ease); }
.tc-why-card:hover { background: oklch(99% 0 0 / 0.1); border-color: var(--tc-accent-border); }
.tc-why-icon { font-size: 40px; margin-bottom: 16px; }
.tc-why-card h3 { color: oklch(99% 0 0); font-size: var(--text-md); margin-bottom: 8px; }
.tc-why-card p { color: oklch(99% 0 0 / 0.7); font-size: var(--text-sm); line-height: 1.7; }

/* ============================================================
   CTA SECTION
   ============================================================ */
/* Fix 8: 4pt grid */
.tc-cta { background: linear-gradient(135deg, var(--tc-accent), color-mix(in srgb, var(--tc-accent) 80%, #000)); padding: 48px 20px; text-align: center; }
.tc-cta h2 { color: oklch(99% 0 0); font-size: var(--text-2xl); margin-bottom: 12px; }
.tc-cta p { color: oklch(99% 0 0 / 0.85); font-size: var(--text-md); margin-bottom: 24px; }

/* ============================================================
   ARCHIVE HEADER
   ============================================================ */
/* Fix 10: fluid clamp for archive title */
.tc-archive-header { background: linear-gradient(135deg, var(--tc-dark), color-mix(in srgb, var(--tc-dark) 70%, oklch(35% 0.01 60))); padding: 40px 20px; text-align: center; color: oklch(99% 0 0); position: relative; }
.tc-archive-header::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 4px; background: var(--tc-accent); }
.tc-archive-header h1 { color: oklch(99% 0 0); font-size: var(--text-2xl); margin-bottom: 8px; }
.tc-archive-header p { color: oklch(99% 0 0 / 0.8); font-size: var(--text-base); max-width: 600px; margin: 0 auto; }

/* ============================================================
   SINGLE POST
   ============================================================ */
/* Fix 8: 4pt grid, Fix 10: fluid clamp for single title */
.tc-featured-wrap { max-width: 100%; overflow: hidden; }
.tc-featured-img { width: 100%; max-height: 400px; object-fit: cover; }
.tc-single-inner { padding-top: 24px; padding-bottom: 40px; }
.tc-single-cats { margin-bottom: 12px; display: flex; gap: 8px; }
.tc-single-title { font-size: var(--text-3xl); font-weight: 800; line-height: 1.2; margin-bottom: 12px; }
.tc-single-meta { color: var(--tc-text-light); font-size: var(--text-sm); margin-bottom: 24px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.tc-single-meta a { color: var(--tc-accent); }
.tc-reading-time { background: var(--tc-bg-alt); padding: 2px 10px; border-radius: 8px; font-size: var(--text-xs); }

/* Single content — Fix 2: max-width 65ch */
.tc-single-content { font-size: var(--text-md); line-height: 1.85; color: var(--tc-text); max-width: 65ch; }
.tc-single-content p { margin-bottom: 1.4em; }
.tc-single-content h2 { font-size: var(--text-xl); font-weight: 700; color: var(--tc-dark); margin-top: 2em; margin-bottom: .7em; padding-left: 16px; border-left: 4px solid var(--tc-accent); }
.tc-single-content h3 { font-size: var(--text-lg); font-weight: 600; margin-top: 1.6em; margin-bottom: .5em; }
.tc-single-content a { color: var(--tc-accent); text-decoration: underline; text-decoration-color: var(--tc-accent-light); text-underline-offset: 3px; }
.tc-single-content a:hover { color: var(--tc-dark); }
.tc-single-content blockquote { border-left: 4px solid var(--tc-accent); background: var(--tc-bg-alt); padding: 16px 24px; margin: 1.5em 0; border-radius: 0 var(--tc-radius) var(--tc-radius) 0; font-style: italic; color: var(--tc-text-light); }
.tc-single-content img { border-radius: 8px; margin: 1.5em 0; }
.tc-single-content ul, .tc-single-content ol { padding-left: 1.5em; margin-bottom: 1.4em; }
.tc-single-content li { margin-bottom: .5em; }
.tc-single-content strong { color: var(--tc-dark); }

/* Tags — Fix 3: OKLCH borders, Fix 5: de-pill, Fix 9: specific transitions */
.tc-single-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--tc-border); }
.tc-tag { background: var(--tc-bg-alt); color: var(--tc-dark); padding: 4px 12px; border-radius: 6px; font-size: var(--text-xs); border: 1px solid var(--tc-border); transition: background .2s var(--tc-ease), color .2s var(--tc-ease), border-color .2s var(--tc-ease); }
.tc-tag:hover { background: var(--tc-accent); color: oklch(99% 0 0); border-color: var(--tc-accent); }

/* Author Box (E-A-T) */
.tc-author-box { display: flex; gap: 20px; align-items: flex-start; margin-top: 32px; padding: 24px; background: var(--tc-bg-alt); border-radius: var(--tc-radius); border-left: 4px solid var(--tc-accent); }
.tc-author-box-avatar img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }
.tc-persona-avatar-box { width: 80px; height: 80px; background: var(--tc-accent-light); border: 2px solid var(--tc-accent-border); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tc-persona-avatar-box span { font-size: var(--text-xl); font-weight: 800; color: var(--tc-accent); }
.tc-author-box-label { font-size: var(--text-xs); color: var(--tc-text-light); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; margin-bottom: 4px; }
.tc-author-box-name { font-size: var(--text-lg); font-weight: 700; color: var(--tc-dark); margin-bottom: 2px; }
.tc-author-box-role { font-size: var(--text-xs); color: var(--tc-text-light); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; margin-bottom: 8px; }
.tc-author-box-bio { font-size: var(--text-sm); color: var(--tc-text); line-height: 1.7; margin: 0; }

/* Post navigation — Fix 8: 4pt grid, Fix 9: specific transition */
.tc-post-nav { padding: 32px 0; }
.tc-post-nav-inner { display: grid; grid-template-columns: 1fr; gap: 16px; }
.tc-post-nav-link { display: block; padding: 16px; background: var(--tc-bg-alt); border-radius: var(--tc-radius); text-decoration: none; transition: background .2s var(--tc-ease); }
.tc-post-nav-link:hover { background: var(--tc-accent-light); }
.tc-post-nav-label { font-size: var(--text-xs); color: var(--tc-text-light); display: block; margin-bottom: 4px; }
.tc-post-nav-title { font-size: var(--text-sm); font-weight: 600; color: var(--tc-dark); }

/* Related articles */
.tc-related { padding: 40px 0; background: var(--tc-bg-alt); }
.tc-related-title { font-size: var(--text-xl); margin-bottom: 20px; }

/* ============================================================
   PAGES
   ============================================================ */
.tc-page-inner { max-width: 800px; padding: 32px 20px; }
.tc-page-title { font-size: var(--text-2xl); margin-bottom: 20px; }
.tc-page-content { font-size: var(--text-md); line-height: 1.85; }
.tc-page-content p { margin-bottom: 1.4em; }

/* Page hero (about, contact) — Fix 3: OKLCH */
.tc-page-hero { background: linear-gradient(135deg, var(--tc-dark), color-mix(in srgb, var(--tc-dark) 70%, oklch(35% 0.01 60))); padding: 48px 20px; text-align: center; color: oklch(99% 0 0); position: relative; }
.tc-page-hero::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 4px; background: var(--tc-accent); }
.tc-page-hero h1 { color: oklch(99% 0 0); font-size: var(--text-2xl); margin-bottom: 12px; }
.tc-page-hero p { font-size: var(--text-md); max-width: 600px; margin: 0 auto; opacity: .9; }

/* About page — Fix 3: OKLCH colors */
.tc-about-content { max-width: 900px; padding: 40px 20px; }
.tc-about-section { margin-bottom: 40px; }
.tc-about-section h2 { font-size: var(--text-xl); margin-bottom: 8px; }
.tc-about-section p { font-size: var(--text-md); line-height: 1.85; color: var(--tc-text-light); }
.tc-about-list { list-style: none; padding: 0; }
.tc-about-list li { padding: 12px 16px 12px 48px; margin-bottom: 8px; background: var(--tc-bg-alt); border-radius: var(--tc-radius); position: relative; font-size: var(--text-base); line-height: 1.7; }
.tc-about-list li::before { content: '→'; position: absolute; left: 20px; top: 12px; color: var(--tc-accent); font-weight: 700; }
.tc-about-values { background: var(--tc-dark); border-radius: var(--tc-radius); padding: 40px; color: oklch(99% 0 0); margin: 40px 0; }
.tc-about-values h2 { color: oklch(99% 0 0); font-size: var(--text-xl); margin-bottom: 8px; }
.tc-about-values p { color: oklch(99% 0 0 / 0.85); font-size: var(--text-md); line-height: 1.85; }

/* Contact page — Fix 4: no translateY, Fix 8: 4pt grid, Fix 9: specific transitions */
.tc-contact-wrapper { display: grid; grid-template-columns: 1fr; gap: 32px; padding: 40px 20px; }
.tc-contact-info { display: flex; flex-direction: column; gap: 16px; }
.tc-contact-card { background: var(--tc-bg); border-radius: var(--tc-radius); padding: 24px; box-shadow: var(--tc-shadow); display: flex; gap: 16px; align-items: flex-start; transition: box-shadow .2s var(--tc-ease); }
.tc-contact-card:hover { box-shadow: 0 8px 24px oklch(0% 0 0 / 0.1); }
.tc-contact-icon { font-size: var(--text-xl); flex-shrink: 0; width: 48px; height: 48px; background: var(--tc-bg-alt); border-radius: var(--tc-radius); display: flex; align-items: center; justify-content: center; }
.tc-contact-card h3 { font-size: var(--text-base); margin-bottom: 4px; }
.tc-contact-card p { font-size: var(--text-sm); color: var(--tc-text-light); line-height: 1.6; }
.tc-contact-card a { color: var(--tc-accent); font-weight: 600; }
.tc-contact-form { background: var(--tc-bg); border-radius: var(--tc-radius); padding: 32px; box-shadow: var(--tc-shadow); }
.tc-contact-form h2 { font-size: var(--text-xl); margin-bottom: 20px; }

/* Forms — Fix 3: OKLCH borders/bg, Fix 8: 4pt grid, Fix 9: specific transition */
.tc-form { display: flex; flex-direction: column; gap: 16px; }
.tc-form-row { display: grid; grid-template-columns: 1fr; gap: 16px; }
.tc-form-group { display: flex; flex-direction: column; gap: 4px; }
.tc-form-group label { font-size: var(--text-sm); font-weight: 600; color: var(--tc-dark); }
.tc-form-group input, .tc-form-group textarea, .tc-form-group select { padding: 12px 16px; border: 2px solid var(--tc-border-light); border-radius: 8px; font-size: var(--text-base); font-family: inherit; transition: border-color .2s var(--tc-ease); outline: none; background: var(--tc-bg-alt); }
.tc-form-group input:focus, .tc-form-group textarea:focus { border-color: var(--tc-accent); background: var(--tc-bg); }
.tc-form-group textarea { resize: vertical; min-height: 120px; }

/* ============================================================
   PAGINATION
   ============================================================ */
.tc-pagination { text-align: center; padding: 30px 0; }
.tc-pagination ul { list-style: none; display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; padding: 0; }
.tc-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; background: var(--tc-bg-alt); color: var(--tc-dark); border-radius: 8px; font-size: var(--text-sm); font-weight: 600; transition: background .2s var(--tc-ease), color .2s var(--tc-ease); text-decoration: none; }
.tc-pagination .page-numbers.current, .tc-pagination .page-numbers:hover { background: var(--tc-accent); color: oklch(99% 0 0); }

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.tc-breadcrumbs { padding: 12px 20px; font-size: var(--text-xs); color: var(--tc-text-light); max-width: 1200px; margin: 0 auto; }
.tc-breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 0; }
.tc-breadcrumbs li::after { content: ' ›'; margin: 0 4px; color: var(--tc-border); }
.tc-breadcrumbs li:last-child::after { content: ''; }
.tc-breadcrumbs a { color: var(--tc-accent); text-decoration: none; }

/* ============================================================
   404
   ============================================================ */
.tc-404 { padding: 80px 20px; }
.tc-404-icon { font-size: 64px; margin-bottom: 20px; }
.tc-404 h1 { font-size: var(--text-3xl); margin-bottom: 12px; }
.tc-404 p { color: var(--tc-text-light); font-size: var(--text-md); margin-bottom: 24px; }

/* ============================================================
   FOOTER
   ============================================================ */
/* Fix 6: footer nav links use light text not accent, Fix 8: 4pt grid */
.tc-footer { background: var(--tc-dark); padding: 32px 20px; text-align: center; color: oklch(99% 0 0 / 0.5); }
.tc-footer-nav ul { list-style: none; display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; padding: 0; margin: 0 0 12px; }
.tc-footer-nav a { color: oklch(99% 0 0 / 0.7); font-weight: 600; font-size: var(--text-sm); text-decoration: none; transition: color .2s var(--tc-ease); }
.tc-footer-nav a:hover { color: oklch(99% 0 0); }
.tc-copyright { font-size: var(--text-xs); }

/* ============================================================
   ADS
   ============================================================ */
.tc-ad { text-align: center; overflow: hidden; }
.tc-ad:empty { display: none; }

/* ============================================================
   SEARCH FORM
   ============================================================ */
.search-form { display: flex; gap: 8px; }
.search-form .search-field { flex: 1; padding: 10px 16px; border: 2px solid var(--tc-border-light); border-radius: 8px; font-size: var(--text-sm); outline: none; transition: border-color .2s var(--tc-ease); }
.search-form .search-field:focus { border-color: var(--tc-accent); }
.search-form .search-submit { background: var(--tc-accent); color: oklch(99% 0 0); border: none; padding: 10px 16px; border-radius: 8px; cursor: pointer; font-weight: 600; }

/* ============================================================
   TABLET (768px+)
   ============================================================ */
/* Fix 10: fluid clamp() handles sizing — media queries only for layout, not font sizes */
@media (min-width: 768px) {
  .tc-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .tc-section { padding: 56px 0; }
  .tc-archive-header { padding: 48px 40px; }
  .tc-featured-img { max-height: 448px; }
  .tc-contact-wrapper { grid-template-columns: 1fr 1fr; }
  .tc-form-row { grid-template-columns: 1fr 1fr; }
  .tc-post-nav-inner { grid-template-columns: 1fr 1fr; }
  .tc-article-card img { height: 200px; }
  .tc-cat-card img { height: 200px; }

  /* About home */
  .tc-about-split { flex-direction: row; text-align: left; align-items: flex-start; gap: 40px; }

  /* Magazine grid: 2 cols on tablet */
  .tc-mag-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: minmax(200px, auto); }
  .tc-mag-main { grid-column: 1 / -1; min-height: 352px; }
  .tc-mag-overlay p { display: block; }

  /* Editorial */
  .tc-editorial-grid { grid-template-columns: 1fr 1fr; align-items: center; }

  /* Partners: 2 columns on tablet */
  .tc-partners-grid { grid-template-columns: repeat(2, 1fr); }

  /* Seen-on: inline row on tablet */
  .tc-seenon-row { flex-direction: row; justify-content: center; gap: 40px; }
}

/* ============================================================
   DESKTOP (1024px+)
   ============================================================ */
@media (min-width: 1024px) {
  .tc-grid { grid-template-columns: repeat(3, 1fr); }
  .tc-section { padding: 64px 0; }
  .tc-page-hero { padding: 64px 40px; }
  .tc-mission-card { padding: 32px; }
  .tc-why-card { padding: 32px; }
  .tc-cat-card img { height: 208px; }

  /* Magazine grid: 3-column — 2 left, 1 center (tall), 2 right */
  .tc-mag-grid {
    grid-template-columns: 1fr 1.4fr 1fr;
    grid-template-rows: 1fr 1fr;
    grid-auto-rows: unset;
  }
  .tc-mag-left-0 { grid-column: 1; grid-row: 1; }
  .tc-mag-left-1 { grid-column: 1; grid-row: 2; }
  .tc-mag-main { grid-column: 2; grid-row: 1 / 3; min-height: 448px; }
  .tc-mag-right-0 { grid-column: 3; grid-row: 1; }
  .tc-mag-right-1 { grid-column: 3; grid-row: 2; }
  .tc-mag-main .tc-mag-overlay h3 { font-size: var(--text-lg); }
  .tc-mag-small .tc-mag-overlay { padding: 12px; }
  .tc-mag-small .tc-mag-overlay h3 { font-size: var(--text-xs); }

  /* About */
  .tc-persona-avatar-large { width: 152px; height: 152px; }
  .tc-persona-avatar-large span { font-size: var(--text-3xl); }

  /* Partners: dynamic column count up to 4 */
  .tc-partners-cols-1 { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
  .tc-partners-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .tc-partners-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .tc-partners-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .tc-header, .tc-footer, .tc-nav, .tc-menu-toggle, .tc-ad,
  .tc-related, .tc-post-nav, .tc-badges, .tc-cta, .tc-why { display: none; }
  body { font-size: 12pt; color: #000; }
  a { color: #000; text-decoration: underline; }
}

/* ============================================================
   TELEMAC PLANTS — STYLES SPÉCIFIQUES (HOMEPAGE CACTUS)
   ============================================================ */

/* HERO PLANTS — image fond + overlay sombre */
.tp-hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
              url('https://images.unsplash.com/photo-1509223197845-458d87318791?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  color: #fff;
  padding: 80px 0;
  overflow: hidden;
}
.tp-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at bottom right, rgba(65,187,65,0.18), transparent 60%);
  pointer-events: none;
}
.tp-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.tp-hero-eyebrow {
  display: inline-block;
  color: #41bb41;
  font-family: 'Bree Serif', serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 2px solid #41bb41;
}
.tp-hero h1 {
  font-family: 'Bree Serif', serif !important;
  font-size: clamp(34px, 5.5vw, 64px);
  line-height: 1.1;
  font-weight: 400 !important;
  color: #fff !important;
  margin: 0 0 24px;
  max-width: 780px;
}
.tp-hero p.tp-lead {
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.6;
  max-width: 640px;
  opacity: 0.92;
  margin-bottom: 36px;
}
.tp-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.tp-btn-primary {
  display: inline-block;
  background: #41bb41;
  color: #fff !important;
  padding: 14px 28px;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: background .25s ease, transform .25s ease;
}
.tp-btn-primary:hover { background: #2e9a2e; transform: translateY(-2px); color: #fff !important; }
.tp-btn-ghost {
  display: inline-block;
  background: transparent;
  color: #fff !important;
  padding: 14px 28px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all .25s ease;
}
.tp-btn-ghost:hover { background: #fff; color: #1a1a1a !important; border-color: #fff; }

/* SECTION — generic */
.tp-section { padding: 90px 0; }
.tp-section-alt { background: #f7f8f5; }
.tp-section-dark {
  background: linear-gradient(135deg, #0e1a0e 0%, #1f2b1f 100%);
  color: #fff;
}
.tp-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.tp-eyebrow {
  color: #41bb41;
  font-family: 'Bree Serif', serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 12px;
}
.tp-h2 {
  font-family: 'Bree Serif', serif !important;
  font-size: clamp(30px, 4vw, 45px);
  line-height: 1.15;
  font-weight: 400 !important;
  margin: 0 0 18px;
  color: inherit;
}
.tp-divider {
  width: 100px;
  height: 2px;
  background: #41bb41;
  border: 0;
  margin: 0 0 32px;
}
.tp-divider-center { margin: 0 auto 32px; }
.tp-text-center { text-align: center; }
.tp-section p.tp-intro {
  font-size: 17px;
  line-height: 1.8;
  max-width: 720px;
  color: #555;
  margin-bottom: 40px;
}
.tp-section-dark .tp-intro { color: rgba(255,255,255,0.85); }

/* SECTION MORPHOLOGIES — split layout image + cards */
.tp-morpho-split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
.tp-morpho-img {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 18px 60px rgba(0,0,0,0.18);
}
.tp-morpho-img img { display: block; width: 100%; height: auto; }
.tp-morpho-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
}
.tp-morpho-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.tp-morpho-icon {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(65,187,65,0.12);
  color: #41bb41;
  font-family: 'Bree Serif', serif;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.tp-morpho-item h4 {
  font-family: 'Bree Serif', serif !important;
  font-size: 17px;
  font-weight: 400 !important;
  margin: 0 0 4px;
  color: #1a1a1a;
}
.tp-morpho-item p {
  font-size: 14px;
  color: #666a74;
  line-height: 1.6;
  margin: 0;
}

/* CALCULATEUR D'ARROSAGE — l'outil pour jardiniers */
.tp-tool {
  position: relative;
  background: linear-gradient(135deg, #0e1a0e 0%, #1f2b1f 100%);
  color: #fff;
  padding: 100px 0;
  overflow: hidden;
}
.tp-tool::before {
  content: '🌵';
  position: absolute;
  font-size: 360px;
  opacity: 0.04;
  top: 50%;
  right: -60px;
  transform: translateY(-50%) rotate(8deg);
  line-height: 1;
}
.tp-tool-inner {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.tp-tool-head { text-align: center; max-width: 680px; margin: 0 auto 50px; }
.tp-tool-head .tp-eyebrow { color: #41bb41; }
.tp-tool-head h2 { color: #fff !important; }
.tp-tool-head p { color: rgba(255,255,255,0.75); font-size: 17px; line-height: 1.7; }

.tp-tool-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(65,187,65,0.25);
  border-radius: 14px;
  padding: 40px;
  backdrop-filter: blur(8px);
}

.tp-tool-form { display: flex; flex-direction: column; gap: 22px; }
.tp-tool-field { display: flex; flex-direction: column; gap: 10px; }
.tp-tool-field label {
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #41bb41;
  font-weight: 700;
}
.tp-tool-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.tp-tool-options.three { grid-template-columns: repeat(3, 1fr); }
.tp-tool-options input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.tp-tool-options label {
  display: block;
  padding: 12px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  letter-spacing: 0;
  text-transform: none;
  transition: all .2s ease;
  margin: 0;
}
.tp-tool-options label:hover { border-color: rgba(65,187,65,0.6); background: rgba(65,187,65,0.10); }
.tp-tool-options input[type="radio"]:checked + label {
  background: #41bb41;
  border-color: #41bb41;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(65,187,65,0.35);
}

/* Result card */
.tp-tool-result {
  background: #fff;
  color: #1a1a1a;
  border-radius: 12px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 360px;
  position: relative;
  overflow: hidden;
}
.tp-tool-result::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(65,187,65,0.06), transparent 50%);
  pointer-events: none;
}
.tp-result-emoji {
  font-size: 56px;
  line-height: 1;
  margin-bottom: 12px;
}
.tp-result-label {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #41bb41;
  font-weight: 700;
  margin-bottom: 6px;
}
.tp-result-freq {
  font-family: 'Bree Serif', serif;
  font-size: 42px;
  line-height: 1.1;
  color: #1a1a1a;
  margin-bottom: 8px;
}
.tp-result-sub {
  font-size: 16px;
  color: #555;
  margin-bottom: 18px;
}
.tp-result-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 22px;
}
.tp-meta-cell {
  background: rgba(65,187,65,0.08);
  border-left: 3px solid #41bb41;
  padding: 10px 14px;
  border-radius: 4px;
}
.tp-meta-cell strong {
  display: block;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #41bb41;
  font-weight: 700;
  margin-bottom: 2px;
}
.tp-meta-cell span { font-size: 14px; color: #1a1a1a; font-weight: 500; }
.tp-result-tip {
  font-size: 13px;
  color: #555;
  line-height: 1.6;
  padding-top: 16px;
  border-top: 1px dashed rgba(0,0,0,0.1);
  font-style: italic;
}
.tp-result-tip::before { content: '💡 '; font-style: normal; }

/* MIDFEATURE — "Le saviez-vous ?" strip */
.tp-fact-strip {
  background: #41bb41;
  color: #fff;
  text-align: center;
  padding: 70px 24px;
}
.tp-fact-strip-inner { max-width: 880px; margin: 0 auto; }
.tp-fact-eyebrow {
  font-family: 'Bree Serif', serif;
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 14px;
}
.tp-fact-strip blockquote {
  font-family: 'Bree Serif', serif;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.3;
  margin: 0;
  border: 0;
  padding: 0;
}
.tp-fact-strip blockquote::before { content: '« '; opacity: 0.6; }
.tp-fact-strip blockquote::after { content: ' »'; opacity: 0.6; }

/* TOPICS — 3 cards */
.tp-topics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.tp-topic-card {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: #1a1a1a;
  box-shadow: 0 8px 30px rgba(0,0,0,0.10);
  transition: transform .35s ease;
}
.tp-topic-card:hover { transform: translateY(-6px); }
.tp-topic-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease, opacity .35s ease;
  opacity: 0.85;
}
.tp-topic-card:hover img { transform: scale(1.05); opacity: 1; }
.tp-topic-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  color: #fff;
}
.tp-topic-overlay h3 {
  font-family: 'Bree Serif', serif !important;
  font-size: 26px;
  font-weight: 400 !important;
  margin: 0 0 8px;
  color: #fff;
}
.tp-topic-overlay p { font-size: 14px; opacity: 0.9; margin: 0; }
.tp-topic-arrow {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #41bb41;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

/* ARTICLES GRID — overrides */
.tp-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}
.tp-article {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0,0,0,0.06);
  transition: transform .3s ease, box-shadow .3s ease;
  display: block;
  text-decoration: none;
  color: inherit;
}
.tp-article:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(0,0,0,0.12); }
.tp-article-thumb { aspect-ratio: 16/10; overflow: hidden; background: #eee; }
.tp-article-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tp-article:hover .tp-article-thumb img { transform: scale(1.04); }
.tp-article-body { padding: 22px; }
.tp-article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.tp-article-cat {
  display: inline-block;
  background: rgba(65,187,65,0.12);
  color: #41bb41;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 3px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.tp-article-date { font-size: 12px; color: #999; }
.tp-article-body h3 {
  font-family: 'Bree Serif', serif !important;
  font-size: 21px;
  line-height: 1.3;
  font-weight: 400 !important;
  margin: 0 0 10px;
  color: #1a1a1a;
}
.tp-article-body p { font-size: 14px; color: #666; line-height: 1.6; margin: 0; }

/* CTA FINAL — pleine largeur fond cactus */
.tp-cta {
  position: relative;
  background: linear-gradient(rgba(0,0,0,0.78), rgba(0,0,0,0.78)),
              url('https://images.unsplash.com/photo-1459411552884-841db9b3cc2a?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 100px 24px;
}
.tp-cta-inner { max-width: 720px; margin: 0 auto; }
.tp-cta h2 {
  font-family: 'Bree Serif', serif !important;
  font-size: clamp(28px, 4vw, 45px);
  line-height: 1.2;
  font-weight: 400 !important;
  color: #fff !important;
  margin-bottom: 24px;
}
.tp-cta p { color: rgba(255,255,255,0.85); font-size: 17px; line-height: 1.7; margin-bottom: 32px; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .tp-section { padding: 60px 0; }
  .tp-morpho-split { grid-template-columns: 1fr; gap: 32px; }
  .tp-tool-grid { grid-template-columns: 1fr; padding: 28px; }
  .tp-topics-grid { grid-template-columns: 1fr; }
  .tp-articles-grid { grid-template-columns: 1fr; gap: 20px; }
  .tp-tool { padding: 70px 0; }
  .tp-tool::before { font-size: 220px; right: -120px; }
  .tp-hero { padding: 60px 0; min-height: 480px; }
  .tp-hero h1 { font-size: 36px; }
  .tp-result-freq { font-size: 32px; }
  .tp-result-meta { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .tp-morpho-list { grid-template-columns: 1fr; }
  .tp-tool-options.three { grid-template-columns: 1fr; }
  .tp-hero-actions { flex-direction: column; }
  .tp-hero-actions a { width: 100%; text-align: center; }
}

/* Fix wpautop — pas de <p> vides entre les sections */
.page-template-default .entry-content > p:empty,
.page-template-default .entry-content > br { display: none !important; }

/* Hide page title on front page (template par défaut) */
body.home .entry-title,
body.home .entry-header,
body.page-template-default.home .entry-title { display: none !important; }

/* ============================================================
   TELEMAC PLANTS — ENCYCLOPÉDIE
   ============================================================ */

/* HERO Encyclopédie */
.tp-enc-hero {
  position: relative;
  background: linear-gradient(135deg, #0e1a0e 0%, #1f2b1f 50%, #0e1a0e 100%);
  color: #fff;
  padding: 80px 0 60px;
  text-align: center;
  overflow: hidden;
}
.tp-enc-hero::before, .tp-enc-hero::after {
  content: '🌵';
  position: absolute;
  font-size: 240px;
  opacity: 0.05;
  top: 50%;
  line-height: 1;
}
.tp-enc-hero::before { left: -40px; transform: translateY(-50%) rotate(-12deg); }
.tp-enc-hero::after  { right: -40px; transform: translateY(-50%) rotate(15deg); }
.tp-enc-hero-inner {
  position: relative; z-index: 2;
  max-width: 880px; margin: 0 auto; padding: 0 24px;
}
.tp-enc-hero h1 {
  font-family: 'Bree Serif', serif !important;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
  font-weight: 400 !important;
  color: #fff !important;
  margin: 16px 0 24px;
}
.tp-enc-hero .tp-lead { color: rgba(255,255,255,0.85); max-width: 720px; margin: 0 auto 32px; }

/* Barre de recherche */
.tp-enc-search {
  position: relative;
  max-width: 600px;
  margin: 0 auto 24px;
}
.tp-enc-search input {
  width: 100%;
  padding: 16px 56px 16px 24px;
  border-radius: 50px;
  border: 2px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 16px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.tp-enc-search input::placeholder { color: rgba(255,255,255,0.5); }
.tp-enc-search input:focus {
  border-color: #41bb41;
  background: rgba(255,255,255,0.14);
  box-shadow: 0 0 0 4px rgba(65,187,65,0.18);
}
.tp-enc-search-icon {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  pointer-events: none;
  opacity: 0.7;
}

/* Quick-nav (anchor links) */
.tp-enc-quicknav {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.tp-enc-quicknav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 100px;
  color: #fff !important;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all .2s ease;
}
.tp-enc-quicknav a:hover { background: #41bb41; border-color: #41bb41; }

/* Section head */
.tp-enc-section-head { margin-bottom: 40px; }

/* Filtres chips */
.tp-enc-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.tp-enc-chip {
  --chip-color: #41bb41;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #f4f4f0;
  border: 1.5px solid transparent;
  border-radius: 100px;
  color: #1a1a1a;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all .2s ease;
  position: relative;
}
.tp-enc-chip::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--chip-color);
  display: inline-block;
}
.tp-enc-chip[data-family="all"]::before { display: none; }
.tp-enc-chip:hover { background: #eaeae5; }
.tp-enc-chip.is-active {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}
.tp-enc-chip.is-active::before { background: var(--chip-color); }
.tp-enc-chip[data-family="all"].is-active { background: #41bb41; border-color: #41bb41; }

/* A-Z nav */
.tp-enc-az {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 32px;
  padding: 12px 16px;
  background: #f7f8f5;
  border-radius: 8px;
  border: 1px solid #ececea;
}
.tp-enc-az a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  color: #1a1a1a !important;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  transition: all .15s ease;
  font-family: 'Bree Serif', serif;
}
.tp-enc-az a:hover { background: #41bb41; color: #fff !important; }
.tp-enc-az a.is-disabled { opacity: 0.25; pointer-events: none; }

/* Grille genres */
.tp-enc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  position: relative;
}
.tp-enc-empty {
  text-align: center;
  padding: 60px 20px;
  color: #888;
  font-size: 16px;
}

/* Carte genre */
.tp-enc-card {
  position: relative;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #ececea;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.tp-enc-card:hover {
  transform: translateY(-4px);
  border-color: rgba(65,187,65,0.4);
  box-shadow: 0 14px 36px rgba(0,0,0,0.08);
}
.tp-enc-card-link {
  display: flex;
  flex-direction: column;
  padding: 22px 22px 18px;
  text-decoration: none;
  color: inherit;
  height: 100%;
  min-height: 200px;
}
.tp-enc-card.is-hidden { display: none; }

.tp-enc-card-head { margin-bottom: 14px; }
.tp-enc-fam-badge {
  display: inline-block;
  color: #fff;
  font-size: 10px;
  letter-spacing: 1.2px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 3px;
  margin-bottom: 10px;
}
.tp-enc-name {
  font-family: 'Bree Serif', serif !important;
  font-size: 24px;
  font-weight: 400 !important;
  margin: 0;
  color: #1a1a1a;
  text-transform: capitalize;
  line-height: 1.2;
}

/* Attributs */
.tp-enc-attrs {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tp-enc-attrs li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #555;
  line-height: 1.4;
}
.tp-enc-attr-icon {
  flex: 0 0 18px;
  font-size: 14px;
  line-height: 1.4;
}

/* Difficulté */
.tp-enc-diff {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 14px;
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.tp-enc-diff-dots {
  display: inline-flex;
  gap: 3px;
}
.tp-enc-diff-dots span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #e0e0d8;
}
.tp-enc-diff-dots span.is-on { background: #41bb41; }

.tp-enc-card-cta {
  margin-top: auto;
  color: #41bb41;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.3px;
  padding-top: 8px;
  border-top: 1px dashed #ececea;
}

/* FAMILLES grid */
.tp-enc-fam-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 24px;
}
.tp-enc-fam-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 28px 26px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #ececea;
  text-decoration: none;
  color: inherit;
  transition: all .25s ease;
  position: relative;
}
.tp-enc-fam-card:hover {
  border-color: rgba(65,187,65,0.4);
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  transform: translateY(-3px);
}
.tp-enc-fam-icon { font-size: 32px; line-height: 1; }
.tp-enc-fam-card h3 {
  font-family: 'Bree Serif', serif !important;
  font-size: 20px;
  font-weight: 400 !important;
  margin: 0;
  color: #1a1a1a;
  text-transform: capitalize;
}
.tp-enc-fam-count { font-size: 13px; color: #666; margin: 0; }
.tp-enc-fam-link {
  color: #41bb41;
  font-weight: 700;
  font-size: 13px;
  margin-top: auto;
}

/* CONSEILS — groupé par catégorie */
.tp-enc-conseil-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 24px;
}
.tp-enc-conseil-block {
  background: #fff;
  border: 1px solid #ececea;
  border-radius: 10px;
  padding: 24px;
  transition: border-color .2s ease;
}
.tp-enc-conseil-block:hover { border-color: rgba(65,187,65,0.4); }
.tp-enc-conseil-title {
  font-family: 'Bree Serif', serif !important;
  font-size: 19px;
  font-weight: 400 !important;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid #41bb41;
  color: #1a1a1a;
}
.tp-enc-conseil-icon { font-size: 22px; }
.tp-enc-conseil-count {
  margin-left: auto;
  font-size: 11px;
  background: rgba(65,187,65,0.12);
  color: #41bb41;
  padding: 2px 8px;
  border-radius: 100px;
  font-weight: 700;
  letter-spacing: 0.5px;
  font-family: 'Roboto', sans-serif;
}
.tp-enc-conseil-list { list-style: none; padding: 0; margin: 0; }
.tp-enc-conseil-list li { margin-bottom: 6px; }
.tp-enc-conseil-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  margin: 0 -12px;
  border-radius: 6px;
  color: #1a1a1a !important;
  font-size: 14px;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.tp-enc-conseil-list a:hover {
  background: rgba(65,187,65,0.08);
  color: #41bb41 !important;
}
.tp-enc-conseil-list a span { opacity: 0.4; transition: opacity .15s ease; }
.tp-enc-conseil-list a:hover span { opacity: 1; }

/* RESPONSIVE Encyclopédie */
@media (max-width: 768px) {
  .tp-enc-hero { padding: 60px 0 40px; }
  .tp-enc-hero h1 { font-size: 32px; }
  .tp-enc-search input { font-size: 15px; padding: 14px 50px 14px 18px; }
  .tp-enc-grid { grid-template-columns: 1fr; gap: 14px; }
  .tp-enc-card-link { min-height: 0; }
  .tp-enc-name { font-size: 22px; }
  .tp-enc-az { gap: 2px; padding: 8px 10px; }
  .tp-enc-az a { width: 26px; height: 26px; font-size: 12px; }
  .tp-enc-fam-grid, .tp-enc-conseil-groups { grid-template-columns: 1fr; gap: 14px; }
}

/* ============================================================
   TELEMAC PLANTS — TEMPLATES GENRE / FAMILLE / CONSEIL
   ============================================================ */

/* HERO GENRE */
.tp-gen-hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.tp-gen-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.tp-gen-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.75) 100%),
              radial-gradient(ellipse at bottom right, color-mix(in srgb, var(--family-color, #41bb41) 30%, transparent), transparent 60%);
}
.tp-gen-hero-bg img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.tp-gen-hero-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 24px 70px;
  width: 100%;
}
.tp-gen-back {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  color: #fff !important;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 24px;
  transition: background .2s ease;
}
.tp-gen-back:hover { background: rgba(255,255,255,0.22); }
.tp-gen-fam-badge {
  display: inline-block;
  color: #fff;
  font-size: 11px;
  letter-spacing: 1.5px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
}
.tp-gen-name {
  font-family: 'Bree Serif', serif !important;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 1;
  font-weight: 400 !important;
  color: #fff !important;
  margin: 0 0 12px;
  text-transform: capitalize;
}
.tp-gen-name em { font-style: italic; }
.tp-gen-tagline {
  font-size: 17px;
  color: rgba(255,255,255,0.85);
  margin: 0 0 36px;
}

/* Quick stats */
.tp-gen-quickstats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.18);
  max-width: 900px;
}
.tp-gen-stat {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1 1 220px;
  min-width: 0;
}
.tp-gen-stat-icon {
  font-size: 32px;
  line-height: 1;
  flex-shrink: 0;
}
.tp-gen-stat strong {
  display: block;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--family-color, #41bb41);
  margin-bottom: 4px;
  font-weight: 700;
}
.tp-gen-stat span {
  font-size: 14px;
  color: #fff;
  line-height: 1.4;
}

/* FICHE TECHNIQUE — info cards */
.tp-gen-info-section { padding: 90px 0 60px; }
.tp-gen-info-head { max-width: 720px; margin-bottom: 40px; }
.tp-gen-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.tp-info-card {
  background: #fff;
  border: 1px solid #ececea;
  border-radius: 10px;
  padding: 24px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  position: relative;
  overflow: hidden;
}
.tp-info-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0; width: 4px;
  background: #41bb41;
  border-radius: 4px 0 0 4px;
}
.tp-info-card:hover {
  border-color: rgba(65,187,65,0.4);
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  transform: translateY(-3px);
}
.tp-info-card header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.tp-info-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(65,187,65,0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.tp-info-card h3 {
  font-family: 'Bree Serif', serif !important;
  font-size: 17px;
  font-weight: 400 !important;
  margin: 0;
  color: #1a1a1a;
}
.tp-info-card p {
  font-size: 14px;
  color: #444;
  line-height: 1.6;
  margin: 0;
}

/* CONTENU corps de fiche — typo soignée */
.tp-gen-body-section { padding: 70px 0; }
.tp-gen-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.85;
  color: #2a2a2a;
}
.tp-gen-content h1,
.tp-gen-content h2,
.tp-gen-content h3,
.tp-gen-content h4 {
  font-family: 'Bree Serif', serif !important;
  font-weight: 400 !important;
  color: #1a1a1a;
  margin-top: 1.8em;
  margin-bottom: 0.6em;
  line-height: 1.25;
}
.tp-gen-content h2 {
  font-size: 28px;
  padding-bottom: 12px;
  border-bottom: 2px solid #41bb41;
  display: inline-block;
}
.tp-gen-content h3 { font-size: 22px; color: #41bb41; }
.tp-gen-content h4 { font-size: 18px; }
.tp-gen-content p { margin: 0 0 1.2em; }
.tp-gen-content strong { color: #1a1a1a; font-weight: 600; }
.tp-gen-content em { font-style: italic; color: #2e9a2e; }
.tp-gen-content a {
  color: #41bb41;
  text-decoration: underline;
  text-decoration-color: rgba(65,187,65,0.4);
  text-underline-offset: 3px;
}
.tp-gen-content a:hover { color: #2e9a2e; text-decoration-color: #2e9a2e; }
.tp-gen-content ul, .tp-gen-content ol {
  padding-left: 24px;
  margin: 0 0 1.4em;
}
.tp-gen-content li { margin-bottom: 0.4em; }
.tp-gen-content blockquote {
  border-left: 4px solid #41bb41;
  background: rgba(65,187,65,0.05);
  padding: 16px 22px;
  margin: 1.5em 0;
  font-style: italic;
  color: #2a2a2a;
  border-radius: 0 6px 6px 0;
}
.tp-gen-content hr {
  border: 0;
  border-top: 1px solid #ececea;
  margin: 2em 0;
}
.tp-gen-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1em 0;
  display: block;
}
.tp-gen-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
}
.tp-gen-content table th,
.tp-gen-content table td {
  border: 1px solid #ececea;
  padding: 10px 14px;
  text-align: left;
}
.tp-gen-content table th {
  background: rgba(65,187,65,0.08);
  color: #1a1a1a;
}
.tp-gen-empty {
  text-align: center;
  font-style: italic;
  color: #888;
  padding: 40px 20px;
}

/* CONSEILS GRID (sur les pages genre) */
.tp-gen-advice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.tp-advice-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  background: #fff;
  border: 1px solid #ececea;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: all .25s ease;
  position: relative;
}
.tp-advice-card:hover {
  border-color: rgba(65,187,65,0.4);
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}
.tp-advice-icon {
  font-size: 28px;
  line-height: 1;
}
.tp-advice-card h3 {
  font-family: 'Bree Serif', serif !important;
  font-size: 17px;
  font-weight: 400 !important;
  margin: 0;
  color: #1a1a1a;
  line-height: 1.35;
}
.tp-advice-link {
  color: #41bb41;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.5px;
  margin-top: auto;
}

/* HERO FAMILLE */
.tp-fam-hero {
  background: linear-gradient(135deg, #0e1a0e 0%, #1f2b1f 50%, #0e1a0e 100%);
  color: #fff;
  padding: 100px 0 70px;
  position: relative;
  overflow: hidden;
}
.tp-fam-hero::before {
  content: '🌿';
  position: absolute;
  font-size: 280px;
  opacity: 0.05;
  right: -40px; top: 50%;
  transform: translateY(-50%) rotate(-10deg);
  line-height: 1;
}
.tp-fam-hero-inner {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.tp-fam-name {
  font-family: 'Bree Serif', serif !important;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  font-weight: 400 !important;
  color: #fff !important;
  margin: 12px 0 16px;
  text-transform: capitalize;
}
.tp-fam-tagline {
  font-size: 17px;
  color: rgba(255,255,255,0.85);
  max-width: 640px;
  margin: 0;
}

/* HERO CONSEIL */
.tp-conseil-hero {
  background: linear-gradient(135deg, #41bb41 0%, #2e9a2e 100%);
  color: #fff;
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
.tp-conseil-hero::before {
  content: '';
  position: absolute;
  right: -150px; top: -150px;
  width: 400px; height: 400px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}
.tp-conseil-hero-inner {
  position: relative; z-index: 2;
  max-width: 900px; margin: 0 auto; padding: 0 24px;
}
.tp-conseil-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.tp-conseil-cat-icon { font-size: 16px; }
.tp-conseil-title {
  font-family: 'Bree Serif', serif !important;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
  font-weight: 400 !important;
  color: #fff !important;
  margin: 0 0 14px;
}
.tp-conseil-tagline {
  font-size: 17px;
  color: rgba(255,255,255,0.92);
  margin: 0;
}
.tp-conseil-body { max-width: 880px; margin: 0 auto; }
.tp-conseil-content { padding-top: 20px; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .tp-gen-hero-inner { padding: 70px 20px 50px; }
  .tp-gen-name { font-size: 44px; }
  .tp-gen-tagline { font-size: 15px; margin-bottom: 24px; }
  .tp-gen-quickstats { gap: 16px; }
  .tp-gen-stat { flex: 1 1 100%; }
  .tp-gen-info-grid { grid-template-columns: 1fr; gap: 12px; }
  .tp-info-card { padding: 18px; }
  .tp-gen-content { font-size: 15px; }
  .tp-gen-content h2 { font-size: 24px; }
  .tp-gen-content h3 { font-size: 19px; }
  .tp-fam-name { font-size: 36px; }
  .tp-conseil-title { font-size: 30px; }
}

/* ============================================================
   TELEMAC PLANTS — ENRICHISSEMENT + AUTO-LINKS
   ============================================================ */

/* AUTO-LINKER — Liens contextuels automatiques dans le contenu */
.tp-autolink {
  color: #41bb41 !important;
  text-decoration: underline;
  text-decoration-color: rgba(65,187,65,0.35);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  font-weight: 500;
  transition: color .15s ease, text-decoration-color .15s ease;
}
.tp-autolink:hover {
  color: #2e9a2e !important;
  text-decoration-color: #2e9a2e;
}
/* Subtil distinguer le type (sans agresser visuellement) */
.tp-al-genus { font-style: italic; }
.tp-al-family { font-variant: small-caps; letter-spacing: 0.3px; }
.tp-al-term { } /* terme technique : style standard */

/* ENRICHISSEMENT — Section présentation */
.tp-gen-enrich { padding: 80px 0 40px; }
.tp-enrich-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 50px;
  margin-top: 32px;
}
.tp-enrich-grid.is-fallback { grid-template-columns: minmax(0, 1fr); max-width: 800px; margin-left: auto; margin-right: auto; }

.tp-enrich-main { font-size: 17px; line-height: 1.85; color: #2a2a2a; }
.tp-enrich-lede {
  font-size: 19px !important;
  line-height: 1.7;
  color: #1a1a1a;
  margin: 0 0 28px;
  font-weight: 400;
}
.tp-enrich-h3 {
  font-family: 'Bree Serif', serif !important;
  font-size: 23px !important;
  font-weight: 400 !important;
  color: #1a1a1a;
  margin: 32px 0 12px !important;
  padding-bottom: 8px;
  border-bottom: 2px solid #41bb41;
  display: inline-block;
}
.tp-enrich-main p { margin: 0 0 16px; }
.tp-enrich-main strong { color: #1a1a1a; font-weight: 600; }
.tp-enrich-main em { font-style: italic; color: #2e9a2e; }

.tp-enrich-callout {
  background: rgba(245, 158, 11, 0.08);
  border-left: 4px solid #f59e0b;
  border-radius: 0 8px 8px 0;
  padding: 20px 24px;
  margin: 24px 0 0;
}
.tp-enrich-callout h4 {
  font-family: 'Bree Serif', serif !important;
  font-size: 17px;
  font-weight: 400 !important;
  margin: 0 0 8px;
  color: #92400e;
}
.tp-enrich-callout p { margin: 0; color: #1a1a1a; }

/* SIDEBAR */
.tp-enrich-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-self: start;
  position: sticky;
  top: 20px;
}
.tp-side-card {
  background: #fff;
  border: 1px solid #ececea;
  border-radius: 10px;
  padding: 22px;
  transition: border-color .2s ease;
}
.tp-side-card:hover { border-color: rgba(65,187,65,0.4); }
.tp-side-card h4 {
  font-family: 'Bree Serif', serif !important;
  font-size: 15px;
  font-weight: 400 !important;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid #41bb41;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tp-side-list { list-style: none; padding: 0; margin: 0; }
.tp-side-list li {
  padding: 8px 0;
  font-size: 14px;
  line-height: 1.5;
  border-bottom: 1px dashed rgba(0,0,0,0.06);
}
.tp-side-list li:last-child { border-bottom: 0; }
.tp-side-list strong {
  display: block;
  color: #1a1a1a;
  font-weight: 600;
  margin-bottom: 2px;
}
.tp-side-list span { color: #555; font-size: 13px; }

.tp-side-links { list-style: none; padding: 0; margin: 0; }
.tp-side-links li { margin-bottom: 8px; }
.tp-side-links li:last-child { margin-bottom: 0; }
.tp-side-links a {
  display: block;
  padding: 8px 12px;
  margin: 0 -12px;
  border-radius: 6px;
  color: #1a1a1a !important;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.tp-side-links a:hover {
  background: rgba(65,187,65,0.08);
  color: #41bb41 !important;
  transform: translateX(2px);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .tp-enrich-grid { grid-template-columns: 1fr; gap: 28px; }
  .tp-enrich-side { position: static; }
  .tp-enrich-lede { font-size: 17px !important; }
  .tp-enrich-h3 { font-size: 20px !important; }
}

/* ============================================================
   TELEMAC PLANTS — IMAGE D'ENRICHISSEMENT
   ============================================================ */
.tp-enrich-figure {
  margin: 0 0 28px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background: #f4f4f0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  aspect-ratio: 3 / 2;
}
.tp-enrich-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}
.tp-enrich-figure:hover img { transform: scale(1.02); }
.tp-enrich-figure figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 10px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: rgba(255,255,255,0.92);
  font-size: 12px;
  font-style: italic;
  letter-spacing: 0.3px;
  text-align: right;
}

@media (max-width: 600px) {
  .tp-enrich-figure { aspect-ratio: 4 / 3; margin-bottom: 22px; }
  .tp-enrich-figure figcaption { font-size: 11px; padding: 8px 12px; }
}

/* ============================================================
   IMG BROKEN — Pré-empêche l'affichage du alt text le temps que le JS arrive
   ============================================================ */
.tp-gen-content img,
.entry-content img {
  /* Si l'image charge, OK. Sinon le JS la supprime. */
  font-size: 0; /* cache le texte alt en cas de broken */
  color: transparent;
  min-height: 1px;
}
/* Images récupérées via la médiathèque — petite indication discrète */
.tp-gen-content img.tp-img-recovered {
  border: 1px solid rgba(65,187,65,0.08);
  border-radius: 6px;
}
