@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --primary: #2D6A4F;
  --primary-dark: #1B4332;
  --secondary: #95D5B2;
  --secondary-light: #D8F3DC;
  --bg: #FBFBF8;
  --bg-alt: #F1F7F2;
  --text: #1B2621;
  --text-muted: #52655B;
  --border: #E1EBE3;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(27, 67, 50, 0.08);
  --shadow-lg: 0 20px 50px rgba(27, 67, 50, 0.14);
  --radius: 16px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  color: var(--primary-dark);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); margin-bottom: var(--space-2); }
h3 { font-size: 1.3rem; margin-bottom: var(--space-1); }
p { color: var(--text-muted); }

a { color: var(--primary); text-decoration: none; transition: 0.25s; }

img { max-width: 100%; display: block; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.section { padding: var(--space-7) 0; }
.section-alt { background: var(--bg-alt); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--secondary-light);
  padding: 6px 14px;
  border-radius: 30px;
  margin-bottom: var(--space-3);
}

.section-head { max-width: 680px; margin: 0 auto var(--space-6); text-align: center; }
.section-head p { font-size: 1.08rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: 0.25s;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--secondary-light); transform: translateY(-2px); }
.btn-light { background: var(--white); color: var(--primary-dark); }
.btn-light:hover { background: var(--secondary-light); }

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(251, 251, 248, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: 0 2px 20px rgba(0,0,0,0.04); }
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.logo {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo span { color: var(--primary); }
.nav-links { display: flex; gap: var(--space-4); list-style: none; align-items: center; }
.nav-links a { color: var(--text); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--primary); }
.nav-cta { display: flex; gap: 12px; align-items: center; }
.nav-farmer-link { display: inline-flex; align-items: center; gap: 8px; }
.burger { display: none; background: none; border: none; cursor: pointer; }

@media (max-width: 860px) {
  .nav-links { position: fixed; top: 68px; left: 0; right: 0; background: var(--white); flex-direction: column; padding: var(--space-3); gap: var(--space-2); box-shadow: var(--shadow); transform: translateY(-150%); transition: 0.3s; z-index: 999; }
  .nav-links.open { transform: translateY(0); }
  .burger { display: block; }
  .nav-cta .btn-outline { display: none; }
}

/* Hero */
.hero {
  position: relative;
  padding: 150px 0 var(--space-7);
  background: linear-gradient(180deg, var(--secondary-light) 0%, var(--bg) 70%);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-6);
  align-items: center;
}
.hero-text h1 { margin-bottom: var(--space-3); }
.hero-text .accent { color: var(--primary); }
.hero-text p.lead { font-size: 1.18rem; max-width: 520px; margin-bottom: var(--space-4); }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: var(--space-5); }
.hero-stats { display: flex; gap: var(--space-5); flex-wrap: wrap; }
.hero-stats div strong { display: block; font-family: 'Fraunces', serif; font-size: 1.6rem; color: var(--primary-dark); }
.hero-stats div span { font-size: 0.85rem; color: var(--text-muted); }

.hero-photo-wrap { position: relative; display: flex; justify-content: center; }
.hero-photo {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--white);
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4/5;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute;
  bottom: -18px;
  left: -18px;
  background: var(--white);
  padding: 14px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.9rem;
}
.hero-badge svg { color: var(--primary); flex-shrink: 0; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo-wrap { order: -1; margin-bottom: var(--space-3); }
  .hero-text p.lead { max-width: 100%; }
}

/* Bio full width (sans image) */
.bio-full { max-width: 760px; margin: 0 auto; text-align: center; }
.bio-full .eyebrow { display: inline-flex; }
.bio-full h2 { margin-bottom: var(--space-4); }
.bio-full p { text-align: left; }
.bio-full p + p { margin-top: 16px; }

/* Bio Z-pattern (autres usages éventuels) */
.zpattern { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--space-6); align-items: center; }
.zpattern.reverse .z-media { order: 2; }
.z-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1/1; }
.z-text h2 { margin-bottom: var(--space-3); }
.z-text p + p { margin-top: 12px; }

@media (max-width: 860px) {
  .zpattern, .zpattern.reverse { grid-template-columns: 1fr; }
  .zpattern.reverse .z-media { order: 0; }
}

/* Timeline */
.timeline { position: relative; max-width: 760px; margin: 0 auto; }
.timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--secondary);
}
.timeline-item { position: relative; padding-left: 68px; margin-bottom: var(--space-5); }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: 12px;
  top: 4px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--primary);
  border: 4px solid var(--secondary-light);
  display: flex; align-items: center; justify-content: center;
}
.timeline-item .date { display: inline-block; font-weight: 700; color: var(--primary); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }

/* Cards grid */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-3); }
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
  transition: 0.3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--secondary); }
.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--secondary-light);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-2);
}

/* CBD Farmer section */
.farmer-box {
  background: var(--primary-dark);
  color: var(--white);
  border-radius: 24px;
  padding: var(--space-6);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-5);
  align-items: center;
}
.farmer-box::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 260px; height: 260px;
  background: var(--secondary);
  opacity: 0.15;
  border-radius: 50%;
}
.farmer-box h2, .farmer-box h3 { color: var(--white); }
.farmer-box p { color: rgba(255,255,255,0.78); }
.farmer-logo-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--secondary);
  margin-bottom: var(--space-3);
}
.farmer-logo-mark svg { flex-shrink: 0; }
.farmer-media { border-radius: 18px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.35); }
.farmer-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.farmer-tags { display: flex; gap: 10px; flex-wrap: wrap; margin: var(--space-3) 0; }
.farmer-tags span { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); padding: 6px 14px; border-radius: 30px; font-size: 0.82rem; }

@media (max-width: 860px) {
  .farmer-box { grid-template-columns: 1fr; padding: var(--space-4); }
}

/* Quiz widget */
.quiz-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: var(--space-5);
  box-shadow: var(--shadow);
  max-width: 720px;
  margin: 0 auto;
}
.quiz-progress { height: 6px; background: var(--bg-alt); border-radius: 10px; overflow: hidden; margin-bottom: var(--space-4); }
.quiz-progress-bar { height: 100%; background: var(--primary); width: 0%; transition: 0.3s; }
.quiz-question { font-family: 'Fraunces', serif; font-size: 1.3rem; color: var(--primary-dark); margin-bottom: var(--space-3); }
.quiz-options { display: grid; gap: 10px; }
.quiz-option {
  text-align: left;
  padding: 14px 18px;
  border-radius: 12px;
  border: 2px solid var(--border);
  background: var(--bg-alt);
  cursor: pointer;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--text);
  transition: 0.2s;
}
.quiz-option:hover { border-color: var(--secondary); }
.quiz-option.correct { border-color: var(--primary); background: var(--secondary-light); }
.quiz-option.wrong { border-color: #C1454A; background: #FBE9E9; }
.quiz-result { text-align: center; }
.quiz-result .score { font-family: 'Fraunces', serif; font-size: 3rem; color: var(--primary); }
.quiz-footer { display:flex; justify-content:space-between; align-items:center; margin-top: var(--space-3); font-size: 0.85rem; color: var(--text-muted); }

/* FAQ */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); padding: var(--space-3) 0; }
.faq-q { display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: 600; font-size: 1.05rem; color: var(--primary-dark); gap: 16px; }
.faq-q svg { flex-shrink: 0; transition: 0.3s; }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: 0.3s; }
.faq-item.open .faq-a { max-height: 300px; margin-top: 12px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-card .card-icon { flex-shrink: 0; margin-bottom: 0; }
.contact-card h3 { margin-bottom: 4px; }

@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* Footer */
footer.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.75);
  padding: var(--space-6) 0 var(--space-3);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--space-5); margin-bottom: var(--space-5); }
.footer-grid h4 { color: var(--white); margin-bottom: var(--space-2); }
.footer-grid ul { list-style: none; }
.footer-grid ul li { margin-bottom: 8px; }
.footer-grid a { color: rgba(255,255,255,0.75); }
.footer-grid a:hover { color: var(--secondary); }
.footer-logo { font-family: 'Fraunces', serif; font-size: 1.3rem; color: var(--white); font-weight: 700; margin-bottom: var(--space-2); }
.footer-social { display: flex; gap: 12px; margin-top: var(--space-2); }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; }
.footer-social a:hover { background: var(--secondary); color: var(--primary-dark); }
.footer-farmer-badge svg { display: block; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: var(--space-3); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.85rem; }

@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }

/* Reveal on scroll */
.reveal-on-scroll { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-on-scroll.revealed { opacity: 1; transform: translateY(0); }

/* Skip link */
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--primary); color: white; padding: 10px 16px; z-index: 2000; }
.skip-link:focus { left: 10px; top: 10px; }