/*
Theme Name:  Conseil Jardinage
Theme URI:   https://conseil-jardinage.fr
Author:      Rankcraft / JM Digital
Author URI:  https://rankcraft.fr
Description: Thème éditorial botanique pour conseil-jardinage.fr. Design organique, optimisé SEO, ultra-rapide.
Version:     1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: conseil-jardinage
Tags:        blog, custom-colors, custom-logo, custom-menu, featured-images, footer-widgets, full-width-template, sticky-post, threaded-comments, translation-ready
*/

/* ============================================================
   0. GOOGLE FONTS IMPORT
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garant:ital,wght@0,400;0,600;0,700;1,400;1,600&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&family=Playfair+Display:ital,wght@1,400;1,600&display=swap');

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
  /* Palette */
  --color-forest:      #1c3829;
  --color-forest-mid:  #2a5240;
  --color-sage:        #6b9e78;
  --color-sage-light:  #a8c9a8;
  --color-cream:       #f7f3ec;
  --color-cream-warm:  #ede7d9;
  --color-sand:        #d6c9b0;
  --color-terra:       #b85c34;
  --color-terra-light: #d4795a;
  --color-bark:        #3d2a1e;
  --color-ink:         #1e2a20;
  --color-muted:       #6e7d6e;
  --color-white:       #ffffff;

  /* Typography */
  --font-display:   'Cormorant Garant', Georgia, serif;
  --font-accent:    'Playfair Display', Georgia, serif;
  --font-body:      'DM Sans', -apple-system, sans-serif;

  /* Sizing */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-pill: 100px;

  /* Shadows */
  --shadow-card:    0 2px 16px rgba(28, 56, 41, 0.10);
  --shadow-hover:   0 8px 32px rgba(28, 56, 41, 0.18);
  --shadow-deep:    0 16px 48px rgba(28, 56, 41, 0.22);

  /* Layout */
  --max-width:      1160px;
  --content-width:  720px;
  --sidebar-width:  300px;
  --gap:            32px;

  /* Transitions */
  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--color-ink);
  background-color: var(--color-cream);
  -webkit-font-smoothing: antialiased;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-forest-mid);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--color-terra); }

/* ============================================================
   3. TYPOGRAPHY SCALE
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-forest);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); }
h4 { font-size: 1.3rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p { margin-bottom: 1.4em; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.6em; margin-bottom: 1.4em; }
li { margin-bottom: 0.4em; }

blockquote {
  border-left: 3px solid var(--color-sage);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--color-cream-warm);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--color-forest-mid);
}

code {
  font-family: 'Courier New', monospace;
  background: var(--color-cream-warm);
  padding: 0.15em 0.45em;
  border-radius: var(--radius-sm);
  font-size: 0.9em;
  color: var(--color-terra);
}

pre {
  background: var(--color-forest);
  color: var(--color-sage-light);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin-bottom: 1.4em;
}
pre code { background: transparent; color: inherit; padding: 0; }

hr {
  border: none;
  border-top: 1px solid var(--color-sand);
  margin: 2.5rem 0;
}

strong { font-weight: 500; color: var(--color-forest); }
em { font-style: italic; }

/* ============================================================
   4. LAYOUT SYSTEM
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.site-layout {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: var(--gap);
  padding: 48px 0 64px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-inline: 24px;
}

.site-layout--full {
  grid-template-columns: 1fr;
}

.main-content { min-width: 0; }
.sidebar      { min-width: 0; }

/* ============================================================
   5. HEADER
   ============================================================ */
.site-header {
  background: var(--color-forest);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 24px rgba(0,0,0,0.18);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo img {
  height: 42px;
  width: auto;
}

/* Custom logo via WordPress (the_custom_logo()) */
.custom-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.custom-logo-link .custom-logo,
.site-header .custom-logo {
  height: 48px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-text .logo-primary {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--color-cream);
  letter-spacing: -0.02em;
}

.logo-text .logo-secondary {
  font-size: 0.7rem;
  color: var(--color-sage-light);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 400;
}

/* Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav > li > a {
  display: block;
  padding: 8px 14px;
  color: var(--color-sage-light);
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  text-decoration: none;
}

.main-nav > li > a:hover,
.main-nav > li.current-menu-item > a,
.main-nav > li.current-menu-ancestor > a {
  color: var(--color-white);
  background: rgba(255,255,255,0.1);
}

/* Dropdown */
.main-nav li { position: relative; }

.main-nav .sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--color-white);
  border: 1px solid var(--color-cream-warm);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-deep);
  min-width: 200px;
  padding: 8px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  z-index: 200;
}

.main-nav li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-nav .sub-menu a {
  display: block;
  padding: 9px 18px;
  color: var(--color-ink);
  font-size: 0.87rem;
  transition: all var(--transition);
}
.main-nav .sub-menu a:hover {
  background: var(--color-cream);
  color: var(--color-forest-mid);
  padding-left: 24px;
}

/* Header search */
.header-search {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  gap: 8px;
  transition: all var(--transition);
}

.header-search:focus-within {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.3);
}

.header-search input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--color-white);
  font-size: 0.87rem;
  font-family: var(--font-body);
  width: 160px;
}

.header-search input::placeholder { color: var(--color-sage-light); opacity: 0.7; }

.header-search button {
  background: transparent;
  border: none;
  color: var(--color-sage-light);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  transition: color var(--transition);
}
.header-search button:hover { color: var(--color-white); }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-sage-light);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ============================================================
   6. HERO BANNER (Homepage)
   ============================================================ */
.hero-banner {
  background: linear-gradient(135deg, var(--color-forest) 0%, var(--color-forest-mid) 60%, var(--color-sage) 100%);
  padding: 80px 24px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(107,158,120,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(168,201,168,0.12) 0%, transparent 40%);
  pointer-events: none;
}

/* Feuille décorative SVG inline via pseudo-element */
.hero-banner::after {
  content: '';
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 300px;
  height: 300px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cellipse cx='100' cy='100' rx='60' ry='90' fill='none' stroke='rgba(168,201,168,0.08)' stroke-width='40'/%3E%3Cellipse cx='100' cy='100' rx='30' ry='45' fill='none' stroke='rgba(168,201,168,0.06)' stroke-width='30'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-banner .container { position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--color-sage-light);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
}

.hero-banner h1 {
  color: var(--color-white);
  font-size: clamp(2.4rem, 6vw, 4rem);
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.hero-banner p {
  color: var(--color-sage-light);
  font-size: 1.15rem;
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-cta {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ============================================================
   7. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--color-terra);
  color: var(--color-white);
  border-color: var(--color-terra);
}
.btn-primary:hover {
  background: var(--color-terra-light);
  border-color: var(--color-terra-light);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(184,92,52,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.4);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
  color: var(--color-white);
}

.btn-ghost {
  background: transparent;
  color: var(--color-forest-mid);
  border-color: var(--color-sage);
  padding: 9px 20px;
  font-size: 0.86rem;
}
.btn-ghost:hover {
  background: var(--color-forest-mid);
  color: var(--color-white);
  border-color: var(--color-forest-mid);
}

.btn-sm { padding: 7px 16px; font-size: 0.82rem; }

/* ============================================================
   8. SAISON / SEASON NAV (unique element)
   ============================================================ */
.season-nav {
  background: var(--color-cream-warm);
  border-bottom: 1px solid var(--color-sand);
}

.season-nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.season-nav-inner::-webkit-scrollbar { display: none; }

.season-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  font-size: 0.84rem;
  font-weight: 400;
  color: var(--color-muted);
  white-space: nowrap;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
}

.season-pill:hover,
.season-pill.active {
  color: var(--color-forest);
  border-bottom-color: var(--color-sage);
}

.season-pill .season-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.season-pill[data-season="printemps"] .season-dot { background: #7bc47f; }
.season-pill[data-season="ete"] .season-dot        { background: #e8b84b; }
.season-pill[data-season="automne"] .season-dot    { background: #d4703a; }
.season-pill[data-season="hiver"] .season-dot      { background: #7fafc4; }

/* ============================================================
   9. BREADCRUMB
   ============================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 6px;
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-bottom: 28px;
  padding: 0;
  list-style: none;
}

.breadcrumb a { color: var(--color-muted); }
.breadcrumb a:hover { color: var(--color-forest-mid); }

.breadcrumb-sep {
  color: var(--color-sand);
  font-size: 0.7rem;
}

.breadcrumb li:last-child { color: var(--color-forest); }

/* ============================================================
   10. POST CARD
   ============================================================ */
.post-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.post-card__thumb {
  display: block;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--color-cream-warm);
}

.post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-card:hover .post-card__thumb img {
  transform: scale(1.05);
}

.post-card__body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.cat-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--color-cream);
  color: var(--color-forest-mid);
  text-decoration: none;
  transition: all var(--transition);
}
.cat-badge:hover {
  background: var(--color-forest-mid);
  color: var(--color-white);
}

.post-card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-forest);
  margin-bottom: 10px;
  text-decoration: none;
  display: block;
  transition: color var(--transition);
}
.post-card__title:hover { color: var(--color-terra); }

.post-card__excerpt {
  font-size: 0.88rem;
  color: var(--color-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--color-muted);
  border-top: 1px solid var(--color-cream-warm);
  padding-top: 14px;
  margin-top: auto;
}

.post-card__author {
  display: flex;
  align-items: center;
  gap: 6px;
}

.post-card__author img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.post-card__read-time {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ============================================================
   11. POST GRID / FEATURED
   ============================================================ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 24px;
}

.posts-grid--2col { grid-template-columns: repeat(2, 1fr); }
.posts-grid--3col { grid-template-columns: repeat(3, 1fr); }

.featured-post {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 340px;
  margin-bottom: 40px;
  transition: box-shadow var(--transition);
}
.featured-post:hover { box-shadow: var(--shadow-hover); }

.featured-post__thumb {
  overflow: hidden;
}
.featured-post__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.featured-post:hover .featured-post__thumb img { transform: scale(1.04); }

.featured-post__body {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-terra);
  margin-bottom: 14px;
}

.featured-post__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--color-forest);
  margin-bottom: 14px;
  line-height: 1.25;
}

.featured-post__excerpt {
  font-size: 0.92rem;
  color: var(--color-muted);
  line-height: 1.65;
  margin-bottom: 24px;
}

/* ============================================================
   12. SINGLE POST
   ============================================================ */
.single-header {
  padding: 48px 0 0;
  max-width: var(--content-width);
}

.single-header .post-cats { margin-bottom: 16px; }

.single-title {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--color-forest);
  margin-bottom: 20px;
  line-height: 1.18;
}

.single-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 24px;
  font-size: 0.83rem;
  color: var(--color-muted);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-sand);
  margin-bottom: 32px;
}

.single-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.single-featured-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 40px;
  max-height: 480px;
}
.single-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Article content */
.entry-content {
  max-width: var(--content-width);
  font-size: 1.05rem;
  line-height: 1.8;
}

.entry-content h2 {
  margin-top: 2.4em;
  margin-bottom: 0.8em;
  padding-top: 0.4em;
  border-top: 2px solid var(--color-cream-warm);
}

.entry-content h3 {
  margin-top: 1.8em;
  margin-bottom: 0.6em;
}

.entry-content img {
  border-radius: var(--radius-md);
  margin: 1.6em 0;
}

.entry-content a {
  color: var(--color-forest-mid);
  text-decoration: underline;
  text-decoration-color: var(--color-sage-light);
  text-underline-offset: 3px;
}
.entry-content a:hover {
  color: var(--color-terra);
  text-decoration-color: var(--color-terra-light);
}

/* Info box */
.info-box {
  background: linear-gradient(135deg, rgba(107,158,120,0.08) 0%, rgba(107,158,120,0.04) 100%);
  border: 1px solid rgba(107,158,120,0.3);
  border-left: 4px solid var(--color-sage);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.2rem 1.5rem;
  margin: 2rem 0;
  font-size: 0.95rem;
}

.info-box.warning {
  background: rgba(232,184,75,0.08);
  border-color: rgba(232,184,75,0.4);
  border-left-color: #e8b84b;
}

.info-box.tip {
  background: rgba(184,92,52,0.06);
  border-color: rgba(184,92,52,0.2);
  border-left-color: var(--color-terra);
}

.info-box-title {
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Table of contents */
.toc {
  background: var(--color-cream-warm);
  border: 1px solid var(--color-sand);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 2rem 0;
}

.toc-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-forest);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toc ol { margin: 0; padding-left: 1.4em; }
.toc li { margin-bottom: 6px; font-size: 0.9rem; }
.toc a { color: var(--color-forest-mid); text-decoration: none; }
.toc a:hover { color: var(--color-terra); }

/* Tags */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-sand);
}

.tag-item {
  display: inline-block;
  padding: 5px 14px;
  background: var(--color-cream-warm);
  border: 1px solid var(--color-sand);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  color: var(--color-muted);
  transition: all var(--transition);
  text-decoration: none;
}
.tag-item:hover {
  background: var(--color-forest-mid);
  border-color: var(--color-forest-mid);
  color: var(--color-white);
}

/* Share bar */
.share-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2rem;
  padding: 16px 0;
  border-top: 1px solid var(--color-sand);
  border-bottom: 1px solid var(--color-sand);
  font-size: 0.85rem;
  color: var(--color-muted);
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.share-btn.facebook { background: #1877f2; color: #fff; }
.share-btn.facebook:hover { background: #0d6efd; }
.share-btn.pinterest { background: #e60023; color: #fff; }
.share-btn.pinterest:hover { background: #c0001d; }
.share-btn.copy-link { background: var(--color-cream-warm); color: var(--color-forest); border: 1px solid var(--color-sand); }
.share-btn.copy-link:hover { background: var(--color-forest-mid); color: var(--color-white); }

/* Author box */
.author-box {
  display: flex;
  gap: 20px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 2.5rem;
  box-shadow: var(--shadow-card);
}

.author-box__avatar img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-box__name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-forest);
  margin-bottom: 4px;
}

.author-box__bio {
  font-size: 0.88rem;
  color: var(--color-muted);
  line-height: 1.6;
  margin-bottom: 10px;
}

/* Related posts */
.related-posts { margin-top: 3rem; }

.section-title {
  font-size: 1.5rem;
  color: var(--color-forest);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-sand);
}

/* Comments */
.comments-area { margin-top: 3rem; }

.comment-list { list-style: none; padding: 0; }

.comment {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
}

.comment-author { font-weight: 500; color: var(--color-forest); }

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-sand);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: var(--color-white);
  color: var(--color-ink);
  transition: border-color var(--transition);
  margin-bottom: 14px;
  outline: none;
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--color-sage);
  box-shadow: 0 0 0 3px rgba(107,158,120,0.15);
}

.comment-form textarea { min-height: 130px; resize: vertical; }

/* ============================================================
   13. SIDEBAR
   ============================================================ */
.sidebar { padding-top: 4px; }

.widget {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}

.widget-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-forest);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-cream-warm);
  display: flex;
  align-items: center;
  gap: 8px;
}

.widget-title .widget-icon {
  width: 20px;
  height: 20px;
  color: var(--color-sage);
}

/* Widget: posts list */
.widget-posts-list { list-style: none; padding: 0; margin: 0; }

.widget-post-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-cream-warm);
}
.widget-post-item:last-child { border-bottom: none; padding-bottom: 0; }

.widget-post-thumb {
  width: 68px;
  height: 52px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}
.widget-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.widget-post-title {
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--color-forest);
  text-decoration: none;
  display: block;
  margin-bottom: 4px;
  transition: color var(--transition);
}
.widget-post-title:hover { color: var(--color-terra); }

.widget-post-date { font-size: 0.74rem; color: var(--color-muted); }

/* Widget: categories */
.widget-cats { list-style: none; padding: 0; margin: 0; }

.widget-cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-cream-warm);
}
.widget-cat-item:last-child { border-bottom: none; }

.widget-cat-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.87rem;
  color: var(--color-ink);
  text-decoration: none;
  transition: color var(--transition);
}
.widget-cat-link:hover { color: var(--color-forest-mid); }

.widget-cat-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-sage);
  flex-shrink: 0;
}

.widget-cat-count {
  font-size: 0.75rem;
  background: var(--color-cream);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  color: var(--color-muted);
}

/* Widget: newsletter */
.widget-newsletter {
  background: linear-gradient(135deg, var(--color-forest) 0%, var(--color-forest-mid) 100%);
  color: var(--color-white);
}

.widget-newsletter .widget-title {
  color: var(--color-white);
  border-bottom-color: rgba(255,255,255,0.15);
}

.newsletter-text {
  font-size: 0.87rem;
  color: var(--color-sage-light);
  margin-bottom: 16px;
  line-height: 1.6;
}

.newsletter-form { display: flex; flex-direction: column; gap: 10px; }

.newsletter-input {
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.87rem;
  outline: none;
  transition: all var(--transition);
}
.newsletter-input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-input:focus {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.4);
}

.newsletter-btn {
  padding: 10px;
  background: var(--color-terra);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}
.newsletter-btn:hover { background: var(--color-terra-light); }

/* Widget: saison card */
.season-widget {
  text-align: center;
  background: linear-gradient(135deg, #e8f4e8 0%, #f0f7e8 100%);
  border: 1px solid rgba(107,158,120,0.25);
}

.season-widget-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
  display: block;
}

.season-widget h3 {
  font-size: 1rem;
  color: var(--color-forest);
  margin-bottom: 8px;
}

.season-widget-tasks {
  list-style: none;
  padding: 0;
  text-align: left;
  font-size: 0.83rem;
  color: var(--color-muted);
}

.season-widget-tasks li {
  padding: 5px 0;
  border-bottom: 1px solid rgba(107,158,120,0.15);
  display: flex;
  align-items: center;
  gap: 8px;
}
.season-widget-tasks li::before {
  content: '✓';
  color: var(--color-sage);
  font-weight: 700;
  font-size: 0.8rem;
}
.season-widget-tasks li:last-child { border-bottom: none; }

/* ============================================================
   14. ARCHIVE / CATEGORY PAGE
   ============================================================ */
.archive-header {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 20px;
}

.archive-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--color-forest) 0%, var(--color-forest-mid) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.archive-header h1 {
  font-size: 1.8rem;
  margin-bottom: 6px;
}

.archive-header p {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin: 0;
}

/* ============================================================
   15. PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-forest-mid);
  background: var(--color-white);
  border: 1px solid var(--color-sand);
  text-decoration: none;
  transition: all var(--transition);
}

.pagination a:hover {
  background: var(--color-forest-mid);
  border-color: var(--color-forest-mid);
  color: var(--color-white);
}

.pagination .current,
.pagination span.current {
  background: var(--color-forest);
  border-color: var(--color-forest);
  color: var(--color-white);
}

.pagination .dots {
  background: transparent;
  border-color: transparent;
  color: var(--color-muted);
  pointer-events: none;
}

/* ============================================================
   16. FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-forest);
  color: var(--color-sage-light);
  margin-top: 72px;
}

.footer-top {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 24px 40px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand .logo-text .logo-primary { color: var(--color-cream); font-size: 1.4rem; }
.footer-brand .logo-text .logo-secondary { color: var(--color-sage-light); }

.footer-desc {
  font-size: 0.87rem;
  color: var(--color-sage-light);
  line-height: 1.65;
  margin: 16px 0 20px;
  opacity: 0.85;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08);
  color: var(--color-sage-light);
  transition: all var(--transition);
  font-size: 0.9rem;
}
.footer-social a:hover {
  background: rgba(255,255,255,0.18);
  color: var(--color-white);
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

.footer-links { list-style: none; padding: 0; margin: 0; }

.footer-links li { margin-bottom: 8px; }

.footer-links a {
  font-size: 0.86rem;
  color: var(--color-sage-light);
  text-decoration: none;
  opacity: 0.8;
  transition: all var(--transition);
}
.footer-links a:hover {
  color: var(--color-white);
  opacity: 1;
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
}
.footer-bottom a:hover { color: rgba(255,255,255,0.8); }

/* ============================================================
   17. PAGE 404
   ============================================================ */
.error-404 {
  text-align: center;
  padding: 80px 24px;
  max-width: 540px;
  margin: 0 auto;
}

.error-404 .error-code {
  font-family: var(--font-display);
  font-size: 7rem;
  font-weight: 700;
  color: var(--color-sage-light);
  line-height: 1;
  margin-bottom: 8px;
}

.error-404 h1 { margin-bottom: 16px; }

.error-404 p {
  color: var(--color-muted);
  margin-bottom: 32px;
}

/* ============================================================
   18. SEARCH RESULTS
   ============================================================ */
.search-header {
  margin-bottom: 32px;
}

.search-header h1 {
  font-size: 1.6rem;
  color: var(--color-forest);
  margin-bottom: 8px;
}

.search-term {
  color: var(--color-terra);
  font-style: italic;
}

/* ============================================================
   19. UTILITIES
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.text-muted   { color: var(--color-muted); }
.mb-0 { margin-bottom: 0 !important; }

.divider {
  border: none;
  border-top: 1px solid var(--color-sand);
  margin: 2rem 0;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--color-forest);
  color: var(--color-white);
  padding: 8px 16px;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  z-index: 9999;
  font-size: 0.85rem;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

/* Scroll to top */
.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 42px;
  height: 42px;
  background: var(--color-forest);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  box-shadow: var(--shadow-card);
  z-index: 50;
}
.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-top:hover { background: var(--color-forest-mid); }

/* Progress bar */
.reading-progress {
  position: fixed;
  top: 68px;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-sage) 0%, var(--color-terra) 100%);
  z-index: 99;
  transition: width 0.1s linear;
}

/* ============================================================
   20. RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .site-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .sidebar .widget { margin-bottom: 0; }
  .posts-grid--3col { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  :root { --gap: 20px; }

  .header-inner { height: 60px; }

  .main-nav { display: none; }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--color-forest);
    padding: 12px 16px 20px;
    gap: 2px;
    box-shadow: var(--shadow-deep);
  }
  .main-nav.open > li > a { color: var(--color-sage-light); padding: 10px 12px; }
  .main-nav .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255,255,255,0.05);
    border: none;
    border-radius: var(--radius-sm);
    padding: 4px 0;
    margin-top: 4px;
  }
  .main-nav .sub-menu a { color: var(--color-sage-light); }

  .menu-toggle { display: flex; }
  .header-search { display: none; }

  .site-header { position: relative; }

  .featured-post { grid-template-columns: 1fr; min-height: auto; }
  .featured-post__thumb { aspect-ratio: 16/9; }
  .featured-post__body { padding: 24px; }

  .posts-grid, .posts-grid--2col, .posts-grid--3col {
    grid-template-columns: 1fr;
  }

  .sidebar { grid-template-columns: 1fr; }

  .footer-top { grid-template-columns: 1fr; gap: 28px; }

  .archive-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .author-box { flex-direction: column; }

  .share-bar { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .hero-banner { padding: 56px 20px 52px; }
  .hero-cta { flex-direction: column; align-items: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
