/* =========================================================================
   styles.css — Landing page chauffage solaire & pompe à chaleur
   ========================================================================= */

:root {
  --green:        #10b981;
  --green-dark:   #047857;
  --green-soft:   #ecfdf5;
  --orange:       #f97316;
  --orange-dark:  #ea580c;
  --ink:          #0f172a;
  --slate:        #475569;
  --slate-light:  #94a3b8;
  --line:         #e2e8f0;
  --bg:           #ffffff;
  --bg-soft:      #f8fafc;
  --red:          #dc2626;
  --red-soft:     #fef2f2;
  --amber:        #f59e0b;
  --amber-soft:   #fffbeb;
  --radius:       16px;
  --shadow:       0 10px 30px -12px rgba(15, 23, 42, .25);
  --shadow-lg:    0 24px 60px -20px rgba(15, 23, 42, .35);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { width: min(1140px, 92%); margin-inline: auto; }

img { max-width: 100%; display: block; }

/* ----------------------------- Boutons ----------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 999px;
  padding: .85rem 1.6rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  line-height: 1.2;
}
.btn:active { transform: translateY(1px); }

.btn-cta {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: #fff;
  box-shadow: 0 12px 24px -10px rgba(234, 88, 12, .7);
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 18px 30px -12px rgba(234, 88, 12, .8); }

.btn-light { background: #fff; color: var(--green-dark); box-shadow: var(--shadow); }
.btn-light:hover { transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--green-dark);
  border: 2px solid var(--green);
}
.btn-ghost:hover { background: var(--green-soft); }

.btn-lg  { font-size: 1.1rem; padding: 1.05rem 2rem; }
.btn-sm  { font-size: .9rem; padding: .55rem 1.1rem; }

.pulse { animation: pulse 2.4s infinite; }
@keyframes pulse {
  0%   { box-shadow: 0 12px 24px -10px rgba(234,88,12,.7), 0 0 0 0 rgba(249,115,22,.45); }
  70%  { box-shadow: 0 12px 24px -10px rgba(234,88,12,.7), 0 0 0 18px rgba(249,115,22,0); }
  100% { box-shadow: 0 12px 24px -10px rgba(234,88,12,.7), 0 0 0 0 rgba(249,115,22,0); }
}

/* ----------------------------- Header ----------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; padding: .9rem 0; }
.logo { display: flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--ink); }
.brand-logo {
  width: 100px;
  height: auto;
  object-fit: contain;
  object-position: left center;
  border-radius: 8px;
}
.logo-mark { font-size: 1.6rem; }
.logo-text { font-weight: 700; font-size: 1.25rem; letter-spacing: -.02em; }
.logo-text strong { color: var(--green-dark); }
.header-nav { margin-left: auto; display: flex; gap: 1.6rem; }
.header-nav a { color: var(--slate); text-decoration: none; font-weight: 600; font-size: .95rem; }
.header-nav a:hover { color: var(--green-dark); }

/* ----------------------------- Hero ----------------------------- */
.hero {
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(16,185,129,.12), transparent),
    linear-gradient(180deg, var(--bg-soft), #fff);
  padding: clamp(2.5rem, 6vw, 5rem) 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 3rem;
  align-items: center;
}
.badge-offer {
  display: inline-block;
  background: var(--green-soft);
  color: var(--green-dark);
  border: 1px solid rgba(16,185,129,.35);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  padding: .45rem .9rem;
  border-radius: 999px;
  margin-bottom: 1.4rem;
}
.hero h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -.025em;
  font-weight: 800;
  margin-bottom: 1.1rem;
}
.hl-solar { color: var(--orange-dark); }
.hl-pac   { color: var(--green-dark); }
.hero-sub { font-size: 1.15rem; color: var(--slate); margin-bottom: 1.8rem; max-width: 36ch; }
.hero-reassure {
  list-style: none; display: flex; flex-wrap: wrap; gap: 1.2rem;
  margin-top: 1.3rem; color: var(--green-dark); font-weight: 600; font-size: .95rem;
}

.hero-media { position: relative; }
.hero-photo { position: relative; }
.hero-img {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.floating-card {
  position: absolute; left: -1.2rem; bottom: -1.2rem;
  background: var(--green-dark); color: #fff;
  border-radius: 14px; padding: 1rem 1.3rem;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: .7rem;
}
.fc-amount { font-size: 2.2rem; font-weight: 800; line-height: 1; }
.fc-label { font-size: .8rem; opacity: .9; }

/* ----------------------------- Bandeau financement ----------------------------- */
.funding-bar { background: var(--bg-soft); border-block: 1px solid var(--line); padding: 1.8rem 0; }
.funding-inner {
  display: flex; flex-direction: column; align-items: center;
  gap: 1.2rem; text-align: center;
}
.funding-label { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; color: var(--slate); font-weight: 700; }
.funding-logos { display: flex; gap: 2.5rem; flex-wrap: wrap; justify-content: center; align-items: center; }
.gov-logo { height: 72px; width: auto; }

/* ----------------------------- Sections génériques ----------------------------- */
section { scroll-margin-top: 80px; }
.process, .reviews, .guarantees { padding: clamp(3rem, 7vw, 5rem) 0; }
.reviews { background: var(--bg-soft); }
.section-title {
  text-align: center; font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  font-weight: 800; letter-spacing: -.02em;
}
.section-lead { text-align: center; color: var(--slate); margin-top: .6rem; font-size: 1.1rem; }

/* ----------------------------- Étapes (process) ----------------------------- */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.step-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.6rem; text-align: center; box-shadow: var(--shadow);
  transition: transform .2s ease;
}
.step-card:hover { transform: translateY(-4px); }
.step-card.highlight { border-color: var(--green); background: var(--green-soft); }
.step-icon {
  width: 112px; height: 112px; margin: 0 auto 1rem;
  display: grid; place-items: center;
}
.step-icon img { width: 100%; height: 100%; object-fit: contain; border-radius: 18px; }
.step-num { display: inline-block; color: var(--green-dark); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.step-card h3 { font-size: 1.3rem; margin: .3rem 0 .6rem; }
.step-card p { color: var(--slate); }
.process-cta { text-align: center; margin-top: 2.8rem; }

/* ----------------------------- Avis ----------------------------- */
.reviews-stars { text-align: center; color: var(--amber); font-size: 1.4rem; margin-top: 1rem; letter-spacing: 2px; }
.reviews-stars span { color: var(--slate); font-size: .95rem; letter-spacing: normal; margin-left: .4rem; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.review-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; box-shadow: var(--shadow);
}
.review-card.featured { border-color: var(--green); }
.review-card .stars { color: var(--amber); letter-spacing: 2px; margin-bottom: .7rem; }
.review-card p { color: var(--ink); font-size: 1rem; }
.review-card footer { margin-top: 1rem; color: var(--slate); font-size: .9rem; }

/* ----------------------------- Garanties ----------------------------- */
.cert-row { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2rem; }
.cert-badge {
  background: var(--green-soft); color: var(--green-dark);
  border: 1px solid rgba(16,185,129,.3);
  font-weight: 700; padding: .7rem 1.3rem; border-radius: 999px;
}

/* ----------------------------- CTA final ----------------------------- */
.final-cta {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff; text-align: center; padding: clamp(3rem, 7vw, 4.5rem) 0;
}
.final-cta h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 800; }
.final-cta p { margin: .8rem 0 1.8rem; opacity: .95; font-size: 1.1rem; }

/* ----------------------------- Footer ----------------------------- */
.site-footer { background: var(--ink); color: #cbd5e1; padding: 3rem 0 2rem; }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2rem; padding-bottom: 1.8rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-logo {
  width: 100px;
  height: auto;
}
.footer-brand .logo-text { color: #fff; font-size: 1.3rem; }
.footer-brand strong { color: var(--green); }
.footer-brand p { margin-top: .7rem; max-width: 44ch; font-size: .92rem; }
.footer-links { display: flex; flex-direction: column; gap: .6rem; }
.footer-links a { color: #cbd5e1; text-decoration: none; font-size: .92rem; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-legal { padding-top: 1.4rem; font-size: .8rem; color: var(--slate-light); }
.footer-legal p { margin-bottom: .5rem; }

/* ============================ SIMULATEUR ============================ */
.simulator-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(15, 23, 42, .6);
  backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center;
  padding: 1rem;
}
.simulator-overlay.open { display: flex; animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.simulator-modal {
  position: relative;
  background: #fff;
  border-radius: 20px;
  width: min(620px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  padding: 2.4rem clamp(1.4rem, 4vw, 2.6rem);
  box-shadow: var(--shadow-lg);
  animation: popIn .25s ease;
}
@keyframes popIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

.sim-close {
  position: absolute; top: 1rem; right: 1.1rem;
  width: 38px; height: 38px; border-radius: 50%;
  border: none; background: var(--bg-soft); color: var(--slate);
  font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.sim-close:hover { background: var(--line); }

.sim-progress { margin-bottom: 1.4rem; }
.sim-progress-bar { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.sim-progress-bar span {
  display: block; height: 100%; width: 20%;
  background: linear-gradient(90deg, var(--green), var(--green-dark));
  border-radius: 999px; transition: width .35s ease;
}
.sim-progress-text { margin-top: .5rem; font-size: .82rem; font-weight: 700; color: var(--green-dark); text-transform: uppercase; letter-spacing: .04em; }

.sim-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 1.4rem; letter-spacing: -.02em; }

.sim-step { animation: fadeIn .25s ease; }
.sim-question { font-size: 1.25rem; font-weight: 700; margin-bottom: 1.3rem; }
.sim-hint-top { margin: -.7rem 0 1.1rem; }

/* Options sélectionnables */
.sim-options { display: grid; gap: .8rem; }
.sim-options.grid-2 { grid-template-columns: 1fr 1fr; }
.sim-option {
  display: flex; align-items: center; gap: .9rem;
  border: 2px solid var(--line); border-radius: 14px;
  padding: 1.1rem 1.2rem; cursor: pointer;
  font-weight: 600; font-size: 1.05rem; text-align: left;
  background: #fff; transition: all .15s ease; width: 100%;
}
.sim-option:hover { border-color: var(--green); background: var(--green-soft); transform: translateY(-2px); }
.sim-option .opt-emoji { font-size: 1.5rem; }

/* Champs formulaire */
.sim-field { margin-bottom: 1.2rem; }
.sim-field label { display: block; font-weight: 700; margin-bottom: .5rem; }
.sim-field input, .sim-field select {
  width: 100%; padding: .9rem 1rem; font-size: 1.05rem; font-family: inherit;
  border: 2px solid var(--line); border-radius: 12px; background: #fff;
}
.sim-field input:focus, .sim-field select:focus { outline: none; border-color: var(--green); }
.sim-hint { font-size: .85rem; color: var(--slate); margin-top: .4rem; }
.sim-error { color: var(--red); font-size: .9rem; font-weight: 600; margin-top: .5rem; min-height: 1.2em; }

.sim-actions { margin-top: 1.4rem; display: flex; gap: .8rem; }
.sim-back {
  background: none; border: none; color: var(--slate); font-weight: 600;
  cursor: pointer; font-family: inherit; font-size: .95rem; padding: .5rem;
}
.sim-back:hover { color: var(--ink); }
.btn-next { flex: 1; }

/* Écrans de résultat */
.sim-result { text-align: center; padding: .5rem 0; }
.sim-result .result-icon { font-size: 4rem; line-height: 1; }
.sim-result h3 { font-size: 1.6rem; font-weight: 800; margin: 1rem 0 .6rem; }
.sim-result p { color: var(--slate); font-size: 1.05rem; max-width: 42ch; margin: 0 auto .6rem; }

.sim-result.success h3 { color: var(--green-dark); }
.sim-result.partial h3 { color: var(--amber); }
.sim-result.reject  h3 { color: var(--red); }

.result-product {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: .5rem auto .8rem;
  padding: .55rem .9rem;
  border-radius: 8px;
  background: var(--green-dark);
  color: #fff;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.result-box {
  margin: 1.4rem 0; padding: 1.2rem; border-radius: 14px;
  background: var(--green-soft); border: 1px solid rgba(16,185,129,.3);
  font-weight: 600; color: var(--green-dark);
}
.sim-result.partial .result-box { background: var(--amber-soft); border-color: rgba(245,158,11,.35); color: #b45309; }
.sim-result.reject  .result-box { background: var(--red-soft); border-color: rgba(220,38,38,.25); color: var(--red); }
.result-box.notice { background: #eff6ff; border-color: rgba(59,130,246,.28); color: #1d4ed8; }

/* Formulaire de capture de lead */
.lead-form { text-align: left; margin-top: 1.4rem; }
.lead-form .sim-field { margin-bottom: 1rem; }

/* ============================ PAGES LÉGALES ============================ */
.legal-hero {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff; padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2rem, 5vw, 3rem);
}
.legal-hero a.back-home { color: rgba(255,255,255,.9); text-decoration: none; font-weight: 600; font-size: .95rem; }
.legal-hero a.back-home:hover { text-decoration: underline; }
.legal-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; margin-top: 1rem; letter-spacing: -.02em; }
.legal-hero p { opacity: .92; margin-top: .5rem; }

.legal-content { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.legal-content .container { max-width: 820px; }
.legal-content h2 {
  font-size: 1.4rem; font-weight: 800; margin: 2.2rem 0 .8rem;
  padding-bottom: .5rem; border-bottom: 2px solid var(--green-soft); color: var(--ink);
}
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content h3 { font-size: 1.1rem; font-weight: 700; margin: 1.4rem 0 .5rem; }
.legal-content p, .legal-content li { color: var(--slate); }
.legal-content p { margin-bottom: 1rem; }
.legal-content ul { margin: 0 0 1rem 1.3rem; }
.legal-content li { margin-bottom: .5rem; }
.legal-content a { color: var(--green-dark); font-weight: 600; }
.legal-content strong { color: var(--ink); }
.legal-content .updated { color: var(--slate-light); font-size: .9rem; font-style: italic; }
.legal-content .todo {
  background: var(--amber-soft); border: 1px dashed var(--amber);
  color: #b45309; font-weight: 600; padding: .15rem .4rem; border-radius: 5px;
}
.legal-content table {
  width: 100%; border-collapse: collapse; margin: 1rem 0 1.4rem; font-size: .95rem;
}
.legal-content th, .legal-content td {
  border: 1px solid var(--line); padding: .7rem .9rem; text-align: left; vertical-align: top;
}
.legal-content th { background: var(--bg-soft); font-weight: 700; color: var(--ink); }
.legal-note {
  background: var(--green-soft); border-left: 4px solid var(--green);
  padding: 1rem 1.2rem; border-radius: 0 10px 10px 0; margin: 1.4rem 0;
}
.legal-note p { margin: 0; color: var(--green-dark); }

/* ----------------------------- Responsive ----------------------------- */
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 460px; }
  .header-nav { display: none; }
  .steps-grid, .reviews-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .sim-options.grid-2 { grid-template-columns: 1fr; }
  .funding-inner { flex-direction: column; }
}
