:root {
  --primary: #0055A5;
  --primary-dark: #003B73;
  --primary-light: #EBF4FC;
  --secondary: #EF4135;
  --accent-green: #059669;
  --accent-green-light: #ECFDF5;
  --text-main: #1e293b;
  --text-muted: #475569;
  --bg-page: #f8fafc;
  --card-bg: #ffffff;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 35px -5px rgba(0, 85, 165, 0.15);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s ease;
}
a:hover {
  color: var(--primary-dark);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
.top-notice-bar {
  background: #0f172a;
  color: #e2e8f0;
  font-size: 13px;
  padding: 8px 0;
  text-align: center;
  border-bottom: 2px solid var(--primary);
}
.top-notice-bar .flag {
  display: inline-block;
  margin-right: 6px;
}

.navbar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 76px;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.flag-stripes {
  display: flex;
  width: 18px;
  height: 28px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.stripe-blue { width: 6px; background: #0055A5; }
.stripe-white { width: 6px; background: #ffffff; border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; }
.stripe-red { width: 6px; background: #EF4135; }

.logo-text h1, .logo-text .logo-title {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
  letter-spacing: -0.3px;
}
.logo-text h1 span, .logo-text .logo-title span {
  color: var(--primary);
}
.logo-text p {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
}
.nav-link {
  font-size: 14.5px;
  font-weight: 500;
  color: #334155;
}
.nav-link:hover {
  color: var(--primary);
}
.nav-cta-btn {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 10px rgba(0, 85, 165, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(0, 85, 165, 0.35);
}

/* Hero Section */
.hero {
  background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 100%);
  padding: 60px 0 40px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}
.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #e0f2fe;
  color: #0369a1;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
  border: 1px solid #bae6fd;
}
.hero-badge-pill .pulse-dot {
  width: 8px;
  height: 8px;
  background: #0284c7;
  border-radius: 50%;
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(2, 132, 199, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(2, 132, 199, 0); }
}

.hero-title {
  font-size: 40px;
  font-weight: 900;
  line-height: 1.18;
  color: #0f172a;
  letter-spacing: -0.8px;
  margin-bottom: 18px;
}
.hero-title .highlight {
  color: var(--primary);
  position: relative;
  display: inline-block;
}
.hero-desc {
  font-size: 18px;
  color: #475569;
  margin-bottom: 28px;
  line-height: 1.5;
}
.hero-guarantees {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}
.guarantee-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
}
.check-icon {
  width: 22px;
  height: 22px;
  background: #dcfce7;
  color: #15803d;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 12px;
}

.badges-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 35px;
  padding-top: 25px;
  border-top: 1px solid #e2e8f0;
}
.badges-bar img {
  height: 38px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.06));
}

/* Simulator Card & Interactive Multi-Step Funnel */
.sim-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-xl);
  border: 1px solid #cbd5e1;
  position: relative;
}
.sim-card-header {
  margin-bottom: 24px;
  text-align: center;
}
.sim-card-header h3, .sim-card-header h2 {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
}
.sim-card-header p {
  font-size: 13.5px;
  color: var(--text-muted);
}
.sim-progress-container {
  margin-bottom: 24px;
}
.sim-progress-bar {
  height: 6px;
  background: #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}
.sim-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, #10b981 100%);
  width: 15%;
  transition: width 0.3s ease;
}
.sim-step-indicator {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}

.step-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}
.step-panel.active {
  display: block;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-question {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 16px;
}
.step-subtext {
  font-size: 13px;
  color: #64748b;
  margin-top: -10px;
  margin-bottom: 18px;
}

/* Selection Cards Grid */
.option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}
.option-grid.one-col {
  grid-template-columns: 1fr;
}
.option-grid.three-col {
  grid-template-columns: 1fr 1fr 1fr;
}
.option-card {
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  cursor: pointer;
  background: #ffffff;
  transition: all 0.2s ease;
  user-select: none;
  position: relative;
}
.option-card:hover {
  border-color: #93c5fd;
  background: #f8fafc;
}
.option-card.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 0 2px rgba(0, 85, 165, 0.2);
}
.option-icon {
  font-size: 26px;
  margin-bottom: 6px;
}
.option-label {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
}
.option-desc {
  font-size: 11.5px;
  color: #475569;
  margin-top: 3px;
}
.badge-popular {
  position: absolute;
  top: -8px;
  right: 12px;
  background: #fbbf24;
  color: #111827;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 10px;
}

/* Form inputs */
.form-group {
  margin-bottom: 16px;
}
.form-label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  color: #0f172a;
  background: #ffffff;
  transition: border-color 0.2s;
}
.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 85, 165, 0.15);
}
.input-hint {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 4px;
}

/* Buttons in Funnel */
.step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}
.btn-prev {
  background: transparent;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13.5px;
}
.btn-prev:hover {
  background: #f1f5f9;
}
.btn-next {
  background: var(--primary);
  color: white;
  border: none;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 15px;
  box-shadow: 0 4px 10px rgba(0, 85, 165, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.btn-next:hover {
  background: var(--primary-dark);
}

/* Animation Loader Step */
.calcul-loader {
  text-align: center;
  padding: 30px 10px;
}
.spinner-ring {
  width: 56px;
  height: 56px;
  border: 5px solid #e2e8f0;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.loader-msg {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  min-height: 24px;
}

/* Results / Pre-Qualification Preview */
.aid-result-banner {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: white;
  padding: 20px;
  border-radius: var(--radius-md);
  text-align: center;
  margin-bottom: 20px;
}
.aid-result-banner .small-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.9;
}
.aid-result-banner .amount-big {
  font-size: 34px;
  font-weight: 900;
  margin: 4px 0;
}
.aid-result-banner .sub {
  font-size: 12px;
  opacity: 0.85;
}

/* Trust & Social Proof Bar */
.trust-bar {
  background: #ffffff;
  padding: 30px 0;
  border-bottom: 1px solid var(--border-color);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.trust-card {
  display: flex;
  align-items: center;
  gap: 14px;
}
.trust-card-icon {
  font-size: 32px;
  flex-shrink: 0;
}
.trust-card h4, .trust-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}
.trust-card p {
  font-size: 12.5px;
  color: var(--text-muted);
}

/* Verticals Section */
.section {
  padding: 70px 0;
}
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px;
}
.section-tag {
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.section-title {
  font-size: 32px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.5px;
  line-height: 1.2;
}
.section-desc {
  font-size: 16px;
  color: #64748b;
  margin-top: 12px;
}

.verticals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}
.vertical-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 30px;
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
.vertical-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #93c5fd;
}
.vertical-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary);
}
.vertical-card.solar::before { background: #f59e0b; }
.vertical-card.isolation::before { background: #10b981; }
.vertical-card.fenetres::before { background: #06b6d4; }
.vertical-card.renov::before { background: #8b5cf6; }

.vertical-icon {
  font-size: 40px;
  margin-bottom: 16px;
}
.vertical-card h3 {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 10px;
}
.vertical-card p {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 20px;
  flex-grow: 1;
}
.vertical-features {
  list-style: none;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.vertical-features li {
  font-size: 13px;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 8px;
}
.vertical-features li::before {
  content: '✓';
  color: #10b981;
  font-weight: bold;
}
.vertical-aid-pill {
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  margin-bottom: 18px;
  display: inline-block;
}
.btn-vertical {
  background: #f8fafc;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  padding: 10px;
  text-align: center;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.btn-vertical:hover {
  background: var(--primary);
  color: #ffffff;
}

/* Testimonials / Avis clients */
.reviews-section {
  background: #f1f5f9;
}
.reviews-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
}
.star-rating {
  color: #f59e0b;
  font-size: 20px;
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}
.review-card {
  background: #ffffff;
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid #e2e8f0;
}
.review-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.review-author {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}
.review-location {
  font-size: 12px;
  color: #64748b;
}
.review-badge {
  font-size: 11px;
  background: #dcfce7;
  color: #15803d;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}
.review-text {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 14px;
}
.review-project {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
}

/* FAQ Accordion */
.faq-section {
  background: #ffffff;
}
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid #e2e8f0;
}
.faq-question {
  padding: 20px 0;
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.faq-question:hover {
  color: var(--primary);
}
.faq-arrow {
  font-size: 18px;
  transition: transform 0.25s;
}
.faq-item.open .faq-arrow {
  transform: rotate(180deg);
}
.faq-answer {
  display: none;
  padding-bottom: 20px;
  font-size: 15px;
  color: #475569;
  line-height: 1.6;
}
.faq-item.open .faq-answer {
  display: block;
}

/* Sticky Mobile CTA */
.sticky-mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  padding: 12px 16px;
  box-shadow: 0 -4px 15px rgba(0,0,0,0.1);
  z-index: 99;
  border-top: 1px solid #e2e8f0;
}
.sticky-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--primary);
  color: #ffffff !important;
  font-weight: 800;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  text-align: center;
  width: 100%;
}

/* Footer */
.footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4, .footer-col h3 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 18px;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a {
  color: #94a3b8;
  font-size: 13.5px;
}
.footer-col a:hover {
  color: #ffffff;
}
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 25px;
  text-align: center;
  font-size: 12.5px;
}

/* CNIL Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  max-width: 420px;
  background: #ffffff;
  padding: 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  border: 1px solid #cbd5e1;
  z-index: 1000;
  font-size: 13px;
  display: none;
}
.cookie-banner.show {
  display: block;
}
.cookie-btns {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.btn-cookie-accept {
  flex: 1;
  background: var(--primary);
  color: white;
  border: none;
  padding: 8px;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
}
.btn-cookie-refuse {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
  padding: 8px 12px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
}

/* Legal pages content */
.legal-content {
  background: #ffffff;
  padding: 50px 40px;
  border-radius: var(--radius-lg);
  border: 1px solid #e2e8f0;
  margin: 40px 0;
  box-shadow: var(--shadow-sm);
}
.legal-content h1 {
  font-size: 32px;
  color: #0f172a;
  margin-bottom: 24px;
}
.legal-content h2 {
  font-size: 20px;
  color: var(--primary);
  margin-top: 30px;
  margin-bottom: 12px;
}
.legal-content p, .legal-content ul {
  font-size: 15px;
  color: #334155;
  margin-bottom: 14px;
}
.legal-content ul {
  padding-left: 24px;
}

/* Income cards styling with ANAH colors */
.income-card {
  text-align: left;
  border-left-width: 6px;
}
.income-card.bleu { border-left-color: #2563eb; }
.income-card.jaune { border-left-color: #f59e0b; }
.income-card.violet { border-left-color: #8b5cf6; }
.income-card.rose { border-left-color: #ec4899; }
.income-card.bleu.selected { background: #eff6ff; border-color: #2563eb; }
.income-card.jaune.selected { background: #fffbeb; border-color: #f59e0b; }
.income-card.violet.selected { background: #f5f3ff; border-color: #8b5cf6; }
.income-card.rose.selected { background: #fdf2f8; border-color: #ec4899; }

/* Surface quick cards */
.surface-quick-grid .option-card {
  padding: 12px 8px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2.5px;
  background-color: #0f172a;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .verticals-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .mobile-menu-btn { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-bottom: 2px solid var(--primary);
  }
  .nav-links.mobile-open {
    display: flex;
  }
  .nav-link {
    font-size: 16px;
    padding: 8px 0;
    display: block;
  }
  .sticky-mobile-cta { display: block; }
  body { padding-bottom: 70px; }
}


.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
