/* Page Traitement de Semence — Styles premium additionnels */

/* Palette locale : isolée du dark mode global du site pour garder le contraste */
body.traitement-page {
  --bio-bg: #F0E9DD;
  --bio-card: #FFFFFF;
  --bio-text: #2C1810;
  --bio-text-muted: rgba(44, 24, 16, 0.76);
  --bio-border: rgba(44, 24, 16, 0.10);
  --bio-shadow: 0 8px 30px rgba(44, 24, 16, 0.08);
  --bio-shadow-hover: 0 14px 42px rgba(44, 24, 16, 0.14);
}
[data-theme="dark"] body.traitement-page {
  --bio-bg: #1E1A16;
  --bio-card: #151210;
  --bio-text: #F5F0E8;
  --bio-text-muted: rgba(245, 240, 232, 0.72);
  --bio-border: rgba(245, 240, 232, 0.12);
  --bio-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
  --bio-shadow-hover: 0 14px 42px rgba(0, 0, 0, 0.55);
}

/* ===== FAQ ACCORDÉON ===== */
.faq-accordion {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bio-card);
  border-radius: 16px;
  border: 1px solid var(--bio-border);
  box-shadow: var(--bio-shadow);
  overflow: hidden;
  transition: box-shadow .3s var(--ease-out), transform .3s var(--ease-out);
}
[data-theme="dark"] .faq-item {
  border-color: var(--bio-border);
}

.faq-item:hover {
  box-shadow: var(--bio-shadow-hover);
}

.faq-item.is-open {
  box-shadow: var(--bio-shadow-hover);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px;
  background: none;
  border: none;
  text-align: left;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--bio-text);
  cursor: pointer;
}

.faq-question:hover { color: var(--vert-vif); }

.faq-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(74,124,89,0.1);
  color: var(--vert-vif);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform .3s var(--ease-out), background .3s;
}

.faq-item.is-open .faq-icon {
  transform: rotate(180deg);
  background: var(--vert-vif);
  color: #fff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s var(--ease-out);
}

.faq-answer-inner {
  padding: 0 28px 24px;
  color: var(--bio-text-muted);
  font-size: 0.97rem;
  line-height: 1.7;
}

.faq-answer-inner p { margin: 0 0 12px; }
.faq-answer-inner p:last-child { margin-bottom: 0; }

/* ===== TIMELINE RÉSULTATS TERRAIN ===== */
.results-timeline {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}

.results-timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--vert-vif), var(--or));
  transform: translateX(-50%);
}

.timeline-row {
  display: flex;
  align-items: center;
  gap: 48px;
  margin-bottom: 48px;
  position: relative;
}

.timeline-row:last-child { margin-bottom: 0; }

.timeline-row:nth-child(odd) { flex-direction: row; }
.timeline-row:nth-child(even) { flex-direction: row-reverse; }

.timeline-content,
.timeline-visual {
  flex: 1;
}

.timeline-content {
  background: var(--bio-card);
  border-radius: 20px;
  padding: 32px;
  border: 1px solid var(--bio-border);
  box-shadow: var(--bio-shadow);
}
[data-theme="dark"] .timeline-content {
  border-color: var(--bio-border);
}

.timeline-visual {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--bio-shadow-hover);
}

.timeline-visual img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  background: var(--vert-vif);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(74,124,89,0.2);
  transform: translate(-50%, -50%);
  z-index: 2;
}

.timeline-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vert-vif);
  background: rgba(74,124,89,0.08);
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.timeline-title {
  font-size: 1.25rem;
  margin: 0 0 12px;
  color: var(--bio-text);
}

.timeline-text {
  color: var(--bio-text-muted);
  font-size: 0.97rem;
  line-height: 1.7;
  margin: 0 0 16px;
}

.timeline-highlight {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--bio-text);
}

.timeline-highlight strong {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  color: var(--vert-vif);
}

/* ===== TABLEAU COMPARATIF MODERNE ===== */
.comparison-modern {
  max-width: 960px;
  margin: 0 auto 40px;
  background: var(--bio-card);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--bio-shadow);
  border: 1px solid var(--bio-border);
}
[data-theme="dark"] .comparison-modern {
  border-color: var(--bio-border);
}

.comparison-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  align-items: center;
  padding: 18px 28px;
  border-bottom: 1px solid var(--bio-border);
  color: var(--bio-text);
}
[data-theme="dark"] .comparison-row {
  border-bottom-color: rgba(245,240,232,0.06);
}

.comparison-row:last-child { border-bottom: none; }

.comparison-row.head {
  background: var(--terre);
  color: var(--blanc);
  font-weight: 600;
  padding: 20px 28px;
}

.comparison-row.head .cell:nth-child(2) { color: #FFFFFF; }
.comparison-row.head .cell:nth-child(3) { color: rgba(255,255,255,0.82); }

.comparison-row .cell {
  font-size: 0.97rem;
}

.comparison-row .cell:first-child {
  font-weight: 500;
  color: var(--bio-text);
}

.comparison-row .cell:not(:first-child) {
  text-align: center;
}

.comparison-row.highlight {
  background: rgba(74,124,89,0.05);
}

.comparison-row.highlight .cell:first-child {
  color: var(--vert-vif);
  font-weight: 700;
}

.check-green, .check-grey, .cross-grey {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 14px;
}

.check-green {
  background: rgba(74,124,89,0.12);
  color: var(--vert-vif);
}

.check-grey {
  background: rgba(0,0,0,0.06);
  color: var(--bio-text-muted);
}

.cross-grey {
  background: rgba(0,0,0,0.05);
  color: #b0a8a3;
}

/* ===== GUIDE D'ACHAT ÉTAPES ===== */
.buy-guide-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.buy-guide-card {
  background: var(--bio-card);
  border-radius: 18px;
  padding: 28px 22px;
  border: 1px solid var(--bio-border);
  box-shadow: var(--bio-shadow);
  text-align: center;
  position: relative;
  transition: transform .3s var(--ease-out), box-shadow .3s;
}
[data-theme="dark"] .buy-guide-card {
  border-color: var(--bio-border);
}

.buy-guide-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--bio-shadow-hover);
}

.buy-guide-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--or), #c99666);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.buy-guide-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(74,124,89,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 26px;
}

.buy-guide-card h3 {
  font-size: 1rem;
  margin: 0 0 10px;
  color: var(--bio-text);
}

.buy-guide-card p {
  font-size: 0.88rem;
  color: var(--bio-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ===== CARTES TECHNO ===== */
.tech-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.tech-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--vert-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tech-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(74,124,89,0.08);
  color: var(--vert-vif);
}

.tech-tag.or { background: rgba(212,165,116,0.12); color: var(--or); }

/* ===== SIMULATEUR ROI ===== */
.roi-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.roi-visual {
  background: linear-gradient(145deg, var(--terre), #3d2418);
  border-radius: 24px;
  padding: 40px;
  color: var(--blanc);
  box-shadow: var(--shadow-lg);
}
[data-theme="dark"] .roi-visual {
  background: linear-gradient(145deg, #2C1810, #1a0f08);
  color: var(--bio-text);
}

.roi-visual-title {
  font-size: 1.1rem;
  color: var(--or);
  margin: 0 0 24px;
  text-align: center;
}

.roi-metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
[data-theme="dark"] .roi-metric {
  border-bottom-color: rgba(245,240,232,0.1);
}

.roi-metric:last-child { border-bottom: none; }

.roi-metric-label { font-size: 0.95rem; opacity: 0.85; }

.roi-metric-value {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
  color: inherit;
}

.roi-metric-value.positive { color: #a8e6a3; }
[data-theme="dark"] .roi-metric-value.positive { color: #7bc87b; }

.roi-explain {
  font-size: 1rem;
  color: var(--bio-text-muted);
  line-height: 1.7;
}

.roi-explain p { margin: 0 0 16px; }

.roi-explain ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.roi-explain li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 0.97rem;
}

/* Force readable text over inline dark colours in light & dark mode */
main .problem-card p,
main .problem-card span,
main .buy-guide-card p,
main .buy-guide-card span,
main .faq-answer-inner,
main .faq-answer-inner span,
main .timeline-text,
main .comparison-row .cell {
  color: var(--bio-text-muted) !important;
}
.problem-card:hover,
.buy-guide-card:hover,
.faq-item:hover {
  box-shadow: var(--bio-shadow-hover);
}

/* ===== DARK MODE ===== */
[data-theme="dark"] .faq-question { color: var(--bio-text); }
[data-theme="dark"] .faq-answer-inner { color: var(--bio-text-muted); }
[data-theme="dark"] .timeline-title { color: var(--bio-text); }
[data-theme="dark"] .timeline-text { color: var(--bio-text-muted); }
[data-theme="dark"] .timeline-highlight { color: var(--bio-text); }
[data-theme="dark"] .timeline-highlight strong { color: var(--vert-vif); }
[data-theme="dark"] .buy-guide-card h3 { color: var(--bio-text); }
[data-theme="dark"] .buy-guide-card p { color: var(--bio-text-muted); }
[data-theme="dark"] .comparison-row.head { background: var(--terre); color: var(--blanc); }
[data-theme="dark"] .comparison-row.head .cell:nth-child(2),
[data-theme="dark"] .comparison-row.head .cell:nth-child(3) { color: var(--blanc); opacity: 0.9; }
[data-theme="dark"] .comparison-row .cell:first-child { color: var(--bio-text); }
[data-theme="dark"] .check-green { background: rgba(168,230,163,0.15); color: #a8e6a3; }
[data-theme="dark"] .check-grey { background: rgba(245,240,232,0.1); color: var(--bio-text-muted); }
[data-theme="dark"] .cross-grey { background: rgba(245,240,232,0.08); color: #8A7F76; }

/* Dark mode : tags & labels */
[data-theme="dark"] .tech-tag { background: rgba(168,230,163,0.12); color: #a8e6a3; }
[data-theme="dark"] .tech-tag.or { background: rgba(212,165,116,0.15); color: #e8c9a0; }
[data-theme="dark"] .timeline-tag { background: rgba(168,230,163,0.12); color: #a8e6a3; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .results-timeline::before { left: 24px; }
  .timeline-row,
  .timeline-row:nth-child(odd),
  .timeline-row:nth-child(even) {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 56px;
    gap: 20px;
  }
  .timeline-dot {
    left: 24px;
    top: 32px;
    transform: translate(-50%, 0);
  }
  .buy-guide-grid { grid-template-columns: repeat(3, 1fr); }
  .roi-section { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .buy-guide-grid { grid-template-columns: 1fr; }
  .comparison-row {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .comparison-row .cell:first-child {
    grid-column: 1 / -1;
    font-weight: 600;
    margin-bottom: 6px;
  }
  .timeline-visual img { height: 200px; }
}
