.rff .graphe-s,
.rff .barres-s {
  --n1: var(--nz-turquoise-fonce);
  --n2: var(--nz-bleu-clair);
  --n3: var(--nz-violet-clair);
  --n4: var(--nz-rose-fond);
}

.rff .graphe-s { background: var(--blanc); padding: var(--nz-bande) 0; }

.rff .graphe { margin: clamp(26px, 3.2vw, 44px) 0 0; }
.rff .graphe svg { display: block; width: 100%; height: auto; }

.rff .graphe figcaption {
  margin: 14px 0 0;
  font-size: clamp(13.5px, 1.1vw, 15px);
  line-height: 1.5;
  color: var(--gris-texte);
}

.rff .g-trait { stroke: rgba(21, 16, 47, .12); stroke-width: 1; }
.rff .g-base { stroke: rgba(21, 16, 47, .4); stroke-width: 1.5; }

.rff .g-masque rect { fill: var(--nz-blanc); }

.rff .n-a { stop-color: var(--n1); }
.rff .n-b { stop-color: var(--n2); }
.rff .n-c { stop-color: var(--n3); }
.rff .n-d { stop-color: var(--n4); }

.rff .n-tache-coeur { stop-color: var(--nz-encre); stop-opacity: .5; }
.rff .n-tache-bord { stop-color: var(--nz-encre); stop-opacity: 0; }

.rff .n-voile-haut { stop-color: var(--nz-blanc); stop-opacity: .17; }
.rff .n-voile-bas { stop-color: var(--nz-blanc); stop-opacity: 0; }

.rff .g-zone {
  fill: var(--nz-blanc);
  fill-opacity: 0;
  stroke: var(--nuit);
  stroke-width: 0;
  transition: fill-opacity .15s, stroke-width .15s;
}
.rff .g-zone:hover { stroke-width: 2.5; }

.rff .g-chapeau { fill: var(--nuit); }

.rff .g-echelle,
.rff .g-annee,
.rff .g-unite {
  fill: var(--gris-texte);
  font-family: inherit;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}
.rff .g-unite { font-weight: 700; }

.rff .detail-chiffre { margin: clamp(22px, 2.6vw, 34px) 0 0; }

.rff .detail-chiffre summary {
  cursor: pointer;
  font-size: clamp(15px, 1.3vw, 17px);
  font-weight: 500;
  color: var(--accent-txt);
  padding: 8px 0;
}
.rff .detail-chiffre summary:hover { color: var(--encre); }

.rff .tableau {
  width: 100%;
  max-width: 520px;
  margin: 12px 0 0;
  border-collapse: collapse;
  font-size: clamp(14.5px, 1.2vw, 16px);
  font-variant-numeric: tabular-nums;
}

.rff .tableau caption {
  text-align: left;
  padding: 0 0 10px;
  font-size: clamp(13.5px, 1.1vw, 15px);
  color: var(--gris-texte);
}

.rff .tableau th,
.rff .tableau td {
  padding: 7px 14px 7px 0;
  text-align: left;
  border-bottom: 1px solid rgba(21, 16, 47, .12);
}

.rff .tableau thead th { font-weight: 700; color: var(--encre); }
.rff .tableau tbody th { font-weight: 500; color: var(--gris-texte); }
.rff .tableau tbody td { color: var(--encre); }

.rff .barres-s { padding: var(--nz-bande) 0; }

.rff .repartitions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(26px, 3.6vw, 56px);
  margin: clamp(26px, 3.2vw, 44px) 0 0;
}

.rff .repartition h3 {
  margin: 0 0 clamp(14px, 1.6vw, 20px);
  padding-bottom: clamp(10px, 1.1vw, 14px);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.3;
  color: var(--encre);
  background-image: linear-gradient(90deg, var(--n1), var(--n2) 40%, var(--n3) 75%, var(--n4));
  background-size: 64px 3px;
  background-position: 0 100%;
  background-repeat: no-repeat;
}

.rff .repartition .barres + h3 { margin-top: clamp(28px, 3.4vw, 44px); }

.rff .barres { margin: 0; padding: 0; list-style: none; display: grid; gap: clamp(13px, 1.5vw, 18px); }

.rff .barres > li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  column-gap: 12px;
  row-gap: 6px;
}

.rff .barres .lb {
  margin: 0;
  font-size: clamp(14.5px, 1.25vw, 16.5px);
  line-height: 1.35;
  color: var(--encre);
}

.rff .barres .vl {
  margin: 0;
  font-size: clamp(14.5px, 1.25vw, 16.5px);
  font-weight: 700;
  line-height: 1.35;
  color: var(--accent-txt);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.rff .barres .jauge {
  grid-column: 1 / -1;
  display: block;
  height: 12px;
  background: rgba(21, 16, 47, .09);
}

.rff .barres .jauge > span {
  display: block;
  height: 100%;
  background-color: var(--n2);
  background-image:
    radial-gradient(120% 320% at 18% 120%, rgba(21, 16, 47, .42) 0%, rgba(21, 16, 47, 0) 58%),
    radial-gradient(90% 300% at 62% -40%, rgba(255, 255, 255, .30) 0%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(90deg, var(--n1) 0%, var(--n2) 34%, var(--n3) 68%, var(--n4) 100%);
  background-size: calc(100% * var(--k, 1)) 100%;
  background-repeat: no-repeat;
}

.rff .texte.apres-barres { max-width: 72ch; }

.rff .graphe .cadre { overflow-x: auto; }

.rff .graphe .cadre:focus-visible { outline: 3px solid var(--nz-bleu); outline-offset: 2px; }
@media (max-width: 820px) {
  .rff .graphe .cadre svg { min-width: 820px; }
}

.rff .g-estime {
  fill: none;
  stroke: var(--n3);
  stroke-width: 2;
  stroke-dasharray: 6 4;
}

.rff .g-montant,
.rff .g-mention {
  font-family: inherit;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.rff .g-montant { fill: var(--nuit); font-weight: 700; }
.rff .g-mention { fill: var(--gris-texte); }

.rff .tableau tbody tr.record td,
.rff .tableau tbody tr.record th { font-weight: 700; color: var(--encre); }
.rff .tableau .mention { font-weight: 400; color: var(--gris-texte); white-space: nowrap; }
