/* ================================================================
   LA MAISON DE L'ÉNERGIE (MDE) — Feuille de style principale
   Cabinet de conseil en optimisation énergétique B2B
   ================================================================ */

:root {
  --navy: #052c4f;
  --navy-2: #0a4a72;
  --blue: #0a679b;
  --teal: #009ca5;
  --teal-dark: #007e86;
  --green: #0a97a0;
  --amber: #2bb7c9;
  --ink: #1b2733;
  --muted: #5b6b7b;
  --line: #e4e9ef;
  --bg: #ffffff;
  --bg-soft: #f5f8fb;
  --bg-navy: #0f2a43;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px rgba(15, 42, 67, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 42, 67, 0.14);
  --maxw: 1160px;
  --font: "Segoe UI", Roboto, "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(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.5px; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; color: var(--ink); }
a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 74px 0; }
.section-soft { background: var(--bg-soft); }
.narrow { max-width: 820px; margin: 0 auto; }
.center { text-align: center; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: 1.5px;
  font-size: .78rem; font-weight: 700; color: var(--teal);
  background: rgba(18, 140, 110, .1); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
.lead { font-size: 1.18rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 999px; font-weight: 600;
  font-size: 1rem; cursor: pointer; border: 2px solid transparent; transition: .18s ease;
  text-decoration: none; text-align: center;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); text-decoration: none; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.12); text-decoration: none; }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--teal); color: var(--teal-dark); text-decoration: none; }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; color: var(--navy); font-size: 1.05rem; }
.brand:hover { text-decoration: none; }
.brand .logo {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--teal), var(--navy)); color: #fff; font-weight: 800; font-size: 1.15rem;
}
.brand small { display: block; font-size: .68rem; font-weight: 600; color: var(--muted); letter-spacing: .5px; }
.brand-logo { height: 46px; width: auto; display: block; }
.site-footer .brand-logo { height: 42px; filter: brightness(0) invert(1); opacity: .95; }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); font-weight: 500; font-size: .97rem; }
.nav-links a:hover { color: var(--teal-dark); text-decoration: none; }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .2s; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 14px 22px; gap: 4px;
    box-shadow: var(--shadow); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 4px; border-bottom: 1px solid var(--line); }
  .nav-cta { margin: 8px 0 4px; }
}

/* ---------- Hero ---------- */
.hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 55%, #1c4a70 100%); color: #fff; padding: 78px 0 84px; }
.hero h1 { color: #fff; }
.hero .lead { color: rgba(255,255,255,.85); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.hero-badges { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 34px; }
.hero-badge { font-size: .9rem; color: rgba(255,255,255,.9); display: flex; align-items: center; gap: 8px; }
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.hero-card {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius);
  padding: 28px; backdrop-filter: blur(4px);
}
.hero-card h3 { color: #fff; }
.hero-stat { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.hero-stat:last-child { border-bottom: 0; }
.hero-stat b { color: var(--amber); font-size: 1.15rem; }
.hero-stat span { color: rgba(255,255,255,.82); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

/* ---------- Grid & cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); transition: .18s ease;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card .ico {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(18,140,110,.1); color: var(--teal-dark); margin-bottom: 16px; font-size: 1.4rem;
}
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 26px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step::before {
  counter-increment: step; content: counter(step); position: absolute; top: -16px; left: 22px;
  width: 34px; height: 34px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 700;
  display: grid; place-items: center;
}
.step h4 { margin-top: 8px; }
.step p { color: var(--muted); font-size: .94rem; margin: 0; }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
@media (max-width: 860px) { .pricing { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--teal); box-shadow: var(--shadow-lg); position: relative; }
.plan.featured .tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--teal); color: #fff; font-size: .75rem; font-weight: 700; padding: 5px 14px; border-radius: 999px; text-transform: uppercase; letter-spacing: 1px; }
.plan h3 { margin-bottom: 4px; }
.plan .price { font-size: 2.4rem; font-weight: 800; color: var(--navy); margin: 10px 0 2px; }
.plan .price span { font-size: 1rem; font-weight: 500; color: var(--muted); }
.plan .per { color: var(--muted); font-size: .9rem; margin-bottom: 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; }
.plan li { padding: 9px 0 9px 28px; position: relative; border-bottom: 1px solid var(--line); font-size: .96rem; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.plan .btn { margin-top: auto; }

/* ---------- Callout / SEPA ---------- */
.callout {
  background: linear-gradient(135deg, rgba(18,140,110,.08), rgba(15,42,67,.06));
  border: 1px solid var(--line); border-left: 5px solid var(--teal); border-radius: var(--radius);
  padding: 26px 28px;
}
.callout h3 { margin-top: 0; }

/* ---------- Feature split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 26px; } }
.tick-list { list-style: none; padding: 0; margin: 0; }
.tick-list li { padding: 8px 0 8px 32px; position: relative; }
.tick-list li::before { content: "✓"; position: absolute; left: 0; top: 8px; color: #fff; background: var(--teal); width: 20px; height: 20px; border-radius: 50%; font-size: .72rem; display: grid; place-items: center; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--teal), var(--teal-dark)); color: #fff; border-radius: 18px; padding: 46px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); }

/* ---------- FAQ ---------- */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--navy); padding: 14px 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--teal); font-weight: 700; font-size: 1.3rem; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); padding-bottom: 14px; margin: 0; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field.full { grid-column: 1 / -1; }
label { font-weight: 600; font-size: .92rem; color: var(--navy); }
input, textarea, select {
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; font-size: .97rem; background: #fff; color: var(--ink);
}
input:focus, textarea:focus, select:focus { outline: 2px solid rgba(18,140,110,.35); border-color: var(--teal); }
.checkbox-row { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.checkbox-row input { width: auto; margin-top: 4px; }

/* ---------- Legal / long-form pages ---------- */
.legal { padding: 54px 0 74px; }
.legal h1 { margin-bottom: .3em; }
.legal .updated { color: var(--muted); font-size: .9rem; margin-bottom: 30px; }
.legal h2 { margin-top: 2em; font-size: 1.4rem; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.legal h3 { margin-top: 1.6em; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.legal th, .legal td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; font-size: .95rem; vertical-align: top; }
.legal th { background: var(--bg-soft); color: var(--navy); }
.toc { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 32px; }
.toc ul { margin: 0; padding-left: 18px; columns: 2; }
@media (max-width: 640px) { .toc ul { columns: 1; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.78); padding: 56px 0 26px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.site-footer a { color: rgba(255,255,255,.78); font-size: .93rem; display: block; padding: 4px 0; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.site-footer .brand small { color: rgba(255,255,255,.6); }
.footer-about { font-size: .92rem; color: rgba(255,255,255,.7); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 34px; padding-top: 20px; font-size: .85rem; color: rgba(255,255,255,.6); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; bottom: 18px; left: 18px; right: 18px; max-width: 620px; margin: 0 auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 22px 24px; z-index: 100; display: none;
}
.cookie-banner.show { display: block; }
.cookie-banner h4 { margin: 0 0 6px; }
.cookie-banner p { font-size: .9rem; color: var(--muted); margin: 0 0 16px; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { padding: 10px 20px; font-size: .92rem; }
.btn-link { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: .88rem; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.trust-row { display: flex; gap: 26px; flex-wrap: wrap; justify-content: center; align-items: center; color: var(--muted); font-size: .9rem; }
.pill { display: inline-block; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .85rem; color: var(--muted); margin: 3px; }
.notice { background: #fff8ec; border: 1px solid #f6dfae; border-radius: var(--radius-sm); padding: 16px 18px; font-size: .92rem; color: #7a5b16; }
