/* premium modern custom styles */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;700&family=Inter:wght@400;600&display=swap');

:root {
  --primary: #0B3D2E;
  --primary-hover: #0F5840;
  --secondary: #00E08A;
  --secondary-dark: #00C778;
  --dark: #0F1115;
  --slate-dark: #0F1115;
  --slate-light: #F3F6F4;
  --text-main: #3A4047;
  --text-muted: #6B7280;
  --white: #FFFFFF;
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;
  --border-color: #D9E0DB;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.02);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 10px 10px -5px rgba(0,0,0,0.04);
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
  font-family: var(--font-family);
  color: var(--text-main);
  background-color: var(--slate-light);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--dark);
  font-weight: 700;
  line-height: 1.25;
}

h1 {
  font-size: 2.25rem;
  letter-spacing: -0.025em;
}

h2 {
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.35rem;
  font-weight: 600;
}

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

a:hover {
  color: var(--primary-hover);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: 5rem 0;
}

.text-center {
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(11, 61, 46, 0.2);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--dark);
}

.btn-secondary:hover {
  background-color: #00C778;
  color: var(--dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 224, 138, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: var(--dark);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  background-color: var(--white);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

/* Navigation Header */
header.site-header {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
}

.logo-link svg {
  color: var(--primary);
}

.logo-img { height: 34px; width: auto; display: block; }

.logo-badge {
  font-size: 0.65rem;
  font-weight: 700;
  background-color: var(--secondary);
  color: var(--primary-hover);
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

nav.main-nav a {
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.95rem;
}

nav.main-nav a:hover, nav.main-nav a.active {
  color: var(--primary);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--dark);
  cursor: pointer;
}

/* Menu déroulant "Outils" (regroupe les simulateurs) */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
  transition: color 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown:focus-within .nav-dropdown-toggle,
.nav-dropdown-toggle.active {
  color: var(--primary);
}

.nav-dropdown-toggle .chevron {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-toggle .chevron,
.nav-dropdown:focus-within .nav-dropdown-toggle .chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.5rem;
  min-width: 290px;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 200;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background: var(--slate-light);
  color: var(--primary);
}

.nav-dropdown-menu a i {
  width: 16px;
  height: 16px;
  color: var(--primary);
  flex-shrink: 0;
}

/* Hero Section */
.hero-section {
  background: radial-gradient(circle at 100% 100%, var(--secondary) 0%, rgba(255,255,255,0) 70%), linear-gradient(135deg, #E8F8F0 0%, var(--white) 100%);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3rem;
  align-items: center;
}

.hero-content {
  padding: 4rem 0;
}

.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--white);
  border: 1px solid var(--border-color);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  line-height: 1.15;
}

.hero-title span {
  color: var(--primary);
  background: linear-gradient(120deg, var(--primary), var(--secondary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-main);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-image-wrapper {
  position: relative;
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  transform: none;
  transition: transform 0.5s ease;
}

.hero-image:hover {
  transform: none;
}

.hero-floating-card {
  position: absolute;
  bottom: 2rem;
  left: -2rem;
  background-color: var(--white);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 250px;
}

/* Statistics Bar */
.stats-bar {
  background-color: var(--white);
  border-bottom: 1px solid var(--border-color);
  padding: 2.5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-item {
  text-align: center;
  padding: 0 1rem;
}

.stat-item:not(:last-child) {
  border-right: 1px solid var(--border-color);
}

.stat-number {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Feature Showcase Grid (Tools) */
.section-header {
  max-width: 600px;
  margin: 0 auto 3.5rem auto;
}

.section-subtitle {
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-hover);
}

.feature-icon-wrapper {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-md);
  background-color: rgba(0, 224, 138, 0.2);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.feature-icon-wrapper svg {
  width: 1.75rem;
  height: 1.75rem;
}

.feature-card h3 {
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
}

/* Guides / News Grid */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

/* Tablette : 2 cartes par ligne avant le passage en pleine largeur mobile */
@media (max-width: 1100px) {
  .guides-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.guide-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.guide-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background-color: #ECF1EE;
}

.guide-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.guide-card-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.guide-category {
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
}

.guide-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.guide-card-title a {
  color: var(--dark);
}

.guide-card-title a:hover {
  color: var(--primary);
}

.guide-card-excerpt {
  color: var(--text-muted);
  font-size: 0.925rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* Interactive Simulator / Calculator */
.widget-box {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.widget-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 992px) {
  .widget-grid {
    grid-template-columns: 1fr;
  }
}

.widget-form-panel {
  padding: 3rem;
  border-right: 1px solid var(--border-color);
}

.widget-result-panel {
  padding: 3rem;
  background-color: #F3F6F4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--slate-dark);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: 1rem;
  color: var(--dark);
  background-color: var(--white);
  transition: all 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11, 61, 46, 0.15);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.range-wrap {
  position: relative;
}

.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.result-header {
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

.result-title {
  font-size: 1.5rem;
  color: var(--dark);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.result-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.result-card-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.comparison-box {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  position: relative;
}

.comparison-box.highlight {
  border-color: var(--primary);
  background-color: rgba(0, 224, 138, 0.1);
}

.comparison-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.comparison-box.highlight .comparison-label {
  color: var(--primary);
}

.comparison-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--dark);
}

.comparison-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.savings-highlight-banner {
  background-color: var(--primary);
  color: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  text-align: center;
  margin-bottom: 1.5rem;
}

.savings-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  opacity: 0.9;
}

.savings-value {
  font-size: 2.25rem;
  font-weight: 800;
  margin: 0.25rem 0;
}

.savings-desc {
  font-size: 0.8rem;
  opacity: 0.85;
}

/* ZFE search / details */
.zfe-explorer {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  padding: 3rem;
  margin-top: 2rem;
}

.zfe-search-container {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 768px) {
  .zfe-search-container {
    flex-direction: column;
  }
}

.zfe-cities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}

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

@media (max-width: 480px) {
  .zfe-cities-grid {
    grid-template-columns: 1fr;
  }
}

.zfe-city-card {
  background-color: var(--slate-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.zfe-city-card:hover, .zfe-city-card.active {
  background-color: var(--white);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.zfe-city-name {
  font-weight: 700;
  color: var(--dark);
}

.zfe-city-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--error);
  margin-top: 0.5rem;
}

.zfe-city-badge.moderate {
  background-color: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

.zfe-city-badge.soft {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.zfe-detail-box {
  background-color: #F3F6F4;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  display: none;
}

.zfe-detail-box.active {
  display: block;
}

.zfe-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}

.critair-status-row {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0;
}

.critair-badge {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.5rem;
  border: 3px solid transparent;
  color: var(--white);
}

.critair-badge.c0 { background-color: #10B981; border-color: #047857; }
.critair-badge.c1 { background-color: #8B5CF6; border-color: #6D28D9; }
.critair-badge.c2 { background-color: #F59E0B; border-color: #B45309; }
.critair-badge.c3 { background-color: #EF4444; border-color: #B91C1C; }
.critair-badge.c4 { background-color: #000000; border-color: #374151; }

/* Interactive Eligibility Quiz */
.quiz-box {
  max-width: 700px;
  margin: 0 auto;
  background-color: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.quiz-progress-bar {
  height: 4px;
  background-color: var(--border-color);
  width: 100%;
}

.quiz-progress-fill {
  height: 100%;
  background-color: var(--primary);
  width: 25%;
  transition: width 0.3s ease;
}

.quiz-body {
  padding: 3rem;
}

.quiz-step {
  display: none;
}

.quiz-step.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

.quiz-question {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.quiz-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.quiz-option-label {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.quiz-option-label:hover {
  background-color: rgba(0, 224, 138, 0.1);
  border-color: var(--primary);
}

.quiz-option-label input {
  width: 1.2rem;
  height: 1.2rem;
}

.quiz-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}

/* Call to Action Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--slate-dark) 100%);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner h2 {
  color: var(--white);
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.cta-banner p {
  opacity: 0.9;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 2rem auto;
}

/* Footer styles */
footer.site-footer {
  background-color: var(--dark);
  color: #94A3B8;
  padding: 4rem 0 2rem 0;
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: var(--white);
  margin-bottom: 1.25rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.footer-logo svg {
  color: var(--secondary);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col ul li a {
  color: #94A3B8;
}

.footer-col ul li a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

/* Scroll Animation System */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Detail Guide Page Layout */
.guide-header {
  padding: 5rem 0 3rem 0;
  background: linear-gradient(135deg, #F3F6F4 0%, #ECF1EE 100%);
  border-bottom: 1px solid var(--border-color);
}

.guide-header-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-weight: 600;
}

.guide-main-grid {
  display: grid;
  grid-template-columns: 2.3fr 1fr;
  gap: 4rem;
  padding: 4rem 0;
}

@media (max-width: 992px) {
  .guide-main-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.guide-article {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 3rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.guide-article-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
}

.guide-intro-text {
  font-size: 1.2rem;
  color: var(--dark);
  font-weight: 500;
  line-height: 1.7;
  border-left: 4px solid var(--primary);
  padding-left: 1.5rem;
  margin-bottom: 2.5rem;
}

.guide-section {
  margin-bottom: 2.5rem;
}

.guide-section h2 {
  margin-bottom: 1rem;
  color: var(--dark);
}

.guide-section p {
  font-size: 1.05rem;
  color: var(--text-main);
  line-height: 1.75;
  margin-bottom: 1rem;
  white-space: pre-line;
}

.guide-sidebar-card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.guide-sidebar-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--dark);
}

/* -------------------------------------------------------------
   COMPLÉMENTS POUR LE CONFIGURATEUR ET L'AFFILIATION DE BORNES 
   ------------------------------------------------------------- */
.grid-layout-responsive {
  display: grid;
}

@media (max-width: 992px) {
  .grid-layout-responsive {
    grid-template-columns: 1fr !important;
  }
}

.borne-step {
  animation: fadeIn 0.3s ease;
}

.quiz-option-label input[type="radio"] {
  accent-color: var(--primary);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive Overrides */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero-content {
    padding: 2rem 0;
  }
  .hero-image-wrapper {
    display: none; /* Hide on mobile to keep focus on CTAs & content speed */
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item:nth-child(2) {
    border-right: none;
  }
  .features-grid, .guides-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .stat-item {
    border-right: none !important;
    padding-bottom: 1rem;
  }
  .stat-item:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}