/* parts-rse-indicators-premium : ex-bloc <style> de rse-indicators-premium.php, source de vérité depuis le 09/09/2026 (plan poids-html-blueprint-light, lot 2). Tokens : var(--color-*) uniquement. */
/* ═══════════════════════════════════════════════════════════════════════════
   RSE INDICATORS PREMIUM - KYTOM Design System
   Version: 1.0.0 | Awwwards Target: > 90
   ═══════════════════════════════════════════════════════════════════════════ */

/* CSS Variables */
.rse-premium {
  --rse-bg: var(--color-gray-50);
  --rse-surface: var(--color-white);
  --rse-text: #1a1a2e;
  --rse-text-muted: #64748B;
  --rse-border: rgba(13, 40, 87, 0.08);
  --rse-accent: var(--color-bleu);
  --rse-orange: var(--color-orange);
  --rse-green: var(--color-mint);          /* Vert KYTOM Mint - Charte v1.2.4 */
  --rse-gray: #94A3B8;
  
  position: relative;
  padding: clamp(80px, 12vh, 160px) clamp(24px, 5vw, 80px);
  background: var(--rse-bg);
  overflow: hidden;
  font-family: var(--font-body, 'Plus Jakarta Sans', system-ui, sans-serif);
}

/* Dark Theme */
.rse-premium--dark {
  --rse-bg: #0a0a1a;
  --rse-surface: rgba(255, 255, 255, 0.03);
  --rse-text: #F8FAFC;
  --rse-text-muted: #94A3B8;
  --rse-border: rgba(255, 255, 255, 0.08);
}

/* Background Elements */
.rse-premium__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.rse-premium__grid-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(var(--rse-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--rse-border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 70%);
}

.rse-premium__glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  animation: rseGlowPulse 8s ease-in-out infinite;
}

.rse-premium__glow--1 {
  top: -200px;
  left: -100px;
  background: var(--rse-orange);
}

.rse-premium__glow--2 {
  bottom: -200px;
  right: -100px;
  background: var(--rse-green);
  animation-delay: -4s;
}

@keyframes rseGlowPulse {
  0%, 100% { opacity: 0.1; transform: scale(1); }
  50% { opacity: 0.2; transform: scale(1.1); }
}

.rse-premium__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.rse-premium__line {
  stroke-dasharray: 8 12;
  animation: rseLinesFlow 20s linear infinite;
}

.rse-premium__line--2 { animation-delay: -7s; }
.rse-premium__line--3 { animation-delay: -14s; }

@keyframes rseLinesFlow {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -200; }
}

/* Container */
.rse-premium__container {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
}

/* Header */
.rse-premium__header {
  text-align: center;
  margin-bottom: clamp(50px, 8vh, 80px);
}

.rse-premium__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.rse-premium__eyebrow-line {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rse-orange), transparent);
}

.rse-premium__eyebrow-text {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--rse-orange);
}

.rse-premium__title {
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 500;
  color: var(--rse-accent);
  margin: 0 0 20px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.rse-premium--dark .rse-premium__title {
  color: var(--rse-text);
}

.rse-premium__subtitle {
  font-size: clamp(16px, 1.8vw, 20px);
  color: var(--rse-text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Manifesto */
.rse-premium__manifesto {
  max-width: 900px;
  margin: 0 auto clamp(60px, 10vh, 100px);
}

.rse-premium__manifesto-inner {
  position: relative;
  padding: clamp(30px, 5vw, 50px);
  background: var(--rse-surface);
  border: 1px solid var(--rse-border);
  border-radius: 24px;
  text-align: center;
  backdrop-filter: blur(10px);
  box-shadow: 
    0 4px 24px rgba(0, 0, 0, 0.03),
    0 1px 2px rgba(0, 0, 0, 0.02);
}

.rse-premium__manifesto-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--rse-orange), var(--color-orange-light));
  border-radius: 12px;
  color: white;
}

.rse-premium__manifesto-icon svg {
  width: 24px;
  height: 24px;
}

.rse-premium__manifesto-text {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.7;
  color: var(--rse-text);
  margin: 0 0 28px;
}

.rse-premium__manifesto-text strong {
  color: var(--rse-orange);
  font-weight: 600;
}

.rse-premium__manifesto-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--rse-orange);
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 50px;
  background: rgba(242, 126, 51, 0.08);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.rse-premium__manifesto-cta svg {
  width: 16px;
  height: 16px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.rse-premium__manifesto-cta:hover {
  background: var(--rse-orange);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(242, 126, 51, 0.3);
}

.rse-premium__manifesto-cta:hover svg {
  transform: translateX(4px);
}

/* Grid */
.rse-premium__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(30px, 5vw, 60px);
  align-items: stretch; /* Force les deux cards à la même hauteur */
}

@media (max-width: 1024px) {
  .rse-premium__grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
}

/* Block */
.rse-premium__block {
  background: var(--rse-surface);
  border: 1px solid var(--rse-border);
  border-radius: 24px;
  padding: clamp(24px, 4vw, 40px);
  backdrop-filter: blur(10px);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.rse-premium__block:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.06),
    0 8px 16px rgba(0, 0, 0, 0.04);
}

.rse-premium__block-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rse-border);
}

.rse-premium__block-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(13, 40, 87, 0.08), rgba(13, 40, 87, 0.04));
  border-radius: 12px;
  color: var(--rse-accent);
}

.rse-premium--dark .rse-premium__block-icon {
  background: rgba(255, 255, 255, 0.05);
  color: var(--rse-text);
}

.rse-premium__block-icon svg {
  width: 22px;
  height: 22px;
}

.rse-premium__block-title {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
  color: var(--rse-text);
  margin: 0 0 4px;
}

.rse-premium__block-badge {
  display: inline-block;
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--rse-text-muted);
  padding: 4px 10px;
  background: rgba(0, 18, 112, 0.05);
  border-radius: 20px;
}

.rse-premium__block-badge--green {
  background: rgba(169, 249, 195, 0.3);  /* KYTOM Mint */
  color: var(--color-success); /* Vert plus foncé pour lisibilité */
}

/* Donut Chart */
.rse-premium__donut-container {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 36px;
}

.rse-premium__donut {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.rse-premium__segment {
  transition: stroke-dasharray 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.rse-premium__donut-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rse-premium__donut-value {
  font-family: var(--font-display, sans-serif);
  font-size: 42px;
  font-weight: 700;
  color: var(--rse-text);
  line-height: 1;
}

.rse-premium__donut-unit {
  font-size: 18px;
  font-weight: 500;
  color: var(--rse-text-muted);
  margin-left: 2px;
}

.rse-premium__donut-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rse-text-muted);
  margin-top: 4px;
}

/* Rings Chart */
.rse-premium__rings-container {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 36px;
}

.rse-premium__rings {
  width: 100%;
  height: 100%;
}

.rse-premium__ring {
  transition: stroke-dasharray 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Indicators List */
.rse-premium__indicators {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-grow: 1; /* Remplir l’espace restant dans la card */
}

.rse-premium__indicator {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  background: rgba(0, 18, 112, 0.02);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.rse-premium--dark .rse-premium__indicator {
  background: rgba(255, 255, 255, 0.02);
}

.rse-premium__indicator:hover {
  background: rgba(0, 18, 112, 0.04);
  transform: translateX(4px);
}

.rse-premium__indicator-visual {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 80px;
}

.rse-premium__indicator-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dot-color);
}

.rse-premium__indicator-bar {
  width: 80px;
  height: 4px;
  background: var(--rse-border);
  border-radius: 2px;
  overflow: hidden;
}

.rse-premium__indicator-fill {
  height: 100%;
  width: 0;
  background: var(--fill-color);
  border-radius: 2px;
  transition: width 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.rse-premium__indicator-content {
  flex: 1;
}

.rse-premium__indicator-header {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 4px;
}

.rse-premium__indicator-value {
  font-family: var(--font-display, sans-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--rse-text);
  line-height: 1;
}

.rse-premium__indicator-unit {
  font-size: 14px;
  font-weight: 500;
  color: var(--rse-text-muted);
}

.rse-premium__indicator-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--rse-text);
}

.rse-premium__indicator-desc {
  display: block;
  font-size: 12px;
  color: var(--rse-text-muted);
  margin-top: 4px;
  line-height: 1.4;
}

/* Horizontal Indicator (for Durabilité) */
.rse-premium__indicator--horizontal {
  flex-direction: row;
  align-items: center;
  flex: 1; /* S’étire pour répartir l’espace */
}

.rse-premium__indicators--alt {
  justify-content: space-between; /* Répartit les indicateurs uniformément */
}

.rse-premium__indicator-ring {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.rse-premium__indicator-ring svg {
  width: 100%;
  height: 100%;
}

.rse-premium__mini-ring {
  stroke-dasharray: 0 94.25;
  transition: stroke-dasharray 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.rse-premium__indicator-mini-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 11px;
  font-weight: 700;
  color: var(--rse-text);
}

/* Separator */
.rse-premium__separator {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 40px 0;
  align-self: stretch; /* S’étire sur toute la hauteur */
}

@media (max-width: 1024px) {
  .rse-premium__separator {
    flex-direction: row;
    padding: 0;
    align-self: auto;
  }
  
  .rse-premium__separator-line {
    width: 100% !important;
    height: 1px !important;
    flex: 1;
  }
}

.rse-premium__separator-line {
  width: 1px;
  flex: 1; /* S’étire pour remplir l’espace */
  min-height: 60px;
  background: linear-gradient(to bottom, transparent, var(--rse-border), transparent);
}

.rse-premium__separator-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--rse-surface);
  border: 1px solid var(--rse-border);
  border-radius: 50%;
  color: var(--rse-text-muted);
}

.rse-premium__separator-icon svg {
  width: 16px;
  height: 16px;
}

/* Stats Bar */
.rse-premium__stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 5vw, 60px);
  margin-top: clamp(60px, 10vh, 100px);
  padding: clamp(24px, 4vw, 40px);
  background: var(--rse-surface);
  border: 1px solid var(--rse-border);
  border-radius: 100px;
  backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
  .rse-premium__stats-bar {
    flex-direction: column;
    border-radius: 24px;
    gap: 20px;
  }
  
  .rse-premium__stat-divider {
    width: 60px !important;
    height: 1px !important;
  }
}

.rse-premium__stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.rse-premium__stat-value {
  font-family: var(--font-display, sans-serif);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--rse-accent);
  line-height: 1;
}

.rse-premium--dark .rse-premium__stat-value {
  color: var(--rse-orange);
}

.rse-premium__stat-unit {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 600;
  color: var(--rse-accent);
}

.rse-premium__stat-label {
  font-size: 13px;
  color: var(--rse-text-muted);
  white-space: nowrap;
}

.rse-premium__stat-divider {
  width: 1px;
  height: 40px;
  background: var(--rse-border);
}

/* Animations */
.rse-premium--animate [data-reveal] {
  opacity: 0;
  transform: translateY(30px);
}

.rse-premium--animate [data-reveal="fade-right"] {
  transform: translateX(-30px);
}

.rse-premium--animate [data-reveal="fade-left"] {
  transform: translateX(30px);
}

.rse-premium--animate [data-reveal="fade"] {
  transform: none;
}

.rse-premium--animate [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Responsive */
@media (max-width: 1024px) {
  .rse-premium__block {
    min-height: auto; /* Hauteur auto sur tablette/mobile */
  }
}

@media (max-width: 640px) {
  .rse-premium__donut-container,
  .rse-premium__rings-container {
    width: 160px;
    height: 160px;
  }
  
  .rse-premium__indicator-value {
    font-size: 24px;
  }
  
  .rse-premium__block {
    padding: 20px;
  }
}
