/* ============================================================
   legal.css — Pages légales « Economie Energie »
   Reprise de la structure + animations des pages légales v3
   (hero, sommaire sticky scroll-spy, cartes, info-box, CTA),
   recoloré dans le vert Economie Energie (#4AAB3D), police Inter.
   Inclut header + footer pour être autoporteur.
   ============================================================ */

:root {
  --e-accent: #4AAB3D;
  --e-accent-2: #6BCA5A;
  --e-accent-deep: #358C2B;
  --e-ink: #0b1f33;
  --e-ink-soft: #1c3144;
  --e-body: #51606e;
  --e-muted: #6b7783;
  --e-bg: #f4f8fa;
  --e-surface: #ffffff;
  --e-tint: #eaf6e8;
  --e-tint-2: #f1f9ef;
  --e-line: rgba(11, 31, 51, 0.10);
  --e-shadow: 0 16px 38px -26px rgba(11, 31, 51, 0.45);
  --e-radius: 20px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: var(--e-body);
  background: var(--e-bg);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

main { display: block; }

img, svg { max-width: 100%; }

.container {
  width: min(1180px, calc(100% - 44px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 200;
  background: var(--e-accent);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 10px 0;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.legal-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--e-line);
}
.legal-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
}
.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.legal-brand img { height: 54px; width: auto; display: block; }
.legal-header__cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--e-accent-2) 0%, var(--e-accent) 55%, var(--e-accent-deep) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 12px 30px -10px rgba(74, 171, 61, 0.55);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  white-space: nowrap;
}
.legal-header__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -12px rgba(74, 171, 61, 0.65);
  color: #fff;
}
.legal-header__cta svg { width: 17px; height: 17px; }

/* ---------- Hero ---------- */
.policy-hero {
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(74, 171, 61, 0.10), transparent 55%),
    linear-gradient(180deg, var(--e-tint) 0%, var(--e-bg) 82%);
  padding: clamp(46px, 7vw, 92px) 0;
  border-bottom: 1px solid var(--e-line);
}
.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--e-surface);
  border: 1px solid rgba(74, 171, 61, 0.30);
  color: var(--e-accent-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: var(--e-shadow);
}
.policy-hero h1 {
  margin: 0;
  color: var(--e-ink);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.policy-hero p {
  margin-top: 16px;
  max-width: 720px;
  color: var(--e-muted);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
}
.last-update {
  display: inline-block;
  margin-top: 18px;
  padding: 8px 16px;
  background: var(--e-tint);
  color: var(--e-accent-deep);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

/* ---------- Layout + sommaire ---------- */
.policy-wrapper { padding: clamp(44px, 7vw, 86px) 0; }

.policy-layout {
  display: grid;
  grid-template-columns: 268px 1fr;
  gap: 44px;
  align-items: start;
}

.policy-toc {
  position: sticky;
  top: 96px;
  padding: 26px;
  background: var(--e-surface);
  border: 1px solid var(--e-line);
  border-radius: 18px;
  box-shadow: var(--e-shadow);
}
.policy-toc-title {
  margin: 0 0 14px;
  color: var(--e-ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.policy-toc ol { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.policy-toc a {
  color: var(--e-muted);
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  transition: color 0.2s ease;
}
.policy-toc a:hover,
.policy-toc a.is-active { color: var(--e-accent-deep); }

/* ---------- Cartes de contenu ---------- */
.policy-card--lite { display: grid; gap: 24px; }

.policy-intro {
  padding: clamp(22px, 3vw, 34px);
  background: linear-gradient(135deg, var(--e-tint-2), var(--e-surface));
  border: 1px solid rgba(74, 171, 61, 0.22);
  border-radius: var(--e-radius);
}
.policy-intro h2 {
  margin: 0 0 12px;
  color: var(--e-ink);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 800;
  letter-spacing: -0.01em;
}
.policy-intro p { margin: 0; color: var(--e-body); }

.policy-item {
  margin: 0;
  padding: clamp(24px, 3vw, 38px);
  background: var(--e-surface);
  border: 1px solid var(--e-line);
  border-radius: var(--e-radius);
  box-shadow: var(--e-shadow);
}

.policy-item h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 16px;
  color: var(--e-ink);
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.policy-section-num {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--e-accent-2), var(--e-accent-deep));
  color: #fff;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 8px 20px -8px rgba(74, 171, 61, 0.7);
}
.policy-item h3 {
  margin: 22px 0 8px;
  color: var(--e-ink-soft);
  font-size: 18px;
  font-weight: 800;
}
.policy-item p { margin: 0 0 14px; color: var(--e-body); }
.policy-item ul,
.policy-item ol {
  margin: 0 0 14px;
  padding-left: 22px;
  display: grid;
  gap: 9px;
  color: var(--e-body);
}
.policy-item li { line-height: 1.6; }
.policy-item li::marker { color: var(--e-accent); }
.policy-item strong { color: var(--e-ink-soft); }

.policy-item a,
.policy-intro a,
.info-box a {
  color: var(--e-accent-deep);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.policy-item a:hover,
.policy-intro a:hover,
.info-box a:hover { color: var(--e-accent); }

abbr { text-decoration: none; border-bottom: 1px dotted var(--e-accent); cursor: help; }

/* ---------- Encadrés ---------- */
.info-box {
  margin: 16px 0;
  padding: 20px 22px;
  background: var(--e-tint-2);
  border-left: 4px solid var(--e-accent);
  border-radius: 12px;
  color: var(--e-ink-soft);
  line-height: 1.7;
}
.info-box strong { color: var(--e-accent-deep); }

.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 10px; }
.mini-card {
  display: grid;
  gap: 6px;
  padding: 20px;
  background: var(--e-bg);
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px var(--e-line);
}
.mini-card strong { color: var(--e-accent-deep); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; }

.policy-back-top {
  margin-top: 22px;
  padding: 12px 22px;
  background: var(--e-tint);
  color: var(--e-accent-deep);
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.policy-back-top:hover { background: #ddf2d9; }

/* ---------- CTA bandeau ---------- */
.cta-section { padding: clamp(36px, 6vw, 64px) 0 clamp(48px, 7vw, 80px); }
.cta-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(28px, 4vw, 48px);
  background: linear-gradient(135deg, var(--e-accent-2) 0%, var(--e-accent) 50%, var(--e-accent-deep) 100%);
  border-radius: 26px;
  color: #fff;
  box-shadow: 0 30px 60px -34px rgba(74, 171, 61, 0.8);
}
.cta-box h2 { margin: 0; color: #fff; font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -0.01em; }
.cta-box p { margin: 8px 0 0; max-width: 540px; color: rgba(255, 255, 255, 0.92); }
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 32px;
  background: #fff;
  color: var(--e-accent-deep);
  border-radius: 999px;
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -14px rgba(0, 0, 0, 0.35); color: var(--e-accent-deep); }

@media (max-width: 900px) {
  .policy-layout { grid-template-columns: 1fr; gap: 26px; }
  .policy-toc { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-box { flex-direction: column; align-items: flex-start; }
}

/* ---------- Barre CTA mobile (téléphone + devis) ---------- */
.mobile-cta-bar { display: none; }
@media (max-width: 991px) {
  body { padding-bottom: 86px; }
  .mobile-cta-bar {
    display: flex;
    align-items: stretch;
    gap: 10px;
    position: fixed;
    z-index: 1200;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
  }
  .mobile-cta-bar__call {
    flex: 0 0 auto;
    width: 58px;
    display: grid;
    place-items: center;
    background: #ffffff;
    color: #358C2B;
    border: 1px solid rgba(0, 26, 41, 0.12);
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 26, 41, 0.18);
  }
  .mobile-cta-bar__call svg { width: 23px; height: 23px; }
  .mobile-cta-bar__quote {
    flex: 1 1 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 58px;
    background: linear-gradient(135deg, #6BCA5A 0%, #4AAB3D 55%, #358C2B 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 15px;
    text-decoration: none;
    border-radius: 16px;
    box-shadow: 0 14px 32px -8px rgba(74, 171, 61, 0.55);
  }
  .mobile-cta-bar__quote svg { width: 18px; height: 18px; }
}

/* ============================================================
   Footer « kindi » — repris à l'identique du site Economie Energie
   ============================================================ */
.kindi-footer { position: relative; background: linear-gradient(180deg, #08142B 0%, #0D2348 55%, #13366D 140%); color: #e6ecf4; font-family: 'Inter', system-ui, -apple-system, sans-serif; padding: 96px 0 0; margin-top: 80px; overflow: hidden; isolation: isolate; }
.kindi-footer::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 12% 18%, rgba(74, 171, 61, 0.22), transparent 42%), radial-gradient(circle at 88% 72%, rgba(100, 150, 220, 0.12), transparent 48%); pointer-events: none; z-index: -1; }
.kindi-footer::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent 0%, rgba(74, 171, 61, 0.55) 20%, rgba(74, 171, 61, 0.90) 50%, rgba(74, 171, 61, 0.55) 80%, transparent 100%); z-index: 1; }
.kindi-footer__container { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }
.kindi-footer__cta { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 32px 40px; background: linear-gradient(135deg, rgba(74, 171, 61, 0.18) 0%, rgba(13, 35, 72, 0.55) 100%); border: 1px solid rgba(74, 171, 61, 0.36); border-radius: 24px; margin-bottom: 72px; backdrop-filter: blur(10px); }
.kindi-footer__cta-text strong { display: block; font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; color: #fff; letter-spacing: -0.01em; margin-bottom: 6px; }
.kindi-footer__cta-text span { display: block; color: rgba(230, 236, 244, 0.78); font-size: 14px; }
.kindi-footer__cta-btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 28px; background: linear-gradient(135deg, #6BCA5A 0%, #4AAB3D 55%, #358C2B 100%); color: #fff; font-weight: 800; font-size: 15px; border-radius: 999px; text-decoration: none; box-shadow: 0 12px 32px rgba(74, 171, 61, 0.42); transition: all 0.3s ease; white-space: nowrap; flex-shrink: 0; }
.kindi-footer__cta-btn:hover, .kindi-footer__cta-btn:focus-visible { transform: translateY(-2px); box-shadow: 0 18px 44px rgba(74, 171, 61, 0.58); outline: none; color: #fff; }
.kindi-footer__cta-btn:focus-visible { outline: 2px solid #4AAB3D; outline-offset: 3px; }
.kindi-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 56px; padding-bottom: 64px; }
.kindi-footer__brand-logo { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; margin-bottom: 20px; }
.kindi-footer__brand-logo img { width: auto; height: 64px; flex-shrink: 0; background: #ffffff; padding: 9px 14px; border-radius: 14px; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25); }
.kindi-footer__tagline { font-size: 18px; font-weight: 700; color: #fff; margin: 0 0 14px; line-height: 1.35; }
.kindi-footer__desc { color: rgba(230, 236, 244, 0.78); font-size: 14px; line-height: 1.65; margin: 0 0 22px; max-width: 36ch; }
.kindi-footer__trust { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; background: rgba(74, 171, 61, 0.16); border: 1px solid rgba(74, 171, 61, 0.42); border-radius: 999px; color: #9cde8a; font-size: 12px; font-weight: 600; }
.kindi-footer__col-title { font-size: 13px; font-weight: 800; color: #fff; text-transform: uppercase; letter-spacing: 0.14em; margin: 0 0 22px; position: relative; padding-bottom: 14px; }
.kindi-footer__col-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 2px; background: linear-gradient(90deg, #6BCA5A, #358C2B); border-radius: 2px; }
.kindi-footer__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.kindi-footer__list a { color: rgba(230, 236, 244, 0.78); text-decoration: none; font-size: 14px; transition: all 0.3s ease; display: inline-flex; align-items: center; gap: 8px; }
.kindi-footer__list a::before { content: "→"; opacity: 0; transform: translateX(-6px); transition: all 0.3s ease; color: #4AAB3D; }
.kindi-footer__list a:hover, .kindi-footer__list a:focus-visible { color: #fff; outline: none; }
.kindi-footer__list a:hover::before, .kindi-footer__list a:focus-visible::before { opacity: 1; transform: translateX(0); }
.kindi-footer__contact { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.kindi-footer__contact li { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: rgba(230, 236, 244, 0.85); line-height: 1.55; }
.kindi-footer__contact svg { width: 18px; height: 18px; flex-shrink: 0; color: #4AAB3D; margin-top: 2px; }
.kindi-footer__contact a { color: inherit; text-decoration: none; transition: color 0.3s ease; }
.kindi-footer__contact a:hover, .kindi-footer__contact a:focus-visible { color: #4AAB3D; outline: none; }
.kindi-footer__kindilab { margin-top: 16px; padding-top: 18px; border-top: 1px dashed rgba(74, 171, 61, 0.30); font-size: 13px; color: rgba(230, 236, 244, 0.68); line-height: 1.6; }
.kindi-footer__kindilab strong { display: block; color: #fff; font-weight: 700; margin-bottom: 4px; }
.kindi-footer__kindilab span { display: block; font-size: 12px; color: rgba(230, 236, 244, 0.55); }
.kindi-footer__bottom { border-top: 1px solid rgba(74, 171, 61, 0.22); padding: 28px 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 13px; color: rgba(230, 236, 244, 0.60); }
.kindi-footer__legal { display: flex; gap: 24px; flex-wrap: wrap; }
.kindi-footer__legal a { color: rgba(230, 236, 244, 0.78); text-decoration: none; transition: color 0.3s ease; }
.kindi-footer__legal a:hover, .kindi-footer__legal a:focus-visible { color: #4AAB3D; outline: none; }
.kindi-footer__copy strong { color: rgba(230, 236, 244, 0.90); font-weight: 700; }
.kindi-footer__copy em { font-style: normal; background: linear-gradient(135deg, #6BCA5A, #4AAB3D); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; }
@media (max-width: 1024px) { .kindi-footer__grid { grid-template-columns: 1fr 1fr; gap: 48px; } .kindi-footer__brand-block { grid-column: 1 / -1; } }
@media (max-width: 768px) { .kindi-footer { padding-top: 72px; margin-top: 60px; } .kindi-footer__cta { flex-direction: column; align-items: flex-start; padding: 28px; gap: 20px; margin-bottom: 56px; } .kindi-footer__cta-btn { width: 100%; justify-content: center; } .kindi-footer__grid { grid-template-columns: 1fr; gap: 40px; padding-bottom: 48px; } .kindi-footer__bottom { flex-direction: column; align-items: flex-start; } }
@media (max-width: 480px) { .kindi-footer__container { padding: 0 20px; } .kindi-footer__cta { padding: 24px 20px; } .kindi-footer__cta-text strong { font-size: 18px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
