/* ================================================================
   QUIDEOS — INDICE DE VOLATILITÉ
   Chargé uniquement sur les pages utilisant le template
   "Indice de Volatilité". Toute la mise en page est scopée sous `.iv`
   pour ne pas entrer en conflit avec Elementor / Hello Elementor.
   ================================================================ */

.iv {
  /* Brand — live Elementor kit */
  --iv-navy:        #13213C;
  --iv-navy-ink:    #0B1528;
  --iv-navy-soft:   #1E2D4D;
  --iv-green:       #19AF6B;
  --iv-green-dark:  #0F623D;
  --iv-green-pale:  #AEE47B;
  --iv-green-mint:  #E6F4E0;
  --iv-cream:       #FAC885;
  --iv-cream-soft:  #FFF1D9;
  --iv-blue-pale:   #DCEAF7;
  --iv-orange:      #FA8D53;
  --iv-white:       #FFFFFF;

  /* Volatility semantics */
  --iv-vol-high:    #D94F3D;
  --iv-vol-mid:     #FA8D53;
  --iv-vol-low:     #19AF6B;

  /* Surface */
  --iv-paper:       #FFFFFF;
  --iv-paper-ink:   #F7F8FA;
  --iv-rule:        rgba(15, 98, 61, 0.22);
  --iv-rule-navy:   rgba(19, 33, 60, 0.14);

  /* Type */
  --iv-font-display: "Poppins", "Helvetica Neue", sans-serif;
  --iv-font-body:    "Inter", "Helvetica Neue", sans-serif;
  --iv-font-serif:   "Fraunces", "Times New Roman", serif;

  /* Container */
  --iv-container: 64.739vw;

  display: block;
  background: var(--iv-paper);
  color: var(--iv-navy-ink);
  font-family: var(--iv-font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  position: relative;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (max-width: 1440px) { .iv { --iv-container: 70vw; } }
@media (max-width: 1025px) { .iv { --iv-container: 82vw; } }
@media (max-width: 767px)  { .iv { --iv-container: 90vw; } }

.iv *, .iv *::before, .iv *::after { box-sizing: border-box; }

.iv > * { position: relative; z-index: 2; }

.iv-container {
  width: var(--iv-container);
  max-width: 1320px;
  margin: 0 auto;
}

/* ---- Typography ---- */
.iv-eyebrow {
  font-family: var(--iv-font-body);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.iv-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}
/* Variante « long » pour textes longs (ex. mention réglementaire ACPR/AMF) */
.iv-eyebrow--long {
  letter-spacing: 0.08em;
  text-transform: none;
  font-size: 0.82rem;
  font-weight: 600;
}
:where(.iv) :where(h1, h2, h3, h4, h5) {
  font-family: var(--iv-font-display);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.015em;
  color: var(--iv-navy);
}
.iv-h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1;
  letter-spacing: -0.025em;
}
.iv-h2__num {
  font-family: var(--iv-font-serif);
  font-style: italic;
  font-weight: 300;
  color: var(--iv-green);
  margin-right: 0.6rem;
}
.iv-accent {
  color: var(--iv-green-pale);
  font-style: italic;
  font-family: var(--iv-font-serif);
  font-weight: 300;
  letter-spacing: -0.02em;
}

/* ==============================================================
   HERO
   ============================================================== */
.iv-hero {
  position: relative;
  background: var(--iv-navy);
  color: var(--iv-white);
  overflow: hidden;
  padding: 5.5rem 0 6.5rem;
}
.iv-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 80% 60% at 85% -10%, rgba(25, 175, 107, 0.22), transparent 60%),
    radial-gradient(ellipse 50% 50% at 0% 100%, rgba(250, 200, 133, 0.12), transparent 65%);
  pointer-events: none;
}
.iv-hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(174, 228, 123, 0.45) 30%, rgba(174, 228, 123, 0.45) 70%, transparent);
}
.iv-hero .iv-container { position: relative; z-index: 2; }

.iv-hero__masthead {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
  padding-bottom: 1.15rem;
  margin-bottom: 3.5rem;
}
.iv-hero__masthead-right { display: flex; gap: 2rem; }
.iv-hero__masthead strong {
  color: var(--iv-green-pale);
  font-weight: 700;
  letter-spacing: 0.14em;
}

.iv-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 5rem;
  align-items: start;
}
@media (max-width: 900px) { .iv-hero__grid { grid-template-columns: 1fr; gap: 3rem; } }

.iv-hero__lead .iv-eyebrow { color: var(--iv-green-pale); margin-bottom: 1.5rem; }
.iv-hero__title {
  color: var(--iv-white);
  font-size: clamp(2.5rem, 5.5vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}
.iv-badge-new {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.75rem;
  background: var(--iv-green-pale);
  color: var(--iv-green-dark);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-left: 0.5rem;
  vertical-align: middle;
  position: relative;
  top: -0.35em;
  font-family: var(--iv-font-body);
}
.iv-pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--iv-green);
  box-shadow: 0 0 0 0 rgba(25,175,107,0.6);
  animation: iv-pulse 2s infinite;
}
@keyframes iv-pulse {
  0% { box-shadow: 0 0 0 0 rgba(25,175,107,0.6); }
  70% { box-shadow: 0 0 0 8px rgba(25,175,107,0); }
  100% { box-shadow: 0 0 0 0 rgba(25,175,107,0); }
}
.iv-hero__lede {
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.78);
  max-width: 34rem;
  margin-bottom: 2.5rem;
}
.iv-hero__meta {
  display: flex;
  gap: 2.5rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.25rem;
  margin: 0;
}
.iv-hero__meta dt { color: rgba(255,255,255,0.4); font-weight: 500; margin-bottom: 0.35rem; }
.iv-hero__meta dd {
  color: var(--iv-white);
  margin: 0;
  font-size: 0.92rem;
  text-transform: none;
  letter-spacing: -0.005em;
  font-weight: 600;
  font-family: var(--iv-font-display);
}

/* Score card */
.iv-score-card {
  position: relative;
  background: linear-gradient(155deg, rgba(25,175,107,0.08), rgba(255,255,255,0.02));
  border: 1px solid rgba(174, 228, 123, 0.2);
  border-radius: 2px;
  padding: 2.25rem 2.5rem 2.5rem;
}
.iv-score-card__header {
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 1px dashed rgba(255,255,255,0.12);
  padding-bottom: 0.85rem;
  margin-bottom: 1.5rem;
}
.iv-score-card__label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.55);
  font-weight: 600;
}
.iv-score-number {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.iv-score-value {
  font-family: var(--iv-font-display);
  font-weight: 700;
  font-size: clamp(5.5rem, 10vw, 9rem);
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: var(--iv-white);
  font-feature-settings: "tnum" 1;
}
.iv-score-denom {
  font-family: var(--iv-font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: 1.5rem;
  color: var(--iv-green-pale);
  margin-bottom: 1.25rem;
}
.iv-score-variation {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  background: var(--iv-vol-mid);
  color: var(--iv-navy-ink);
  font-weight: 700;
  font-size: 0.82rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.iv-score-variation svg { width: 12px; height: 12px; }

/* Gauge */
.iv-gauge { margin-top: 0.25rem; }
.iv-gauge__track {
  position: relative;
  height: 10px;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--iv-vol-low) 0%, var(--iv-vol-mid) 55%, var(--iv-vol-high) 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}
.iv-gauge__marker {
  position: absolute;
  top: 50%;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--iv-white);
  border: 3px solid var(--iv-navy);
  transform: translate(-50%, -50%);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3), 0 0 0 4px rgba(255,255,255,0.1);
}
.iv-gauge__marker::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 2px; height: 10px;
  background: var(--iv-white);
}
.iv-gauge__scale {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  font-family: var(--iv-font-display);
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.1em;
}
.iv-gauge__scale span:nth-child(3) { color: var(--iv-white); font-weight: 700; }

.iv-positioning {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px dashed rgba(255,255,255,0.12);
  font-family: var(--iv-font-serif);
  font-style: italic;
  font-weight: 300;
  color: var(--iv-green-pale);
  font-size: 1.05rem;
  line-height: 1.4;
  text-indent: -1.2rem;
  padding-left: 1.2rem;
}
.iv-positioning::before {
  content: "› ";
  font-family: var(--iv-font-display);
  font-style: normal;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--iv-green);
  font-weight: 700;
  margin-right: 0.4rem;
}
.iv-positioning strong {
  font-style: normal;
  color: var(--iv-white);
  font-family: var(--iv-font-display);
  font-weight: 700;
}

/* ==============================================================
   FILIÈRES GRID
   ============================================================== */
.iv-filieres {
  background: var(--iv-paper);
  padding: 6rem 0 5rem;
  position: relative;
}
.iv-filieres::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: repeating-linear-gradient(to bottom, var(--iv-navy) 0 6px, transparent 6px 24px);
  opacity: 0.2;
}
.iv-filieres__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3.5rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--iv-navy);
}
.iv-filieres__header p {
  max-width: 22rem;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(19,33,60,0.7);
  text-align: right;
}
.iv-filieres__header .iv-eyebrow { color: var(--iv-green-dark); margin-bottom: 1rem; }

.iv-filiere-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--iv-rule-navy);
  border-left: 1px solid var(--iv-rule-navy);
}
@media (max-width: 1025px) { .iv-filiere-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .iv-filiere-grid { grid-template-columns: 1fr; } }

.iv-filiere-card {
  position: relative;
  padding: 1.75rem 1.5rem 1.65rem;
  background: var(--iv-paper);
  border-right: 1px solid var(--iv-rule-navy);
  border-bottom: 1px solid var(--iv-rule-navy);
  cursor: pointer;
  transition: background-color 0.5s ease, color 0.5s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 230px;
}
.iv-filiere-card:hover { background: var(--iv-green); color: var(--iv-white); }
.iv-filiere-card:hover .iv-filiere-card__name,
.iv-filiere-card:hover .iv-filiere-card__score,
.iv-filiere-card:hover .iv-filiere-card__percentile { color: var(--iv-white); }
.iv-filiere-card:hover .iv-filiere-card__bar { background: rgba(255,255,255,0.2); }
.iv-filiere-card:hover .iv-filiere-card__bar-fill { background: var(--iv-white); }
.iv-filiere-card:hover .iv-filiere-card__rank { color: rgba(255,255,255,0.75); border-color: rgba(255,255,255,0.3); }
.iv-filiere-card:hover .iv-filiere-card__emoji { transform: scale(1.08) rotate(-4deg); }

.iv-filiere-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.iv-filiere-card__emoji {
  font-size: 2.1rem;
  line-height: 1;
  transition: transform 0.5s cubic-bezier(.4,.8,.3,1.3);
  transform-origin: center bottom;
}
.iv-filiere-card__rank {
  font-family: var(--iv-font-display);
  font-weight: 600;
  font-size: 0.7rem;
  color: var(--iv-green-dark);
  letter-spacing: 0.1em;
  border: 1px solid var(--iv-rule);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  transition: color 0.5s ease, border-color 0.5s ease;
}
.iv-filiere-card__name {
  font-family: var(--iv-font-display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.15;
  color: var(--iv-navy);
  margin: 0;
  letter-spacing: -0.01em;
  transition: color 0.5s ease;
}
.iv-filiere-card__score-row {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  margin-top: auto;
}
.iv-filiere-card__score {
  font-family: var(--iv-font-display);
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--iv-navy);
  font-feature-settings: "tnum" 1;
  transition: color 0.5s ease;
}
.iv-filiere-card__score.is-high  { color: var(--iv-vol-high); }
.iv-filiere-card__score.is-mid   { color: var(--iv-vol-mid); }
.iv-filiere-card__score.is-low   { color: var(--iv-vol-low); }

.iv-filiere-card__variation {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--iv-font-display);
  letter-spacing: 0.02em;
}
.iv-filiere-card__variation.is-up      { background: #FBDED5; color: #9E2D1D; }
.iv-filiere-card__variation.is-up-mid  { background: var(--iv-cream-soft); color: #8C4A17; }
.iv-filiere-card__variation.is-down    { background: var(--iv-green-mint); color: var(--iv-green-dark); }
.iv-filiere-card__variation.is-flat    { background: var(--iv-blue-pale); color: var(--iv-navy); }
.iv-filiere-card:hover .iv-filiere-card__variation {
  background: rgba(255,255,255,0.18) !important;
  color: var(--iv-white) !important;
}

.iv-filiere-card__bar {
  height: 4px;
  background: var(--iv-rule-navy);
  border-radius: 2px;
  overflow: hidden;
  transition: background 0.5s ease;
}
.iv-filiere-card__bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: background 0.5s ease;
}
.iv-filiere-card__bar-fill.is-high { background: var(--iv-vol-high); }
.iv-filiere-card__bar-fill.is-mid  { background: var(--iv-vol-mid); }
.iv-filiere-card__bar-fill.is-low  { background: var(--iv-vol-low); }

.iv-filiere-card__percentile {
  font-size: 0.78rem;
  color: rgba(19,33,60,0.65);
  letter-spacing: -0.005em;
  font-weight: 500;
  margin: 0;
  transition: color 0.5s ease;
}
.iv-filiere-card__percentile strong {
  font-weight: 700;
  color: var(--iv-navy);
  font-family: var(--iv-font-display);
  transition: color 0.5s ease;
}
.iv-filiere-card:hover .iv-filiere-card__percentile strong { color: var(--iv-white); }

.iv-filiere-card__arrow {
  position: absolute;
  bottom: 1.25rem;
  right: 1.5rem;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  color: var(--iv-white);
}
.iv-filiere-card:hover .iv-filiere-card__arrow { opacity: 1; transform: translateX(0); }

/* ==============================================================
   DETAIL PANEL
   ============================================================== */
.iv-detail {
  background: var(--iv-white);
  padding: 6rem 0;
  position: relative;
}
.iv-detail::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--iv-navy);
}
.iv-detail__anchor {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.5rem;
}
.iv-detail__anchor .iv-eyebrow { color: var(--iv-green-dark); }
.iv-detail__pagination {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-family: var(--iv-font-display);
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--iv-navy);
}
.iv-detail__pagination button,
.iv-detail__pagination-btn {
  width: 32px; height: 32px;
  border: 1px solid var(--iv-rule-navy);
  background: var(--iv-white);
  border-radius: 50%;
  cursor: pointer;
  display: grid; place-items: center;
  color: var(--iv-navy);
  transition: background 0.25s ease, color 0.25s ease;
  padding: 0;
  text-decoration: none;
}
.iv-detail__pagination button:hover,
.iv-detail__pagination-btn:hover { background: var(--iv-navy); color: var(--iv-white); }

.iv-detail__header {
  background: var(--iv-navy);
  color: var(--iv-white);
  padding: 2.5rem 2.5rem 2.25rem;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 2.5rem;
  align-items: end;
  position: relative;
  overflow: hidden;
}
.iv-detail__header::before {
  content: attr(data-emoji);
  position: absolute;
  right: -1rem;
  top: -1.5rem;
  font-size: 9rem;
  opacity: 0.08;
  filter: grayscale(0.3);
  pointer-events: none;
  transform: rotate(-8deg);
}
.iv-detail__filiere-label {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--iv-green-pale);
  font-weight: 700;
  margin-bottom: 0.85rem;
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--iv-font-body);
}
.iv-detail__title {
  color: var(--iv-white);
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0;
}
.iv-detail__big-score {
  text-align: right;
  font-family: var(--iv-font-display);
  font-weight: 700;
  z-index: 1;
}
.iv-detail__big-num {
  font-size: 4.5rem;
  line-height: 0.85;
  letter-spacing: -0.04em;
  font-feature-settings: "tnum" 1;
}
.iv-detail__big-num.is-high { color: var(--iv-vol-high); }
.iv-detail__big-num.is-mid  { color: var(--iv-vol-mid); }
.iv-detail__big-num.is-low  { color: var(--iv-vol-low); }
.iv-detail__big-unit {
  font-family: var(--iv-font-serif);
  font-style: italic;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  font-size: 1rem;
}
.iv-detail__source {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  text-align: right;
  z-index: 1;
}
.iv-detail__source strong {
  color: var(--iv-white);
  font-weight: 500;
  display: block;
  margin-top: 0.2rem;
  font-family: var(--iv-font-body);
}

.iv-detail__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  background: var(--iv-paper);
  border: 1px solid var(--iv-rule-navy);
  border-top: none;
}
@media (max-width: 900px) { .iv-detail__grid { grid-template-columns: 1fr; } }

.iv-detail__main { padding: 2.25rem 2.5rem 2.5rem; border-right: 1px solid var(--iv-rule-navy); }
.iv-detail__side { padding: 2.25rem 2.25rem 2.5rem; background: var(--iv-paper-ink); }
@media (max-width: 900px) { .iv-detail__main { border-right: none; border-bottom: 1px solid var(--iv-rule-navy); } }

/* Chart */
.iv-chart-block h4 {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--iv-green-dark);
  margin-bottom: 1rem;
  font-family: var(--iv-font-display);
  font-weight: 700;
  display: flex; justify-content: space-between; align-items: center;
}
.iv-chart-legend {
  font-family: var(--iv-font-body);
  font-weight: 500;
  font-size: 0.7rem;
  text-transform: none;
  letter-spacing: 0;
  color: rgba(19,33,60,0.55);
}
.iv-chart-legend i {
  display: inline-block;
  width: 10px; height: 2px;
  background: var(--iv-green-dark);
  margin-right: 0.35rem;
  vertical-align: middle;
}
.iv-chart { width: 100%; height: 200px; margin-bottom: 0.5rem; overflow: visible; }
.iv-chart__xlabels {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: rgba(19,33,60,0.5);
  font-family: var(--iv-font-display);
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 1.75rem;
}

/* Produits */
.iv-products { margin-top: 2rem; }
.iv-products h4 {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--iv-green-dark);
  margin: 0 0 1rem;
  font-family: var(--iv-font-display);
  font-weight: 700;
}
.iv-products__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.iv-products__table thead th {
  text-align: left;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(19,33,60,0.55);
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--iv-rule-navy);
}
.iv-products__table tbody td {
  padding: 1rem 0.75rem;
  border-bottom: 1px dashed var(--iv-rule-navy);
  vertical-align: middle;
}
.iv-products__table tbody tr:last-child td { border-bottom: none; }
.iv-products__label {
  font-weight: 700;
  font-family: var(--iv-font-display);
  color: var(--iv-navy);
  font-size: 0.95rem;
  letter-spacing: -0.005em;
}
.iv-products__label small {
  display: block;
  font-family: var(--iv-font-body);
  font-weight: 400;
  color: rgba(19,33,60,0.55);
  font-size: 0.72rem;
  margin-top: 0.15rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.iv-products__price {
  font-family: var(--iv-font-display);
  font-weight: 700;
  color: var(--iv-navy);
  font-feature-settings: "tnum" 1;
}
.iv-products__variation {
  font-family: var(--iv-font-display);
  font-weight: 700;
  font-feature-settings: "tnum" 1;
}
.iv-products__variation.is-high { color: var(--iv-vol-high); }
.iv-products__variation.is-mid  { color: var(--iv-vol-mid); }
.iv-products__variation.is-low  { color: var(--iv-vol-low); }
.iv-products__score-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 0.3rem 0.55rem;
  color: var(--iv-white);
  font-family: var(--iv-font-display);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 4px;
  font-feature-settings: "tnum" 1;
}
.iv-products__score-pill.is-high { background: var(--iv-vol-high); }
.iv-products__score-pill.is-mid  { background: var(--iv-vol-mid); }
.iv-products__score-pill.is-low  { background: var(--iv-vol-low); }
.iv-hedge-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.85rem;
  background: transparent;
  color: var(--iv-green-dark);
  border: 1px solid var(--iv-green-dark);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.iv-hedge-btn:hover { background: var(--iv-green); color: var(--iv-white); border-color: var(--iv-green); }
.iv-sparkline { height: 28px; width: 72px; display: block; }

/* Sidebar */
.iv-stats-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--iv-rule-navy);
  margin: 0 0 2rem;
  border: 1px solid var(--iv-rule-navy);
}
.iv-stat {
  background: var(--iv-paper-ink);
  padding: 1.1rem 1rem;
}
.iv-stat dt {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(19,33,60,0.55);
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.iv-stat dd {
  margin: 0;
  font-family: var(--iv-font-display);
  font-weight: 700;
  color: var(--iv-navy);
  font-size: 1.35rem;
  letter-spacing: -0.015em;
  font-feature-settings: "tnum" 1;
}
.iv-stat dd small {
  font-weight: 500;
  font-family: var(--iv-font-body);
  font-size: 0.75rem;
  color: rgba(19,33,60,0.6);
  margin-left: 0.2rem;
}
.iv-stat--feature {
  grid-column: 1 / -1;
  background: var(--iv-navy);
}
.iv-stat--feature dt { color: rgba(255,255,255,0.55); }
.iv-stat--feature dd { color: var(--iv-white); font-size: 1.6rem; }
.iv-stat--feature dd small { color: var(--iv-green-pale); }

.iv-context {
  border-left: 3px solid var(--iv-green);
  padding: 0 0 0 1.25rem;
  margin-bottom: 2rem;
}
.iv-context h5 {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--iv-green-dark);
  margin: 0 0 0.85rem;
  font-family: var(--iv-font-display);
  font-weight: 700;
}
.iv-context p {
  margin: 0;
  font-family: var(--iv-font-serif);
  font-style: italic;
  font-weight: 300;
  color: var(--iv-navy-ink);
  font-size: 1.02rem;
  line-height: 1.55;
}
.iv-context__author {
  display: block;
  font-family: var(--iv-font-body);
  font-style: normal;
  font-weight: 600;
  font-size: 0.75rem;
  color: rgba(19,33,60,0.55);
  margin-top: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.iv-sidebar-cta {
  background: var(--iv-navy);
  color: var(--iv-white);
  padding: 1.65rem 1.5rem 1.85rem;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.iv-sidebar-cta::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 100px; height: 100px;
  background: radial-gradient(circle at top right, rgba(174,228,123,0.25), transparent 70%);
  pointer-events: none;
}
.iv-sidebar-cta .iv-eyebrow { color: var(--iv-green-pale); margin-bottom: 0.85rem; }
.iv-sidebar-cta p {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--iv-white);
  font-weight: 500;
}
.iv-sidebar-cta p strong { color: var(--iv-green-pale); font-weight: 600; }
.iv-btn-devis {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--iv-green);
  color: var(--iv-white);
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  transition: background 0.25s ease, transform 0.25s ease, gap 0.25s ease;
}
.iv-btn-devis:hover { background: var(--iv-green-pale); color: var(--iv-navy); transform: translateY(-1px); gap: 0.85rem; }
.iv-disclaimer {
  font-size: 0.72rem !important;
  color: rgba(255,255,255,0.5) !important;
  margin-top: 1.2rem !important;
  letter-spacing: 0.04em;
  line-height: 1.45 !important;
  font-weight: 400 !important;
}

/* ==============================================================
   CONVERSION BAND
   ============================================================== */
.iv-conversion {
  background: var(--iv-green);
  color: var(--iv-white);
  padding: 5rem 0 5.5rem;
  position: relative;
  overflow: hidden;
}
.iv-conversion::before,
.iv-conversion::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.iv-conversion::before {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(174,228,123,0.4), transparent 70%);
  top: -180px; left: -100px;
}
.iv-conversion::after {
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(15,98,61,0.4), transparent 70%);
  bottom: -180px; right: -80px;
}
.iv-conversion .iv-container {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 900px) { .iv-conversion .iv-container { grid-template-columns: 1fr; gap: 2.5rem; } }

.iv-conversion .iv-eyebrow { color: var(--iv-green-pale); margin-bottom: 1.25rem; }
.iv-conversion__title {
  color: var(--iv-white);
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0 0 1.25rem;
}
.iv-conversion__lede {
  font-size: 1.05rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.85);
  margin: 0;
  max-width: 28rem;
}
.iv-conversion__actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}
.iv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem 1.75rem;
  border-radius: 6px;
  font-family: var(--iv-font-display);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  min-width: 320px;
  transition: all 0.3s cubic-bezier(.4,.2,.2,1);
  border: 1px solid transparent;
}
.iv-btn--primary { background: var(--iv-navy); color: var(--iv-white); }
.iv-btn--primary:hover { background: var(--iv-white); color: var(--iv-navy); }
.iv-btn--ghost {
  background: transparent;
  color: var(--iv-white);
  border-color: rgba(255,255,255,0.35);
}
.iv-btn--ghost:hover {
  border-color: var(--iv-white);
  background: rgba(255,255,255,0.08);
}
.iv-btn svg { width: 18px; height: 18px; transition: transform 0.3s ease; }
.iv-btn:hover svg { transform: translateX(4px); }

/* ==============================================================
   LEGAL STRIP
   ============================================================== */
.iv-legal {
  background: var(--iv-navy-ink);
  color: rgba(255,255,255,0.55);
  padding: 1.75rem 0;
  font-size: 0.82rem;
}
.iv-legal p {
  margin: 0;
  font-family: var(--iv-font-serif);
  font-style: italic;
  font-weight: 300;
  text-align: center;
  letter-spacing: 0.02em;
}

/* ==============================================================
   ENTRANCE ANIMATIONS
   ============================================================== */
.iv .reveal { opacity: 0; transform: translateY(14px); animation: iv-reveal 0.9s cubic-bezier(.25,.9,.3,1) forwards; }
@keyframes iv-reveal { to { opacity: 1; transform: translateY(0); } }
.iv .d1 { animation-delay: 0.1s; }
.iv .d2 { animation-delay: 0.22s; }
.iv .d3 { animation-delay: 0.34s; }
.iv .d4 { animation-delay: 0.46s; }
.iv .d5 { animation-delay: 0.58s; }

/* ==============================================================
   TEST · MODULE 3 INVERSÉ (header blanc, contenu navy)
   Retirer ce bloc pour revenir à la version d'origine.
   ============================================================== */

/* Section wrapper */
.iv-detail { background: var(--iv-navy); }
.iv-detail::before { background: rgba(255,255,255,0.15); }

/* Anchor header above the module */
.iv-detail__anchor .iv-eyebrow { color: var(--iv-green-pale); }
.iv-detail__anchor .iv-h2 { color: var(--iv-white); }
.iv-detail__pagination { color: var(--iv-white); }
.iv-detail__pagination button,
.iv-detail__pagination-btn {
  background: transparent;
  border-color: rgba(255,255,255,0.3);
  color: var(--iv-white);
}
.iv-detail__pagination button:hover,
.iv-detail__pagination-btn:hover { background: var(--iv-white); color: var(--iv-navy); }

/* Header band — was navy/white, now white/navy */
.iv-detail__header { background: var(--iv-white); color: var(--iv-navy); }
.iv-detail__header::before { filter: grayscale(0.1); opacity: 0.1; }
.iv-detail__filiere-label { color: var(--iv-green-dark); }
.iv-detail__title { color: var(--iv-navy); }
.iv-detail__big-unit { color: rgba(19,33,60,0.55); }
.iv-detail__source { color: rgba(19,33,60,0.55); }
.iv-detail__source strong { color: var(--iv-navy); }

/* Grid — was paper (white), now navy */
.iv-detail__grid {
  background: var(--iv-navy);
  border-color: rgba(255,255,255,0.12);
}
.iv-detail__main { border-right-color: rgba(255,255,255,0.12); }
.iv-detail__side { background: rgba(255,255,255,0.04); }

/* Chart block */
.iv-chart-block h4 { color: var(--iv-green-pale); }
.iv-chart-block h4 .iv-chart-legend { color: rgba(255,255,255,0.6); }
.iv-chart-block h4 .iv-chart-legend i { background: var(--iv-green-pale); }
.iv-chart g[stroke] line { stroke: rgba(255,255,255,0.08) !important; }
.iv-chart polyline { stroke: var(--iv-green-pale) !important; }
.iv-chart g[fill="#0F623D"] circle { fill: var(--iv-green-pale) !important; }
.iv-chart__xlabels { color: rgba(255,255,255,0.5); }

/* Products table */
.iv-products h4 { color: var(--iv-green-pale); }
.iv-products__table thead th {
  color: rgba(255,255,255,0.6);
  border-bottom-color: rgba(255,255,255,0.15);
}
.iv-products__table tbody td { border-bottom-color: rgba(255,255,255,0.08); }
.iv-products__label { color: var(--iv-white); }
.iv-products__label small { color: rgba(255,255,255,0.5); }
.iv-products__price { color: var(--iv-white); }

/* Stats block — all dark tiles now, with subtle variation */
.iv-stats-block {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.12);
}
.iv-stat { background: rgba(255,255,255,0.03); }
.iv-stat dt { color: rgba(255,255,255,0.55); }
.iv-stat dd { color: var(--iv-white); }
.iv-stat dd small { color: rgba(255,255,255,0.55); }
.iv-stat--feature { background: var(--iv-green); }
.iv-stat--feature dt { color: rgba(255,255,255,0.75); }
.iv-stat--feature dd { color: var(--iv-white); }
.iv-stat--feature dd small { color: rgba(255,255,255,0.8); }

/* Context block */
.iv-context h5 { color: var(--iv-green-pale); }
.iv-context p { color: rgba(255,255,255,0.88); }
.iv-context__author { color: rgba(255,255,255,0.5); }

/* Sidebar CTA — already navy, add contrast */
.iv-sidebar-cta { background: var(--iv-navy-ink); border: 1px solid rgba(255,255,255,0.15); }

/* === Dynamic carousel — only the active panel is visible === */
.iv-detail__panel { display: none; }
.iv-detail__panel.is-active { display: block; }

/* === Products table : 5 rows max, scroll au-delà, thead sticky === */
.iv-products__scroll {
  max-height: 340px;        /* ~5 lignes + en-tête */
  overflow-y: auto;
  border-radius: 2px;
  /* scrollbar discrète sur navy */
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.2) transparent;
}
.iv-products__scroll::-webkit-scrollbar { width: 8px; }
.iv-products__scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 4px; }
.iv-products__scroll::-webkit-scrollbar-track { background: transparent; }
.iv-products__scroll .iv-products__table thead th {
  position: sticky;
  top: 0;
  background: var(--iv-navy);
  z-index: 2;
}
