/* Feuille de style partagée du blog Équilibre Fonctionnel.
   Reprend les mêmes variables et polices que le site principal (index.html)
   pour garder une identité visuelle identique. */

:root {
  --beige: #f0ece4;
  --beige-dark: #e5dfd5;
  --vert: #2d5a3d;
  --vert-clair: #3a6b4e;
  --vert-pale: #e8f0eb;
  --gris: #5a5a5a;
  --gris-fonce: #2e2e2e;
  --white: #ffffff;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Jost', sans-serif; background: var(--beige); color: var(--gris-fonce); font-weight: 300; }

/* NAV (identique au site principal) */
nav.main-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(240,236,228,0.96); backdrop-filter: blur(10px);
  padding: 16px 48px; display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid rgba(45,90,61,0.12);
}
.nav-logo { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; font-weight: 500; color: var(--vert); letter-spacing: 0.05em; text-decoration: none; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--gris-fonce); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; transition: color 0.3s; font-weight: 400; }
.nav-links a:hover, .nav-links a.active { color: var(--vert); }
.nav-rdv-btn { display: inline-block; padding: 9px 22px !important; background: var(--vert) !important; color: var(--beige) !important; letter-spacing: 0.12em; transition: background 0.3s !important; }
.nav-rdv-btn:hover { background: var(--vert-clair) !important; color: white !important; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px; z-index: 101;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--vert); transition: all 0.3s ease; transform-origin: center; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(240,236,228,0.98); backdrop-filter: blur(16px);
  z-index: 99; flex-direction: column; justify-content: center; align-items: center; gap: 40px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: 'Cormorant Garamond', serif; font-size: 2rem; font-weight: 400;
  color: var(--vert); text-decoration: none; letter-spacing: 0.05em; transition: opacity 0.2s;
}
.mobile-menu a:hover { opacity: 0.7; }

/* CONTENU GENERAL */
main { padding-top: 100px; }
.section-inner { max-width: 900px; margin: 0 auto; padding: 0 48px; }
.section-label { font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--vert-clair); margin-bottom: 14px; }
.section-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 400; color: var(--vert); line-height: 1.3; margin-bottom: 16px; }
.divider { width: 48px; height: 1px; background: var(--vert-clair); margin-bottom: 48px; }

/* LISTE DES ARTICLES */
.blog-hero { padding: 60px 0 20px; }
.blog-intro { font-size: 0.95rem; line-height: 1.8; color: var(--gris); max-width: 620px; margin-bottom: 48px; }

/* Filtres par catégorie */
.category-filters { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.category-filter {
  padding: 10px 22px; border: 1px solid rgba(45,90,61,0.25); background: transparent;
  color: var(--gris); font-family: 'Jost', sans-serif; font-size: 0.78rem; letter-spacing: 0.08em;
  text-transform: uppercase; cursor: pointer; transition: all 0.3s;
}
.category-filter:hover, .category-filter.active { background: var(--vert); color: white; border-color: var(--vert); }
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 2px; margin-bottom: 100px; }
.article-card { background: white; padding: 32px 28px; text-decoration: none; display: block; transition: background 0.3s; }
.article-card:hover { background: var(--vert-pale); }
.article-theme { font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--vert-clair); margin-bottom: 12px; }
.article-title { font-family: 'Cormorant Garamond', serif; font-size: 1.35rem; color: var(--vert); font-weight: 500; line-height: 1.3; margin-bottom: 10px; }
.article-excerpt { font-size: 0.85rem; color: var(--gris); line-height: 1.6; }
.article-date { font-size: 0.75rem; color: var(--gris); opacity: 0.6; margin-top: 16px; }

/* ARTICLE */
.article-header { padding: 60px 0 20px; }
.article-theme-label { font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--vert-clair); margin-bottom: 14px; }
.article-h1 { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.9rem, 3.5vw, 3rem); font-weight: 400; color: var(--vert); line-height: 1.25; margin-bottom: 24px; }
.article-chapo { font-size: 1rem; line-height: 1.8; color: var(--gris); max-width: 640px; margin-bottom: 40px; }

/* ONGLETS VERSION VULGARISEE / SCIENTIFIQUE */
.version-tabs { display: flex; gap: 12px; margin-bottom: 48px; border-bottom: 1px solid rgba(45,90,61,0.15); padding-bottom: 0; }
.version-tab {
  padding: 12px 28px; border: none; background: transparent; color: var(--gris);
  font-family: 'Jost', sans-serif; font-size: 0.85rem; letter-spacing: 0.05em; cursor: pointer;
  border-bottom: 2px solid transparent; transition: all 0.3s; text-transform: uppercase;
}
.version-tab:hover { color: var(--vert); }
.version-tab.active { color: var(--vert); border-bottom-color: var(--vert); font-weight: 500; }
.version-panel { display: none; animation: fadeIn 0.4s ease; }
.version-panel.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.version-panel h2 { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; color: var(--vert); font-weight: 500; margin: 40px 0 16px; }
.version-panel h2:first-child { margin-top: 0; }
.version-panel p { font-size: 0.95rem; line-height: 1.85; color: var(--gris); margin-bottom: 18px; }
.version-panel ul { margin: 0 0 20px 0; padding-left: 0; list-style: none; }
.version-panel li { font-size: 0.92rem; line-height: 1.7; color: var(--gris-fonce); padding-left: 22px; position: relative; margin-bottom: 10px; }
.version-panel li::before { content: '→'; position: absolute; left: 0; color: var(--vert-clair); }

.callout { padding: 24px 28px; background: var(--vert-pale); border-left: 3px solid var(--vert); margin: 24px 0; }
.callout p { margin-bottom: 0; color: var(--gris-fonce); }

/* Comparaison chiffrée mise en avant (ex : 1% vs 99%) */
.stat-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin: 32px 0 12px; }
.stat-compare-item { background: var(--vert-pale); padding: 32px 24px; text-align: center; }
.stat-compare-item.highlight { background: var(--vert); }
.stat-compare-number { font-family: 'Cormorant Garamond', serif; font-size: 3rem; font-weight: 300; color: var(--vert); line-height: 1; margin-bottom: 12px; }
.stat-compare-item.highlight .stat-compare-number { color: white; }
.stat-compare-label { font-size: 0.82rem; color: var(--gris); line-height: 1.5; }
.stat-compare-item.highlight .stat-compare-label { color: rgba(255,255,255,0.85); }
.stat-compare-note { font-size: 0.85rem; font-style: italic; color: var(--gris); margin-bottom: 24px; }

table.data-table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 0.88rem; }
table.data-table th { background: var(--vert); color: white; padding: 12px 16px; text-align: left; font-weight: 500; }
table.data-table td { padding: 12px 16px; border-bottom: 1px solid rgba(45,90,61,0.1); color: var(--gris-fonce); }
table.data-table tr:nth-child(even) td { background: var(--vert-pale); }
.table-scroll { overflow-x: auto; margin: 24px 0; }
.table-scroll table.data-table { margin: 0; min-width: 620px; }

.cta-block { margin-top: 48px; padding: 36px 40px; background: var(--vert); text-align: center; }
.cta-block p { color: rgba(255,255,255,0.9); font-size: 1rem; margin-bottom: 20px; }
.cta-block a.btn { display: inline-block; padding: 14px 36px; background: white; color: var(--vert); text-decoration: none; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; transition: transform 0.2s; }
.cta-block a.btn:hover { transform: translateY(-2px); }

.sources-block { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(45,90,61,0.15); }
.sources-block h3 { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--vert-clair); margin-bottom: 14px; }
.sources-block ul { list-style: none; }
.sources-block li { font-size: 0.8rem; color: var(--gris); line-height: 1.7; padding-left: 0; margin-bottom: 6px; }
.sources-block li::before { content: none; }

/* FOOTER (identique au site principal) */
footer { background: #1a3326; color: rgba(255,255,255,0.85); padding: 60px 48px 32px; margin-top: 60px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1.5fr 1fr; gap: 40px; max-width: 1200px; margin: 0 auto; padding-bottom: 48px; }
.footer-brand { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; color: white; margin-bottom: 10px; }
.footer-tagline { font-size: 0.82rem; line-height: 1.7; opacity: 0.65; font-style: italic; }
.footer-label { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.45); margin-bottom: 14px; }
.footer-col nav { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: rgba(255,255,255,0.9); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; display: block; }
.footer-col a:hover { color: white; text-decoration: underline; }
.footer-col p { font-size: 0.85rem; opacity: 0.7; margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 24px; text-align: center; }
.footer-copy { font-size: 0.8rem; opacity: 0.5; margin-bottom: 6px; }
.footer-legal { font-size: 0.75rem; opacity: 0.35; font-style: italic; }

@media (max-width: 900px) {
  nav.main-nav { padding: 14px 24px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .section-inner { padding: 0 24px; }
  .article-grid { grid-template-columns: 1fr; }
  .version-tabs { gap: 4px; }
  .version-tab { padding: 10px 16px; font-size: 0.75rem; }
  .stat-compare { grid-template-columns: 1fr; }
  table.data-table { font-size: 0.8rem; }
  table.data-table th, table.data-table td { padding: 10px 12px; }
  .footer-inner { grid-template-columns: 1fr; }
  footer { padding: 40px 24px 24px; }
}
