/* ============================================================
   FRANCE HABITAT CONSEIL — solar.css
   Styles spécifiques à la page panneaux photovoltaïques
   ============================================================ */

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 55%, #0D3B6E 100%);
  padding-top: 64px; /* hauteur nav */
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  padding-top: 60px;
  padding-bottom: 60px;
  position: relative;
  z-index: 2;
}

.hero-rays {
  position: absolute;
  top: -200px; right: -200px;
  width: 700px; height: 700px;
  pointer-events: none;
  opacity: 0.6;
}

.hero-rays circle { fill: none; stroke: rgba(245,158,11,0.07); }

.hero-dot {
  position: absolute;
  top: 80px; right: 80px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,158,11,0.28) 0%, transparent 70%);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  bottom: -100px; left: -100px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(5,150,105,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.badge-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }

h1 { color: var(--white); margin-bottom: 20px; }
h1 .accent { color: var(--amber); }
h1 .line2 { display: block; color: rgba(255,255,255,0.5); font-weight: 400; }

.hero-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
  max-width: 460px;
  margin-bottom: 34px;
}

.hero-kpis { display: flex; gap: 28px; flex-wrap: wrap; }
.kpi { display: flex; flex-direction: column; gap: 2px; }
.kpi-val { font-family: 'Clash Display', sans-serif; font-size: 1.9rem; font-weight: 700; color: var(--amber); line-height: 1; }
.kpi-lbl { font-size: 0.72rem; color: rgba(255,255,255,0.45); }

/* ── SIMULATEUR ── */
.simulator-section { background: var(--white); padding: var(--section-py) 0; }
.simulator-section .eyebrow { color: var(--amber-deep); }

.sim-widget {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: 24px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 48px;
}

.sim-label { font-size: 0.78rem; font-weight: 600; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }

.power-display {
  font-family: 'Clash Display', sans-serif;
  font-size: 4rem;
  font-weight: 700;
  color: var(--amber);
  line-height: 1;
  margin-bottom: 4px;
}

.power-unit { font-size: 1.1rem; color: rgba(255,255,255,0.4); margin-left: 4px; }
.power-desc { font-size: 0.8rem; color: rgba(255,255,255,0.45); margin-bottom: 24px; }

input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.1);
  outline: none;
  cursor: pointer;
  margin-bottom: 10px;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--amber);
  border: 3px solid var(--navy);
  box-shadow: 0 2px 8px rgba(245,158,11,0.5);
  cursor: pointer;
}

.range-labels { display: flex; justify-content: space-between; font-size: 0.7rem; color: rgba(255,255,255,0.3); }

.tva-toggle { margin-top: 20px; }
.tva-q { font-size: 0.8rem; color: rgba(255,255,255,0.6); margin-bottom: 10px; }
.tva-opts { display: flex; gap: 8px; }

.tva-opt {
  flex: 1; padding: 8px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.6);
  font-size: 0.78rem; font-weight: 500;
  cursor: pointer; text-align: center;
  transition: all 0.2s;
}

.tva-opt.active {
  border-color: var(--amber);
  background: rgba(245,158,11,0.15);
  color: var(--amber);
  font-weight: 600;
}

.sim-results { display: flex; flex-direction: column; gap: 14px; }

.sim-result-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 18px 20px;
  transition: all 0.3s;
}

.sim-result-card.highlight {
  background: rgba(245,158,11,0.1);
  border-color: rgba(245,158,11,0.3);
}

.src-label { font-size: 0.72rem; color: rgba(255,255,255,0.45); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 5px; }
.src-val { font-family: 'Clash Display', sans-serif; font-size: 1.8rem; font-weight: 700; color: var(--white); line-height: 1; }
.src-val.amber { color: var(--amber); }
.src-val.green { color: #34D399; }
.src-note { font-size: 0.72rem; color: rgba(255,255,255,0.35); margin-top: 4px; }

.sim-disclaimer {
  margin-top: 18px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.28);
  line-height: 1.5;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 14px;
}

/* ── AIDES SECTION ── */
.aides-section { background: var(--cream); padding: var(--section-py) 0; }

.aides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.aide-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid rgba(12,27,51,0.08);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
}

.aide-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }

.aide-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}

.aide-card.green-top::before  { background: var(--green); }
.aide-card.amber-top::before  { background: var(--amber); }
.aide-card.red-top::before    { background: var(--red); }
.aide-card.slate-top::before  { background: var(--slate); }

.aide-ico    { font-size: 1.8rem; margin-bottom: 14px; display: block; }
.aide-name   { font-family: 'Clash Display', sans-serif; font-weight: 600; font-size: 0.95rem; color: var(--navy); margin-bottom: 6px; }
.aide-amount { font-family: 'Clash Display', sans-serif; font-size: 1.6rem; font-weight: 700; color: var(--navy); line-height: 1; margin-bottom: 10px; }
.aide-amount.green { color: var(--green); }
.aide-amount.amber { color: var(--amber-deep); }
.aide-amount.red   { color: var(--red); }
.aide-amount.slate { color: var(--slate); }
.aide-desc   { font-size: 0.82rem; color: var(--slate); line-height: 1.6; }

.tva-table {
  margin-top: 14px; width: 100%;
  border-collapse: collapse; font-size: 0.78rem;
}
.tva-table th {
  text-align: left; font-weight: 600; color: var(--slate);
  padding: 5px 0; border-bottom: 1px solid var(--slate-light);
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em;
}
.tva-table td {
  padding: 7px 0;
  border-bottom: 1px solid rgba(203,213,225,0.4);
  color: var(--text); font-size: 0.78rem;
}
.tva-table td:last-child { font-weight: 600; }
.tva-table td.ok  { color: var(--green); }
.tva-table td.bad { color: var(--red); }
.tva-table td.muted { color: var(--slate); }
.tva-table tr:last-child td { border-bottom: none; }

/* ── PROCESSUS ── */
.process-section { background: var(--navy); padding: var(--section-py) 0; }
.process-section h2     { color: var(--white); }
.process-section .section-lead { color: rgba(255,255,255,0.55); }
.process-section .eyebrow { color: var(--amber); }

.steps-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2px;
  margin-top: 48px;
  background: rgba(255,255,255,0.05);
  border-radius: 20px;
  overflow: hidden;
}

.step {
  padding: 32px 24px;
  background: rgba(12,27,51,0.6);
  transition: background 0.3s;
}

.step:hover { background: rgba(245,158,11,0.08); }

.step-num {
  font-family: 'Clash Display', sans-serif;
  font-size: 3rem; font-weight: 700;
  color: rgba(245,158,11,0.15);
  line-height: 1; margin-bottom: 16px;
}

.step-title { font-family: 'Clash Display', sans-serif; font-weight: 600; font-size: 0.95rem; color: var(--white); margin-bottom: 8px; }
.step-desc  { font-size: 0.8rem; color: rgba(255,255,255,0.45); line-height: 1.6; }
.step-tag   { display: inline-block; margin-top: 12px; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 3px 9px; border-radius: 50px; background: rgba(245,158,11,0.1); color: var(--amber); border: 1px solid rgba(245,158,11,0.2); }

/* ── TÉMOIGNAGES ── */
.testimonials-section { background: var(--cream); padding: var(--section-py) 0; }

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

.testi-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid rgba(12,27,51,0.07);
  box-shadow: var(--shadow-sm);
}

.stars { color: var(--amber); font-size: 0.85rem; letter-spacing: 2px; margin-bottom: 14px; }

.testi-highlight {
  background: var(--amber-light);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}

.h-val   { font-family: 'Clash Display', sans-serif; font-size: 1.3rem; font-weight: 700; color: var(--amber-deep); }
.h-label { font-size: 0.75rem; color: var(--amber-deep); line-height: 1.3; }

.testi-text { font-size: 0.85rem; color: var(--slate); line-height: 1.7; font-style: italic; margin-bottom: 18px; }

.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), var(--amber-deep));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Clash Display', sans-serif; font-weight: 700;
  font-size: 0.8rem; color: var(--navy); flex-shrink: 0;
}
.testi-name { font-weight: 600; font-size: 0.85rem; color: var(--navy); }
.testi-loc  { font-size: 0.73rem; color: var(--slate); }

/* ── CTA BANNER ── */
.cta-banner {
  padding: var(--section-py) 0;
  background: linear-gradient(135deg, var(--amber) 0%, var(--amber-deep) 100%);
  text-align: center;
}

.cta-banner h2 { color: var(--navy); }
.cta-banner p  { color: rgba(12,27,51,0.7); max-width: 480px; margin: 14px auto 32px; font-size: 0.95rem; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; gap: 36px; }
  .sim-widget { grid-template-columns: 1fr; gap: 32px; padding: 28px 20px; }
}
