/* ═══════════════════════════════════════════════════════════════
   meilleurchampignonadaptogene.fr — CSS principal
   Thème : Nature / Deep Green
   ═══════════════════════════════════════════════════════════════ */

:root {
  --primary: #1B4332;
  --primary-light: #2D6A4F;
  --primary-lighter: #40916C;
  --accent: #52B788;
  --accent-light: #74C69D;
  --accent-bg: #D8F3DC;
  --bg: #FAFFF8;
  --bg-card: #FFFFFF;
  --text: #1A1A2E;
  --text-light: #555;
  --text-muted: #888;
  --border: #E0E0E0;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
  --radius: 12px;
  --max-w: 820px;
  --max-w-wide: 1100px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; color: var(--primary); }
h1 { font-size: 2.2rem; margin-bottom: 1rem; }
h2 { font-size: 1.6rem; margin: 2.5rem 0 1rem; }
h3 { font-size: 1.25rem; margin: 2rem 0 0.75rem; color: var(--primary-light); }
p { margin-bottom: 1rem; }
a { color: var(--primary-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }
strong { color: var(--primary); }
ul, ol { margin: 0.5rem 0 1.5rem 1.5rem; }
li { margin-bottom: 0.4rem; }

/* ── Header ─────────────────────────────────────────────────── */
.site-header {
  background: var(--primary);
  color: white;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.header-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo:hover { color: var(--accent-light); }
.logo-icon { font-size: 1.4rem; }

nav { display: flex; gap: 0.25rem; }
nav a {
  color: rgba(255,255,255,0.85);
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.2s;
}
nav a:hover { background: rgba(255,255,255,0.12); color: white; }

.mobile-menu { display: none; background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--accent) 100%);
  color: white;
  padding: 4rem 1.5rem;
  text-align: center;
}
.hero h1 { color: white; font-size: 2.6rem; margin-bottom: 1.25rem; max-width: 700px; margin-left: auto; margin-right: auto; }
.hero p { color: rgba(255,255,255,0.9); font-size: 1.15rem; max-width: 600px; margin: 0 auto 2rem; }
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(4px);
}
.hero-cta {
  display: inline-block;
  background: white;
  color: var(--primary);
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.2s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.2); color: var(--primary); }

/* ── Container / Layout ─────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 2.5rem 1.5rem; }
.container-wide { max-width: var(--max-w-wide); margin: 0 auto; padding: 2.5rem 1.5rem; }

/* ── Cards ──────────────────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all 0.25s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card-tag {
  display: inline-block;
  background: var(--accent-bg);
  color: var(--primary-light);
  padding: 0.2rem 0.65rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.card h3 { margin-top: 0; font-size: 1.15rem; }
.card p { color: var(--text-light); font-size: 0.92rem; }
.card-link {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--primary-light);
  font-weight: 600;
  font-size: 0.9rem;
}
.card-link::after { content: " →"; }

/* ── Article content ────────────────────────────────────────── */
.article-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
}
.article-header h1 { color: white; font-size: 2.2rem; max-width: 700px; margin: 0 auto 1rem; }
.article-meta {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
}
.article-content { max-width: var(--max-w); margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }
.article-content h2 { border-bottom: 2px solid var(--accent-bg); padding-bottom: 0.5rem; }
.article-content img { max-width: 100%; border-radius: var(--radius); margin: 1.5rem 0; }

/* ── TOC (Table of Contents) ────────────────────────────────── */
.toc {
  background: var(--accent-bg);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  margin: 1.5rem 0 2.5rem;
  border-left: 4px solid var(--accent);
}
.toc h4 { margin-bottom: 0.75rem; font-size: 0.95rem; color: var(--primary); }
.toc ol { margin: 0; padding-left: 1.25rem; }
.toc li { margin-bottom: 0.3rem; font-size: 0.9rem; }
.toc a { color: var(--primary-light); font-weight: 500; }

/* ── Product cards / Rankings ───────────────────────────────── */
.product-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 1.5rem 0;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  position: relative;
}
.product-card.recommended {
  border: 2px solid var(--accent);
  box-shadow: 0 4px 20px rgba(82, 183, 136, 0.15);
}
.product-rank {
  position: absolute;
  top: -12px;
  left: 20px;
  background: var(--primary);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
}
.product-card.recommended .product-rank { background: var(--accent); }
.product-name { font-size: 1.2rem; font-weight: 700; color: var(--primary); margin-bottom: 0.5rem; }
.product-brand { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.product-desc { font-size: 0.92rem; color: var(--text-light); margin-bottom: 1rem; }
.product-pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1rem 0; }
.product-pros h4, .product-cons h4 { font-size: 0.85rem; margin-bottom: 0.4rem; }
.product-pros h4 { color: var(--accent); }
.product-cons h4 { color: #e74c3c; }
.product-pros ul, .product-cons ul { list-style: none; padding: 0; margin: 0; font-size: 0.88rem; }
.product-pros li::before { content: "✓ "; color: var(--accent); font-weight: 700; }
.product-cons li::before { content: "✗ "; color: #e74c3c; font-weight: 700; }
.product-cta {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.product-cta:hover { background: var(--primary-light); color: white; transform: translateY(-1px); }
.badge-reco {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 0.2rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* ── CTA Box (Take a Mush) ──────────────────────────────────── */
.cta-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2.5rem 0;
  text-align: center;
}
.cta-box h3 { color: white; margin-top: 0; font-size: 1.3rem; }
.cta-box p { color: rgba(255,255,255,0.9); margin-bottom: 1.25rem; }
.cta-box .cta-btn {
  display: inline-block;
  background: white;
  color: var(--primary);
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  transition: all 0.2s;
}
.cta-box .cta-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(0,0,0,0.2); color: var(--primary); }

/* ── Info box ───────────────────────────────────────────────── */
.info-box {
  background: var(--accent-bg);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.info-box strong { display: block; margin-bottom: 0.3rem; }
.warning-box {
  background: #FFF3CD;
  border-left: 4px solid #FFC107;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

/* ── Comparison table ───────────────────────────────────────── */
.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin: 1.5rem 0;
  font-size: 0.9rem;
}
.comparison-table th {
  background: var(--primary);
  color: white;
  padding: 0.85rem 1rem;
  text-align: left;
  font-weight: 600;
}
.comparison-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}
.comparison-table tr:nth-child(even) td { background: var(--accent-bg); }
.comparison-table tr:last-child td { border-bottom: none; }

/* ── FAQ / Accordion ────────────────────────────────────────── */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq-question {
  background: var(--bg-card);
  padding: 1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-question::after { content: "+"; font-size: 1.3rem; color: var(--accent); }
.faq-answer { padding: 0 1.25rem 1rem; color: var(--text-light); font-size: 0.92rem; }

/* ── Breadcrumbs ────────────────────────────────────────────── */
.breadcrumbs {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1rem;
}
.breadcrumbs a { color: rgba(255,255,255,0.8); }
.breadcrumbs a:hover { color: white; }
.breadcrumbs span { margin: 0 0.4rem; }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.7);
  padding: 3rem 1.5rem 2rem;
  margin-top: 4rem;
}
.footer-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}
.footer-col h4 { color: white; font-size: 0.95rem; margin-bottom: 1rem; }
.footer-col p { font-size: 0.85rem; line-height: 1.6; }
.footer-col a { color: rgba(255,255,255,0.7); font-size: 0.85rem; display: block; margin-bottom: 0.4rem; }
.footer-col a:hover { color: var(--accent-light); }
.footer-bottom {
  max-width: var(--max-w-wide);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem;
  text-align: center;
}

/* ── Blog listing ───────────────────────────────────────────── */
.blog-list { list-style: none; padding: 0; }
.blog-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.blog-item:last-child { border-bottom: none; }
.blog-item h3 { margin: 0 0 0.4rem; }
.blog-item h3 a { color: var(--primary); }
.blog-item h3 a:hover { color: var(--accent); }
.blog-item .meta { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.4rem; }
.blog-item p { color: var(--text-light); font-size: 0.92rem; margin: 0; }

/* ── Schema / SEO hidden ────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  h1 { font-size: 1.75rem; }
  .hero { padding: 2.5rem 1.25rem; }
  .hero h1 { font-size: 1.9rem; }
  nav { display: none; }
  .mobile-menu { display: block; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .product-pros-cons { grid-template-columns: 1fr; }
  .comparison-table { font-size: 0.8rem; }
  .comparison-table th, .comparison-table td { padding: 0.5rem 0.6rem; }
  .cards-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.6rem; }
  .container, .container-wide { padding: 1.5rem 1rem; }
}

/* ── Mobile nav open state ──────────────────────────────────── */
@media (max-width: 768px) {
  nav.nav-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--primary);
    padding: 0.5rem 1rem 1rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    z-index: 99;
  }
  nav.nav-open a {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
}

/* ── FAQ accordion states ───────────────────────────────────── */
.faq-question.open::after { content: "−"; }

/* ── Cookie banner ──────────────────────────────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  z-index: 1000;
  transition: transform 0.4s ease;
}
.cookie-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cookie-inner p { margin: 0; font-size: 0.85rem; color: var(--text-light); flex: 1; }
.cookie-inner a { color: var(--primary-light); text-decoration: underline; }
.cookie-btns { display: flex; gap: 0.5rem; }
.cookie-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  border: none;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.cookie-accept { background: var(--primary); color: white; }
.cookie-accept:hover { background: var(--primary-light); }
.cookie-refuse { background: var(--border); color: var(--text-light); }
.cookie-refuse:hover { background: #ccc; }

/* ── Reading progress bar ───────────────────────────────────── */
.reading-progress {
  position: fixed;
  top: 64px;
  left: 0;
  height: 3px;
  background: var(--accent);
  z-index: 101;
  width: 0;
  transition: width 0.1s linear;
}

/* ── Author box (E-E-A-T) ──────────────────────────────────── */
.author-box {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 3rem 0 2rem;
}
.author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}
.author-info h4 { margin: 0 0 0.25rem; font-size: 0.95rem; color: var(--primary); }
.author-info p { margin: 0; font-size: 0.82rem; color: var(--text-light); line-height: 1.5; }

/* ── Related articles ───────────────────────────────────────── */
.related-articles { margin: 3rem 0; }
.related-articles h3 { font-size: 1.15rem; margin-bottom: 1rem; color: var(--primary); }
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}
.related-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}
.related-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.related-card h4 { font-size: 0.95rem; margin: 0 0 0.4rem; color: var(--primary); }
.related-card p { font-size: 0.82rem; color: var(--text-light); margin: 0; }

/* ── Article images ─────────────────────────────────────────── */
.article-img {
  width: 100%;
  max-width: 500px;
  margin: 1.5rem auto;
  display: block;
  border-radius: var(--radius);
}

/* ── Hero background decoration ─────────────────────────────── */
.hero { position: relative; overflow: hidden; }
.hero-bg {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  opacity: 0.1;
  pointer-events: none;
}


/* ── Share buttons ──────────────────────────────────────────── */
.share-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 2rem 0;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}
.share-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-light);
  margin-right: 0.25rem;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
  color: white;
}
.share-twitter { background: #1A1A2E; }
.share-twitter:hover { background: #333; color: white; }
.share-facebook { background: #1877F2; }
.share-facebook:hover { background: #0d65d9; color: white; }
.share-linkedin { background: #0077B5; }
.share-linkedin:hover { background: #005f94; color: white; }

/* ── Back to top ────────────────────────────────────────────── */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 99;
}
#back-to-top.visible {
  opacity: 1;
  visibility: visible;
}
#back-to-top:hover {
  background: var(--primary-light);
  transform: translateY(-3px);
}

/* ── Contact form ───────────────────────────────────────────── */
.contact-form-wrapper {
  max-width: 600px;
  margin: 2rem 0;
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.92rem;
  transition: border-color 0.2s;
  background: var(--bg-card);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(82, 183, 136, 0.1);
}
.form-submit {
  background: var(--primary);
  color: white;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font);
}
.form-submit:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}
