/* how-to-grow-plants.com — design botanique */
:root {
  --primary: #2f7d43;
  --primary-dark: #1e5a2f;
  --primary-soft: #e8f3ea;
  --accent-warm: #c98a2b;
  --bg: #f7f5ee;
  --card: #ffffff;
  --text: #24301f;
  --muted: #68755f;
  --border: #e3dfd0;
  --shadow: 0 1px 3px rgba(36, 48, 31, .08), 0 4px 14px rgba(36, 48, 31, .06);
  --shadow-hover: 0 4px 10px rgba(36, 48, 31, .12), 0 10px 28px rgba(36, 48, 31, .10);
  --radius: 14px;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16.5px;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--primary); }

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 780px; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.22; color: var(--text); }
h1 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); overflow-wrap: break-word; }
h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); margin: 44px 0 18px; }
h3 { font-size: 1.12rem; margin-bottom: 8px; }
p { margin-bottom: 14px; }
ul, ol { margin: 0 0 14px 22px; }
li { margin-bottom: 6px; }

/* ─── Header ─── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 245, 238, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav {
  max-width: 1080px; margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--text);
  font-family: var(--font-display); font-weight: 700; font-size: 1.08rem;
  min-width: 0;
}
.brand-leaf { font-size: 1.5rem; }
.brand-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links > a {
  text-decoration: none; color: var(--text); font-weight: 500; font-size: .95rem;
  border-bottom: 2px solid transparent; padding: 4px 0; transition: border-color .15s, color .15s;
}
.nav-links > a:hover { color: var(--primary-dark); border-bottom-color: var(--primary); }
.nav-lang { display: flex; gap: 6px; margin-left: 6px; }
.lang-pill {
  text-decoration: none; font-size: .78rem; font-weight: 700; letter-spacing: .04em;
  padding: 4px 10px; border-radius: 999px; border: 1.5px solid var(--border);
  color: var(--muted); transition: all .15s;
}
.lang-pill:hover { border-color: var(--primary); color: var(--primary-dark); }
.lang-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.nav-burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-burger span { display: block; width: 22px; height: 2.5px; background: var(--text); margin: 4px 0; border-radius: 2px; }

/* ─── Hero home ─── */
.hero {
  background:
    radial-gradient(1100px 480px at 85% -10%, rgba(47, 125, 67, .16), transparent 60%),
    radial-gradient(700px 380px at 8% 110%, rgba(201, 138, 43, .12), transparent 55%),
    linear-gradient(160deg, #eef4e9 0%, var(--bg) 70%);
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  display: flex; align-items: center; gap: 40px;
  padding-top: 56px; padding-bottom: 56px;
}
.hero-copy { flex: 1.4; min-width: 0; }
.hero-badge {
  display: inline-block; background: var(--primary-soft); color: var(--primary-dark);
  font-size: .82rem; font-weight: 700; letter-spacing: .02em;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
  border: 1px solid rgba(47, 125, 67, .25);
}
.hero h1 { margin-bottom: 14px; }
/* Accent vert foncé → contour blanc 1px (lisibilité) */
h1 .accent, .accent {
  color: var(--primary);
  text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
}
.hero-subtitle { font-size: 1.12rem; color: var(--muted); margin-bottom: 22px; max-width: 560px; }
.btn-cta {
  display: inline-block; text-decoration: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; font-weight: 700; font-size: 1rem;
  padding: 13px 30px; border-radius: 999px;
  box-shadow: 0 4px 14px rgba(30, 90, 47, .30);
  transition: transform .15s, box-shadow .15s;
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 7px 20px rgba(30, 90, 47, .38); }
.hero-stats {
  display: flex; gap: 10px; margin-top: 26px;
  overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px;
}
.stat-pill {
  flex: 0 0 auto; background: var(--card); border: 1px solid var(--border);
  border-radius: 999px; padding: 8px 16px; font-size: .88rem; font-weight: 600;
  color: var(--text); box-shadow: var(--shadow); white-space: nowrap;
}
.hero-art { flex: 1; display: flex; justify-content: center; }
.hero-art-circle {
  width: 230px; height: 230px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #ffffff, var(--primary-soft) 70%);
  border: 1px solid var(--border); box-shadow: var(--shadow-hover);
  display: flex; align-items: center; justify-content: center;
  font-size: 108px;
}

/* ─── Direct answer ─── */
.direct-answer {
  background: var(--primary-soft);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px; margin: 26px 0;
  font-size: 1.04rem;
}
.direct-answer p { margin: 0; }
.home-direct-answer { margin-top: 34px; }

/* ─── Pages internes ─── */
.page { padding: 26px 0 60px; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin: 6px 0 22px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary-dark); }
.page-hero { margin-bottom: 6px; }
.page-hero-emoji { font-size: 52px; line-height: 1; margin-bottom: 10px; }
.latin-name { color: var(--muted); font-style: italic; margin-top: 6px; }
.hero-count { color: var(--muted); margin-top: 8px; }

/* ─── Quick facts ─── */
.quick-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px; margin: 26px 0;
}
.fact-pill {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 2px;
}
.fact-icon { font-size: 1.3rem; }
.fact-label { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.fact-value { font-weight: 600; font-size: .95rem; }

/* ─── Steps ─── */
.steps { list-style: none; margin: 0; counter-reset: none; }
.step-card {
  display: flex; gap: 18px; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 22px; margin-bottom: 14px; box-shadow: var(--shadow);
}
.step-num {
  flex: 0 0 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; font-weight: 800; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
}
.step-body { min-width: 0; }
.step-body p:last-child { margin-bottom: 0; }

/* ─── Cards génériques ─── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
}
.card p:last-child { margin-bottom: 0; }

/* ─── Plant / category cards ─── */
.plant-card, .cat-card {
  display: flex; flex-direction: column; gap: 4px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; text-decoration: none; color: var(--text);
  box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s, border-color .15s;
}
.plant-card:hover, .cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--primary); }
.plant-card-emoji, .cat-card-emoji { font-size: 2rem; }
.plant-card-name, .cat-card-name { font-size: 1.05rem; }
.plant-card-latin { color: var(--muted); font-style: italic; font-size: .84rem; }
.plant-card-meta, .cat-card-count { color: var(--muted); font-size: .84rem; margin-top: 6px; }

/* ─── Problems ─── */
.problem-item {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 20px; margin-bottom: 12px; box-shadow: var(--shadow);
}
.problem-q { font-weight: 700; margin-bottom: 6px; }
.problem-a p:last-child { margin-bottom: 0; }

/* ─── Tips ─── */
.tips-box {
  background: linear-gradient(140deg, #fdf6e9, #faf1dd);
  border: 1px solid #ecd9b0; border-radius: var(--radius);
  padding: 22px 26px; margin: 40px 0;
}
.tips-box h2 { margin: 0 0 12px; font-size: 1.25rem; }
.tips-box ul { margin-bottom: 0; }
.tips-box li { margin-bottom: 8px; }

/* ─── FAQ ─── */
.faq-item {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 10px; box-shadow: var(--shadow); overflow: hidden;
}
.faq-item summary {
  cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none;
  position: relative; padding-right: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--primary); font-weight: 400; transition: transform .2s;
}
.faq-item[open] summary::after { content: "–"; }
.faq-answer { padding: 0 20px 16px; color: #37432f; }
.faq-answer p:last-child { margin-bottom: 0; }

/* ─── Verdict ─── */
.verdict-box {
  background: var(--primary-soft); border: 1px solid rgba(47, 125, 67, .3);
  border-radius: var(--radius); padding: 24px 28px; margin: 40px 0;
}
.verdict-box h2 { margin: 0 0 12px; }
.verdict-box p:last-child { margin-bottom: 0; }

/* ─── Guides (home) ─── */
.guide-list { display: flex; flex-direction: column; gap: 12px; }
.guide-row {
  display: flex; align-items: center; gap: 18px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 22px; text-decoration: none; color: var(--text);
  box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s, border-color .15s;
}
.guide-row:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: var(--primary); }
.guide-row-emoji { font-size: 1.8rem; flex: 0 0 auto; }
.guide-row-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.guide-row-desc { color: var(--muted); font-size: .88rem; }
.guide-row-arrow { margin-left: auto; color: var(--primary); font-size: 1.3rem; flex: 0 0 auto; }

/* ─── Prose ─── */
.prose strong { color: var(--primary-dark); }
.guide-section { margin-bottom: 8px; }
.outro { margin-top: 34px; }

/* ─── Footer ─── */
.site-footer {
  background: #1f3325; color: #cfe0d2; margin-top: 70px;
  border-top: 4px solid var(--primary);
}
.footer-inner {
  max-width: 1080px; margin: 0 auto; padding: 44px 20px 26px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px;
}
.footer-brand { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: #fff; margin-bottom: 10px; }
.footer-tagline { font-size: .9rem; color: #a8c2ad; }
.footer-title { font-weight: 700; color: #fff; margin-bottom: 12px; font-size: .95rem; }
.site-footer ul { list-style: none; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #cfe0d2; text-decoration: none; font-size: .9rem; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  text-align: center; padding: 18px 20px; font-size: .85rem; color: #a8c2ad;
}

/* ─── Responsive ─── */
@media (max-width: 860px) {
  .hero-inner { gap: 24px; }
  .hero-art-circle { width: 170px; height: 170px; font-size: 80px; }
}
@media (max-width: 768px) {
  .nav-burger { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 10px 20px 16px; box-shadow: var(--shadow-hover);
  }
  .nav-links.nav-open { display: flex; }
  .nav-links > a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-lang { margin: 14px 0 0; }
  .hero-inner { flex-direction: column-reverse; padding-top: 34px; padding-bottom: 38px; }
  .hero-art-circle { width: 130px; height: 130px; font-size: 60px; }
  .step-card { padding: 16px; gap: 14px; }
  body { font-size: 16px; }
}
