/* rapport.css, Section profondeur des rapports (partagée) */

/* ── Section head centré ── */
.rapport-section .section-head {
  max-width: 100%;
  text-align: center;
}
.rapport-section .section-head .eyebrow::before {
  background: var(--au);
}

/* ── Stats banner ── */
.rapport-banner {
  background: linear-gradient(
    135deg,
    color-mix(in oklch, var(--au) 22%, var(--bg-2)) 0%,
    color-mix(in oklch, var(--ep) 15%, var(--bg-2)) 100%
  );
  border: 1px solid color-mix(in oklch, var(--au) 38%, var(--line-2));
  border-radius: 16px;
  padding: 44px 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 64px;
  position: relative;
  overflow: hidden;
}
.rapport-banner::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 12% 50%, color-mix(in oklch, var(--au) 14%, transparent), transparent 50%),
    radial-gradient(ellipse at 88% 50%, color-mix(in oklch, var(--ep) 10%, transparent), transparent 55%);
  pointer-events: none;
}
.rb-stat {
  text-align: center;
  position: relative; z-index: 1;
  padding: 0 20px;
  border-right: 1px solid color-mix(in oklch, var(--au) 22%, transparent);
}
.rb-stat:last-child { border-right: none; }
.rb-num {
  font-family: var(--mono);
  font-size: 54px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--fg);
}
.rb-num small {
  font-size: 26px;
  opacity: 0.58;
  font-weight: 400;
}
.rb-lbl {
  font-size: 13px;
  color: var(--fg-2);
  margin-top: 10px;
  line-height: 1.4;
}

/* ── Two-col viz layout ── */
.rapport-viz-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 64px;
  align-items: center;
}
.rapport-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--au);
  margin-bottom: 20px;
}
.rapport-pill::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--au);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--au) 22%, transparent);
}
.rapport-viz-text h2 {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: balance;
  margin-bottom: 18px;
}
.rapport-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--fg-2);
  margin-bottom: 28px;
  font-weight: 500;
  text-align: justify;
  text-justify: inter-word;
}
.rapport-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rapport-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15.5px;
  font-weight: 600;
}
.rchk {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--au), var(--ep));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rchk::after {
  content: "";
  display: block;
  width: 10px; height: 6px;
  border-bottom: 2.5px solid white;
  border-left: 2.5px solid white;
  transform: rotate(-45deg) translateY(-1px);
}

/* ── Radar chart card ── */
.rapport-radar-card {
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 20px 20px 16px;
}
.rapport-radar-card svg {
  width: 100%;
  height: auto;
  display: block;
}
.radar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line-2);
  margin-top: 4px;
}
.radar-legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: var(--fg-2);
}
.radar-legend-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Polygon animations ── */
.radar-poly {
  opacity: 0;
  animation: radarFadeIn 0.55s ease-out forwards;
}
.radar-poly-1 { animation-delay: 0.08s; }
.radar-poly-2 { animation-delay: 0.2s;  }
.radar-poly-3 { animation-delay: 0.32s; }
.radar-poly-4 { animation-delay: 0.46s; }

.radar-dot {
  opacity: 0;
  animation: radarFadeIn 0.35s ease-out forwards;
  animation-delay: 0.62s;
}

@keyframes radarFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .rapport-banner { padding: 36px 32px; }
  .rb-num { font-size: 44px; }
}
@media (max-width: 900px) {
  .rapport-banner {
    grid-template-columns: repeat(2, 1fr);
    padding: 28px;
    gap: 24px;
  }
  .rb-stat { border-right: none; padding: 8px 0; }
  .rb-stat:nth-child(odd) {
    border-right: 1px solid color-mix(in oklch, var(--au) 18%, transparent);
    padding-right: 20px;
  }
  .rapport-viz-grid { grid-template-columns: 1fr; gap: 40px; }
  .rapport-banner { margin-bottom: 40px; }
}
