/* ═══════════════════════════════════════════════════════
   AROMA FICHE PREMIUM V2 — Rich protocol pages
   Tailles typographiques pour audience 75 ans et +
   Base : 20px minimum sur tout le contenu lisible
   ═══════════════════════════════════════════════════════ */

/* ── Reset fiche container ── */
.fp { margin: 36px 0; font-family: 'Source Sans 3', sans-serif; font-size: 20px; }

/* ── Hero card ── */
.fp-hero {
  position: relative;
  background: linear-gradient(135deg, rgba(107,143,60,0.12) 0%, rgba(10,15,10,0.6) 60%);
  border: 1px solid rgba(107,143,60,0.22);
  border-radius: 20px;
  padding: 36px 40px;
  margin-bottom: 28px;
  overflow: hidden;
}
.fp-hero::before {
  content: '';
  position: absolute; top: -60px; right: -40px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(107,143,60,0.18) 0%, transparent 70%);
  filter: blur(40px); pointer-events: none;
}
.fp-hero-inner { position: relative; z-index: 1; display: flex; align-items: flex-start; gap: 28px; }
.fp-hero-svg { flex-shrink: 0; opacity: 0.85; }
.fp-hero-text { flex: 1; }
.fp-tag {
  display: inline-block;
  font-size: 14px; letter-spacing: 2.5px; text-transform: uppercase;
  font-weight: 700; color: #6B8F3C;
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 12px; border: 1px solid rgba(107,143,60,0.3);
  padding: 5px 14px; border-radius: 100px;
  background: rgba(107,143,60,0.08);
}
.fp-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(30px, 4vw, 44px); font-weight: 700;
  color: #F5F8F0; line-height: 1.1; margin-bottom: 8px;
}
.fp-latin {
  font-size: 18px; font-style: italic; color: #98A888;
  margin-bottom: 16px; letter-spacing: 0.3px;
}
.fp-meta {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px;
}
.fp-pill {
  font-size: 16px; color: #98A888;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px; padding: 5px 14px;
  white-space: nowrap;
}
.fp-intro {
  font-size: 20px; color: #B8C8A8; line-height: 1.8;
}

/* ── Section title ── */
.fp-section { margin-bottom: 28px; }
.fp-section-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; letter-spacing: 2.5px; text-transform: uppercase;
  font-weight: 700; color: #6B8F3C;
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 18px; padding-bottom: 10px;
  border-bottom: 1px solid rgba(107,143,60,0.18);
}
.fp-section-title::before {
  content: ''; width: 3px; height: 18px;
  background: linear-gradient(to bottom, #6B8F3C, #4a6929);
  border-radius: 2px; flex-shrink: 0;
}

/* ── Composition bar chart ── */
.fp-compo { display: flex; flex-direction: column; gap: 14px; }
.fp-compo-row { display: flex; align-items: center; gap: 14px; }
.fp-compo-name { font-size: 19px; color: #E8EDE0; min-width: 220px; flex-shrink: 0; }
.fp-compo-bar-wrap { flex: 1; height: 8px; background: rgba(255,255,255,0.06); border-radius: 4px; overflow: hidden; }
.fp-compo-bar { height: 100%; border-radius: 4px; background: linear-gradient(90deg, #6B8F3C, #9AC45A); }
.fp-compo-pct { font-size: 16px; color: #6B8F3C; font-family: 'JetBrains Mono', monospace; min-width: 52px; text-align: right; font-weight: 700; }

/* ── Properties grid ── */
.fp-props { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.fp-prop {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px; padding: 22px 22px;
  transition: background .15s, border-color .15s;
}
.fp-prop:hover { background: rgba(107,143,60,0.07); border-color: rgba(107,143,60,0.2); }
.fp-prop-icon { font-size: 32px; margin-bottom: 12px; display: block; }
.fp-prop-label { font-size: 21px; color: #E8EDE0; font-weight: 600; margin-bottom: 8px; }
.fp-prop-detail { font-size: 19px; color: #6B8088; line-height: 1.6; }

/* ── Protocol steps ── */
.fp-steps { display: flex; flex-direction: column; gap: 0; }
.fp-step {
  display: flex; gap: 20px;
  padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,0.04);
}
.fp-step:last-child { border-bottom: none; }
.fp-step-num {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: rgba(107,143,60,0.15);
  border: 1px solid rgba(107,143,60,0.3);
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px; font-weight: 700; color: #6B8F3C;
}
.fp-step-body { flex: 1; }
.fp-step-label {
  font-size: 20px; font-weight: 700; color: #E8EDE0;
  margin-bottom: 8px;
}
.fp-step-text { font-size: 20px; color: #98A888; line-height: 1.75; }
.fp-step-note {
  margin-top: 12px; font-size: 17px; color: #6B8088;
  padding: 10px 14px; background: rgba(255,255,255,0.03);
  border-radius: 6px; border-left: 2px solid rgba(107,143,60,0.3);
}

/* ── Dosage / recipe box ── */
.fp-recipe {
  background: rgba(16,26,16,0.8);
  border: 1px solid rgba(107,143,60,0.2);
  border-radius: 14px; padding: 24px 28px;
  margin: 16px 0;
}
.fp-recipe-title { font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; color: #6B8F3C; font-family: 'JetBrains Mono', monospace; margin-bottom: 16px; }
.fp-recipe-row { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 20px; }
.fp-recipe-row:last-child { border-bottom: none; }
.fp-recipe-ing { color: #E8EDE0; }
.fp-recipe-qty { color: #6B8F3C; font-family: 'JetBrains Mono', monospace; font-size: 19px; font-weight: 700; }

/* ── Synergy box ── */
.fp-synergy {
  background: linear-gradient(135deg, rgba(201,169,110,0.07), rgba(201,169,110,0.03));
  border: 1px solid rgba(201,169,110,0.2);
  border-radius: 14px; padding: 24px 28px; margin-bottom: 28px;
}
.fp-synergy-title { font-size: 14px; letter-spacing: 2px; text-transform: uppercase; color: #C9A96E; font-family: 'JetBrains Mono', monospace; margin-bottom: 16px; }
.fp-synergy-text { font-size: 20px; color: #B8A880; line-height: 1.75; }
.fp-synergy-oils { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.fp-synergy-oil {
  font-size: 17px; color: #C9A96E;
  background: rgba(201,169,110,0.08);
  border: 1px solid rgba(201,169,110,0.18);
  border-radius: 100px; padding: 7px 18px;
}

/* ── Precautions ── */
.fp-precautions {
  background: rgba(176,125,86,0.07);
  border: 1px solid rgba(176,125,86,0.22);
  border-radius: 14px; padding: 24px 28px; margin-bottom: 28px;
}
.fp-precautions-title { font-size: 14px; letter-spacing: 2px; text-transform: uppercase; color: #B07D56; font-family: 'JetBrains Mono', monospace; margin-bottom: 18px; }
.fp-prec-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(176,125,86,0.08); font-size: 19px; color: #98A888; line-height: 1.7; }
.fp-prec-item:last-child { border-bottom: none; }
.fp-prec-icon { color: #B07D56; flex-shrink: 0; margin-top: 3px; font-size: 18px; }

/* ── Sources / note scientifique ── */
.fp-science {
  background: rgba(107,143,60,0.05);
  border: 1px solid rgba(107,143,60,0.12);
  border-radius: 12px; padding: 20px 26px; margin-bottom: 28px;
}
.fp-science-title { font-size: 14px; letter-spacing: 2px; text-transform: uppercase; color: #6B8F3C; font-family: 'JetBrains Mono', monospace; margin-bottom: 12px; }
.fp-science-text { font-size: 19px; color: #6B8088; line-height: 1.8; }

/* ── Responsive ── */
@media(max-width:600px){
  .fp-hero-inner { flex-direction: column; gap: 16px; }
  .fp-hero { padding: 24px 20px; }
  .fp-props { grid-template-columns: 1fr; }
  .fp-compo-name { min-width: 140px; font-size: 16px; }
  .fp-recipe { padding: 18px; }
  .fp-step-label { font-size: 18px; }
  .fp-step-text { font-size: 18px; }
  .fp-recipe-row { font-size: 18px; }
  .fp-prec-item { font-size: 17px; }
}

/* ═══════════════════════════════════════════════════════
   V2 — Nouvelles classes pour les fiches simplifiées
   (sans fp-hero-inner, avec fp-bar-*, fp-prop-card, etc.)
   ═══════════════════════════════════════════════════════ */

/* ── Hero V2 ── */
.fp-hero-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(26px, 3.5vw, 38px); font-weight: 700;
  color: #F5F8F0; line-height: 1.1; margin-bottom: 6px;
}
.fp-hero-latin { font-size: 17px; font-style: italic; color: #98A888; margin-bottom: 8px; letter-spacing: 0.3px; }
.fp-hero-family { font-size: 15px; color: #5A6A50; margin-bottom: 14px; }
.fp-hero-tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* ── Bar chart V2 (fp-bar-*) ── */
.fp-bar-list { display: flex; flex-direction: column; gap: 12px; }
.fp-bar-item { display: flex; align-items: center; gap: 14px; }
.fp-bar-label { font-size: 19px; color: #E8EDE0; min-width: 190px; flex-shrink: 0; }
.fp-bar-track { flex: 1; height: 8px; background: rgba(255,255,255,0.06); border-radius: 4px; overflow: hidden; }
.fp-bar-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, #6B8F3C, #9AC45A); }
.fp-bar-pct { font-size: 16px; color: #6B8F3C; font-family: 'JetBrains Mono', monospace; min-width: 52px; text-align: right; font-weight: 700; }

/* ── Properties grid V2 ── */
.fp-props-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(195px, 1fr)); gap: 10px; }
.fp-prop-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px; padding: 16px 18px;
  display: flex; align-items: center; gap: 10px;
  font-size: 18px; color: #E8EDE0; font-weight: 600;
  transition: background .15s, border-color .15s;
}
.fp-prop-card:hover { background: rgba(107,143,60,0.07); border-color: rgba(107,143,60,0.22); }
.fp-prop-card .fp-prop-icon { font-size: 22px; flex-shrink: 0; }

/* ── Recipe items V2 ── */
.fp-recipe-items { display: flex; flex-direction: column; gap: 0; }
.fp-recipe-item { display: flex; justify-content: space-between; align-items: baseline; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 20px; }
.fp-recipe-item:last-child { border-bottom: none; }
.fp-recipe-he { color: #E8EDE0; }
.fp-recipe-item .fp-recipe-qty { color: #6B8F3C; font-family: 'JetBrains Mono', monospace; font-size: 18px; font-weight: 700; }
.fp-recipe-hv { border-top: 1px solid rgba(107,143,60,0.2); padding-top: 14px !important; margin-top: 4px; }

/* ── Synergy chips V2 ── */
.fp-synergy-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.fp-synergy-item {
  font-size: 17px; color: #C9A96E;
  background: rgba(201,169,110,0.08);
  border: 1px solid rgba(201,169,110,0.18);
  border-radius: 100px; padding: 6px 16px;
  white-space: nowrap;
}

/* ── Precautions list V2 ── */
.fp-precaution-list { list-style: none; display: flex; flex-direction: column; gap: 0; }
.fp-precaution-item {
  font-size: 19px; color: #98A888; line-height: 1.7;
  padding: 12px 0; border-bottom: 1px solid rgba(176,125,86,0.08);
}
.fp-precaution-item:last-child { border-bottom: none; }
.fp-precaution-item::before { content: '⚠️ '; }
.fp-precaution-item.fp-danger { color: #E07070; }
.fp-precaution-item.fp-danger::before { content: '🚫 '; }

/* ── Step text V2 (without fp-step-body / fp-step-label) ── */
.fp-step .fp-step-text { font-size: 20px; color: #98A888; line-height: 1.75; }

/* ── Responsive V2 ── */
@media(max-width:600px){
  .fp-bar-label { min-width: 140px; font-size: 16px; }
  .fp-props-grid { grid-template-columns: 1fr 1fr; }
  .fp-recipe-item { font-size: 17px; }
  .fp-precaution-item { font-size: 17px; }
  .fp-hero-name { font-size: 24px; }
}

/* ═══════════════════════════════════════════════════════
   V3 — Classes manquantes (pages intermédiaires / System 3)
   Thumb vidéo, titres de section, synergy-card, etc.
   ═══════════════════════════════════════════════════════ */

/* ── Video thumbnail (System 3 : .video-wrap avec onclick) ── */
/* Override du fond video-wrap quand botanical est présent */
.video-wrap:has(.thumb-botanical) {
  background: #050A05 !important;
  box-shadow: 0 16px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(107,143,60,0.15) !important;
  border-radius: 20px !important;
}
/* Botanical SVG : centré, haute résolution */
.thumb-botanical {
  position: absolute;
  left: 50%; top: 48%;
  transform: translate(-50%, -50%);
  height: 88%; width: auto;
  opacity: 0.68;
  pointer-events: none;
  z-index: 1;
  filter: drop-shadow(0 8px 30px rgba(107,143,60,0.28));
}
/* Overlay : fond semi-transparent + glow + fade bas */
.thumb-overlay {
  position: absolute;
  inset: 0; z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(6,14,6,0.52) 0%, rgba(8,18,8,0.48) 60%, rgba(5,10,5,0.52) 100%);
  transition: background .2s;
}
/* Glow radial au centre (comme .at-visual::before) */
.thumb-overlay::before {
  content: "";
  position: absolute;
  top: -25%; left: 50%; transform: translateX(-50%);
  width: 65%; height: 90%;
  background: radial-gradient(ellipse, rgba(107,143,60,0.17) 0%, transparent 65%);
  filter: blur(52px);
  pointer-events: none; z-index: 0;
}
/* Fade bas pour lisibilité du label */
.thumb-overlay::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 38%;
  background: linear-gradient(to top, rgba(5,10,5,0.72) 0%, transparent 100%);
  pointer-events: none; z-index: 0;
}
.thumb-overlay:hover { background: rgba(6,14,6,0.38); }
/* Bouton play : ring vert + triangle CSS (masque le caractère ▶) */
.thumb-play {
  position: relative; z-index: 5;
  width: 80px; height: 80px;
  background: rgba(5,10,5,0.55);
  border: 1.5px solid rgba(107,143,60,0.7);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0; color: transparent; /* cache le ▶ texte */
  box-shadow: 0 0 0 8px rgba(107,143,60,0.12), 0 0 28px rgba(107,143,60,0.28);
  transition: transform .18s, background .15s, box-shadow .18s;
}
.thumb-play::after {
  content: "";
  width: 0; height: 0;
  border-style: solid;
  border-width: 13px 0 13px 22px;
  border-color: transparent transparent transparent #9AC45A;
  margin-left: 5px;
}
.thumb-overlay:hover .thumb-play {
  transform: scale(1.1);
  background: rgba(107,143,60,0.2);
  box-shadow: 0 0 0 12px rgba(107,143,60,0.1), 0 0 44px rgba(107,143,60,0.5);
}
/* Label : typographie soignée */
.thumb-label {
  position: relative; z-index: 5;
  font-size: 14px;
  color: rgba(232,237,224,0.82);
  font-family: 'Source Sans 3', sans-serif;
  letter-spacing: 0.8px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.9);
  margin-top: 4px;
}

/* ── Composition section V3 ── */
.fp-compo-title {
  font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase;
  color: #6B8F3C; font-family: 'JetBrains Mono', monospace;
  margin-bottom: 14px;
}
/* fp-bar-row = alias de fp-bar-item (même mise en page) */
.fp-bar-row { display: flex; align-items: center; gap: 14px; }

/* ── Properties section V3 ── */
.fp-props-title {
  font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase;
  color: #6B8F3C; font-family: 'JetBrains Mono', monospace;
  margin-bottom: 12px;
  grid-column: 1 / -1;
}
/* .fp-props-grid doit couvrir toute la largeur de la grille parente .fp-props */
.fp-props > .fp-props-grid { grid-column: 1 / -1; }
/* Cartes V3 : icon + name sur une ligne, note en dessous (flex-wrap) */
.fp-props-grid .fp-prop-card { flex-wrap: wrap; }
.fp-prop-card .fp-prop-name {
  flex: 1; min-width: 0; align-self: center;
  font-size: 17px; color: #E8EDE0; font-weight: 600; line-height: 1.3;
}
.fp-prop-card .fp-prop-note {
  width: 100%; padding-left: 32px;
  font-size: 14px; color: #6B8088; line-height: 1.5; margin-top: 2px;
}

/* ── Protocol steps V3 ── */
.fp-steps-title {
  font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase;
  color: #6B8F3C; font-family: 'JetBrains Mono', monospace;
  margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 1px solid rgba(107,143,60,0.18);
}

/* ── Recipe V3 ── */
.fp-recipe-note {
  font-size: 17px; color: #6B8088; line-height: 1.7;
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* ── Synergy grid V3 ── */
.fp-synergy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px; margin-top: 12px;
}
.fp-synergy-card {
  background: rgba(201,169,110,0.06);
  border: 1px solid rgba(201,169,110,0.14);
  border-radius: 10px; padding: 14px 16px;
}
.fp-synergy-he {
  font-size: 17px; font-weight: 700; color: #C9A96E;
  margin-bottom: 5px;
}
.fp-synergy-why { font-size: 15px; color: #98A888; line-height: 1.5; }

/* ── Precautions V3 ── */
/* fp-precaution-danger = variant rouge */
.fp-precaution-item.fp-precaution-danger { color: #E07070; }
/* Pages V3 : icône explicite dans .fp-precautions (pas .fp-precaution-list)
   → layout flex + suppression du ::before pseudo-élément */
.fp-precautions .fp-precaution-item { display: flex; align-items: flex-start; gap: 8px; }
.fp-precautions .fp-precaution-item::before { content: none; }
.fp-precaution-icon { font-size: 18px; flex-shrink: 0; margin-top: 2px; }

/* ── Responsive V3 ── */
@media(max-width:600px){
  .fp-synergy-grid { grid-template-columns: 1fr; }
  .fp-synergy-he { font-size: 16px; }
  .thumb-play { width: 60px; height: 60px; font-size: 22px; }
  .thumb-label { font-size: 13px; }
}
