/* ========== EcoConfort Énergie - Premium Landing Styles ========== */

:root {
  --green-900: #0F3D27;
  --green-700: #1B5E3F;
  --green-500: #2D7D5C;
  --green-100: #E8F1EC;
  --gold-600: #B8860B;
  --gold-500: #D4A017;
  --gold-100: #FBF3D9;
  --ink-900: #0E0E0E;
  --ink-700: #1A1A1A;
  --ink-500: #5A5A5A;
  --ink-300: #A8A8A8;
  --bg: #FAFAF7;
  --surface: #FFFFFF;
  --line: #E8E5DD;
  --error: #C0392B;
  --shadow-sm: 0 1px 2px rgba(15,61,39,.06), 0 1px 3px rgba(15,61,39,.04);
  --shadow-md: 0 4px 12px rgba(15,61,39,.08), 0 2px 4px rgba(15,61,39,.04);
  --shadow-lg: 0 24px 48px -12px rgba(15,61,39,.18);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --max-w: 1200px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: 'Fraunces', 'Playfair Display', Georgia, serif;
  --transition: 200ms cubic-bezier(.4,0,.2,1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-700);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--green-700); text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

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

/* ========== Typography ========== */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; color: var(--ink-900); }
h1 { font-size: clamp(1.95rem, 5.5vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
h4 { font-size: 1.15rem; font-family: var(--font-sans); font-weight: 600; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--green-500);
  background: var(--green-100);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
}
.text-muted { color: var(--ink-500); }
.text-gold { color: var(--gold-600); }

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  transition: var(--transition);
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--green-700);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: var(--green-900); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-primary:active { transform: translateY(0); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--ink-900);
  box-shadow: 0 8px 24px rgba(212,160,23,.35);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(212,160,23,.45); }
.btn-ghost {
  background: transparent;
  color: var(--ink-700);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--ink-700); }
.btn-lg { padding: 20px 36px; font-size: 1.05rem; }
.btn svg { width: 18px; height: 18px; }

/* ========== Header ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250,250,247,.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}
.header.scrolled { border-bottom-color: var(--line); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.header-logo img { height: 44px; }
.header-cta { display: flex; align-items: center; gap: 16px; }
.header-phone { display: none; align-items: center; gap: 8px; font-weight: 600; color: var(--ink-700); }
.header-phone svg { width: 18px; height: 18px; color: var(--green-500); }
.header-cta .btn { padding: 10px 18px; font-size: 0.92rem; }

@media (max-width: 600px) {
  .header-logo img { height: 36px; }
  .header-cta .btn { padding: 9px 14px; font-size: 0.85rem; }
}

@media (min-width: 768px) {
  .header-phone { display: inline-flex; }
  .header-cta .btn { padding: 14px 28px; font-size: 1rem; }
}

/* ========== Hero ========== */
.hero {
  position: relative;
  padding: 60px 0 80px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(212,160,23,.08), transparent 50%),
    radial-gradient(circle at 10% 90%, rgba(45,125,92,.10), transparent 50%);
  z-index: 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (min-width: 968px) {
  .hero { padding: 80px 0 120px; }
  .hero-grid { grid-template-columns: 1.1fr 1fr; gap: 80px; }
}
.hero h1 { margin-bottom: 24px; }
.hero h1 .accent {
  font-style: italic;
  color: var(--green-700);
  display: inline-block;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--ink-500);
  margin-bottom: 36px;
  max-width: 560px;
}
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 32px; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  padding-top: 28px;
}
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--ink-500); }
.trust-item svg { width: 22px; height: 22px; color: var(--green-500); flex-shrink: 0; }

/* Hero visual card */
.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, #2d7d5c 0%, #0f3d27 100%);
}
.hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 30% 40%, rgba(212,160,23,.4), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(255,255,255,.1), transparent 60%);
}
.hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 30px, rgba(255,255,255,.02) 30px, rgba(255,255,255,.02) 60px);
}
.hero-visual-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 36px;
  color: #fff;
  z-index: 2;
}
.hero-savings {
  text-align: center;
  margin-top: auto;
}
.hero-savings .amount {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1;
  color: var(--gold-500);
  letter-spacing: -0.04em;
}
.hero-savings .label {
  display: block;
  margin-top: 8px;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  opacity: 0.9;
}
.hero-savings .sublabel {
  display: block;
  margin-top: 16px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 0.6;
}
.hero-badges {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.hero-badge {
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  padding: 10px 14px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ========== Sections ========== */
section { padding: 80px 0; }
@media (min-width: 768px) { section { padding: 120px 0; } }

.section-header {
  text-align: center;
  margin-bottom: 64px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p { font-size: 1.1rem; color: var(--ink-500); }

/* ========== Aides Section ========== */
.aides-section { background: linear-gradient(180deg, var(--bg) 0%, #F2F1ED 100%); }
.aides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.aide-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.aide-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--green-500); }
.aide-icon {
  width: 56px; height: 56px;
  background: var(--green-100);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.aide-icon svg { width: 28px; height: 28px; color: var(--green-700); }
.aide-card h3 { margin-bottom: 8px; }
.aide-amount {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-600);
  margin-bottom: 12px;
  line-height: 1;
}
.aide-amount small { font-size: 0.9rem; font-family: var(--font-sans); font-weight: 500; color: var(--ink-500); }
.aide-card p { font-size: 0.95rem; color: var(--ink-500); }
.aide-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--green-100);
  color: var(--green-700);
}
.aide-tag.solar { background: var(--gold-100); color: var(--gold-600); }
.aide-tag.both  { background: linear-gradient(135deg, var(--green-100), var(--gold-100)); color: var(--ink-700); }

/* ========== How It Works ========== */
.howit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  margin-top: 48px;
}
.howit-step {
  text-align: center;
  position: relative;
}
.howit-num {
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--green-100);
  display: block;
  margin-bottom: 8px;
  letter-spacing: -0.04em;
}
.howit-step h3 { margin-bottom: 12px; }
.howit-step p { color: var(--ink-500); }

/* ========== Calculator ========== */
.calc-section { background: var(--surface); }
.calc-card {
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-700) 100%);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.calc-card::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 70%; height: 200%;
  background: radial-gradient(circle, rgba(212,160,23,.15), transparent 60%);
}
.calc-card > * { position: relative; z-index: 1; }
.calc-card h2 { color: #fff; margin-bottom: 16px; }
.calc-card p { color: rgba(255,255,255,.85); margin-bottom: 32px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ========== FAQ ========== */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}
.faq-item summary {
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  color: var(--ink-900);
  transition: color var(--transition);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--green-700); }
.faq-item summary::after {
  content: '+';
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1;
  color: var(--green-700);
  transition: transform var(--transition);
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] summary { color: var(--green-700); }
.faq-answer { margin-top: 14px; color: var(--ink-500); line-height: 1.7; }

/* ========== Form Section ========== */
.form-section {
  background: var(--green-100);
  background-image:
    radial-gradient(circle at 10% 90%, rgba(212,160,23,.10), transparent 50%),
    radial-gradient(circle at 90% 10%, rgba(45,125,92,.08), transparent 50%);
  position: relative;
}
.form-card {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 48px 40px;
}
@media (max-width: 600px) { .form-card { padding: 32px 24px; } }

.form-progress {
  display: flex;
  gap: 6px;
  margin-bottom: 36px;
}
.form-progress-bar {
  flex: 1;
  height: 4px;
  background: var(--line);
  border-radius: 100px;
  overflow: hidden;
}
.form-progress-bar.active { background: var(--green-700); }
.form-progress-bar.done { background: var(--green-500); }

.form-step { display: none; animation: fadeSlide 350ms ease both; }
.form-step.active { display: block; }
@keyframes fadeSlide {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

.form-step h2 { margin-bottom: 8px; font-size: clamp(1.5rem, 3vw, 2rem); }
.form-step .step-sub { color: var(--ink-500); margin-bottom: 28px; }

.options-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}
.options-grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.option {
  position: relative;
  cursor: pointer;
  display: block;
}
.option input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.option-content {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  transition: var(--transition);
  background: var(--bg);
}
.option:hover .option-content { border-color: var(--green-500); background: #fff; }
.option input:checked + .option-content {
  border-color: var(--green-700);
  background: var(--green-100);
  box-shadow: 0 0 0 4px rgba(45,125,92,.10);
}
.option-emoji { font-size: 1.4rem; }
.option-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--green-700), var(--green-900));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.option-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 50%, rgba(212,160,23,.25));
}
.option-icon svg {
  width: 20px;
  height: 20px;
  color: #fff;
  position: relative;
  z-index: 1;
}
.option:hover .option-icon { transform: scale(1.05); }
.option input:checked + .option-content .option-icon {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
}
.option input:checked + .option-content .option-icon svg { color: var(--ink-900); }
.option-label { font-weight: 500; }
.option-tag {
  margin-left: auto;
  font-size: 0.75rem;
  background: var(--gold-100);
  color: var(--gold-600);
  padding: 4px 10px;
  border-radius: 100px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.input-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}
.input-grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.88rem; font-weight: 500; color: var(--ink-700); }
.field input, .field select {
  padding: 14px 16px;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font: inherit;
  color: var(--ink-900);
  transition: border-color var(--transition);
  width: 100%;
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--green-500);
  background: #fff;
}
.field .error-msg { font-size: 0.82rem; color: var(--error); display: none; }
.field.has-error input, .field.has-error select { border-color: var(--error); }
.field.has-error .error-msg { display: block; }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  font-size: 0.88rem;
  color: var(--ink-500);
  line-height: 1.5;
}
.consent input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; width: 18px; height: 18px; accent-color: var(--green-700); }
.consent a { font-weight: 500; }

.form-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}
.form-nav .btn-ghost svg { transform: rotate(180deg); }
.form-step.first .form-nav .btn-ghost { visibility: hidden; }

.stop-block {
  background: #FFF5F2;
  border: 1px solid #F4C7BA;
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 16px;
  display: none;
}
.stop-block.active { display: block; }
.stop-block h4 { color: var(--error); margin-bottom: 8px; }
.stop-block p { color: var(--ink-700); font-size: 0.95rem; }

.form-meta {
  text-align: center;
  margin-top: 24px;
  font-size: 0.82rem;
  color: var(--ink-500);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.form-meta-item { display: inline-flex; align-items: center; gap: 6px; }
.form-meta svg { width: 14px; height: 14px; color: var(--green-500); }

/* ========== Testimonials ========== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.testimonial {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
}
.testimonial-stars { color: var(--gold-500); margin-bottom: 12px; font-size: 1.1rem; letter-spacing: 2px; }
.testimonial-quote { font-style: italic; color: var(--ink-700); margin-bottom: 18px; line-height: 1.6; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-500), var(--green-900));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600;
}
.testimonial-meta { font-size: 0.88rem; }
.testimonial-meta strong { color: var(--ink-900); display: block; }
.testimonial-meta span { color: var(--ink-500); }

/* ========== Footer ========== */
.footer {
  background: var(--ink-900);
  color: rgba(255,255,255,.7);
  padding: 60px 0 24px;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand img { filter: brightness(0) invert(1); height: 40px; margin-bottom: 16px; }
.footer-brand p { max-width: 320px; line-height: 1.6; }
.footer h4 { color: #fff; margin-bottom: 18px; font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.08em; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { color: rgba(255,255,255,.7); transition: color var(--transition); }
.footer ul a:hover { color: var(--gold-500); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
}

/* ========== Sticky Mobile CTA ========== */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 16px; left: 16px; right: 16px;
  z-index: 60;
  background: var(--green-700);
  color: #fff;
  padding: 14px 20px;
  border-radius: 100px;
  font-weight: 600;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: slideUp 350ms ease;
}
@keyframes slideUp { from { transform: translateY(120%); } to { transform: translateY(0); } }
@media (max-width: 768px) { .sticky-cta.visible { display: block; } }

/* ========== Reveal animations ========== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ========== Hero Illustration (SVG art) ========== */
.hero-art {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(180deg, #E0EBF4 0%, #F5F0E0 60%, #EFE5C8 100%);
  box-shadow: 0 30px 80px -20px rgba(15,61,39,.35), 0 16px 40px -10px rgba(15,61,39,.2);
}
.hero-art svg { display: block; width: 100%; height: 100%; }
.hero-art-overlay {
  position: absolute;
  bottom: 24px; left: 24px; right: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-mini-card {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: 0 4px 16px rgba(15,61,39,.10);
  flex: 1;
  min-width: 130px;
}
.hero-mini-card .label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-500); font-weight: 600; }
.hero-mini-card .value { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--green-900); margin-top: 2px; line-height: 1; }
.hero-mini-card .delta { font-size: 0.78rem; margin-top: 4px; font-weight: 600; }
.hero-mini-card .delta.up { color: #C0392B; }
.hero-mini-card .delta.down { color: var(--green-700); }

/* ========== Stats Bar ========== */
.stats-bar {
  background: var(--ink-900);
  color: #fff;
  padding: 60px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 24px;
  text-align: center;
}
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-item .num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 700;
  color: var(--gold-500);
  line-height: 1;
  letter-spacing: -0.03em;
  display: block;
}
.stat-item .num small { font-size: 0.6em; font-weight: 600; opacity: 0.85; }
.stat-item .label { display: block; margin-top: 12px; font-size: 0.92rem; color: rgba(255,255,255,.7); letter-spacing: 0.02em; }

/* ========== Compare Section (Avant/Après) ========== */
.compare-section { background: var(--bg); }
.compare-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 48px;
}
@media (min-width: 900px) {
  .compare-grid { grid-template-columns: 1fr auto 1fr; align-items: stretch; }
}
.compare-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--gold-600);
  position: relative;
  min-height: 80px;
}
@media (max-width: 899px) {
  .compare-vs { padding: 0 20px; gap: 16px; }
}
.compare-card {
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
}
.compare-card.before {
  background: linear-gradient(160deg, #FFF4F1 0%, #FFE8E0 100%);
  border: 1px solid #F4C7BA;
}
.compare-card.after {
  background: linear-gradient(160deg, var(--green-100) 0%, #D4EBDD 100%);
  border: 1px solid #B5DCC4;
}
.compare-card .head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.compare-card .pill {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 100px;
}
.compare-card.before .pill { background: rgba(192,57,43,.15); color: #A93226; }
.compare-card.after .pill { background: rgba(45,125,92,.18); color: var(--green-900); }
.compare-card h3 { font-size: 1.4rem; line-height: 1.2; }
.compare-bigprice {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 16px 0 6px;
}
.compare-card.before .compare-bigprice { color: #A93226; }
.compare-card.after .compare-bigprice { color: var(--green-900); }
.compare-bigprice small { font-size: 0.5em; font-weight: 500; opacity: 0.7; }
.compare-card .sub { color: var(--ink-500); font-size: 0.95rem; margin-bottom: 24px; }
.compare-list { list-style: none; padding: 0; margin: 0; }
.compare-list li { display: flex; gap: 12px; padding: 10px 0; font-size: 0.95rem; align-items: flex-start; }
.compare-list svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }
.compare-card.before .compare-list svg { color: #C0392B; }
.compare-card.after .compare-list svg { color: var(--green-700); }
.compare-savings {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--ink-900);
  padding: 24px 32px;
  border-radius: var(--radius-md);
  margin-top: 36px;
  text-align: center;
  box-shadow: 0 14px 32px rgba(212,160,23,.30);
}
.compare-savings strong { font-family: var(--font-display); font-size: 1.6rem; display: block; margin-bottom: 4px; font-weight: 700; }
.compare-savings span { font-size: 0.95rem; }

/* ========== Why Us (Pillars) ========== */
.why-section { background: linear-gradient(180deg, var(--bg) 0%, var(--green-100) 100%); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.why-card {
  background: var(--surface);
  padding: 32px 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  transition: var(--transition);
}
.why-card:hover { transform: translateY(-4px); border-color: var(--green-500); box-shadow: var(--shadow-md); }
.why-icon {
  width: 52px; height: 52px;
  background: var(--green-700);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.why-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(212,160,23,.25));
}
.why-icon svg { width: 26px; height: 26px; color: #fff; position: relative; z-index: 1; }
.why-card h3 { font-size: 1.15rem; font-family: var(--font-sans); font-weight: 600; margin-bottom: 10px; }
.why-card p { color: var(--ink-500); font-size: 0.95rem; line-height: 1.6; }

/* ========== Trust / Certifications strip ========== */
.trust-strip {
  background: var(--surface);
  padding: 50px 0;
}
.trust-strip-title {
  text-align: center;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-500);
  font-weight: 600;
  margin-bottom: 32px;
}
.trust-logos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 32px;
  align-items: center;
  justify-items: center;
}
@media (min-width: 600px) { .trust-logos { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .trust-logos { grid-template-columns: repeat(5, 1fr); } }
.trust-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 88px;
  padding: 14px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  width: 100%;
  background: var(--surface);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.trust-logo:hover { border-color: var(--green-500); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.trust-seal {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-700), var(--green-900));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 4px 12px rgba(15,61,39,.25);
}
.trust-seal::after {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1.5px dashed rgba(255,255,255,.35);
  border-radius: 50%;
}
.trust-seal svg { width: 22px; height: 22px; color: var(--gold-500); position: relative; z-index: 1; }
.trust-logo .badge-text {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--green-900);
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-align: left;
}
.trust-logo .badge-text small {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink-500);
  margin-top: 4px;
  letter-spacing: 0.02em;
}

/* ========== Testimonial avatars ========== */
.testimonial-avatar.photo {
  background-size: cover;
  background-position: center;
}

/* ========== Live Aide Preview (sidebar in form) ========== */
.aide-preview {
  position: relative;
  background: linear-gradient(135deg, var(--green-900), var(--green-700));
  color: #fff;
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 32px;
  display: none;
  overflow: hidden;
}
.aide-preview.show { display: block; animation: fadeSlide 350ms ease both; }
.aide-preview::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 80%; height: 200%;
  background: radial-gradient(circle, rgba(212,160,23,.25), transparent 60%);
}
.aide-preview > * { position: relative; z-index: 1; }
.aide-preview .label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; opacity: 0.85; font-weight: 600; }
.aide-preview .value { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; color: var(--gold-500); line-height: 1; margin-top: 8px; }
.aide-preview .breakdown { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 14px; font-size: 0.88rem; opacity: 0.9; }
.aide-preview .breakdown span { display: inline-flex; align-items: center; gap: 6px; }
.aide-preview .breakdown span::before { content: '•'; opacity: 0.5; }
.aide-preview .breakdown span:first-child::before { display: none; }

/* ========== Footer enriched ========== */
.footer-cta-band {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--ink-900);
  padding: 50px 0;
  text-align: center;
}
.footer-cta-band h3 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 16px; color: var(--ink-900); }
.footer-cta-band p { color: rgba(14,14,14,.78); margin-bottom: 24px; font-size: 1.05rem; }
.footer-cta-band .btn {
  background: var(--green-900);
  color: #fff;
}
.footer-cta-band .btn:hover { background: var(--ink-900); }

.footer-grid-large {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (min-width: 768px) { .footer-grid-large { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.footer-social { display: flex; gap: 12px; margin-top: 24px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7);
  transition: var(--transition);
}
.footer-social a:hover { background: var(--gold-500); color: var(--ink-900); }
.footer-social svg { width: 18px; height: 18px; }

/* ========== Utility ========== */
.text-center { text-align: center; }
.mt-32 { margin-top: 32px; }
.hide-mobile { display: none; }
@media (min-width: 768px) { .hide-mobile { display: block; } }

/* ========== Charte qualité ========== */
.charte { padding: 100px 0; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.charte-grid { display: grid; grid-template-columns: 1fr; gap: 28px; max-width: 980px; margin: 0 auto; }
@media (min-width: 720px) { .charte-grid { grid-template-columns: 1fr 1fr; gap: 32px 48px; } }
.charte-item { padding: 24px 0 24px 64px; position: relative; border-top: 1px solid var(--line); }
.charte-item:first-child, .charte-item:nth-child(2) { border-top: none; padding-top: 0; }
@media (max-width: 719px) { .charte-item:nth-child(2) { border-top: 1px solid var(--line); padding-top: 24px; } }
.charte-num { position: absolute; left: 0; top: 24px; font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--green-700); letter-spacing: 0.04em; }
.charte-item:first-child .charte-num, .charte-item:nth-child(2) .charte-num { top: 0; }
@media (max-width: 719px) { .charte-item:nth-child(2) .charte-num { top: 24px; } }
.charte-item h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; color: var(--ink-900); }
.charte-item p { color: var(--ink-500); font-size: 0.95rem; line-height: 1.65; }
.charte-item strong { color: var(--ink-700); font-weight: 600; }
.charte-sign { text-align: center; margin-top: 64px; font-style: italic; font-size: 0.88rem; color: var(--ink-500); max-width: 720px; margin-left: auto; margin-right: auto; }

/* ========== Cookie banner (CNIL) ========== */
.cookie-banner { position: fixed; bottom: 16px; left: 16px; right: 16px; max-width: 640px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 48px -12px rgba(15,61,39,.22), 0 4px 12px rgba(15,61,39,.06); padding: 24px 24px 20px; z-index: 1000; display: none; font-size: 0.92rem; line-height: 1.55; }
.cookie-banner.visible { display: block; }
.cookie-banner h3 { font-family: var(--font-sans); font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--ink-900); }
.cookie-banner p { color: var(--ink-500); font-size: 0.88rem; margin-bottom: 16px; }
.cookie-banner p a { color: var(--green-700); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions button { flex: 1; min-width: 130px; padding: 12px 18px; border-radius: 100px; font-weight: 600; font-size: 0.9rem; cursor: pointer; border: 1.5px solid var(--ink-300); background: #fff; color: var(--ink-900); transition: all 200ms ease; }
.cookie-actions button:hover { border-color: var(--ink-900); }
.cookie-actions .cookie-accept { background: var(--green-700); color: #fff; border-color: var(--green-700); }
.cookie-actions .cookie-accept:hover { background: var(--green-900); border-color: var(--green-900); }
@media (max-width: 600px) { .cookie-banner { padding: 20px; } .cookie-actions button { font-size: 0.85rem; padding: 11px 14px; } }
