/* ═══════════════════════════════════════
   RESET
═══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #eef1f6;
  --blanc:       #ffffff;
  --noir:        #111827;
  --gris-text:   #6B7280;
  --gris-border: #E5E7EB;
  --bleu-side:   #1a3c6e;
  --radius-card: 14px;
  --font:        -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html, body { height: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--noir);
}

img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
a { text-decoration: none; }

/* ═══════════════════════════════════════
   LAYOUT
═══════════════════════════════════════ */
.page-wrapper {
  display: grid;
  grid-template-columns: 380px 1fr;
  min-height: 100vh;
}

/* ─── SIDEBAR ─── */
.sidebar {
  background: var(--blanc);
  color: var(--noir);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  border-right: 2px solid var(--gris-border);
}

.sidebar-logo-wrap { display: block; }
.eneo-logo { width: 100%; height: auto; display: block; }
.mobile-logo svg { display: block; margin: 0 auto; }

.sidebar-tagline { font-size: 1rem; line-height: 1.5; color: var(--gris-text); margin-top: -10px; }
.sidebar-tagline strong { color: var(--noir); }

.rating-block { background: #1a2a4a; border-radius: 10px; padding: 20px 22px; }
.rating-label { font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; color: rgba(255,255,255,.65); margin-bottom: 8px; }
.rating-score { font-size: 2.4rem; font-weight: 700; color: #ffffff; line-height: 1; }
.rating-score span { font-size: 1rem; font-weight: 400; color: rgba(255,255,255,.6); }
.stars { margin-top: 8px; font-size: 1.5rem; letter-spacing: 3px; }
.star-full { color: #FBBF24; }
.star-half { color: #FBBF24; opacity: .45; }

.certifications { display: flex; flex-direction: column; gap: 7px; }
.cert-item { display: flex; align-items: center; gap: 10px; background: var(--blanc); border: 1.5px solid var(--gris-border); border-radius: 8px; padding: 8px 10px; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.cert-item img { width: 80px; height: 50px; object-fit: contain; flex-shrink: 0; }
.cert-info { display: flex; flex-direction: column; gap: 1px; }
.cert-info strong { font-size: .78rem; color: var(--noir); }
.cert-info span   { font-size: .70rem; color: var(--gris-text); line-height: 1.3; }

.guarantee-block { display: flex; align-items: center; gap: 10px; background: var(--blanc); border: 1.5px solid var(--gris-border); border-radius: 8px; padding: 9px 12px; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.guarantee-number { font-size: 1.5rem; font-weight: 800; color: #ffffff; background: #22c55e; border-radius: 7px; width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; line-height: 1; flex-shrink: 0; }
.guarantee-text { display: flex; flex-direction: column; }
.guarantee-text strong { font-size: .82rem; color: var(--noir); }
.guarantee-text span   { font-size: .74rem; color: var(--gris-text); }

.sidebar-sep { border: none; border-top: 1.5px solid var(--gris-border); margin: 12px 0 4px; }
.sidebar-footer { margin-top: auto; font-size: .72rem; color: #9CA3AF; }

/* ─── ZONE FORMULAIRE ─── */
.form-area {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 24px 60px;
  min-height: 100vh;
  gap: 0;
}

.mobile-logo { display: none; margin-bottom: 24px; }
.mobile-logo img { height: 36px; margin: 0 auto; }

/* Barre de progression */
.progress-wrap {
  width: 100%;
  max-width: 540px;
  margin-bottom: 28px;
  margin-top: 12px;
}
.progress-track {
  height: 5px;
  background: #D1D5DB;
  border-radius: 99px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: #FBBF24;
  border-radius: 99px;
  transition: width .4s ease;
  width: 16%;
}

/* ═══════════════════════════════════════
   STEPS — affichage exclusif garanti
   Chaque .step est retiré du flux avec
   display:none ; seul .step.active est
   display:block. Pas d'overflow, pas
   d'absolute : juste display.
═══════════════════════════════════════ */
.steps-wrap {
  width: 100%;
  max-width: 540px;
}

/* TOUS les panels cachés par défaut */
.step {
  display: none !important;
}

/* Un seul affiché à la fois */
.step.active {
  display: block !important;
  animation: fadeUp .28s ease;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Titres ─── */
.step-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--noir);
  line-height: 1.25;
  margin-bottom: 10px;
  letter-spacing: -.01em;
  text-align: center;
}

.step-sub {
  font-size: .9rem;
  color: var(--gris-text);
  margin-bottom: 28px;
  line-height: 1.5;
  text-align: center;
}

/* ─── LISTE D'OPTIONS ─── */
.option-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.option-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  background: var(--blanc);
  border: 1.5px solid transparent;
  border-radius: var(--radius-card);
  text-align: left;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  transition: border-color .18s, box-shadow .18s;
}

.option-row:hover {
  border-color: #FBBF24;
  box-shadow: 0 2px 10px rgba(251,191,36,.18);
}

.option-icon-wrap {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.option-label {
  flex: 1;
  font-size: 1rem;
  font-weight: 500;
  color: var(--noir);
  line-height: 1.3;
}

.option-chevron {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

/* ─── BOUTON RETOUR centré ─── */
.back-row {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .88rem;
  color: var(--gris-text);
  padding: 8px 14px;
  border-radius: 8px;
  transition: color .18s;
}
.btn-back:hover { color: var(--noir); }

/* ═══════════════════════════════════════
   ÉTAPE 6 — ADRESSE
═══════════════════════════════════════ */
.address-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.address-label {
  font-size: .88rem;
  font-weight: 600;
  color: var(--noir);
}

.address-input {
  width: 100%;
  padding: 16px 18px;
  background: var(--blanc);
  border: 1.5px solid var(--gris-border);
  border-radius: var(--radius-card);
  font-size: .97rem;
  color: var(--noir);
  font-family: var(--font);
  outline: none;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  transition: border-color .18s, box-shadow .18s;
}
.address-input::placeholder { color: #9CA3AF; }
.address-input:focus {
  border-color: #FBBF24;
  box-shadow: 0 0 0 3px rgba(251,191,36,.15);
}
.address-input.error { border-color: #EF4444; }

.address-note {
  font-size: .78rem;
  color: var(--gris-text);
  line-height: 1.4;
}

.address-btns {
  display: flex;
  gap: 12px;
}

.btn-retour {
  padding: 15px 26px;
  border: 1.5px solid var(--gris-border);
  border-radius: var(--radius-card);
  background: var(--blanc);
  font-size: .95rem;
  font-weight: 500;
  color: var(--noir);
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  transition: border-color .18s;
}
.btn-retour:hover { border-color: #9CA3AF; }

.btn-continuer {
  flex: 1;
  padding: 15px 26px;
  background: linear-gradient(90deg, #F9C846 0%, #F5A623 100%);
  border-radius: var(--radius-card);
  font-size: .97rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .01em;
  box-shadow: 0 2px 12px rgba(245,166,35,.35);
  transition: opacity .18s, transform .15s;
}
.btn-continuer:hover { opacity: .92; transform: translateY(-1px); }

/* ═══════════════════════════════════════
   NON ÉLIGIBLE
═══════════════════════════════════════ */
.ineligible-block {
  text-align: center;
  padding: 20px 0;
}
.ineligible-icon { font-size: 3rem; margin-bottom: 18px; }
.ineligible-block .step-title { margin-bottom: 14px; }
.ineligible-block .step-sub   {
  margin-bottom: 28px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.back-row-top {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.btn-back-ineligible {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .88rem;
  color: var(--gris-text);
  padding: 8px 14px;
  border-radius: 8px;
  transition: color .18s;
}
.btn-back-ineligible:hover { color: var(--noir); }

/* ═══════════════════════════════════════
   CONFIRMATION
═══════════════════════════════════════ */
.confirm-block { text-align: center; padding: 20px 0; }
.confirm-icon  { font-size: 3rem; margin-bottom: 18px; }
.confirm-block .step-title { margin-bottom: 14px; }
.confirm-block .step-sub   { margin-bottom: 28px; }

.confirm-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}
.badge {
  background: var(--blanc);
  border: 1.5px solid var(--gris-border);
  border-radius: 99px;
  padding: 8px 16px;
  font-size: .83rem;
  font-weight: 500;
  color: #059669;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

.btn-home {
  display: inline-block;
  padding: 14px 32px;
  background: linear-gradient(90deg, #F9C846 0%, #F5A623 100%);
  border-radius: var(--radius-card);
  font-size: .95rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 2px 12px rgba(245,166,35,.35);
  transition: opacity .18s;
}
.btn-home:hover { opacity: .92; }

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 800px) {
  .page-wrapper { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .mobile-logo { display: block; }
  .form-area { padding: 24px 16px 48px; }
  .step-title { font-size: 1.4rem; }
  .progress-wrap { margin-bottom: 32px; }
}

@media (max-width: 480px) {
  .address-btns { flex-direction: column; }
  .btn-retour { order: 2; }
  .btn-continuer { order: 1; }
}

/* ═══════════════════════════════════════
   SECTIONS LANDING (sous le formulaire)
═══════════════════════════════════════ */
.landing-sections {
  width: 100%;
}

/* ── SECTION 1 : Hero ── */
.sec-hero {
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 72px 80px;
  background: #f0f4fb;
}
.sec-hero-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.sec-tag {
  display: inline-block;
  font-size: .8rem;
  color: #4a90d9;
  border: 1px solid #c5d9f5;
  background: #eaf2ff;
  border-radius: 99px;
  padding: 4px 14px;
  width: fit-content;
}
.sec-h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #111827;
  line-height: 1.25;
  letter-spacing: -.02em;
}
.sec-h2.centered { text-align: center; }
.sec-hero-text p {
  font-size: 1.08rem;
  color: #4B5563;
  line-height: 1.65;
}
.txt-blue { color: #2563eb; font-weight: 600; }
.btn-cta {
  display: inline-block;
  width: fit-content;
  padding: 14px 28px;
  background: #2563eb;
  color: #fff;
  border-radius: 10px;
  font-size: .97rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: var(--font);
  transition: background .2s, transform .15s;
  margin-top: 6px;
}
.btn-cta:hover { background: #1d4ed8; transform: translateY(-1px); }
.sec-hero-img {
  flex: 1;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
}
.sec-hero-img img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

/* ── SECTION 2 : Services ── */
.sec-services {
  padding: 72px 80px;
  background: #fff;
}
.sec-services-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.sec-desc {
  font-size: 1.08rem;
  color: #6B7280;
  line-height: 1.6;
  max-width: 620px;
}
.sec-desc.centered { text-align: center; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  width: 100%;
  margin-top: 28px;
}
.service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.service-icon {
  width: 64px;
  height: 64px;
  background: #eaf2ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-item span {
  font-size: .92rem;
  font-weight: 600;
  color: #1a1f2e;
  line-height: 1.4;
}

/* ── SECTION 3 : Packs ── */
.sec-packs {
  padding: 72px 80px;
  background: #f0f4fb;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.packs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  width: 100%;
  max-width: 860px;
  margin-top: 28px;
}
.pack-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  border: 2px solid transparent;
  transition: border-color .2s;
}
.pack-card.featured {
  border-color: #4a90d9;
}
.pack-img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.pack-body {
  padding: 22px 24px;
}
.pack-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 4px;
}
.pack-sub {
  font-size: .82rem;
  color: #4a90d9;
  font-weight: 600;
  margin-bottom: 14px;
}
.pack-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 18px;
}
.pack-features li {
  font-size: .88rem;
  color: #4B5563;
  padding-left: 14px;
  position: relative;
}
.pack-features li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: #9CA3AF;
}
.pack-from {
  font-size: .82rem;
  color: #6B7280;
  margin-bottom: 4px;
}
.pack-price {
  font-size: 2rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 6px;
}
.pack-note {
  font-size: .78rem;
  color: #6B7280;
}
.pack-disclaimer {
  font-size: .72rem;
  color: #9CA3AF;
  font-style: italic;
  margin-top: 4px;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .sec-hero { flex-direction: column; padding: 48px 24px; gap: 32px; }
  .sec-services { padding: 48px 24px; }
  .sec-packs { padding: 48px 24px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .packs-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .sec-h2 { font-size: 1.5rem; }
}

/* ── Indicateur de scroll ── */
.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 64px 0 10px;
  opacity: .6;
  animation: bounceHint 2s ease-in-out infinite;
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font);
  transition: opacity .2s;
}
.scroll-hint:hover {
  opacity: 1;
}
.scroll-hint span {
  font-size: .75rem;
  color: var(--gris-text);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.scroll-hint svg {
  color: var(--gris-text);
}
@keyframes bounceHint {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

/* ── Titre simulateur ── */


/* ── Titre en tête de la zone formulaire ── */
.form-title {
  font-size: 3.4rem;
  font-weight: 900;
  color: var(--noir);
  letter-spacing: -.03em;
  line-height: 1.15;
  text-align: left;
  width: 100%;
  max-width: 540px;
  margin-bottom: 28px;
  margin-top: 0;
  flex-shrink: 0;
}
.title-orange {
  color: #c86010;
}
.form-spacer { display: none; }

/* ── Autocomplétion adresse ── */
.autocomplete-wrap {
  position: relative;
  width: 100%;
}
.autocomplete-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1.5px solid var(--gris-border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  z-index: 100;
  list-style: none;
  overflow: hidden;
  max-height: 300px;
  overflow-y: auto;
}
.ac-item {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: background .15s;
}
.ac-item:last-child { border-bottom: none; }
.ac-item:hover { background: #f5f8ff; }
.ac-main {
  font-size: .95rem;
  font-weight: 600;
  color: var(--noir);
}
.ac-sub {
  font-size: .78rem;
  color: var(--gris-text);
}

/* ── Formulaire coordonnées ── */
.coords-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}
.coords-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.coords-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.coords-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  background: #f8f9ff;
  border: 1.5px solid var(--gris-border);
  border-radius: 10px;
}
.coords-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #4a90d9;
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
}
.coords-checkbox label {
  font-size: .78rem;
  color: var(--gris-text);
  line-height: 1.5;
  cursor: pointer;
}

/* Bouton Suivant rose comme le screenshot */
.btn-pink {
  background: linear-gradient(90deg, #e07080 0%, #d05060 100%) !important;
}
.btn-pink:hover { opacity: .9; }

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

/* ── Étoile 80% ── */
.star-80 {
  color: #FBBF24;
  position: relative;
  display: inline-block;
}
.star-80::before {
  content: '★';
  position: absolute;
  left: 0;
  top: 0;
  color: #FBBF24;
  clip-path: inset(0 20% 0 0);
  width: 100%;
}
.star-80 {
  color: rgba(255,255,255,0.25);
}
