/* ============================================
    SECTION MÉTÉO - Insights Cards
    ============================================ */
    
/* Couleurs spécifiques par type.
   Posées sur la CARTE, pas sur l'icône : une custom property descend, elle ne
   remonte pas. Sur l'icône, la barre colorée du ::before de la carte lisait une
   variable définie chez son propre enfant — donc jamais résolue, et le dégradé
   restait transparent. */
.climat-chiffres-1__card--rain {
  --climat-chiffres-1-color: var(--secondary);
  --climat-chiffres-1-color-light: color-mix(in srgb, var(--secondary) 55%, var(--white));
  --climat-chiffres-1-bg: color-mix(in srgb, var(--secondary) 12%, transparent);
}

.climat-chiffres-1__card--sun {
  --climat-chiffres-1-color: var(--primary);
  --climat-chiffres-1-color-light: color-mix(in srgb, var(--primary) 55%, var(--white));
  --climat-chiffres-1-bg: color-mix(in srgb, var(--primary) 12%, transparent);
}

.climat-chiffres-1__card--wind {
  --climat-chiffres-1-color: color-mix(in srgb, var(--secondary) 60%, var(--white));
  --climat-chiffres-1-color-light: color-mix(in srgb, var(--secondary) 35%, var(--white));
  --climat-chiffres-1-bg: color-mix(in srgb, var(--secondary) 10%, transparent);
}

.climat-chiffres-1__card--storm {
  --climat-chiffres-1-color: color-mix(in srgb, var(--primary) 62%, var(--black));
  --climat-chiffres-1-color-light: color-mix(in srgb, var(--primary) 45%, var(--black));
  --climat-chiffres-1-bg: color-mix(in srgb, var(--primary) 12%, transparent);
}

.climat-chiffres-1 {
  padding: 80px 5%;
  background: linear-gradient(135deg, var(--white) 0%, var(--gray-light) 100%);
  position: relative;
  overflow: hidden;
}

.climat-chiffres-1::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, color-mix(in srgb, var(--secondary) 10%, transparent) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.climat-chiffres-1 .container {
  max-width: 1200px;
  margin: 0 auto;
}
.climat-chiffres-1 .section-header {
  text-align: center;
}

.climat-chiffres-1 h2 { 
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--black);
  margin-bottom: 16px;
}

.climat-chiffres-1 p {
  font-size: 1.05rem;
  color: var(--gray-dark);
  line-height: 1.8;
}

.climat-chiffres-1__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.climat-chiffres-1__card {
  background: var(--white);
  border-radius: 16px;
  padding: 32px 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.climat-chiffres-1__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--climat-chiffres-1-color), var(--climat-chiffres-1-color-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.climat-chiffres-1__card:hover::before {
  transform: scaleX(1);
}

.climat-chiffres-1__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.climat-chiffres-1__icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: var(--climat-chiffres-1-bg);
  transition: transform 0.3s ease;
}

.climat-chiffres-1__card:hover .climat-chiffres-1__icon {
  transform: scale(1.1) rotate(5deg);
}

.climat-chiffres-1__icon svg {
  width: 32px;
  height: 32px;
  color: var(--climat-chiffres-1-color);
}

.climat-chiffres-1__content {
  margin-bottom: 16px;
}

.climat-chiffres-1__value {
  font-size: 48px;
  font-weight: 700;
  color: var(--black);
  line-height: 1;
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.climat-chiffres-1__unit {
  font-size: 20px;
  font-weight: 500;
  color: var(--gray-dark);
  margin-left: 4px;
}

.climat-chiffres-1__label {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-dark);
  margin-bottom: 6px;
}

.climat-chiffres-1__detail {
  font-size: 14px;
  color: var(--gray-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}

.climat-chiffres-1__impact {
  font-size: 13px;
  color: var(--gray-dark);
  font-style: italic;
  padding-top: 16px;
  border-top: 1px solid var(--secondary);
  line-height: 1.5;
}


/* ============================================
    RESPONSIVE
    ============================================ */

@media (max-width: 992px) {
  .climat-chiffres-1__grid {
     grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .climat-chiffres-1__grid {
     grid-template-columns: 1fr;
  }
  
  .climat-chiffres-1__card {
     padding: 24px 20px;
  }
  
  .climat-chiffres-1__value {
     font-size: 36px;
  }
}
/* ── TITRES : couleur de survol explicite (CLAUDE.md §4.13) ──────────
   Le main.css des themes stylise les balises Hn, hover compris. Chaque
   titre reprend ici sa couleur de base pour neutraliser cet heritage. */
.climat-chiffres-1 h2:hover {
  color: var(--black);
}

/* ============================================
   ANIMATION
   ============================================ */

@keyframes climat-chiffres-1-fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.climat-chiffres-1__fade {
  animation: climat-chiffres-1-fade-in-up 0.6s ease-out forwards;
}

.climat-chiffres-1__card:nth-child(1) { animation-delay: 0.1s; }
.climat-chiffres-1__card:nth-child(2) { animation-delay: 0.2s; }
.climat-chiffres-1__card:nth-child(3) { animation-delay: 0.3s; }
.climat-chiffres-1__card:nth-child(4) { animation-delay: 0.4s; }
