/* =============================================
   RÉNOVÉNERGIE PRO — CSS Global
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Sora:wght@400;600;700;800&display=swap');

/* === VARIABLES === */
:root {
  --primary: #1B4332;
  --primary-light: #2D6A4F;
  --primary-dark: #0D2B20;
  --secondary: #52B788;
  --secondary-light: #74C69D;
  --secondary-pale: #D8F3DC;
  --accent: #F4A261;
  --accent-dark: #E76F51;
  --white: #FFFFFF;
  --off-white: #F8FAF8;
  --gray-100: #F1F5F1;
  --gray-200: #E2EBE2;
  --gray-400: #95A895;
  --gray-600: #5A705A;
  --gray-800: #2D3B2D;
  --text: #1A2B1A;
  --text-light: #4A6040;
  --shadow-sm: 0 2px 8px rgba(27,67,50,0.08);
  --shadow-md: 0 4px 24px rgba(27,67,50,0.12);
  --shadow-lg: 0 8px 48px rgba(27,67,50,0.16);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.25s ease;
  --max-width: 1200px;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5 {
  font-family: 'Sora', sans-serif;
  line-height: 1.2;
  color: var(--primary);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p { color: var(--text-light); line-height: 1.75; }

/* === LAYOUT === */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-secondary {
  background: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
}
.btn-secondary:hover {
  background: var(--secondary-light);
  border-color: var(--secondary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-accent {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  font-size: 1.1rem;
  padding: 16px 36px;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(244,162,97,0.35);
}
.btn-accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(244,162,97,0.45);
}
.btn-lg { padding: 18px 40px; font-size: 1.1rem; }

/* === NAVIGATION === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: all var(--transition);
}
.navbar.scrolled {
  box-shadow: var(--shadow-md);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 32px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--primary);
}
.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-icon svg { width: 22px; height: 22px; stroke: white; fill: none; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--gray-800);
  transition: all var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  background: var(--secondary-pale);
  color: var(--primary);
}
.nav-cta { flex-shrink: 0; }
.nav-cta .btn { padding: 10px 20px; font-size: 0.9rem; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all var(--transition);
}

/* === HERO === */
.hero {
  padding-top: 72px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.pexels.com/photos/5511085/pexels-photo-5511085.jpeg?auto=compress&cs=tinysrgb&fit=crop&h=900&w=1600');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
}
.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(82,183,136,0.2);
  border: 1px solid rgba(82,183,136,0.4);
  color: var(--secondary-light);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 span { color: var(--secondary); }
.hero p { color: rgba(255,255,255,0.8); font-size: 1.15rem; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.hero-stat {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}
.hero-stat .number {
  font-family: 'Sora', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--secondary);
}
.hero-stat .label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
}
.hero-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}
.hero-card h3 { color: var(--primary); margin-bottom: 20px; font-size: 1.3rem; }

/* === SIMULATEUR === */
.simulateur-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-weight: 600; font-size: 0.85rem; color: var(--primary); }
.form-group select, .form-group input {
  padding: 12px 14px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  transition: border-color var(--transition);
  appearance: none;
  background: white;
}
.form-group select:focus, .form-group input:focus {
  outline: none;
  border-color: var(--secondary);
}
.sim-result {
  background: var(--secondary-pale);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  display: none;
}
.sim-result.show { display: block; }
.sim-result .economy {
  font-family: 'Sora', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}
.sim-result .economy-label { font-size: 0.85rem; color: var(--primary-light); margin-top: 4px; }

/* === CARDS === */
.card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
  overflow: hidden;
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--secondary);
}
.card-img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 24px; }
.card-icon {
  width: 52px;
  height: 52px;
  background: var(--secondary-pale);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.card-icon svg { width: 26px; height: 26px; stroke: var(--primary); fill: none; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.9rem; margin-bottom: 16px; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-light);
  font-weight: 600;
  font-size: 0.9rem;
  transition: gap var(--transition);
}
.card-link:hover { gap: 10px; color: var(--primary); }

/* === GRID === */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* === SECTION HEADERS === */
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--secondary-pale);
  color: var(--primary-light);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p { color: var(--text-light); max-width: 560px; margin: 0 auto; font-size: 1.05rem; }

/* === BADGES / TRUST === */
.trust-strip {
  background: var(--secondary-pale);
  padding: 20px 0;
}
.trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
}
.trust-item svg { width: 20px; height: 20px; stroke: var(--secondary); fill: none; flex-shrink: 0; }

/* === AIDES SECTION === */
.aides-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.aide-card {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  border: 2px solid var(--gray-200);
  transition: all var(--transition);
  text-align: center;
}
.aide-card:hover { border-color: var(--secondary); box-shadow: var(--shadow-md); }
.aide-amount {
  font-family: 'Sora', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--secondary);
  display: block;
  margin-bottom: 4px;
}
.aide-name { font-weight: 700; color: var(--primary); font-size: 1rem; margin-bottom: 8px; }
.aide-desc { font-size: 0.85rem; color: var(--text-light); }

/* === CTA BLOCK === */
.cta-block {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: rgba(82,183,136,0.15);
  border-radius: 50%;
}
.cta-block h2 { color: var(--white); margin-bottom: 16px; }
.cta-block p { color: rgba(255,255,255,0.8); max-width: 560px; margin: 0 auto 36px; font-size: 1.05rem; }
.cta-block .cta-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.btn-white {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
  padding: 16px 36px;
  font-size: 1.1rem;
  border-radius: 50px;
  font-weight: 700;
}
.btn-white:hover {
  background: var(--secondary-pale);
  border-color: var(--secondary-pale);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(255,255,255,0.3);
}

/* === FAQ === */
.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  text-align: left;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: background var(--transition);
}
.faq-question:hover { background: var(--gray-100); }
.faq-question svg { width: 20px; height: 20px; stroke: var(--secondary); fill: none; flex-shrink: 0; transition: transform var(--transition); }
.faq-question.open svg { transform: rotate(180deg); }
.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.35s ease;
}
.faq-answer.open {
  padding: 0 24px 20px;
  max-height: 500px;
}
.faq-answer p { font-size: 0.95rem; }

/* === ETAPES === */
.etapes { display: flex; flex-direction: column; gap: 0; }
.etape {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 24px 0;
  border-bottom: 1px solid var(--gray-200);
}
.etape:last-child { border-bottom: none; }
.etape-num {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.etape-content h4 { margin-bottom: 6px; }
.etape-content p { font-size: 0.9rem; }

/* === SPLIT SECTION === */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.split-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.split-img img { width: 100%; height: 420px; object-fit: cover; }
.split-img-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: white;
  border-radius: var(--radius);
  padding: 12px 16px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
}
.split-img-badge svg { width: 24px; height: 24px; stroke: var(--secondary); fill: none; }
.split-img-badge strong { font-family: 'Sora', sans-serif; font-size: 1.2rem; color: var(--primary); }
.split-img-badge span { font-size: 0.8rem; color: var(--text-light); display: block; }
.split-content .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--secondary-pale);
  color: var(--primary-light);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.split-content h2 { margin-bottom: 16px; }
.split-content p { margin-bottom: 24px; }
.checklist { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-light);
}
.checklist li svg { width: 18px; height: 18px; stroke: var(--secondary); fill: none; flex-shrink: 0; margin-top: 2px; }

/* === PAGE HERO (inner pages) === */
.page-hero {
  padding-top: 72px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding-bottom: 80px;
  padding-top: calc(72px + 80px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-size: cover;
  background-position: center;
}
.page-hero-content { position: relative; z-index: 2; }
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}
.breadcrumb a { color: var(--secondary); }
.breadcrumb svg { width: 14px; height: 14px; stroke: rgba(255,255,255,0.4); fill: none; }
.page-hero h1 { color: var(--white); margin-bottom: 16px; }
.page-hero p { color: rgba(255,255,255,0.8); font-size: 1.1rem; max-width: 600px; margin: 0 auto 32px; }
.page-hero-badges { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.badge {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* === HIGHLIGHT BOX === */
.highlight-box {
  background: var(--secondary-pale);
  border-left: 4px solid var(--secondary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 24px 0;
}
.highlight-box strong { color: var(--primary); display: block; margin-bottom: 4px; }
.highlight-box p { font-size: 0.9rem; margin: 0; }

/* === PRICE TABLE === */
.price-table { width: 100%; border-collapse: collapse; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.price-table th {
  background: var(--primary);
  color: white;
  padding: 14px 20px;
  text-align: left;
  font-size: 0.9rem;
}
.price-table td { padding: 14px 20px; border-bottom: 1px solid var(--gray-200); font-size: 0.9rem; }
.price-table tr:last-child td { border-bottom: none; }
.price-table tr:hover td { background: var(--gray-100); }
.price-table tr:nth-child(even) td { background: var(--off-white); }
.price-table tr:nth-child(even):hover td { background: var(--gray-100); }

/* === FOOTER === */
footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand { }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: white;
  margin-bottom: 16px;
}
.footer-brand p { font-size: 0.9rem; line-height: 1.7; margin-bottom: 20px; }
.footer-certifs { display: flex; gap: 8px; flex-wrap: wrap; }
.certif-badge {
  background: rgba(82,183,136,0.2);
  border: 1px solid rgba(82,183,136,0.3);
  color: var(--secondary-light);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}
.footer-col h4 {
  color: white;
  font-size: 0.9rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--secondary); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

/* === REVEAL ON SCROLL === */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.reveal-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.reveal-on-scroll:nth-child(4) { transition-delay: 0.3s; }

/* === STICKY CTA (mobile) === */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--primary);
  padding: 12px 20px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}
.sticky-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: white;
  font-weight: 700;
  font-size: 1rem;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-content { gap: 40px; }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .hero { min-height: auto; padding-bottom: 60px; }
  .hero-content { grid-template-columns: 1fr; gap: 40px; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-cta { display: none; }
  .mobile-menu {
    position: fixed;
    inset: 72px 0 0;
    background: white;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 999;
  }
  .mobile-menu.open { transform: translateX(0); }
  .mobile-menu a {
    padding: 14px 16px;
    border-radius: var(--radius);
    font-weight: 500;
    color: var(--text);
    border-bottom: 1px solid var(--gray-200);
  }
  .mobile-menu .btn { margin-top: 8px; justify-content: center; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse { direction: ltr; }
  .aides-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-block { padding: 40px 24px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { justify-content: center; }
  .trust-inner { gap: 20px; }
  .sticky-cta { display: block; }
  body { padding-bottom: 60px; }
}

@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}