/* ==========================================================
   FICHE TECHNIQUE PREMIUM — Agrivo
   Styles modernes pour la fiche technique GreenShield
   ========================================================== */

/* ---------- SCOPED PALETTE ---------- */
body.fiche-technique-page {
  --ft-bg: #F8F5F0;
  --ft-card: #FFFFFF;
  --ft-text: #2C1810;
  --ft-text-muted: rgba(44, 24, 16, 0.7);
  --ft-border: rgba(44, 24, 16, 0.08);
  --ft-shadow: 0 4px 20px rgba(44, 24, 16, 0.06);
  --ft-shadow-hover: 0 12px 40px rgba(44, 24, 16, 0.12);
  --ft-vert: #4A7C59;
  --ft-or: #D4A574;
  --ft-terre: #2C1810;
}
[data-theme="dark"] body.fiche-technique-page {
  --ft-bg: #1A1612;
  --ft-card: #201C18;
  --ft-text: #F5F0E8;
  --ft-text-muted: rgba(245, 240, 232, 0.65);
  --ft-border: rgba(245, 240, 232, 0.1);
  --ft-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  --ft-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.5);
}

/* ---------- HERO DOCUMENT ---------- */
body.fiche-technique-page .page-header {
  background: linear-gradient(135deg, var(--ft-terre), #3D2318);
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
}
body.fiche-technique-page .page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}
body.fiche-technique-page .page-header .container {
  position: relative;
  z-index: 1;
  text-align: center;
}
body.fiche-technique-page .page-header .text-label {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  background: rgba(212, 165, 116, 0.15);
  border: 1px solid rgba(212, 165, 116, 0.25);
  color: var(--ft-or) !important;
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 24px !important;
}
body.fiche-technique-page .page-header .text-hero {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 12px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
body.fiche-technique-page .page-header p {
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
}

/* ---------- SECTION BACKGROUND ---------- */
body.fiche-technique-page .section-blanc {
  background: var(--ft-bg);
  padding: 64px 0 80px;
}

/* ---------- DOC HEADER CARD ---------- */
.ft-doc-header {
  background: var(--ft-card);
  border-radius: 24px;
  padding: 48px;
  border: 1px solid var(--ft-border);
  box-shadow: var(--ft-shadow);
  margin-bottom: 48px;
  text-align: center;
  transition: box-shadow 0.3s ease;
}
.ft-doc-header:hover {
  box-shadow: var(--ft-shadow-hover);
}
.ft-doc-header .ft-logo {
  height: 72px;
  width: auto;
  margin-bottom: 20px;
  display: inline-block;
}
.ft-doc-header h2 {
  font-family: var(--font-titre);
  font-size: 1.6rem;
  color: var(--ft-text);
  margin-bottom: 6px;
}
.ft-doc-header .ft-ref {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.875rem;
  color: var(--ft-or);
  background: rgba(212, 165, 116, 0.1);
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  margin-top: 8px;
}

/* ---------- INFO GRID ---------- */
.ft-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 48px;
}
.ft-info-card {
  background: var(--ft-card);
  border-radius: 20px;
  padding: 32px;
  border: 1px solid var(--ft-border);
  box-shadow: var(--ft-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ft-info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ft-shadow-hover);
}
.ft-info-card h4 {
  font-size: 1.05rem;
  color: var(--ft-text);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ft-or);
  display: inline-block;
}
.ft-info-card table {
  width: 100%;
  font-size: 0.9375rem;
  border-collapse: collapse;
}
.ft-info-card table td {
  padding: 10px 0;
  border-bottom: 1px solid var(--ft-border);
  color: var(--ft-text-muted);
}
.ft-info-card table td:last-child {
  color: var(--ft-text);
  font-weight: 500;
  text-align: right;
}
.ft-info-card table tr:last-child td {
  border-bottom: none;
}
.ft-info-card p {
  font-size: 0.9375rem;
  color: var(--ft-text-muted);
  line-height: 1.7;
  margin-bottom: 4px;
}
.ft-info-card p strong {
  color: var(--ft-text);
}

/* ---------- SECTION HEADERS ---------- */
.ft-section-title {
  font-family: var(--font-titre);
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  color: var(--ft-text);
  margin: 48px 0 24px;
  padding-bottom: 14px;
  border-bottom: 3px solid var(--ft-or);
  display: inline-block;
  position: relative;
}
.ft-section-title::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--ft-vert);
  border-radius: 2px;
}

/* ---------- TABLES PREMIUM ---------- */
body.fiche-technique-page .compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.95rem;
  background: var(--ft-card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--ft-shadow);
  border: 1px solid var(--ft-border);
  margin: 24px 0;
}
body.fiche-technique-page .compare-table th {
  background: linear-gradient(135deg, var(--ft-terre), #3D2318);
  color: #fff;
  padding: 16px 24px;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}
body.fiche-technique-page .compare-table td {
  padding: 14px 24px;
  border-bottom: 1px solid var(--ft-border);
  color: var(--ft-text-muted);
}
body.fiche-technique-page .compare-table tr:last-child td {
  border-bottom: none;
}
body.fiche-technique-page .compare-table tr {
  transition: background 0.2s ease;
}
body.fiche-technique-page .compare-table tr:hover td {
  background: rgba(212, 165, 116, 0.04);
  color: var(--ft-text);
}
body.fiche-technique-page .compare-table td:first-child {
  color: var(--ft-text);
  font-weight: 500;
}

/* ---------- DOSAGE HIGHLIGHT ---------- */
.ft-dosage-highlight {
  background: linear-gradient(135deg, rgba(74, 124, 89, 0.08), rgba(74, 124, 89, 0.03));
  border: 1px solid rgba(74, 124, 89, 0.15);
  border-radius: 16px;
  padding: 24px 28px;
  margin-top: 24px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ft-text-muted);
}
.ft-dosage-highlight strong {
  color: var(--ft-vert);
}

/* ---------- STOCKAGE LIST ---------- */
.ft-stockage-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ft-stockage-list li {
  background: var(--ft-card);
  border: 1px solid var(--ft-border);
  border-radius: 14px;
  padding: 18px 24px;
  font-size: 0.95rem;
  color: var(--ft-text-muted);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: var(--ft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ft-stockage-list li:hover {
  transform: translateX(6px);
  box-shadow: var(--ft-shadow-hover);
}
.ft-stockage-list li::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--ft-or);
  border-radius: 50%;
  margin-top: 7px;
  flex-shrink: 0;
}

/* ---------- CERTIFICATION BADGES ---------- */
.ft-cert-badges {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.ft-cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ft-card);
  border: 1px solid var(--ft-border);
  padding: 14px 24px;
  border-radius: 14px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ft-vert);
  box-shadow: var(--ft-shadow);
  transition: all 0.3s ease;
}
.ft-cert-badge:hover {
  transform: translateY(-4px);
  box-shadow: var(--ft-shadow-hover);
  border-color: rgba(74, 124, 89, 0.3);
}
.ft-cert-badge svg {
  width: 20px;
  height: 20px;
  stroke: var(--ft-vert);
  flex-shrink: 0;
}

/* ---------- WARNING BOX ---------- */
.ft-warning-box {
  background: linear-gradient(135deg, rgba(212, 165, 116, 0.1), rgba(212, 165, 116, 0.04));
  border: 1px solid rgba(212, 165, 116, 0.2);
  border-left: 4px solid var(--ft-or);
  border-radius: 16px;
  padding: 28px 32px;
  margin: 24px 0;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--ft-text-muted);
}
.ft-warning-box strong {
  color: var(--ft-text);
}

/* ---------- PRINT BUTTON ---------- */
body.fiche-technique-page .ft-print-section {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 2px solid var(--ft-border);
  text-align: center;
}
body.fiche-technique-page .ft-print-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--ft-terre), #3D2318);
  color: #fff;
  border: none;
  padding: 16px 32px;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 24px rgba(44, 24, 16, 0.2);
}
body.fiche-technique-page .ft-print-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(44, 24, 16, 0.3);
}
body.fiche-technique-page .ft-print-btn svg {
  width: 18px;
  height: 18px;
}
body.fiche-technique-page .ft-print-hint {
  color: var(--ft-text-muted);
  font-size: 0.875rem;
  margin-top: 16px;
}

/* ---------- REVEAL ANIMATIONS ---------- */
.ft-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.ft-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .ft-info-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  body.fiche-technique-page .page-header {
    padding: 80px 0 48px;
  }
  .ft-doc-header {
    padding: 32px 24px;
  }
  .ft-doc-header .ft-logo {
    height: 56px;
  }
  .ft-doc-header h2 {
    font-size: 1.3rem;
  }
  .ft-info-card {
    padding: 24px;
  }
  body.fiche-technique-page .compare-table th,
  body.fiche-technique-page .compare-table td {
    padding: 12px 16px;
  }
  .ft-cert-badges {
    gap: 10px;
  }
  .ft-cert-badge {
    padding: 12px 18px;
    font-size: 0.875rem;
  }
}
