:root {
  --ink: #1D2321;
  --line: #DDE3E1;
  --chalk: #F4F6F5;
  --radius: 14px;

  /* Couleurs par défaut = mode hiver */
  --accent: #3AAED8;
  --accent-dark: #2A8FB3;
  --accent-soft: #FFE7E1;
}

body.mode-ete {
  --accent: #ff7b00;
  --accent-dark: #a03902;
  --accent-soft: #DFF3FA;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink);
  background: var(--chalk);
  transition: background 0.3s ease;
}

h1, h2, h3, .logo {
  font-family: "DM Sans", sans-serif;
  font-weight: 800;
  line-height: 1.15;
}

a { color: inherit; }

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 16px 24px;
}
.site-header__inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 8px 16px 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.22), 0 5px 15px -3px rgba(0, 0, 0, 0.12);
  transition: all 0.3s ease;
}
.logo { 
  font-size: 20px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #111827 0%, var(--accent-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.logo__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2s infinite;
  display: inline-block;
}
@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(58, 174, 216, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(58, 174, 216, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(58, 174, 216, 0); }
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav a {
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: #4b5563;
  padding: 7px 14px;
  border-radius: 999px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.site-nav a:hover {
  color: #111827;
  background: rgba(0, 0, 0, 0.05);
}
.site-nav .nav-cta {
  background: var(--accent);
  color: #ffffff !important;
  font-weight: 700;
  padding: 7px 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.site-nav .nav-cta:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}
.site-nav a.is-active {
  background: var(--accent);
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.site-nav a.is-active:hover {
  background: var(--accent-dark);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

/* Hero */
.hero {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 95px 24px 60px;
  text-align: center;
  background-image: linear-gradient(rgba(120, 118, 118, 0.451), rgba(70, 70, 70, 0.445)), url('Rafraichissement.png');
  background-size: cover;
  background-position: center 25%;
  background-repeat: no-repeat;
}

.hero > * {
  margin-left: auto;
  margin-right: auto;
}

.simulator, .lead-form {
  max-width: 480px;
}

.hero h1 {
  font-size: clamp(24px, 3.5vw, 34px); 
  max-width: 520px; 
  margin: 0 auto 12px; 
  line-height: 1.2;
}
.hero__lead { 
  font-size: 15px; 
  color: #2c302e; 
  max-width: 480px; 
  margin: 0 auto 24px; 
  font-weight: 500;
}

/* Season toggle */
.season-toggle {
  display: inline-flex;
  background: #fff;
  border-radius: 999px;
  padding: 6px;
  border: 1px solid var(--line);
  margin-bottom: 28px;
}
.season-btn {
  border: none;
  background: transparent;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  color: #52564f;
}
.season-btn.is-active { background: var(--accent); color: #fff; }

/* Simulator */
.simulator {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 24px 48px -28px rgba(29, 35, 33, 0.25);
  text-align: left;
}
.simulator__inputs { margin-bottom: 26px; }
.slider-group__label { display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.slider-group__label output { color: var(--accent-dark); }
input[type="range"] { width: 100%; accent-color: var(--accent); height: 6px; }

.simulator__result { border-top: 1px solid var(--line); padding-top: 24px; text-align: center; }
.result { display: none; }
body.mode-hiver .result--hiver { display: block; }
body.mode-ete .result--ete { display: block; }

.simulator__result-label { display: block; font-size: 15px; color: #2d2e2d; margin-bottom: 6px; }
.simulator__result-value {
  display: block;
  font-family: "DM Sans", sans-serif;
  font-size: 42px;
  font-weight: 800;
  color: var(--accent-dark);
}
.simulator__result-value small { font-size: 14px; font-family: "Inter", sans-serif; color: #6b6f6b; }
.simulator__result-sub { display: block; font-size: 13px; color: #6b6f6b; margin-top: 4px; min-height: 18px; }

.btn-reveal, .btn-submit {
  margin-top: 22px;
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: "DM Sans", sans-serif;
}
.btn-reveal:hover, .btn-submit:hover { background: var(--accent-dark); }
.btn-submit:disabled { opacity: 0.6; cursor: progress; }

/* Lead form (CORRIGÉ) */
.lead-form { 
  display: none; 
  background: #fff; 
  border-radius: var(--radius); 
  padding: 28px 32px; 
  margin-top: 20px; 
  text-align: left; 
  box-shadow: 0 24px 48px -28px rgba(29, 35, 33, 0.25); 
}
.lead-form.is-visible { display: block; }
.lead-form.is-success .lead-form__fields { display: none; }
.lead-form__intro { font-weight: 700; margin: 0 0 18px; }

.lead-form__grid { 
  display: grid; 
  grid-template-columns: repeat(2, minmax(0, 1fr)); 
  gap: 14px; 
}

/* Le 5ᵉ champ (Téléphone) prend toute la largeur */
.lead-form__grid .field:nth-child(5) { 
  grid-column: 1 / -1; 
}

.field { 
  display: flex; 
  flex-direction: column; 
  gap: 6px; 
  margin-bottom: 14px; 
  font-size: 14px; 
  font-weight: 600; 
  min-width: 0; 
}

.field input { 
  width: 100%; 
  padding: 12px 14px; 
  border: 1px solid var(--line); 
  border-radius: 8px; 
  font-size: 15px; 
  font-family: inherit; 
}

.field input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.field--checkbox { 
  flex-direction: row; 
  align-items: flex-start; 
  font-weight: 400; 
  font-size: 13px; 
  gap: 8px; 
}

.field--checkbox input { 
  width: auto; 
  margin-top: 3px; 
}

.lead-form__feedback { font-size: 14px; margin-top: 12px; min-height: 20px; }
.lead-form__feedback.is-error { color: #b0402c; }

.lead-form__success { display: none; text-align: center; padding: 8px 0; }
.lead-form.is-success .lead-form__success { display: block; }
.lead-form__success-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 26px; margin-bottom: 16px;
}
.lead-form__success h3 { font-size: 22px; margin: 0 0 8px; }
.lead-form__success p { font-size: 14px; color: #52564f; margin: 0; }

.hero__disclaimer { font-size: 12px; color: #eff1ee; margin-top: 24px; }

/* Sections */
.section { max-width: 1060px; margin: 0 auto; padding: 70px 24px; }
.section--muted { background: #fff; max-width: none; }
.section--muted > * { max-width: 1060px; margin-left: auto; margin-right: auto; }
.section h2 { font-size: clamp(24px, 3vw, 32px); margin: 0; text-align: center; letter-spacing: -0.02em; }
.section--concept {
  max-width: 100%;
  background: #0f172a;
  position: relative;
  overflow: hidden;
  margin: 50px 0;
  padding: 90px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.4s ease, border-color 0.4s ease;
}
.section--concept::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 750px;
  height: 450px;
  background: radial-gradient(ellipse at center, rgba(58, 174, 216, 0.18) 0%, transparent 70%);
  pointer-events: none;
  transition: background 0.5s ease;
}
body.mode-ete .section--concept {
  background: #180e0a;
  border-top-color: rgba(255, 123, 0, 0.2);
  border-bottom-color: rgba(255, 123, 0, 0.2);
}
body.mode-ete .section--concept::before {
  background: radial-gradient(ellipse at center, rgba(255, 123, 0, 0.32) 0%, transparent 75%);
}
body.mode-ete .section--concept::after {
  background-image: radial-gradient(rgba(255, 123, 0, 0.22) 1px, transparent 1px);
}
.section--concept::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.4;
  pointer-events: none;
}
.section--concept > * {
  position: relative;
  z-index: 1;
  max-width: 1060px;
  margin-left: auto;
  margin-right: auto;
}
.section__header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 48px;
}
.section--concept h2 { color: #ffffff; }
.section--concept .section__subtitle { color: #9ca3af; }
.section__badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--accent-dark);
  background: rgba(58, 174, 216, 0.12);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(58, 174, 216, 0.25);
  margin-bottom: 12px;
  transition: all 0.3s ease;
}
body.mode-ete .section__badge {
  background: rgba(255, 123, 0, 0.12);
  border-color: rgba(255, 123, 0, 0.25);
}
.section__subtitle {
  font-size: 15px;
  color: #6b7280;
  margin-top: 10px;
}
.steps-wrapper {
  max-width: 1060px;
  margin: 0 auto;
}
.steps { 
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step-card {
  background: linear-gradient(145deg, #1f2937, #111827);
  border: 1px solid rgba(58, 174, 216, 0.35);
  border-radius: 20px;
  padding: 32px 26px;
  position: relative;
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.25), 0 0 20px rgba(58, 174, 216, 0.15);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
body.mode-ete .step-card {
  background: linear-gradient(145deg, #2d1b13, #1a0f0a);
  border-color: rgba(255, 123, 0, 0.45);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5), 0 0 22px rgba(255, 123, 0, 0.2);
}
body.mode-ete .step-card:hover {
  background: linear-gradient(145deg, #3e2419, #22130d);
  border-color: var(--accent);
  box-shadow: 0 30px 50px -15px rgba(0, 0, 0, 0.65), 0 0 40px rgba(255, 123, 0, 0.45);
}
.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  opacity: 1;
  transition: all 0.3s ease;
}

.step-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.08), 0 0 20px rgba(58, 174, 216, 0.12);
}

.step-card:hover::before { opacity: 1; }

.step-card__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent);
  border: 1px solid var(--accent);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  margin-bottom: 22px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.step-card__num {
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  transition: color 0.3s ease;
}

.step-card:hover .step-card__badge {
  background: #ffffff;
  border-color: #ffffff;
  transform: scale(1.12) rotate(-5deg);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.step-card:hover .step-card__num { color: var(--accent-dark); }

.step-card h3 {
  font-size: 18px;
  margin: 0 0 10px;
  color: #ffffff;
  letter-spacing: -0.01em;
  transition: color 0.3s ease;
}
.step-card:hover h3 { color: var(--accent); }

.step-card p {
  font-size: 14px;
  color: #9ca3af;
  line-height: 1.6;
  margin: 0;
}
.step { text-align: center; padding: 8px; }
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: #fff; font-family: "DM Sans", sans-serif; font-weight: 800;
  margin-bottom: 12px;
}
.step h3 { font-size: 16px; margin: 0 0 8px; }
.step p { font-size: 14px; color: #52564f; margin: 0; }

.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonials blockquote { margin: 0; padding: 22px; background: var(--chalk); border-radius: var(--radius); }
.testimonials p { font-size: 14px; margin: 0 0 12px; }
.testimonials cite { font-size: 13px; color: #6b6f6b; font-style: normal; }

.section--testimonials .section__header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 40px;
}

.testimonials-slider {
  max-width: 1000px;
  margin: 0 auto;
  overflow: hidden;
  padding: 10px 5px;
  position: relative;
}

.testimonials-track {
  display: flex;
  gap: 24px;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.testimonial-card {
  flex: 0 0 calc(50% - 12px);
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid rgba(221, 227, 225, 0.9);
  border-radius: 20px;
  padding: 36px 30px;
  margin: 0;
  box-shadow: 0 12px 32px -10px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

body.mode-ete .testimonial-card {
  border-color: rgba(255, 123, 0, 0.25);
}
body.mode-ete .testimonial-card:hover {
  border-color: var(--accent);
  box-shadow: 0 22px 45px -12px rgba(0, 0, 0, 0.12), 0 0 25px rgba(255, 123, 0, 0.3);
}

.testimonial-card__icon {
  font-size: 52px;
  line-height: 1;
  color: var(--accent);
  font-family: Georgia, serif;
  margin-bottom: 8px;
  opacity: 0.35;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--accent);
  box-shadow: 0 22px 45px -12px rgba(0, 0, 0, 0.12), 0 0 25px rgba(58, 174, 216, 0.25);
}

.testimonial-card:hover .testimonial-card__icon {
  opacity: 0.85;
  transform: scale(1.15) rotate(-6deg);
}

.testimonial-card p {
  font-size: 16px;
  line-height: 1.65;
  color: #1f2937;
  font-weight: 500;
  margin: 0 0 24px 0;
}

.testimonial-card cite {
  font-size: 15px;
  font-weight: 800;
  color: var(--accent-dark);
  font-style: normal;
  display: block;
}

@media (max-width: 768px) {
  .testimonial-card {
    flex: 0 0 100%;
  }
}

.accordion details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.accordion summary { font-weight: 700; cursor: pointer; font-size: 15px; }
.accordion p { margin: 12px 0 0; font-size: 14px; color: #52564f; }

/* Footer */
.site-footer { background: #1D2321; color: #cfd3d0; padding: 40px 24px; margin-top: 40px; }
.site-footer__inner { max-width: 1080px; margin: 0 auto; }
.site-footer__inner p { font-size: 13px; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 20px; margin: 16px 0; }
.site-footer__links a { font-size: 13px; text-decoration: underline; color: #cfd3d0; }
.site-footer__legal { font-size: 12px; color: #8a8e87; }

/* Expired */
.expired { min-height: 60vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.expired__card { max-width: 460px; text-align: center; }

@media (max-width: 640px) {
  .site-header { padding: 10px 12px; }
  .site-header__inner { padding: 6px 12px; }
  .site-nav { gap: 2px; }
  .site-nav a { font-size: 11px; padding: 5px 8px; }
  .site-nav .nav-cta { padding: 5px 12px; }
  
  .lead-form__grid { grid-template-columns: 1fr; }
  .steps, .testimonials { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .steps { grid-template-columns: 1fr; gap: 16px; }
  .step-card { padding: 24px 20px; }
}
/* Badges & mise en évidence de la nature du résultat (Gain vs Dépense) */
.result__badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.result__badge--gain {
  background: #E6F4EA;
  color: #137333;
  border: 1px solid #CEEAD6;
}

.result__badge--cost {
  background: #FEF7E0;
  color: #B06000;
  border: 1px solid #FDE293;
}

.simulator__result-value--gain {
  color: #107C41 !important; /* Couleur verte affirmée pour le gain */
}

.simulator__result-value--cost {
  color: #D97706 !important; /* Couleur ambre pour le coût d'utilisation */
}


/* ==========================================================================
   FORMULAIRE EN ÉTAPES (critères du partenaire) — ajouté, le reste du fichier est inchangé
   Utilise les variables existantes (--accent, --accent-dark, --line, --ink) : suit la bascule hiver/été.
   ========================================================================== */
.quiz-progress { display: flex; align-items: center; gap: 12px; margin: -6px 0 18px; }
.quiz-progress__label { font-size: 12px; font-weight: 600; color: #6b6f6b; white-space: nowrap; }
.quiz-progress__bar { flex: 1; height: 5px; border-radius: 5px; background: var(--line); overflow: hidden; }
.quiz-progress__fill { display: block; height: 100%; width: 12.5%; border-radius: 5px; background: var(--accent); transition: width 0.3s ease, background 0.3s ease; }

.quiz-step { display: none; border: 0; padding: 0; margin: 0; min-width: 0; }
.quiz-step.is-active { display: block; }
.quiz-step > legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.quiz-step__question { font-family: "DM Sans", sans-serif; font-size: 17px; font-weight: 700; line-height: 1.3; margin: 0 0 16px; }
.quiz-step__sub { font-size: 14px; font-weight: 600; margin: 4px 0 10px; }

.field--full { grid-column: 1 / -1; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.choice-grid--stack { grid-template-columns: 1fr; }
.choice {
  min-height: 48px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1.25; color: var(--ink);
  cursor: pointer; text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.choice:hover { border-color: var(--accent); }
.choice.is-selected { background: var(--accent); border-color: var(--accent); color: #fff; }
.choice:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.btn-next {
  margin-top: 8px; width: 100%; padding: 15px;
  border: none; border-radius: 10px; background: var(--accent); color: #fff;
  font-size: 16px; font-weight: 700; font-family: "DM Sans", sans-serif; cursor: pointer;
}
.btn-next:hover { background: var(--accent-dark); }
.btn-back { display: block; margin: 12px auto 0; padding: 6px 10px; border: none; background: none; font-family: inherit; font-size: 14px; color: #6b6f6b; cursor: pointer; }
.btn-back:hover { color: var(--ink); }

.step-error { font-size: 14px; color: #b0402c; margin: 0 0 12px; }
.field--consent { margin-top: 6px; }
.field--consent span { font-size: 11.5px; line-height: 1.4; }
.quiz-step--ineligible h3 { font-size: 19px; margin: 0 0 10px; }
.quiz-step--ineligible p { font-size: 14px; line-height: 1.5; color: #52564f; margin: 0 0 6px; }

@media (max-width: 640px) {
  .quiz-step__question { font-size: 16px; margin-bottom: 12px; }
  .choice { min-height: 44px; padding: 10px 12px; font-size: 14.5px; }
  .choice-grid { gap: 8px; margin-bottom: 12px; }
}