/* ============================================
   PIVERT - Home Page CSS — version premium
   ============================================ */

/* ============================================
   Hero Section
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 130px 0 var(--space-16);
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: flex;
  justify-content: center;
  width: 100%;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: min(100%, 76rem);
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--green-glow);
  background: var(--green-pale-2);
  border: 1px solid rgba(20, 83, 45, 0.20);
  padding: 6px var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 1px 6px rgba(20, 83, 45, 0.08);
}

.hero h1.hero-title {
  font-size: clamp(2rem, 4.8vw, 3.6rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.24;
  margin-bottom: var(--space-8);
  margin-top: 0;
  letter-spacing: -0.022em;
  text-wrap: balance;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3em;
}

.hero h1.hero-title .hero-title-line {
  display: block;
  width: 100%;
}

.hero h1.hero-title .hero-title-line--accent {
  margin-top: 0.08em;
}

/* Mots-clés H1 — impact visuel, texte inchangé pour le SEO */
.hero h1.hero-title .hero-title-kw {
  font-weight: 800;
  font-size: 1.07em;
  letter-spacing: -0.022em;
}

.hero h1.hero-title .hero-title-kw--solaire {
  color: var(--green-primary);
  position: relative;
}

.hero h1.hero-title .hero-title-kw--irve {
  color: var(--orange-accent);
}

.hero h1.hero-title .hero-title-kw--bordeaux {
  color: var(--green-glow);
  font-weight: 800;
  letter-spacing: -0.03em;
}

@media (min-width: 1024px) {
  .hero h1.hero-title .hero-title-kw {
    font-size: 1.08em;
  }
}

@media (min-width: 768px) {
  .hero h1.hero-title {
    line-height: 1.22;
    gap: 0.26em;
  }
}

@media (max-width: 480px) {
  .hero h1.hero-title {
    line-height: 1.3;
    gap: 0.38em;
  }
}

/* Hero subtitle / services pills */
.hero-services-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}

.service-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(15,23,42,0.08);
  padding: 5px var(--space-3);
  border-radius: var(--radius-full);
}

.service-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-primary);
  flex-shrink: 0;
}

.service-pill-dot.orange { background: var(--orange-accent); }
.service-pill-dot.blue { background: var(--blue-grey); }

.hero-sep {
  width: 1px;
  height: 16px;
  background: rgba(15,23,42,0.15);
}

/* CTAs hero */
.hero-ctas {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-10);
  flex-wrap: wrap;
}

.hero-ctas .hero-cta-sub {
  display: block;
  font-size: var(--text-xs);
  opacity: 0.7;
  font-weight: 500;
  margin-top: 2px;
  letter-spacing: 0;
}

/* Badges hero */
.hero-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

@media (max-width: 640px) {
  .hero-badges.trust-badges {
    justify-content: center;
  }
}

/* ============================================
   Stats Strip — social proof chiffres
   ============================================ */
.stats-section {
  padding: var(--space-12) 0;
  position: relative;
  background: var(--bg-card);
  border-top: 1px solid var(--border-card);
  border-bottom: 1px solid var(--border-card);
  box-shadow: 0 1px 0 rgba(20, 83, 45, 0.04) inset;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid rgba(20, 83, 45, 0.10);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(15, 23, 42, 0.06);
}

.stat-item {
  background: var(--bg-card);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  transition: background var(--transition-base);
  border-right: 1px solid rgba(20, 83, 45, 0.08);
  position: relative;
}

.stat-item:last-child {
  border-right: none;
}

.stat-item:hover {
  background: var(--bg-hover);
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--green-glow), #4ade80);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.stat-value {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 3.5vw, 3.2rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: var(--space-2);
  letter-spacing: -0.03em;
}

.stat-value .unit {
  color: var(--green-glow);
  font-size: 0.65em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.stat-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.4;
  max-width: 120px;
  margin: 0 auto;
}

/* ============================================
   Services Overview
   ============================================ */
.services-overview {
  padding: var(--section-padding) 0;
  padding-top: clamp(3rem, 5vw, 5rem);
}

/* Service cards — accent bord coloré au hover selon type */
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-glow), #4ade80);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card--irve::before {
  background: linear-gradient(90deg, var(--orange-accent), #fb923c);
}

.service-card--norme::before {
  background: linear-gradient(90deg, var(--blue-grey), #94a3b8);
}

/* ============================================
   Why PIVERT Section
   ============================================ */
.why-section {
  padding: var(--section-padding) 0;
  background: linear-gradient(180deg, var(--bg-dark) 0%, #E8F0EA 100%);
  position: relative;
}

.why-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(20, 83, 45, 0.15), transparent);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}

.why-card {
  padding: var(--space-8) var(--space-6);
  text-align: center;
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}

.why-card:hover {
  border-color: rgba(20, 83, 45, 0.20);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.10);
  transform: translateY(-4px);
}

.why-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-5);
  background: linear-gradient(145deg, var(--green-pale-2), var(--green-pale));
  border: 1px solid rgba(20, 83, 45, 0.15);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-glow);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.why-card:hover .why-icon {
  background: linear-gradient(145deg, var(--green-pale), rgba(20, 83, 45, 0.12));
  box-shadow: 0 4px 16px rgba(20, 83, 45, 0.14);
}

.why-card h3 {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  letter-spacing: -0.01em;
}

.why-card p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ============================================
   Process Section
   ============================================ */
.process-section {
  padding: var(--section-padding) 0;
  background: var(--bg-card);
  position: relative;
}

.process-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(15, 23, 42, 0.08), transparent);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.process-card {
  padding: var(--space-8) var(--space-8) var(--space-8) var(--space-8);
  position: relative;
  overflow: hidden;
}

.process-card:hover {
  border-color: rgba(20, 83, 45, 0.20);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.10);
  transform: translateY(-3px);
}

.process-number {
  font-family: var(--font-heading);
  font-size: 4.5rem;
  font-weight: 800;
  color: rgba(20, 83, 45, 0.06);
  line-height: 1;
  position: absolute;
  top: var(--space-4);
  right: var(--space-6);
  letter-spacing: -0.04em;
  user-select: none;
}

.process-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--green-glow);
  color: white;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: var(--space-4);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(20, 83, 45, 0.28);
}

.process-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(145deg, var(--green-glow), var(--green-primary));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: var(--space-5);
  box-shadow: 0 4px 12px rgba(20, 83, 45, 0.24);
}

.process-card h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  letter-spacing: -0.015em;
}

.process-card p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.75;
}

/* ============================================
   Testimonials Section
   ============================================ */
.testimonials-section {
  padding: var(--section-padding) 0;
  background: var(--bg-dark);
  position: relative;
}

.testimonials-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(20, 83, 45, 0.12), transparent);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

/* ============================================
   CTA Section — bold & impactant
   ============================================ */
.cta-section {
  padding: var(--space-20) 0;
  position: relative;
  overflow: hidden;
}

.cta-card {
  text-align: center;
  padding: var(--space-16) var(--space-16);
  background: linear-gradient(145deg, #0F4D28 0%, #14532D 45%, #1a6b38 100%);
  border: none;
  border-radius: var(--radius-2xl);
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(20, 83, 45, 0.30), 0 8px 24px rgba(20, 83, 45, 0.18);
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -20%;
  width: 60%;
  height: 180%;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.06) 0%, transparent 65%);
  pointer-events: none;
}

.cta-card::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 50%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(74, 222, 128, 0.08) 0%, transparent 65%);
  pointer-events: none;
}

.cta-card > * {
  position: relative;
  z-index: 1;
}

.cta-card .section-tag {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.90);
  border-color: rgba(255,255,255,0.20);
  backdrop-filter: none;
}

.cta-card h2 {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: var(--space-4);
  letter-spacing: -0.025em;
}

.cta-card h2 .gradient-text {
  color: #6ee7a0;
}

.cta-card p {
  font-size: var(--text-xl);
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: var(--space-8);
  line-height: 1.6;
}

.cta-card .btn-primary {
  background: #FFFFFF;
  color: var(--green-primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.20);
}

.cta-card .btn-primary:hover {
  background: #F0FDF4;
  color: var(--green-primary);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

.cta-card .btn-outline {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.35);
  color: #FFFFFF;
  backdrop-filter: none;
}

.cta-card .btn-outline:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.55);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.cta-guarantee {
  margin-top: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.cta-pill--green {
  background: rgba(134, 239, 172, 0.22);
  border: 1px solid rgba(134, 239, 172, 0.45);
  color: #86efac;
}

.cta-pill--orange {
  background: rgba(253, 186, 116, 0.20);
  border: 1px solid rgba(253, 186, 116, 0.42);
  color: #fdba74;
}

.cta-pill--white {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.90);
}

.cta-buttons {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   Responsive Home
   ============================================ */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero { padding: 110px 0 var(--space-10); min-height: auto; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .cta-card { padding: var(--space-12) var(--space-6); }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    border-radius: var(--radius-lg);
  }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-right: 1px solid rgba(20, 83, 45, 0.08); }
  .why-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .hero-services-line { gap: var(--space-2); }
  .hero-sep { display: none; }
}
