/*
  MAIN STYLESHEET - V2
  Designed by a former Apple Senior Web Designer
  Principles: Clarity, Deference, Depth.
*/

/* 1. DESIGN SYSTEM & GLOBAL STYLES
-------------------------------------------------- */
:root {
  /* Typography System */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  --font-serif: "Iowan Old Style", "Apple Garamond", Baskerville, "Times New Roman", "Droid Serif", Times, "Source Serif Pro", serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  
  /* SEO-optimized Color System */
  --color-text: #1d1d1f;
  --color-text-light: #6e6e73;
  --color-text-lighter: #86868b;
  --color-primary: #b01e2f;
  --color-primary-hover: #8b1825;
  --color-primary-light: rgba(176, 30, 47, 0.1);
  --color-success: #059669;
  --color-success-light: rgba(5, 150, 105, 0.1);
  --color-warning: #f59e0b;
  --color-error: #dc2626;
  --color-background: #ffffff;
  --color-background-soft: #f5f5f7;
  --color-background-muted: #f8f9fa;
  --color-border: #d2d2d7;
  --color-border-light: #e5e5e7;

  /* Spacing System */
  --space-unit: 8px;
  --space-xs: calc(var(--space-unit) * 0.5);  /* 4px */
  --space-sm: var(--space-unit);               /* 8px */
  --space-md: calc(var(--space-unit) * 2);     /* 16px */
  --space-lg: calc(var(--space-unit) * 3);     /* 24px */
  --space-xl: calc(var(--space-unit) * 4);     /* 32px */
  --space-2xl: calc(var(--space-unit) * 6);    /* 48px */
  --space-3xl: calc(var(--space-unit) * 8);    /* 64px */
  --section-padding: calc(var(--space-unit) * 12); /* 96px */
  --container-width: 1280px;

  /* Enhanced Borders & Shadows */
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --border-radius-full: 9999px;
  
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 15px 45px rgba(0, 0, 0, 0.1);
  --shadow-focus: 0 0 0 3px var(--color-primary-light);
  
  /* Animation Tokens */
  --transition-fast: 150ms;
  --transition-base: 300ms;
  --transition-slow: 500ms;
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 30px;
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
}

/* 2. TYPOGRAPHY
-------------------------------------------------- */
h1, h2, h3 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}
h2 { font-size: clamp(2rem, 5vw, 3rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
p { color: var(--color-text-light); margin-bottom: 1.5rem; }

/* Lists */
ul, ol {
  margin-bottom: 1.5rem;
  padding-left: 0;
  list-style: none;
}

ul li, ol li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.75rem;
  color: var(--color-text);
  line-height: 1.6;
}

ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-success);
  font-weight: 700;
  font-size: 1.1em;
}

ol li::before {
  content: counter(list-counter) ".";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-primary);
  font-weight: 700;
  counter-increment: list-counter;
}

ol {
  counter-reset: list-counter;
}

/* 3. LAYOUT & SECTIONS
-------------------------------------------------- */
.section-padding {
  padding: var(--section-padding) 0;
}
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}
.section-header h2 {
  margin-bottom: 1rem;
}
.section-header p {
  font-size: 1.2rem;
  color: var(--color-text);
}

/* 4. COMPONENTS
-------------------------------------------------- */

/* Modern CTA Buttons with Micro-interactions */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-2xl);
  font-size: var(--font-size-lg);
  font-weight: 600;
  border-radius: var(--border-radius-full);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-base) var(--ease-out);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent 0%, transparent 50%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.1) 100%);
  transform: translateX(-100%);
  transition: transform var(--transition-base) var(--ease-out);
  z-index: -1;
}

.cta-btn:hover::before {
  transform: translateX(0);
}

.cta-btn::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.2) 10%, transparent 10.01%);
  background-repeat: no-repeat;
  background-position: 50%;
  transform: scale(10, 10);
  opacity: 0;
  transition: transform 0.5s, opacity 1s;
}

.cta-btn:active::after {
  transform: scale(0, 0);
  opacity: 0.3;
  transition: 0s;
}

/* Primary CTA Button */
.cta-btn-primary {
  background-color: var(--color-primary);
  color: white;
  box-shadow: var(--shadow-md);
}

.cta-btn-primary:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.cta-btn-primary:active {
  transform: translateY(0);
}

/* Form-specific Primary CTA */
.contact-form .cta-btn-primary {
  width: 100%;
  background-color: #059669;
  color: white;
  font-weight: 600;
  font-size: 1.125rem;
  padding: 16px 32px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 1rem;
  box-shadow: 0 4px 6px rgba(5, 150, 105, 0.1);
}

.contact-form .cta-btn-primary:hover {
  background-color: #047857;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(5, 150, 105, 0.2);
}

.contact-form .cta-btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(5, 150, 105, 0.1);
}

/* Secondary CTA Button */
.cta-btn-secondary {
  background-color: var(--color-background);
  color: var(--color-text);
  border: 2px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.cta-btn-secondary:hover {
  background-color: var(--color-background-soft);
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Loading State */
.cta-btn.loading {
  pointer-events: none;
  opacity: 0.8;
}

.cta-btn.loading .btn-text {
  visibility: hidden;
}

.cta-btn.loading::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s infinite linear;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Success State */
.cta-btn.success {
  background-color: var(--color-success);
  pointer-events: none;
}

.cta-btn.success::before {
  content: '✓';
  font-size: 1.2em;
  color: white;
}


/* --- Mobile Navigation --- */
/* Les styles du burger menu sont maintenant dans critical-css.php */

/* --- Feature Blocks (Avantages) --- */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  margin-bottom: 6rem;
}

/* Desktop: Alternance gauche-droite */
.feature-block:nth-child(2) .feature-image { order: 2; }
.feature-block:nth-child(2) .feature-text { order: 1; }
.feature-block:nth-child(3) .feature-image { order: 1; }
.feature-block:nth-child(3) .feature-text { order: 2; }
.feature-block:nth-child(4) .feature-image { order: 2; }
.feature-block:nth-child(4) .feature-text { order: 1; }

.feature-image {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-large);
  object-fit: cover;
  box-shadow: var(--shadow-medium);
}

.feature-text h3 { 
  margin-bottom: 1rem; 
  color: var(--color-primary);
  font-size: 1.5rem;
  font-weight: 700;
}

.feature-text p {
  line-height: 1.6;
  color: var(--color-text);
}

/* Mobile: Ordre uniforme Titre → Texte → Photo */
@media (max-width: 900px) {
  .feature-block { 
    grid-template-columns: 1fr; 
    gap: 1.5rem;
    margin-bottom: 4rem;
  }
  
  /* Reset de tous les ordres pour mobile */
  .feature-block .feature-text { 
    order: 1 !important; 
  }
  .feature-block .feature-image { 
    order: 2 !important; 
  }
  
  .feature-text h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }
  
  .feature-text p {
    font-size: 0.95rem;
  }
}

/* --- Steps Grid (Dossier) --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}
.step-card {
  background: var(--color-background-soft);
  padding: 2rem;
  border-radius: var(--border-radius-large);
  text-align: center;
}
.step-number {
  width: 50px;
  height: 50px;
  background-color: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.step-card h3 { margin-bottom: 1rem; }

/* --- Eligibility Table --- */
.eligibility-table-container {
  background: var(--color-background);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2rem;
  margin: 3rem 0;
  overflow-x: auto;
}

.table-region-title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 2rem;
  text-align: center;
  padding: 1.5rem 2rem;
  background: var(--color-background-soft);
  border-radius: var(--border-radius-md);
}

.eligibility-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
  background: var(--color-background);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.eligibility-table caption {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 1.5rem;
  text-align: left;
  padding: 0 1rem;
}

.eligibility-table thead {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.eligibility-table th {
  padding: 1.25rem 1rem;
  text-align: center;
  font-weight: 700;
  color: var(--color-text);
  border-bottom: 2px solid var(--color-border);
  position: relative;
}

.eligibility-table th[scope="col"] {
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.eligibility-table th[scope="row"] {
  background: var(--color-background-soft);
  text-align: left;
  font-weight: 600;
  color: var(--color-text);
  border-right: 2px solid var(--color-border);
  min-width: 120px;
}

.eligibility-table td {
  padding: 1.25rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--color-border-light);
  vertical-align: middle;
  transition: all var(--transition-fast) var(--ease-out);
}

.eligibility-table tbody tr:hover {
  background: var(--color-background-soft);
}

.eligibility-table tbody tr:hover td {
  transform: scale(1.02);
}

/* Barème color styles - Pastel */
.barème-bleu {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1e40af;
  font-weight: 600;
  border: 1px solid #93c5fd;
}

.barème-bleu strong {
  color: #1e40af;
  font-size: var(--font-size-base);
}

.barème-bleu small {
  color: #1e40af;
  font-size: var(--font-size-xs);
  display: block;
  margin-top: 0.25rem;
  opacity: 0.8;
}

.barème-jaune {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  font-weight: 600;
  border: 1px solid #fcd34d;
}

.barème-violet {
  background: linear-gradient(135deg, #e9d5ff 0%, #ddd6fe 100%);
  color: #6b21a8;
  font-weight: 600;
  border: 1px solid #c4b5fd;
}

.barème-rose {
  background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
  color: #be185d;
  font-weight: 600;
  border: 1px solid #f9a8d4;
}

/* Table CTA Buttons - Lead Generation Optimized */
.table-cta-btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin-top: 0.5rem;
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-fast) var(--ease-out);
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.table-cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.table-cta-btn:hover::before {
  left: 100%;
}

.table-cta-primary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: 2px solid #10b981;
  animation: pulse-green 2s infinite;
}

.table-cta-primary:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
  color: white;
}

.table-cta-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-text);
  border: 2px solid rgba(255, 255, 255, 0.8);
  font-weight: 600;
}

.table-cta-secondary:hover {
  background: white;
  color: var(--color-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  border-color: var(--color-primary);
}

/* Animation pour le bouton principal */
@keyframes pulse-green {
  0%, 100% {
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
  }
  50% {
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.6);
  }
}

/* Table note */
.table-note {
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--color-background-soft);
  border-radius: var(--border-radius-sm);
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  text-align: center;
  border-left: 4px solid var(--color-primary);
}

.table-note a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
}

.table-note a:hover {
  text-decoration: underline;
}

/* Responsive design */
@media (max-width: 768px) {
  .eligibility-table-container {
    padding: 1rem;
    margin: 2rem 0;
  }
  
  .eligibility-table {
    font-size: var(--font-size-xs);
  }
  
  .eligibility-table th,
  .eligibility-table td {
    padding: 0.75rem 0.5rem;
  }
  
  .eligibility-table th[scope="row"] {
    min-width: 80px;
    font-size: var(--font-size-xs);
  }
  
  .eligibility-table caption {
    font-size: var(--font-size-base);
    text-align: center;
  }
  
  .barème-bleu small,
  .barème-jaune small,
  .barème-violet small,
  .barème-rose small {
    font-size: 0.7rem;
  }
  
  /* Mobile CTA buttons */
  .table-cta-btn {
    font-size: 0.7rem;
    padding: 0.4rem 0.8rem;
    margin-top: 0.3rem;
  }
  
  .table-cta-primary {
    animation: none; /* Désactiver l'animation sur mobile */
  }
  
  /* Mobile region titles */
  .table-region-title {
    font-size: var(--font-size-xl);
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 480px) {
  .eligibility-table th,
  .eligibility-table td {
    padding: 0.5rem 0.25rem;
  }
  
  .eligibility-table th[scope="col"] {
    font-size: 0.65rem;
  }
  
  .barème-bleu strong,
  .barème-jaune,
  .barème-violet,
  .barème-rose {
    font-size: var(--font-size-xs);
  }
  
  /* Mobile CTA buttons - très petits écrans */
  .table-cta-btn {
    font-size: 0.65rem;
    padding: 0.3rem 0.6rem;
    margin-top: 0.2rem;
  }
  
  .table-cta-primary {
    font-size: 0.6rem;
  }
  
  /* Mobile region titles - très petits écrans */
  .table-region-title {
    font-size: var(--font-size-lg);
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
  }
}

/* --- CTA Bands --- */
.cta-band {
  background-color: var(--color-background-soft);
  padding: 4rem 0;
  margin-top: 6rem;
}
.cta-band .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}
.cta-band p { font-size: 1.4rem; color: var(--color-text); margin: 0; }
.cta-band-highlight {
  background: var(--color-primary);
}
.cta-band-highlight p { color: white; }
.cta-band-highlight .cta-btn { background-color: white; color: var(--color-primary); }
@media (max-width: 768px) {
  .cta-band .container { flex-direction: column; text-align: center; }
  .cta-band p { margin-bottom: 1.5rem; }
}


/* --- FAQ Accordion --- */
.faq-accordion { max-width: 800px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--color-border);
}
.faq-item summary {
  font-size: 1.2rem;
  font-weight: 600;
  padding: 1.5rem 0;
  cursor: pointer;
  list-style: none; /* Hide default marker */
  position: relative;
  padding-right: 2rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-text-light);
  transition: transform 0.3s ease;
}
.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}
.faq-item p {
  padding: 0 0 1.5rem;
  line-height: 1.7;
}

/* Styles pour les liens dans les FAQ */
.faq-item a {
  color: var(--color-primary);
  text-decoration: underline;
  font-weight: 600;
  transition: all var(--transition-fast) var(--ease-out);
}

.faq-item a:hover {
  color: var(--color-primary-hover);
  text-decoration: none;
  background-color: var(--color-primary-light);
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
}

/* --- Contact Form --- */
.section-contact { background-color: var(--color-background-soft); }
.contact-header { text-align: center; max-width: 600px; margin: 0 auto 3rem; }
.deadline-alert {
  background-color: rgba(176, 30, 47, 0.1);
  color: var(--color-primary);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
}
.deadline-over { font-size: 1.1rem; }

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: #ffffff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 10px 15px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
  .contact-form {
    padding: 3rem;
  }
}

.form-group {
  margin-bottom: var(--space-xl);
  position: relative;
}

/* Suppression du soulignement pour éviter les conflits */

.form-row {
  display: flex;
  gap: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.form-row .form-group {
  flex: 1;
  margin-bottom: 0;
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  font-size: var(--font-size-sm);
  color: var(--color-text);
  transition: color var(--transition-fast) var(--ease-out);
}

/* Styles simples pour le label */
.form-group label {
  color: var(--color-text);
}

.contact-form input,
.contact-form select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 16px;
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: #ffffff;
  height: 48px;
}

/* Style pour les champs invalides */
.contact-form input:user-invalid,
.contact-form select:user-invalid {
  border-color: #dc2626;
}

/* Label en rouge pour les champs invalides */
.form-group:has(input:user-invalid) label,
.form-group:has(select:user-invalid) label {
  color: #dc2626;
}

/* Style pour les champs valides */
.contact-form input:valid:not(:placeholder-shown),
.contact-form select:valid:not(:placeholder-shown) {
  border-color: #059669;
}

/* Label en vert pour les champs valides */
.form-group:has(input:valid:not(:placeholder-shown)) label,
.form-group:has(select:valid:not(:placeholder-shown)) label {
  color: #059669;
}

.contact-form select {
  cursor: pointer;
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 20px 20px;
}

/* Floating label animation */
.form-group {
  position: relative;
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  transition: color var(--transition-base) var(--ease-out);
}

/* Custom select styling */
.contact-form select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right var(--space-md) center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: var(--space-3xl);
}

.contact-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.75rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

.contact-form select:focus {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23059669' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
}

.checkbox-group { 
  display: flex; 
  align-items: flex-start; 
  gap: 0.75rem; 
}

.checkbox-group input[type="checkbox"] { 
  width: 16px;
  height: 16px;
  margin-top: 4px; 
  accent-color: #059669;
}

.checkbox-group label { 
  font-weight: 500; 
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Styles pour le groupe de boutons radio personnalisés */
.radio-group-label {
  display: block;
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--color-text);
}

.radio-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border: 2px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-background);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.radio-option:hover {
  border-color: #059669;
  background: rgba(5, 150, 105, 0.02);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.1);
}

.radio-option:hover .radio-custom {
  border-color: #059669;
}

.radio-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-custom {
  width: 20px;
  height: 20px;
  border: 2px solid #d1d5db;
  border-radius: 50%;
  background: #ffffff;
  position: relative;
  transition: all 0.3s ease;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radio-option input[type="radio"]:checked + .radio-custom {
  border-color: #059669;
  background: #059669;
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  opacity: 1;
  transform: scale(1);
  transition: all 0.2s ease;
}

.radio-option input[type="radio"]:not(:checked) + .radio-custom::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: transparent;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0);
  transition: all 0.2s ease;
}

.radio-option input[type="radio"]:checked ~ .radio-text {
  color: #059669;
  font-weight: 600;
}

.radio-option input[type="radio"]:checked {
  border-color: #059669;
  background: rgba(5, 150, 105, 0.05);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.radio-text {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  transition: all 0.3s ease;
  user-select: none;
}

.contact-form .cta-btn { width: 100%; margin-top: 1rem; }

/* Styles pour les placeholders et l'aide du formulaire */
.contact-form input::placeholder,
.contact-form select::placeholder {
  color: #9ca3af;
  font-style: italic;
}

.form-help {
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 0.5rem;
  text-align: center;
  line-height: 1.4;
}

/* Amélioration de l'accessibilité pour les fieldset */
fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

legend {
  margin-bottom: 1rem;
}

/* Styles pour les messages d'erreur améliorés */
.error-message {
  color: #dc2626 !important;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Styles pour les champs en erreur */
.contact-form input.error,
.contact-form select.error {
  border-color: #dc2626 !important;
  background-color: #fff !important;
}

.contact-form .radio-group.error {
  border: 2px solid #dc2626 !important;
}

/* Message d'erreur avec icône */
.error-message::before {
  content: "⚠️";
  font-size: 0.75rem;
  margin-right: 0.25rem;
}

.error-message::before {
  content: "⚠️";
  font-size: 0.75rem;
}

@media (max-width: 768px) {
  .contact-form { padding: 2rem; }
  .form-row { flex-direction: column; gap: 0; }
  
  .radio-group {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
  
  .radio-option {
    padding: 0.875rem;
  }
  
  .radio-text {
    font-size: 0.85rem;
  }
}

/* --- Testimonials --- */
.testimonials-section {
  position: relative;
  overflow: hidden;
  padding: var(--section-padding) 0;
  background: linear-gradient(to bottom, var(--color-background) 0%, var(--color-background-soft) 100%);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-xl);
  position: relative;
  z-index: 1;
}

.testimonial-card {
  background: var(--color-background);
  padding: var(--space-2xl);
  border-radius: var(--border-radius-lg);
  text-align: left;
  transition: all var(--transition-base) var(--ease-out);
  position: relative;
  box-shadow: var(--shadow-md);
}

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

.testimonial-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.testimonial-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  border: 3px solid var(--color-background);
  transition: transform var(--transition-base) var(--ease-out);
}

.testimonial-card:hover .testimonial-avatar {
  transform: scale(1.05);
}

.testimonial-meta {
  flex: 1;
}

.testimonial-author {
  margin-bottom: var(--space-xs);
}

.testimonial-author strong {
  display: block;
  font-weight: 600;
  color: var(--color-text);
  font-size: var(--font-size-lg);
  line-height: 1.2;
}

.testimonial-author span {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
}

.testimonial-rating {
  display: flex;
  gap: 2px;
  color: var(--color-warning);
  margin-top: var(--space-xs);
}

.testimonial-text {
  font-family: var(--font-serif);
  font-size: var(--font-size-lg);
  line-height: 1.6;
  color: var(--color-text);
  margin-bottom: var(--space-lg);
  position: relative;
}

.testimonial-text::before {
  content: '"';
  font-family: Georgia, serif;
  font-size: 4em;
  color: var(--color-primary-light);
  position: absolute;
  top: -0.5em;
  left: -0.2em;
  z-index: -1;
  opacity: 0.5;
}

.testimonial-source {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border-light);
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
}

.testimonial-source svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.testimonial-date {
  margin-left: auto;
  font-style: italic;
}

@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .testimonial-card {
    padding: var(--space-xl);
  }
  
  .testimonial-text {
    font-size: var(--font-size-base);
  }
}

/* ==========================================================================
   6. THANK YOU PAGE
   ========================================================================== */

/* Styles pour la page de remerciement */
.thank-you-section {
  padding: var(--section-padding) 0;
  min-height: 70vh;
  display: flex;
  align-items: center;
  background-color: var(--color-background-soft);
}

.thank-you-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--color-background);
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-medium);
}

.success-icon {
  text-align: center;
  margin-bottom: 2rem;
}

.thank-you-message {
  margin: 2rem 0;
}

.thank-you-message p {
  margin-bottom: 1rem;
  color: var(--color-text);
}

.next-steps {
  margin-top: 3rem;
}

.step {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--color-background-soft);
  border-radius: var(--border-radius-medium);
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
}

.step-content h3 {
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.step-content ul {
  list-style-type: none;
  padding-left: 0;
}

.step-content li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.step-content li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-primary);
}

@media (max-width: 768px) {
  .thank-you-content {
    padding: 1.5rem;
  }
  
  .step {
    flex-direction: column;
    gap: 1rem;
  }
  
  .step-number {
    margin-bottom: 0.5rem;
  }
}

/* ==========================================================================
   7. FOOTER
   ========================================================================== */

   .site-footer {
    background-color: #1d1d1f; /* Un noir profond, comme chez Apple */
    color: #a1a1a6; /* Un gris clair pour le texte */
    padding: var(--section-padding) 0 3rem;
    font-size: 0.95rem;
  }
  
  .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr; /* La première colonne est plus large */
    gap: 3rem;
    margin-bottom: 4rem;
  }
  
  .footer-section h4 {
    color: #f5f5f7; /* Titres en blanc cassé */
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
  }
  
  /* Section de la marque (logo et réseaux) */
  .footer-brand .footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 1.5rem;
  }
  
  .footer-brand p {
    color: #a1a1a6;
    max-width: 300px;
    margin-bottom: 1.5rem;
  }
  
  .social-links {
    display: flex;
    gap: 1rem;
  }
  
  .social-links a {
    display: inline-block;
    color: #f5f5f7;
    transition: color 0.3s ease;
  }
  
  .social-links a:hover {
    color: var(--color-primary);
  }
  
  .social-links svg {
    width: 24px;
    height: 24px;
  }
  
  /* Colonnes de navigation */
  .footer-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .footer-nav a {
    color: #a1a1a6;
    transition: color 0.3s ease;
  }
  
  .footer-nav a:hover {
    color: white;
  }
  
  /* Colonne de contact */
  .footer-contact {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .footer-contact li,
  .footer-contact a {
    color: #a1a1a6;
  }
  
  .footer-contact a:hover {
    color: white;
  }
  
  /* Ligne de copyright en bas */
  .footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid #3e3e42;
    text-align: center;
    font-size: 0.9rem;
    color: #6e6e73;
  }
  
  /* Responsive pour le Footer */
  @media (max-width: 900px) {
    .footer-grid {
      grid-template-columns: 1fr 1fr; /* Passe à 2 colonnes sur tablette */
    }
    .footer-brand {
      grid-column: 1 / -1; /* La marque prend toute la largeur */
      text-align: center;
    }
    .footer-brand p {
        margin-left: auto;
        margin-right: auto;
    }
    .social-links {
      justify-content: center;
    }
  }
  
  @media (max-width: 600px) {
    .footer-grid {
      grid-template-columns: 1fr; /* Passe à 1 colonne sur mobile */
      text-align: center;
    }
  }

/* ==========================================================================
   8. ARTICLES & REGIONS PAGE STYLES
   ========================================================================== */

/* --- Hero Section for Articles --- */
.hero-articles {
  position: relative;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
  padding: var(--section-padding) 0;
  text-align: center;
  color: white;
  overflow: hidden;
}

.hero-articles::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
  z-index: 1;
}

.hero-articles .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.hero-articles .container {
  position: relative;
  z-index: 3;
}

.hero-articles h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1.1;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 3vw, 1.5rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.4;
  font-weight: 400;
}

/* --- Breadcrumb Navigation --- */
.breadcrumb {
  padding: 1.5rem 0;
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  border-bottom: 1px solid var(--color-border-light);
  margin-bottom: 2rem;
}

.breadcrumb a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast) var(--ease-out);
}

.breadcrumb a:hover {
  color: var(--color-primary-hover);
  text-decoration: underline;
}

.breadcrumb span {
  color: var(--color-text-light);
  font-weight: 500;
}

/* --- Article Content Layout --- */
.article-content {
  max-width: 1200px;
  margin: 0 auto;
}

.section-intro {
  text-align: center;
  margin-bottom: 4rem;
  padding: 0 1rem;
}

.section-intro h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1.5rem;
  color: var(--color-text);
}

.section-intro p {
  font-size: var(--font-size-lg);
  line-height: 1.6;
  color: var(--color-text-light);
  max-width: 800px;
  margin: 0 auto;
}

/* --- Modern CTA Band --- */
.cta-band-modern {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
  margin: 4rem 0;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(176, 30, 47, 0.2);
}

.cta-band-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(176, 30, 47, 0.05) 0%, 
    rgba(176, 30, 47, 0.02) 50%, 
    rgba(176, 30, 47, 0.05) 100%);
  z-index: 1;
}

.cta-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  padding: 3rem;
  position: relative;
  z-index: 2;
  align-items: center;
}

.cta-content {
  color: var(--color-text);
}

.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: var(--font-size-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
  animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.badge-icon {
  font-size: 1.2em;
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-3px); }
  60% { transform: translateY(-2px); }
}

.cta-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 2rem;
  line-height: 1.2;
  color: var(--color-text);
}

.cta-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

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

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.cta-description {
  font-size: var(--font-size-lg);
  color: var(--color-text-light);
  line-height: 1.6;
  margin: 0;
}

.cta-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.cta-btn-modern {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
  color: white;
  padding: 1.5rem 2.5rem;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 8px 25px rgba(176, 30, 47, 0.3);
  transition: all var(--transition-base) var(--ease-out);
  position: relative;
  overflow: hidden;
  min-width: 220px;
  text-align: center;
  border: 2px solid var(--color-primary);
}

.cta-btn-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s;
}

.cta-btn-modern:hover::before {
  left: 100%;
}

.cta-btn-modern:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(176, 30, 47, 0.4);
  border-color: var(--color-primary-hover);
}

.btn-text {
  font-size: var(--font-size-lg);
  font-weight: 800;
}

.btn-subtext {
  font-size: var(--font-size-sm);
  opacity: 0.9;
  font-weight: 500;
}

.btn-arrow {
  font-size: 1.5rem;
  margin-top: 0.5rem;
  transition: transform var(--transition-base) var(--ease-out);
}

.cta-btn-modern:hover .btn-arrow {
  transform: translateX(4px);
}

.cta-guarantee {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-light);
  font-size: var(--font-size-sm);
  font-weight: 500;
}

.guarantee-icon {
  color: #4ade80;
  font-weight: 700;
  font-size: 1.1em;
}

.cta-decoration {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
}

.decoration-circle {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(176, 30, 47, 0.08) 0%, rgba(176, 30, 47, 0.03) 100%);
  animation: float 6s ease-in-out infinite;
}

.circle-1 {
  width: 120px;
  height: 120px;
  top: -60px;
  right: -60px;
  animation-delay: 0s;
}

.circle-2 {
  width: 80px;
  height: 80px;
  bottom: -40px;
  left: -40px;
  animation-delay: 2s;
}

.circle-3 {
  width: 60px;
  height: 60px;
  top: 50%;
  right: 20%;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

/* --- Secondary CTA Band --- */
.cta-band-secondary {
  background: linear-gradient(135deg, #fef2f2 0%, #fce7e7 50%, #fef7f7 100%);
  margin: 4rem 0;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 60px rgba(176, 30, 47, 0.08);
  border: 1px solid rgba(176, 30, 47, 0.15);
}

.cta-band-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(176, 30, 47, 0.08) 0%, 
    rgba(176, 30, 47, 0.03) 50%, 
    rgba(176, 30, 47, 0.08) 100%);
  z-index: 1;
}

.cta-container-secondary {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  padding: 3rem;
  position: relative;
  z-index: 2;
  align-items: center;
}

.cta-content-secondary {
  color: var(--color-text);
}

.cta-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
  border-radius: 50%;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 20px rgba(176, 30, 47, 0.2);
  animation: pulse-icon 2s infinite;
}

@keyframes pulse-icon {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.cta-icon {
  font-size: 1.5rem;
  color: white;
}

.cta-title-secondary {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.3;
  color: var(--color-text);
}

.cta-highlights {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, rgba(176, 30, 47, 0.08) 0%, rgba(176, 30, 47, 0.03) 100%);
  padding: 0.75rem 1.25rem;
  border-radius: 25px;
  border: 1px solid rgba(176, 30, 47, 0.15);
  box-shadow: 0 4px 12px rgba(176, 30, 47, 0.08);
  transition: all var(--transition-base) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.highlight-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(176, 30, 47, 0.1), transparent);
  transition: left 0.6s;
}

.highlight-item:hover::before {
  left: 100%;
}

.highlight-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(176, 30, 47, 0.15);
  border-color: rgba(176, 30, 47, 0.25);
}

.highlight-icon {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.9em;
}

.highlight-text {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text);
}

.cta-description-secondary {
  font-size: var(--font-size-lg);
  color: var(--color-text-light);
  line-height: 1.6;
  margin: 0;
}

.cta-action-secondary {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.cta-btn-secondary-modern {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
  color: white;
  padding: 1.5rem 2.5rem;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 8px 25px rgba(176, 30, 47, 0.3);
  transition: all var(--transition-base) var(--ease-out);
  position: relative;
  overflow: hidden;
  min-width: 220px;
  text-align: center;
  border: 2px solid var(--color-primary);
}

.cta-btn-secondary-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s;
}

.cta-btn-secondary-modern:hover::before {
  left: 100%;
}

.cta-btn-secondary-modern:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(176, 30, 47, 0.4);
  border-color: var(--color-primary-hover);
}

.btn-text-secondary {
  font-size: var(--font-size-lg);
  font-weight: 800;
}

.btn-subtext-secondary {
  font-size: var(--font-size-sm);
  opacity: 0.9;
  font-weight: 500;
}

.btn-arrow-secondary {
  font-size: 1.5rem;
  margin-top: 0.5rem;
  transition: transform var(--transition-base) var(--ease-out);
}

.cta-btn-secondary-modern:hover .btn-arrow-secondary {
  transform: translateX(4px);
}

.cta-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-light);
  font-size: var(--font-size-sm);
  font-weight: 500;
}

.note-icon {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.1em;
}

.cta-decoration-secondary {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
}

.decoration-dot {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(176, 30, 47, 0.15) 0%, rgba(176, 30, 47, 0.08) 100%);
  animation: float-dot 6s ease-in-out infinite;
  box-shadow: 0 4px 15px rgba(176, 30, 47, 0.1);
}

.dot-1 {
  width: 80px;
  height: 80px;
  top: -40px;
  right: -40px;
  animation-delay: 0s;
}

.dot-2 {
  width: 60px;
  height: 60px;
  bottom: -30px;
  left: -30px;
  animation-delay: 2s;
}

.dot-3 {
  width: 40px;
  height: 40px;
  top: 50%;
  right: 15%;
  animation-delay: 4s;
}

.dot-4 {
  width: 25px;
  height: 25px;
  top: 20%;
  left: 20%;
  animation-delay: 1s;
}

.dot-5 {
  width: 35px;
  height: 35px;
  bottom: 20%;
  right: 30%;
  animation-delay: 3s;
}

@keyframes float-dot {
  0%, 100% { transform: translateY(0px) rotate(0deg) scale(1); opacity: 0.6; }
  50% { transform: translateY(-25px) rotate(180deg) scale(1.1); opacity: 0.9; }
}

/* --- Enhanced CTA Bands (Legacy) --- */
.cta-band.accent {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
  color: white;
  margin: 4rem 0;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  position: relative;
}

.cta-band.accent::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="accent-grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="60" cy="20" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23accent-grain)"/></svg>');
  opacity: 0.2;
}

.cta-band.accent .container {
  position: relative;
  z-index: 2;
}

.cta-band.accent .cta-text h3 {
  color: white;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  margin-bottom: 1rem;
  font-weight: 700;
}

.cta-band.accent .cta-text p {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--font-size-lg);
  margin-bottom: 0;
}

.cta-band.accent .cta-btn {
  background-color: white;
  color: var(--color-primary);
  border: 2px solid white;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
}

.cta-band.accent .cta-btn:hover {
  background-color: var(--color-background-soft);
  color: var(--color-primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* --- Regions Grid --- */
.regions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.region-card {
  background: var(--color-background);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base) var(--ease-out);
  overflow: hidden;
  position: relative;
}

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

.region-card a {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.region-card .article-content {
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.region-card .category {
  display: inline-block;
  background: var(--color-primary-light);
  color: var(--color-primary);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-full);
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.region-card h3 {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.region-card p {
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.region-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-primary);
  font-weight: 600;
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all var(--transition-fast) var(--ease-out);
}

.region-card:hover .read-more {
  color: var(--color-primary-hover);
  transform: translateX(4px);
}

/* --- FAQ Section (pompe-a-chaleur-gratuite.php) --- */
.faq-section {
  margin: 4rem 0;
  padding: 4rem 0;
  background: var(--color-background-soft);
  border-radius: var(--border-radius-lg);
}

.faq-section h3 {
  text-align: center;
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 3rem;
  color: var(--color-text);
  padding: 0 2rem;
}

.faq-section [itemscope] {
  margin-bottom: 2rem;
  padding: 0 3rem;
}

.faq-section h4 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.faq-section [itemscope] p {
  padding: 0;
  color: var(--color-text-light);
  line-height: 1.7;
  margin: 0;
}

/* --- FAQ Section (index.php) - Styles existants préservés --- */
#faq .faq-accordion { max-width: 800px; margin: 0 auto; }
#faq .faq-item {
  border-bottom: 1px solid var(--color-border);
}
#faq .faq-item summary {
  font-size: 1.2rem;
  font-weight: 600;
  padding: 1.5rem 0;
  cursor: pointer;
  list-style: none; /* Hide default marker */
  position: relative;
  padding-right: 2rem;
}
#faq .faq-item summary::-webkit-details-marker { display: none; }
#faq .faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-text-light);
  transition: transform 0.3s ease;
}
#faq .faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}
#faq .faq-item p {
  padding: 0 0 1.5rem;
  line-height: 1.7;
}

/* Styles pour les liens dans les FAQ d'index.php */
#faq .faq-item a {
  color: var(--color-primary);
  text-decoration: underline;
  font-weight: 600;
  transition: all var(--transition-fast) var(--ease-out);
}

#faq .faq-item a:hover {
  color: var(--color-primary-hover);
  text-decoration: none;
  background-color: var(--color-primary-light);
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
  .hero-articles {
    padding: 3rem 0;
  }
  
  .hero-articles h1 {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .breadcrumb {
    padding: 1rem 0;
    font-size: var(--font-size-xs);
  }
  
  .section-intro {
    margin-bottom: 2rem;
  }
  
  .section-intro h2 {
    font-size: 1.5rem;
  }
  
  .section-intro p {
    font-size: var(--font-size-base);
  }
  
  .regions-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
  }
  
  .region-card .article-content {
    padding: 1.5rem;
  }
  
  .region-card h3 {
    font-size: var(--font-size-lg);
  }
  
  .cta-band.accent {
    margin: 2rem 0;
  }
  
  .cta-band.accent .cta-text h3 {
    font-size: 1.25rem;
  }
  
  .cta-band.accent .cta-text p {
    font-size: var(--font-size-base);
  }
  
  /* Modern CTA Band Mobile */
  .cta-band-modern {
    margin: 2rem 0;
    border-radius: 16px;
  }
  
  .cta-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
  }
  
  .cta-stats {
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .cta-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .cta-description {
    font-size: var(--font-size-base);
  }
  
  .cta-btn-modern {
    padding: 1.25rem 2rem;
    min-width: 180px;
  }
  
  .btn-text {
    font-size: var(--font-size-base);
  }
  
  .decoration-circle {
    display: none; /* Hide decorative elements on mobile */
  }
  
  /* Secondary CTA Band Mobile */
  .cta-band-secondary {
    margin: 2rem 0;
    border-radius: 16px;
  }
  
  .cta-container-secondary {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
  }
  
  .cta-icon-wrapper {
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
  }
  
  .cta-icon {
    font-size: 1.25rem;
  }
  
  .cta-title-secondary {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }
  
  .cta-highlights {
    gap: 1rem;
    margin-bottom: 1rem;
  }
  
  .highlight-item {
    padding: 0.4rem 0.8rem;
  }
  
  .highlight-text {
    font-size: var(--font-size-xs);
  }
  
  .cta-description-secondary {
    font-size: var(--font-size-base);
  }
  
  .cta-btn-secondary-modern {
    padding: 1.25rem 2rem;
    min-width: 180px;
  }
  
  .btn-text-secondary {
    font-size: var(--font-size-base);
  }
  
  .decoration-dot {
    display: none; /* Hide decorative elements on mobile */
  }
  
  .highlight-item {
    padding: 0.6rem 1rem;
  }
  
  .faq-section {
    margin: 2rem 0;
    padding: 2.5rem 0;
  }
  
  .faq-section h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    padding: 0 1.5rem;
  }
  
  .faq-section [itemscope] {
    padding: 0 2rem;
    margin-bottom: 1.5rem;
  }
  
  .faq-section h4 {
    font-size: var(--font-size-base);
    margin-bottom: 0.75rem;
  }
}

@media (max-width: 480px) {
  .hero-articles {
    padding: 2rem 0;
  }
  
  .hero-articles h1 {
    font-size: 1.75rem;
  }
  
  .hero-subtitle {
    font-size: 0.95rem;
  }
  
  .region-card .article-content {
    padding: 1.25rem;
  }
  
  .region-card .category {
    font-size: var(--font-size-xs);
    padding: 0.4rem 0.8rem;
  }
  
  .region-card h3 {
    font-size: var(--font-size-base);
  }
  
  .region-card p {
    font-size: var(--font-size-sm);
  }
  
  .cta-band.accent .cta-text h3 {
    font-size: 1.125rem;
  }
  
  .cta-band.accent .cta-text p {
    font-size: var(--font-size-sm);
  }
}

/* --- Final CTA Band (Bottom) --- */
.cta-band-final {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
  margin: 4rem 0 4rem 0;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-band-final::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(176, 30, 47, 0.15) 0%, 
    rgba(176, 30, 47, 0.05) 50%, 
    rgba(176, 30, 47, 0.15) 100%);
  z-index: 1;
}

.cta-container-final {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  padding: 2.5rem 4rem;
  position: relative;
  z-index: 2;
}

.cta-content-final {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cta-badge-final {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  width: fit-content;
  animation: pulse-badge 2s infinite;
}

.badge-icon-final {
  font-size: 1rem;
  animation: bounce 2s infinite;
}

.cta-title-final {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: white;
  margin: 0;
  line-height: 1.2;
}

.cta-description-final {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  line-height: 1.6;
}

.cta-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.benefit-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.benefit-icon {
  font-size: 1.125rem;
}

.benefit-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: white;
}

.cta-action-final {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.cta-btn-final {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(135deg, #b01e2f 0%, #d32f2f 50%, #b01e2f 100%);
  color: white;
  text-decoration: none;
  padding: 1.25rem 2rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(176, 30, 47, 0.4);
  border: 2px solid var(--color-primary);
  min-width: 220px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.cta-btn-final::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.cta-btn-final:hover::before {
  left: 100%;
}

.cta-btn-final:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(176, 30, 47, 0.5);
}

.btn-text-final {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.btn-subtext-final {
  font-size: 0.875rem;
  opacity: 0.9;
  font-weight: 500;
}

.cta-guarantee-final {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  font-weight: 500;
}

.guarantee-icon-final {
  color: #4ade80;
  font-weight: bold;
}

.cta-decoration-final {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
}

.decoration-element {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.3) 0%, transparent 70%);
  animation: float-final 6s ease-in-out infinite;
}

.element-1 {
  width: 80px;
  height: 80px;
  top: 20%;
  right: 10%;
  animation-delay: 0s;
}

.element-2 {
  width: 60px;
  height: 60px;
  bottom: 30%;
  left: 15%;
  animation-delay: 2s;
}

.element-3 {
  width: 100px;
  height: 100px;
  top: 60%;
  right: 20%;
  animation-delay: 4s;
}

.element-4 {
  width: 40px;
  height: 40px;
  top: 10%;
  left: 30%;
  animation-delay: 1s;
}

@keyframes float-final {
  0%, 100% { 
    transform: translateY(0px) rotate(0deg) scale(1); 
    opacity: 0.6;
  }
  50% { 
    transform: translateY(-30px) rotate(180deg) scale(1.1); 
    opacity: 0.8;
  }
}

/* --- Responsive Final CTA --- */
@media (max-width: 768px) {
  .cta-container-final {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem 1.5rem;
    text-align: center;
  }

  .cta-benefits {
    justify-content: center;
  }

  .benefit-item {
    flex: 1;
    min-width: 120px;
    justify-content: center;
    padding: 0.4rem 0.6rem;
  }

  .cta-btn-final {
    min-width: 180px;
    padding: 1rem 1.5rem;
  }

  .cta-title-final {
    font-size: 1.5rem;
  }

  .cta-description-final {
    font-size: 0.95rem;
  }
}