:root {
  --olive-dark: #3d4a2a;
  --olive: #64784a;
  --olive-light: #9caf7c;
  --cream: #faf7f0;
  --text: #2b2b26;
  --text-light: #6b6b62;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Lato', Arial, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  color: var(--olive-dark);
  margin: 0 0 0.5em;
}

a { color: var(--olive-dark); }

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  background: rgba(250, 247, 240, 0.95);
  border-bottom: 1px solid rgba(61, 74, 42, 0.15);
}

.nav .brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3em;
  color: var(--olive-dark);
  text-decoration: none;
  letter-spacing: 0.5px;
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.nav a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.95em;
  letter-spacing: 0.3px;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.nav a:hover,
.nav a.active {
  color: var(--olive-dark);
  border-bottom-color: var(--olive-light);
}

.nav .social img {
  width: 22px;
  height: 22px;
  vertical-align: middle;
  opacity: 0.8;
}

/* Hero */
.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background-image: linear-gradient(rgba(30, 36, 20, 0.45), rgba(30, 36, 20, 0.45)), url("../../images/PhotoOlive.jpg");
  background-size: cover;
  background-position: 58% 57%;
}

.hero-inner { max-width: 720px; padding: 40px 24px; }

.hero h1 {
  color: #fff;
  font-size: 2.6em;
  text-shadow: 1px 1px 6px rgba(0,0,0,0.5);
}

.hero p {
  font-size: 1.15em;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
  max-width: 560px;
  margin: 0 auto;
}

.hero.small { min-height: 32vh; }

/* Content sections */
.section {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px;
}

.section.narrow { max-width: 640px; }

.badge {
  display: inline-block;
  background: var(--olive-light);
  color: var(--olive-dark);
  font-size: 0.75em;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.lead {
  font-size: 1.15em;
  color: var(--olive-dark);
  font-weight: 600;
  line-height: 1.5;
}

.goal-box {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: #fff;
  border: 1px solid rgba(61, 74, 42, 0.15);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 28px 0;
  box-shadow: 0 2px 10px rgba(61, 74, 42, 0.08);
}

.goal-icon {
  font-size: 1.6em;
  flex-shrink: 0;
}

.goal-box strong {
  color: var(--olive-dark);
}

/* Main varieties */
.main-varieties {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.variety-main {
  background: #fff;
  border-top: 4px solid var(--olive-dark);
  border-radius: 6px;
  padding: 28px 26px;
  box-shadow: 0 2px 10px rgba(61, 74, 42, 0.08);
}

.variety-main .badge { margin-bottom: 10px; }

.variety-main h3 {
  font-size: 1.5em;
  margin-bottom: 10px;
}

.variety-main p {
  color: var(--text-light);
  margin: 0;
}

/* Pollination diagram */
.diagram-wrap {
  margin: 48px 0 24px;
  text-align: center;
}

.diagram-wrap svg {
  width: 100%;
  height: auto;
  max-width: 900px;
}

.legend {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 16px;
  font-size: 0.85em;
  color: var(--text-light);
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legend .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.legend .dot.main { background: var(--olive-dark); }
.legend .dot.pollinator { background: var(--olive-light); }

.pollinators-heading {
  margin-top: 56px;
}

/* Cards / variety grid */
.variety-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.variety-card {
  background: #fff;
  border: 1px solid rgba(61, 74, 42, 0.12);
  border-radius: 6px;
  padding: 22px 20px;
}

.variety-card h3 {
  font-size: 1.15em;
  margin-bottom: 8px;
  border-bottom: 2px solid var(--olive-light);
  padding-bottom: 8px;
}

.variety-card p {
  font-size: 0.92em;
  color: var(--text-light);
  margin: 0;
}

.placeholder-note {
  font-style: italic;
  font-size: 0.85em;
  color: var(--olive);
}

/* Timeline */
.timeline {
  border-left: 3px solid var(--olive-light);
  margin: 32px 0 0 12px;
  padding-left: 28px;
}

.timeline-item { position: relative; margin-bottom: 36px; }

.timeline-item::before {
  content: "";
  position: absolute;
  left: -35px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--olive);
  border: 3px solid var(--cream);
}

.timeline-date {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--olive);
  font-weight: 600;
  margin-bottom: 4px;
}

.timeline-item img {
  display: block;
  width: 100%;
  max-width: 340px;
  border-radius: 6px;
  margin: 10px 0 16px;
  box-shadow: 0 2px 10px rgba(61, 74, 42, 0.15);
}

.ig-thumb {
  position: relative;
  display: block;
  width: 100%;
  max-width: 340px;
  margin: 10px 0 16px;
  padding: 0;
  border: none;
  background: none;
}

.ig-thumb img {
  display: block;
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(61, 74, 42, 0.15);
  transition: opacity 0.15s;
}

.ig-thumb:hover img { opacity: 0.85; }

button.ig-thumb { cursor: pointer; }

.ig-thumb[data-video]::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46px;
  height: 46px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(20, 24, 14, 0.55);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 55% 50%;
  background-size: 20px;
  pointer-events: none;
}

/* Video lightbox */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20, 24, 14, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.video-modal:not([hidden]) {
  display: flex;
}

.video-modal-inner {
  position: relative;
  width: 100%;
  max-width: 380px;
}

.video-modal-inner video {
  width: 100%;
  max-height: 80vh;
  border-radius: 8px;
  background: #000;
  display: block;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: var(--olive-dark);
  font-size: 1.4em;
  line-height: 1;
  cursor: pointer;
}

/* Image lightbox */
.image-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20, 24, 14, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.image-modal:not([hidden]) {
  display: flex;
}

.image-modal-inner {
  position: relative;
  width: 100%;
  max-width: 500px;
}

.image-modal-inner img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  background-color: var(--olive-dark);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95em;
  transition: background-color 0.2s;
}

.btn:hover { background-color: var(--olive); }

/* Footer */
.footer {
  text-align: center;
  padding: 32px 24px;
  color: var(--text-light);
  font-size: 0.85em;
  border-top: 1px solid rgba(61, 74, 42, 0.12);
}

.footer a { color: var(--olive-dark); }

.beta-banner {
  background: var(--olive-dark);
  color: #fff;
  text-align: center;
  font-size: 0.8em;
  padding: 6px 12px;
  letter-spacing: 0.5px;
}

@media (max-width: 600px) {
  .nav { flex-direction: column; gap: 12px; padding: 16px; }
  .nav ul { gap: 18px; flex-wrap: wrap; justify-content: center; }
  .hero h1 { font-size: 2em; }
}

/* Onglets (page Services) */
.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  max-width: 900px;
  margin: 2rem auto 0;
  padding: 0 1rem;
}

.tabs button {
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.7rem 1.4rem;
  border: 2px solid var(--olive);
  border-radius: 999px;
  background: transparent;
  color: var(--olive-dark);
  cursor: pointer;
}

.tabs button:hover { background: var(--olive-light); }

.tabs button[aria-selected="true"] {
  background: var(--olive-dark);
  border-color: var(--olive-dark);
  color: #fff;
}

.tab-panel[hidden] { display: none; }

/* Crédit photo incrusté */
.photo-credit {
  position: absolute;
  right: 10px;
  bottom: 8px;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}
