/* ==========================================================================
   Subapgrapp — Panneaux solaires pour maison individuelle
   Archetype : LONG-FORM FUNNEL (scroll storytelling, flexbox only)
   ========================================================================== */

:root {
  --navy: #0b1f33;
  --blue: #14527a;
  --sky: #2d82b7;
  --sky-soft: #e4f0f7;
  --sun: #f6ae2d;
  --sun-deep: #ef7f1a;
  --cream: #fbf7ef;
  --ink: #16212b;
  --ink-soft: #3f5160;
  --line: #e3e0d6;
  --white: #ffffff;
  --ok: #2e7d58;
  --shadow: 0 18px 50px -24px rgba(11, 31, 51, 0.45);
  --radius: 18px;
  --maxw: 1180px;
  --font: "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1.1em; color: var(--ink-soft); }

a { color: var(--sky); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--sun-deep);
  margin-bottom: 14px;
}

/* ---------- Ad disclosure strip ---------- */
.ad-strip {
  background: var(--navy);
  color: #cfe0ec;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 7px 16px;
}
.ad-strip strong { color: var(--sun); font-weight: 600; }

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 239, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px;
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.97rem;
  text-decoration: none;
}
.nav-links a:hover { color: var(--sky); text-decoration: none; }
.nav-cta {
  background: var(--navy);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 40px;
  font-weight: 700;
}
.nav-cta:hover { background: var(--blue); color: var(--white); }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--line);
  border-radius: 10px;
  width: 44px; height: 42px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  width: 20px; height: 2px; background: var(--navy); display: block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  padding: 15px 30px;
  border-radius: 46px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-sun {
  background: linear-gradient(135deg, var(--sun), var(--sun-deep));
  color: #23160a;
  box-shadow: 0 14px 30px -12px rgba(239, 127, 26, 0.7);
}
.btn-sun:hover { box-shadow: 0 18px 38px -12px rgba(239, 127, 26, 0.85); color: #23160a; }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--blue); color: var(--white); }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
  padding: 13px 28px;
}
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.btn-wide { width: 100%; justify-content: center; }

.text-link {
  font-weight: 700;
  color: var(--sun-deep);
  border-bottom: 2px solid rgba(239, 127, 26, 0.35);
  padding-bottom: 2px;
  text-decoration: none;
}
.text-link:hover { border-color: var(--sun-deep); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy) 0%, var(--blue) 58%, #1a6ea0 100%);
  color: #eaf2f8;
}
.hero-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 72px 24px 84px;
}
.hero-copy { flex: 1 1 440px; }
.hero-copy h1 { color: #fff; }
.hero-copy p.lead {
  font-size: 1.2rem;
  color: #cfe0ee;
  max-width: 540px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}
.hero-media {
  flex: 1 1 400px;
  position: relative;
}
.hero-figure {
  background-color: #123a57;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: rotate(1.4deg);
}
.hero-figure img { width: 100%; height: 420px; }
.hero-badge {
  position: absolute;
  left: -14px; bottom: 26px;
  background: var(--sun);
  color: #23160a;
  padding: 14px 20px;
  border-radius: 14px;
  font-weight: 800;
  box-shadow: var(--shadow);
  transform: rotate(-3deg);
  max-width: 220px;
  line-height: 1.25;
}
.hero-badge small { display: block; font-weight: 600; font-size: 0.75rem; opacity: 0.8; }
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  margin-top: 40px;
}
.hero-stats .stat strong {
  display: block;
  font-size: 1.9rem;
  color: var(--sun);
}
.hero-stats .stat span { font-size: 0.85rem; color: #b9cddd; }

/* ---------- Section rhythm ---------- */
section { position: relative; }
.pad { padding: 84px 0; }
.pad-sm { padding: 56px 0; }
.bg-white { background: var(--white); }
.bg-cream { background: var(--cream); }
.bg-sky { background: var(--sky-soft); }
.bg-navy { background: var(--navy); color: #dce8f1; }
.bg-navy h2, .bg-navy h3 { color: #fff; }

.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Hook / curiosity (asymmetric) ---------- */
.hook {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  align-items: flex-start;
}
.hook-lead { flex: 1 1 320px; }
.hook-lead .big {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
}
.hook-side {
  flex: 1 1 300px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--sun);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}

/* ---------- Problem amplification ---------- */
.pain-list {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  list-style: none;
  padding: 0; margin: 30px 0 0;
}
.pain-list li {
  flex: 1 1 240px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 24px;
}
.pain-list li h3 { color: var(--sun); font-size: 1.05rem; }
.pain-list li p { color: #c3d4e1; margin: 0; }

/* ---------- Steps / insight ---------- */
.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  counter-reset: step;
}
.step {
  flex: 1 1 240px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px 28px;
  border: 1px solid var(--line);
  position: relative;
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--sun-deep);
  display: block;
  margin-bottom: 10px;
}

/* ---------- Split feature ---------- */
.split {
  display: flex;
  flex-wrap: wrap;
  gap: 54px;
  align-items: center;
}
.split.reverse { flex-direction: row-reverse; }
.split-media { flex: 1 1 360px; }
.split-copy { flex: 1 1 360px; }
.split-figure {
  background-color: #d8e6ef;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.split-figure img { width: 100%; height: 400px; }
.check-list { list-style: none; padding: 0; margin: 18px 0 0; }
.check-list li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.check-list li:last-child { border-bottom: none; }
.check-ico {
  flex: 0 0 auto;
  width: 24px; height: 24px;
  background: var(--ok);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 800;
  margin-top: 3px;
}

/* ---------- Trust / logos row ---------- */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
  justify-content: center;
}
.trust-chip {
  display: flex; align-items: center; gap: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 40px;
  padding: 12px 22px;
  font-weight: 700;
  color: var(--navy);
}

/* ---------- Testimonials (editorial inline) ---------- */
.quotes {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
}
.quote {
  flex: 1 1 300px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--sky);
}
.quote p { font-size: 1.02rem; color: var(--ink); }
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.quote .who .av {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--sky-soft);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
}
.quote .who strong { color: var(--navy); font-size: 0.95rem; }
.quote .who span { display: block; font-size: 0.8rem; color: var(--ink-soft); }
.stars { color: var(--sun); letter-spacing: 2px; margin-bottom: 8px; }

/* ---------- Pricing ---------- */
.price-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  align-items: stretch;
}
.price-card {
  flex: 1 1 300px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.price-card.featured {
  border: 2px solid var(--sun);
  transform: translateY(-8px);
}
.price-card .pc-top {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.price-tag {
  font-size: 2rem; font-weight: 800; color: var(--navy);
  margin: 14px 0 4px;
}
.price-tag small { font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); }
.price-card ul {
  list-style: none; padding: 0; margin: 18px 0 24px; flex: 1 1 auto;
}
.price-card ul li {
  padding: 8px 0; border-bottom: 1px solid var(--line);
  color: var(--ink-soft); font-size: 0.95rem;
}
.pill {
  display: inline-block;
  background: var(--sun);
  color: #23160a;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 30px;
}

/* ---------- Service cards (services.html) ---------- */
.svc-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
}
.svc-card {
  flex: 1 1 320px;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.svc-figure {
  background-color: #cdddea;
  overflow: hidden;
}
.svc-figure img { width: 100%; height: 190px; }
.svc-body { padding: 26px; display: flex; flex-direction: column; flex: 1 1 auto; }
.svc-body .price-tag { font-size: 1.5rem; margin: 8px 0 12px; }
.svc-body p { flex: 1 1 auto; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--sun) 0%, var(--sun-deep) 100%);
  color: #22150a;
  border-radius: 24px;
  padding: 48px 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  box-shadow: var(--shadow);
}
.cta-band h2 { color: #22150a; margin: 0; }
.cta-band p { color: #3a2410; margin: 8px 0 0; }

/* ---------- Form ---------- */
.form-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  align-items: stretch;
}
.form-side {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.form-card {
  flex: 1 1 400px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.form-step-note {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--sky-soft); color: var(--blue);
  font-weight: 700; font-size: 0.8rem;
  padding: 6px 14px; border-radius: 30px; margin-bottom: 16px;
}
.field { margin-bottom: 18px; }
.field label {
  display: block; font-weight: 700; font-size: 0.9rem;
  color: var(--navy); margin-bottom: 7px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fdfcf9;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(45, 130, 183, 0.18);
}
.field textarea { resize: vertical; min-height: 96px; }
.form-error {
  color: #c0392b; font-size: 0.85rem; margin-top: 6px; display: none;
}
.field.invalid .form-error { display: block; }
.field.invalid input,
.field.invalid select { border-color: #c0392b; }
.form-consent {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 20px;
}
.form-consent input { width: auto; margin-top: 4px; }

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-family: inherit;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--navy);
  padding: 22px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-q .mark { color: var(--sun-deep); font-size: 1.5rem; flex: 0 0 auto; transition: transform 0.2s ease; }
.faq-item.open .faq-q .mark { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-a p { padding-bottom: 20px; margin: 0; }

/* ---------- Content / legal pages ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #e7f1f8;
  padding: 64px 0 56px;
}
.page-hero h1 { color: #fff; }
.page-hero p { color: #c6d8e6; max-width: 640px; margin: 0; }
.breadcrumb { font-size: 0.85rem; color: #9fbcd1; margin-bottom: 14px; }
.breadcrumb a { color: #cfe0ee; }

.prose { max-width: 780px; }
.prose h2 { margin-top: 44px; }
.prose h3 { margin-top: 28px; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; color: var(--ink-soft); }
.prose .meta-note {
  background: var(--sky-soft);
  border-left: 4px solid var(--sky);
  padding: 16px 20px;
  border-radius: 10px;
  font-size: 0.95rem;
}

/* ---------- Info cards (contact) ---------- */
.info-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.info-card {
  flex: 1 1 260px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.info-card h3 { font-size: 1.1rem; }
.info-card .ico {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--sky-soft); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.no-link { color: var(--navy); font-weight: 700; }

/* ---------- Disclaimer ---------- */
.disclaimer {
  background: #fff6e6;
  border: 1px solid #f0d9a8;
  border-radius: 14px;
  padding: 22px 26px;
  font-size: 0.9rem;
  color: #5c4a22;
}
.disclaimer strong { color: #8a6516; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #a9c1d4;
  padding: 60px 0 28px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}
.footer-col { flex: 1 1 200px; }
.footer-col h4 {
  color: #fff; font-size: 0.95rem; text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: #a9c1d4; font-size: 0.93rem; }
.footer-col a:hover { color: var(--sun); text-decoration: none; }
.footer-brand p { color: #8fa9bd; font-size: 0.92rem; max-width: 280px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 40px; padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 14px;
  justify-content: space-between; align-items: center;
  font-size: 0.82rem; color: #7d99ae;
}

/* ---------- Sticky CTA ---------- */
.sticky-cta {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(140%);
  z-index: 60;
  background: var(--navy);
  color: #fff;
  border-radius: 50px;
  padding: 12px 14px 12px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: 0 20px 40px -14px rgba(11,31,51,0.6);
  transition: transform 0.35s ease;
  max-width: calc(100% - 32px);
}
.sticky-cta.show { transform: translateX(-50%) translateY(0); }
.sticky-cta span { font-weight: 600; font-size: 0.92rem; }
.sticky-cta .btn { padding: 11px 22px; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 20px; right: 20px; bottom: 20px;
  z-index: 70;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 24px 60px -20px rgba(11,31,51,0.5);
  padding: 22px 24px;
  display: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  max-width: 720px;
  margin: 0 auto;
}
.cookie-banner.show { display: flex; }
.cookie-banner p { margin: 0; flex: 1 1 320px; font-size: 0.9rem; }
.cookie-actions { display: flex; gap: 12px; flex: 0 0 auto; flex-wrap: wrap; }
.cookie-actions .btn { padding: 11px 22px; font-size: 0.92rem; }

/* ---------- Thanks page ---------- */
.thanks-hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(160deg, var(--navy), var(--blue));
  color: #e7f1f8;
  padding: 80px 24px;
}
.thanks-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 24px;
  padding: 48px 40px;
  max-width: 560px;
}
.thanks-card h1 { color: #fff; }
.thanks-check {
  width: 78px; height: 78px; border-radius: 50%;
  background: var(--ok); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; margin: 0 auto 22px;
}
.thanks-service {
  display: inline-block;
  background: var(--sun);
  color: #23160a;
  font-weight: 800;
  padding: 8px 20px;
  border-radius: 30px;
  margin: 10px 0 6px;
}

/* ---------- Divider shape ---------- */
.wave { display: block; width: 100%; height: 48px; }

/* ---------- Visually hidden ---------- */
.vh {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 20px 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { border-bottom: none; padding-top: 10px; }
  .nav-links a { display: block; padding: 14px 4px; }
  .nav-cta { text-align: center; }
  .nav-toggle { display: flex; }
  .split.reverse { flex-direction: row; }
  .hero-figure { transform: none; }
  .hero-figure img { height: 300px; }
  .price-card.featured { transform: none; }
  .sticky-cta span { display: none; }
  .sticky-cta { padding: 10px; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .pad { padding: 58px 0; }
  .cta-band, .form-card { padding: 28px 22px; }
  .hero-inner { padding: 54px 20px 64px; }
}
