/* ============================================================
   rencontres-arbres-haies-champetres.fr
   Mood board : Herbier botanique contemporain
   CSS statique pur, zero framework, 7 couleurs + 3 Google Fonts
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&family=Source+Serif+Pro:ital,wght@0,400;0,600;0,700;1,400&family=Caveat:wght@400;600&display=swap');

/* ============================================================
   :ROOT — Design tokens Herbier botanique
   ============================================================ */

:root {
  /* Palette 7 couleurs */
  --feuille-sombre: #2D4A2B;
  --mousse: #4A6B3E;
  --lichen: #8FA876;
  --terre-cuite: #B84C2E;
  --ocre-miel: #C4893D;
  --papier-herbier: #F4EDDC;
  --craie: #FAF7ED;

  /* Derives opacite feuille-sombre */
  --feuille-80: rgba(45, 74, 43, 0.80);
  --feuille-65: rgba(45, 74, 43, 0.65);
  --feuille-40: rgba(45, 74, 43, 0.40);
  --feuille-20: rgba(45, 74, 43, 0.20);
  --feuille-10: rgba(45, 74, 43, 0.10);
  --feuille-06: rgba(45, 74, 43, 0.06);

  /* Derives opacite papier */
  --papier-95: rgba(244, 237, 220, 0.95);
  --papier-75: rgba(244, 237, 220, 0.75);
  --papier-40: rgba(244, 237, 220, 0.40);

  /* Derives mousse/lichen */
  --mousse-40: rgba(74, 107, 62, 0.40);
  --mousse-10: rgba(74, 107, 62, 0.10);
  --lichen-30: rgba(143, 168, 118, 0.30);

  /* Polices */
  --ff-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --ff-body: 'Source Serif Pro', Georgia, 'Times New Roman', serif;
  --ff-accent: 'Caveat', 'Brush Script MT', cursive;

  /* Mesures */
  --measure-article: 720px;
  --measure-wide: 1280px;
  --measure-hero: 1440px;
  --gutter: clamp(1rem, 4vw, 2rem);

  /* Transitions */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 300ms;
  --dur: 500ms;
  --dur-slow: 700ms;

  /* Ombres botanique */
  --shadow-xs: 0 1px 2px var(--feuille-10);
  --shadow-sm: 0 2px 8px var(--feuille-10);
  --shadow-md: 0 6px 24px var(--feuille-10), 0 1px 3px var(--feuille-06);
  --shadow-lg: 0 14px 48px var(--feuille-10), 0 2px 6px var(--feuille-06);

  /* Radii */
  --r-xs: 2px;
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 16px;
  --r-xl: 24px;
}

/* ============================================================
   RESET
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  font-family: var(--ff-body);
  color: var(--feuille-sombre);
  background: var(--papier-herbier);
  line-height: 1.72;
  font-weight: 400;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--mousse);
  text-decoration-color: var(--lichen-30);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--dur-fast) var(--ease), text-decoration-color var(--dur-fast) var(--ease);
}

a:hover {
  color: var(--terre-cuite);
  text-decoration-color: var(--terre-cuite);
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

ul,
ol {
  padding-left: 1.5em;
}

/* ============================================================
   TYPOGRAPHIE — Hierarchie Cormorant + Source Serif
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-display);
  color: var(--feuille-sombre);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 500;
}

h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  margin-top: 2.4em;
  margin-bottom: 0.8em;
  position: relative;
  padding-bottom: 0.6em;
}

/* SIGNATURE 1 — Planche botanique SVG sous H2 (feuille de chene nervuree) */
h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 72px;
  height: 12px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 12' fill='none'><path d='M2 6 C 14 2, 24 10, 36 6 C 48 2, 58 10, 70 6' stroke='%234A6B3E' stroke-width='1.2' stroke-linecap='round'/><circle cx='36' cy='6' r='1.6' fill='%238FA876'/></svg>");
  background-repeat: no-repeat;
  background-size: contain;
  transform-origin: left center;
  transition: transform var(--dur) var(--ease);
}

h2.is-visible::after {
  transform: scaleX(1.1);
}

h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  margin-top: 2em;
  margin-bottom: 0.5em;
  color: var(--mousse);
}

h4 {
  font-size: 1.2rem;
  margin-top: 1.4em;
  margin-bottom: 0.4em;
  font-weight: 600;
  color: var(--feuille-sombre);
}

p {
  margin: 0 0 1.1em;
  font-size: 1.06rem;
}

strong, b {
  font-weight: 700;
  color: var(--feuille-sombre);
}

em, i {
  font-style: italic;
}

small {
  font-size: 0.88rem;
  color: var(--feuille-65);
}

/* ============================================================
   LAYOUT — Container
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--measure-wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container-article {
  width: 100%;
  max-width: var(--measure-article);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.section-tight {
  padding: clamp(2rem, 5vw, 3.5rem) 0;
}

.bg-papier { background: var(--papier-herbier); }
.bg-craie  { background: var(--craie); }
.bg-mousse { background: var(--mousse); color: var(--craie); }
.bg-feuille { background: var(--feuille-sombre); color: var(--craie); }

.bg-mousse h1, .bg-mousse h2, .bg-mousse h3,
.bg-feuille h1, .bg-feuille h2, .bg-feuille h3 {
  color: var(--craie);
}

/* ============================================================
   KICKER — "etiquette herbier" Caveat + ligne mousse
   ============================================================ */

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--ff-accent);
  font-size: 1.2rem;
  color: var(--mousse);
  letter-spacing: 0.03em;
  margin-bottom: 0.6em;
}

.kicker::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--mousse);
}

.kicker-latin {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--lichen);
  letter-spacing: 0.02em;
}

/* ============================================================
   HEADER — Navigation + logo
   ============================================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--papier-95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}

.site-header.scrolled {
  border-bottom-color: var(--feuille-10);
  box-shadow: var(--shadow-sm);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--feuille-sombre);
  text-decoration: none;
  letter-spacing: -0.005em;
}

.site-logo:hover { color: var(--mousse); }

.site-logo-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.site-nav a {
  font-family: var(--ff-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--feuille-80);
  text-decoration: none;
  position: relative;
}

.site-nav a:hover { color: var(--terre-cuite); }

.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--terre-cuite);
  transition: width var(--dur-fast) var(--ease);
}

.site-nav a:hover::after { width: 100%; }

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

.nav-dropdown-trigger {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
}

.nav-dropdown-trigger::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-bottom: 3px;
  transition: transform var(--dur-fast) var(--ease);
}

.nav-dropdown:hover .nav-dropdown-trigger::before {
  transform: rotate(225deg);
  margin-bottom: -1px;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: -1rem;
  min-width: 280px;
  background: var(--craie);
  border: 1px solid var(--feuille-10);
  border-radius: var(--r-md);
  padding: 0.6rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--dur-fast) var(--ease);
  list-style: none;
  padding-left: 0.6rem;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu li {
  list-style: none;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.5rem 0.7rem;
  border-radius: var(--r-sm);
  font-size: 0.92rem;
  color: var(--feuille-80);
  text-decoration: none;
}

.nav-dropdown-menu a::after { display: none; }

.nav-dropdown-menu a:hover {
  background: var(--mousse-10);
  color: var(--feuille-sombre);
}

/* Hamburger mobile */
.nav-toggle {
  display: none;
  width: 32px;
  height: 32px;
  padding: 0;
  position: relative;
  color: var(--feuille-sombre);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  position: absolute;
  left: 4px;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}

.nav-toggle span {
  top: 15px;
}

.nav-toggle span::before {
  content: '';
  top: -7px;
  left: 0;
}

.nav-toggle span::after {
  content: '';
  top: 7px;
  left: 0;
}

body.nav-open .nav-toggle span {
  background: transparent;
}

body.nav-open .nav-toggle span::before {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .nav-toggle span::after {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--papier-herbier);
    flex-direction: column;
    align-items: stretch;
    padding: 2rem var(--gutter);
    gap: 0;
    transform: translateX(100%);
    transition: transform var(--dur) var(--ease);
    overflow-y: auto;
  }
  body.nav-open .site-nav {
    transform: translateX(0);
  }
  .site-nav > * {
    border-bottom: 1px solid var(--feuille-10);
    padding: 1rem 0;
  }
  .site-nav a::after { display: none; }
  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 0 1rem;
    margin-top: 0.5rem;
    background: transparent;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--dur-fast) var(--ease);
  }
  .nav-dropdown.is-open .nav-dropdown-menu,
  .nav-dropdown:hover .nav-dropdown-menu {
    max-height: 800px;
  }
}

/* ============================================================
   HERO — Home + Article (signature 6)
   ============================================================ */

.hero {
  position: relative;
  margin-top: 72px;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2rem, 5vw, 4rem);
  overflow: hidden;
  background: var(--feuille-sombre);
  color: var(--craie);
}

.hero-home {
  min-height: 90vh;
  align-items: center;
}

.hero-image {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.82;
  z-index: 0;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(45, 74, 43, 0.15) 0%, rgba(45, 74, 43, 0.65) 100%);
  z-index: 1;
}

/* SIGNATURE 6 — Overlay feuillage texture */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160' fill='none' opacity='0.15'><path d='M20 80 Q40 40, 80 80 T 140 80' stroke='%23F4EDDC' stroke-width='0.6' fill='none'/><path d='M80 20 Q120 60, 80 140' stroke='%23F4EDDC' stroke-width='0.4' fill='none'/><circle cx='80' cy='80' r='1' fill='%23F4EDDC'/></svg>");
  background-repeat: repeat;
  background-size: 280px 280px;
  opacity: 0.22;
  mix-blend-mode: overlay;
  z-index: 1;
  pointer-events: none;
}

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

.hero-kicker {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--lichen);
  letter-spacing: 0.03em;
  margin-bottom: 1rem;
  display: inline-block;
}

.hero h1 {
  color: var(--craie);
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  max-width: 18ch;
  margin-bottom: 0.7em;
  font-weight: 500;
}

.hero-lead {
  font-family: var(--ff-display);
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  font-style: italic;
  color: var(--papier-95);
  max-width: 640px;
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  font-family: var(--ff-body);
  font-size: 0.9rem;
  color: var(--papier-75);
  margin-top: 1rem;
}

.hero-meta > * {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}

.hero-meta > * + *::before {
  content: '·';
  margin-right: 0.8rem;
  opacity: 0.6;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.6rem;
}

.hero-breadcrumb {
  font-size: 0.88rem;
  color: var(--papier-75);
  margin-bottom: 1.2rem;
}

.hero-breadcrumb a {
  color: var(--papier-75);
  text-decoration: none;
}

.hero-breadcrumb a:hover { color: var(--craie); }

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--ff-body);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--papier-75);
  text-transform: uppercase;
  z-index: 2;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  animation: bounce 2.4s var(--ease) infinite;
}

.hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 28px;
  background: var(--papier-75);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.7; }
  50%      { transform: translateX(-50%) translateY(6px); opacity: 1; }
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.9em 1.6em;
  font-family: var(--ff-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  transition: all var(--dur-fast) var(--ease);
  cursor: pointer;
  line-height: 1;
}

.btn-primary {
  background: var(--terre-cuite);
  color: var(--craie);
  border-color: var(--terre-cuite);
}

.btn-primary:hover {
  background: var(--feuille-sombre);
  color: var(--craie);
  border-color: var(--feuille-sombre);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--craie);
  border-color: var(--papier-40);
}

.btn-ghost:hover {
  background: var(--papier-herbier);
  color: var(--feuille-sombre);
  border-color: var(--papier-herbier);
}

.btn-outline {
  background: transparent;
  color: var(--feuille-sombre);
  border-color: var(--mousse);
}

.btn-outline:hover {
  background: var(--mousse);
  color: var(--craie);
}

/* ============================================================
   ARTICLE LAYOUT — Piliers et blog
   ============================================================ */

.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

@media (min-width: 1024px) {
  .article-grid {
    grid-template-columns: 220px minmax(0, 1fr);
  }
}

.article-summary {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.55;
  color: var(--feuille-80);
  border-left: 3px solid var(--mousse);
  padding: 0.6rem 0 0.6rem 1.4rem;
  margin: 0 auto 2.5rem;
  max-width: var(--measure-article);
}

/* SIGNATURE 4 — TOC romaine sticky */
.article-toc {
  font-family: var(--ff-body);
  font-size: 0.92rem;
  line-height: 1.5;
}

@media (min-width: 1024px) {
  .article-toc {
    position: sticky;
    top: 100px;
    align-self: start;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }
}

.article-toc-title {
  font-family: var(--ff-display);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mousse);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--feuille-20);
}

.article-toc ol {
  list-style: none;
  padding: 0;
  counter-reset: toc;
}

.article-toc li {
  counter-increment: toc;
  margin-bottom: 0.6em;
  padding-left: 2.4em;
  position: relative;
}

.article-toc li::before {
  content: counter(toc, upper-roman) ".";
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--ff-display);
  font-style: italic;
  color: var(--lichen);
  font-size: 0.88em;
  font-weight: 500;
  min-width: 2em;
}

.article-toc a {
  color: var(--feuille-80);
  text-decoration: none;
  display: inline-block;
}

.article-toc a:hover {
  color: var(--terre-cuite);
}

.article-body {
  max-width: var(--measure-article);
  margin: 0 auto;
  font-size: 1.08rem;
  line-height: 1.75;
}

.article-body > p,
.article-body > ul,
.article-body > ol,
.article-body > blockquote,
.article-body > figure,
.article-body > table {
  margin-bottom: 1.3em;
}

.article-body img {
  border-radius: var(--r-md);
  margin: 2rem 0;
  box-shadow: var(--shadow-sm);
  width: 100%;
}

.article-body ul,
.article-body ol {
  padding-left: 1.4em;
}

.article-body li {
  margin-bottom: 0.5em;
}

/* SIGNATURE 2 — Lettrine mousse (drop-cap) */
.article-body > p:first-of-type::first-letter {
  font-family: var(--ff-display);
  font-size: 4em;
  line-height: 0.85;
  float: left;
  padding: 0.08em 0.16em 0.02em 0;
  margin: 0.08em 0.15em -0.05em -0.02em;
  color: var(--mousse);
  font-weight: 500;
  font-style: italic;
}

/* SIGNATURE 5 — Pull quotes */
blockquote {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  line-height: 1.5;
  color: var(--feuille-sombre);
  border-left: 3px solid var(--terre-cuite);
  padding: 0.4em 0 0.4em 1.4em;
  margin: 2.5em 0;
  position: relative;
}

blockquote::before {
  content: '';
  position: absolute;
  left: -16px;
  top: -4px;
  width: 28px;
  height: 28px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28' fill='none'><path d='M14 4 C 7 10, 7 18, 14 24 C 21 18, 21 10, 14 4 Z' fill='%23F4EDDC' stroke='%23B84C2E' stroke-width='1.2'/><path d='M14 4 L 14 24' stroke='%23B84C2E' stroke-width='0.8' stroke-dasharray='2 2'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
}

blockquote cite {
  display: block;
  margin-top: 0.8em;
  font-family: var(--ff-body);
  font-style: normal;
  font-size: 0.92rem;
  color: var(--feuille-65);
}

blockquote cite::before {
  content: '— ';
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--ff-body);
  font-size: 0.95rem;
  margin: 2rem 0;
}

.article-body th,
.article-body td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--feuille-20);
}

.article-body th {
  background: var(--papier-herbier);
  font-weight: 600;
  color: var(--mousse);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.article-body tr:last-child td {
  border-bottom: none;
}

.article-body tbody tr:nth-child(even) {
  background: var(--feuille-06);
}

.article-body code {
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 0.88em;
  background: var(--feuille-06);
  padding: 0.15em 0.4em;
  border-radius: var(--r-sm);
  color: var(--terre-cuite);
}

.article-body pre {
  background: var(--feuille-sombre);
  color: var(--craie);
  padding: 1.2rem;
  border-radius: var(--r-md);
  overflow-x: auto;
  margin: 2rem 0;
  font-size: 0.88rem;
  line-height: 1.5;
}

.article-body pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

/* ============================================================
   FAQ — Accordion feuille de chene (signature 8)
   ============================================================ */

.faq-section {
  max-width: var(--measure-article);
  margin: clamp(2.5rem, 6vw, 4.5rem) auto;
  padding: 0 var(--gutter);
}

.faq-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  text-align: center;
  margin-bottom: 2rem;
}

.faq-list {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--feuille-20);
}

.faq-item {
  border-bottom: 1px solid var(--feuille-20);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  width: 100%;
  padding: 1.3em 0;
  font-family: var(--ff-display);
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  font-weight: 500;
  color: var(--feuille-sombre);
  text-align: left;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease);
}

.faq-question:hover {
  color: var(--terre-cuite);
}

.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  transition: transform var(--dur) var(--ease), filter var(--dur-fast) var(--ease);
  transform-origin: center;
}

.faq-item.open .faq-icon {
  transform: rotate(90deg);
  filter: hue-rotate(25deg) saturate(1.3);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur) var(--ease);
  font-family: var(--ff-body);
  font-size: 1.02rem;
  line-height: 1.72;
  color: var(--feuille-80);
}

.faq-answer-inner {
  padding: 0 0 1.5em;
}

.faq-item.open .faq-answer {
  max-height: 1000px;
}

/* ============================================================
   FICHE ESSENCE — Cadre "boite botanique" (signature 3 + 7)
   ============================================================ */

.fiche-essence {
  max-width: var(--measure-article);
  margin: 2.5rem auto;
  background: var(--craie);
  border: 1px solid var(--feuille-20);
  border-radius: var(--r-md);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.fiche-essence::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid var(--lichen-30);
  border-radius: calc(var(--r-md) - 3px);
  pointer-events: none;
}

.fiche-essence-header {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--feuille-20);
}

.fiche-essence-latin {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--mousse);
  letter-spacing: 0.01em;
}

.fiche-essence-nom {
  font-family: var(--ff-display);
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  font-weight: 500;
  color: var(--feuille-sombre);
}

.fiche-essence-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem 2rem;
  font-family: var(--ff-body);
  font-size: 0.95rem;
}

.fiche-essence-meta > div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.fiche-essence-meta-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mousse);
  font-weight: 600;
}

.fiche-essence-meta-value {
  color: var(--feuille-sombre);
  font-weight: 500;
}

/* ============================================================
   CARDS — Grille de guides / articles
   ============================================================ */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.4rem, 2.8vw, 2rem);
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--craie);
  border: 1px solid var(--feuille-10);
  border-radius: var(--r-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
  box-shadow: var(--shadow-xs);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--lichen-30);
}

.card-image {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--feuille-10);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}

.card:hover .card-image img {
  transform: scale(1.04);
}

.card-body {
  padding: 1.3rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.55rem;
}

.card-kicker {
  font-family: var(--ff-accent);
  font-size: 1.05rem;
  color: var(--mousse);
  line-height: 1;
}

.card-title {
  font-family: var(--ff-display);
  font-size: clamp(1.2rem, 1.6vw, 1.4rem);
  font-weight: 500;
  line-height: 1.22;
  color: var(--feuille-sombre);
  margin: 0;
}

.card-desc {
  font-family: var(--ff-body);
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--feuille-80);
  flex: 1;
}

.card-cta {
  margin-top: 0.6rem;
  font-family: var(--ff-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terre-cuite);
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}

.card-cta::after {
  content: '→';
  transition: transform var(--dur-fast) var(--ease);
}

.card:hover .card-cta::after {
  transform: translateX(4px);
}

/* ============================================================
   RELATED — "Pour creuser" section fin d'article
   ============================================================ */

.related {
  max-width: var(--measure-wide);
  margin: clamp(2.5rem, 6vw, 4rem) auto 0;
  padding: clamp(2rem, 5vw, 4rem) var(--gutter);
  border-top: 1px solid var(--feuille-20);
}

.related-title {
  font-family: var(--ff-accent);
  font-size: 1.4rem;
  color: var(--mousse);
  margin-bottom: 0.3em;
}

.related-heading {
  font-family: var(--ff-display);
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  margin-bottom: 2rem;
}

/* ============================================================
   GLOSSAIRE — 80 essences avec recherche JS (signature page)
   ============================================================ */

.glossaire-search {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  max-width: 540px;
  margin: 0 auto 2rem;
  padding: 0.8rem 1.2rem;
  background: var(--craie);
  border: 1px solid var(--feuille-20);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
}

.glossaire-search input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--ff-body);
  font-size: 1rem;
  color: var(--feuille-sombre);
}

.glossaire-search input::placeholder {
  color: var(--feuille-40);
  font-style: italic;
}

.glossaire-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem 2rem;
  list-style: none;
  padding: 0;
}

.glossaire-item {
  padding: 0.9rem 1.1rem;
  background: var(--craie);
  border-left: 3px solid var(--lichen);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  transition: border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

.glossaire-item:hover {
  border-left-color: var(--terre-cuite);
  transform: translateX(3px);
}

.glossaire-item.hidden {
  display: none;
}

.glossaire-item-nom {
  font-family: var(--ff-display);
  font-size: 1.15rem;
  color: var(--feuille-sombre);
  font-weight: 500;
}

.glossaire-item-latin {
  display: block;
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--mousse);
  margin-top: 0.1em;
}

.glossaire-item-meta {
  display: block;
  font-family: var(--ff-body);
  font-size: 0.82rem;
  color: var(--feuille-65);
  margin-top: 0.25em;
}

.glossaire-count {
  text-align: center;
  font-family: var(--ff-accent);
  color: var(--mousse);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

/* ============================================================
   ANNUAIRE PEPINIERES — Leaflet + cards
   ============================================================ */

#pepinieres-map {
  width: 100%;
  height: 480px;
  border-radius: var(--r-md);
  margin-bottom: 2rem;
  border: 1px solid var(--feuille-20);
}

.pepinieres-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
  list-style: none;
  padding: 0;
}

.pepiniere-card {
  background: var(--craie);
  border: 1px solid var(--feuille-10);
  border-radius: var(--r-md);
  padding: 1.2rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.pepiniere-nom {
  font-family: var(--ff-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--feuille-sombre);
}

.pepiniere-region {
  font-family: var(--ff-accent);
  font-size: 1rem;
  color: var(--mousse);
}

.pepiniere-adresse {
  font-family: var(--ff-body);
  font-size: 0.9rem;
  color: var(--feuille-80);
  font-style: italic;
}

.pepiniere-specialites {
  font-size: 0.88rem;
  margin-top: 0.5rem;
}

.pepiniere-specialites strong {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mousse);
  display: block;
  margin-bottom: 0.2rem;
}

.pepiniere-link {
  margin-top: 0.6rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--terre-cuite);
  text-decoration: none;
}

/* ============================================================
   CALENDRIER SAISONNIER — Timeline 12 mois (signature 12)
   ============================================================ */

.calendrier {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  margin: 2rem 0;
}

.mois-card {
  background: var(--craie);
  border: 1px solid var(--feuille-10);
  border-radius: var(--r-md);
  padding: 1.3rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  position: relative;
  overflow: hidden;
}

.mois-card::before {
  content: attr(data-mois-num);
  position: absolute;
  top: -12px;
  right: -8px;
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 5rem;
  color: var(--feuille-06);
  line-height: 1;
  font-weight: 400;
  pointer-events: none;
}

.mois-nom {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  color: var(--feuille-sombre);
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.mois-saison {
  font-family: var(--ff-accent);
  font-size: 1rem;
  color: var(--mousse);
  position: relative;
  z-index: 1;
}

.mois-actions {
  list-style: none;
  padding: 0;
  font-family: var(--ff-body);
  font-size: 0.92rem;
  line-height: 1.55;
  margin-top: 0.4rem;
  position: relative;
  z-index: 1;
}

.mois-actions li {
  padding-left: 1.1em;
  position: relative;
  margin-bottom: 0.3em;
}

.mois-actions li::before {
  content: '❦';
  position: absolute;
  left: 0;
  color: var(--lichen);
  font-size: 0.85em;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--feuille-sombre);
  color: var(--papier-75);
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
  margin-top: clamp(3rem, 6vw, 5rem);
  font-size: 0.92rem;
  line-height: 1.6;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--craie);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.footer-slogan {
  font-family: var(--ff-accent);
  color: var(--lichen);
  font-size: 1.1rem;
  line-height: 1.4;
}

.footer-col-title {
  font-family: var(--ff-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lichen);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.5em;
}

.footer-col a {
  color: var(--papier-75);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}

.footer-col a:hover { color: var(--craie); }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--feuille-40);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--papier-40);
}

.footer-heritage {
  max-width: var(--measure-article);
  margin: 2rem auto 0;
  font-size: 0.82rem;
  color: var(--papier-40);
  font-style: italic;
  text-align: center;
  line-height: 1.6;
}

/* ============================================================
   REVEAL ANIMATION — signature 10
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(24px) translateX(-6px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) translateX(0);
}

/* ============================================================
   UTILS
   ============================================================ */

.text-center { text-align: center; }
.text-right  { text-align: right;  }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.italique { font-style: italic; }
.latin-name { font-family: var(--ff-display); font-style: italic; color: var(--mousse); }

/* Contact page specifique */
.contact-email {
  max-width: 560px;
  margin: 2rem auto;
  padding: 2rem;
  background: var(--craie);
  border: 1px solid var(--feuille-20);
  border-radius: var(--r-md);
  text-align: center;
}

/* 404 hero editorial */
.hero-404 {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-404 h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  max-width: 20ch;
}

/* ============================================================
   RESPONSIVE TUNING
   ============================================================ */

@media (max-width: 640px) {
  html { font-size: 16px; }
  .hero { min-height: 68vh; }
  .hero-home { min-height: 80vh; }
  .article-body > p:first-of-type::first-letter {
    font-size: 3.2em;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
