/* ==========================================================
   ENERLYSSE — Feuille de style principale
   Couleurs reprises de la plaquette (bleu marine + vert feuille)
   ========================================================== */

:root {
  --navy: #0E3B6E;
  --navy-deep: #0A2A50;
  --blue: #1D6FB8;
  --green: #5DB33A;
  --green-dark: #3F8A22;
  --green-soft: #E8F4DF;
  --sky: #EEF5FB;
  --ink: #1B2A3A;
  --muted: #55657A;
  --line: #D9E3EE;
  --white: #FFFFFF;

  --font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --script: "Caveat", "Segoe Script", cursive;

  --wrap: 1180px;
  --radius: 14px;
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }
a { color: var(--blue); }
a:hover { color: var(--navy); }

:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .6em; color: var(--navy); letter-spacing: -0.015em; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 68ch; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }
.script { font-family: var(--script); font-size: 1.9rem; color: var(--navy); line-height: 1.2; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: .7rem 1rem; z-index: 200; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.4rem; border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; font-family: inherit;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); color: #fff; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(6px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand img { width: 44px; height: 44px; }
.brand-name { font-size: 1.55rem; font-weight: 800; letter-spacing: .01em; color: var(--navy); line-height: 1; }
.brand-name span { color: var(--green); }
.brand-tag { display: block; font-size: .72rem; font-weight: 500; color: var(--muted); letter-spacing: .02em; margin-top: 3px; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem; }
.main-nav a, .main-nav button {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .6rem .85rem; border-radius: 8px;
  font: 600 .98rem var(--font); color: var(--ink); text-decoration: none;
  background: none; border: 0; cursor: pointer;
}
.main-nav a:hover, .main-nav button:hover { color: var(--navy); background: var(--sky); }
.main-nav a[aria-current="page"], .main-nav .is-current > button { color: var(--navy); box-shadow: inset 0 -3px 0 var(--green); border-radius: 8px 8px 0 0; }
.main-nav .chev { width: 14px; height: 14px; transition: transform .2s; }

.has-sub { position: relative; }
.submenu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 290px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 18px 40px -18px rgba(10,42,80,.35);
  padding: .5rem; display: none;
}
.main-nav .submenu { display: none; flex-direction: column; align-items: stretch; gap: 0; }
.has-sub.open > .submenu { display: flex; }
/* Pont invisible entre « Expertises » et la liste : le menu ne se ferme plus en descendant la souris */
.submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.has-sub.open .chev { transform: rotate(180deg); }
.submenu a { display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding: .65rem .8rem; }
.submenu small { font-weight: 500; color: var(--muted); font-size: .82rem; }

.header-phone { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; color: var(--navy); text-decoration: none; white-space: nowrap; }
.header-phone svg { width: 20px; height: 20px; color: var(--green); }

.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; color: var(--navy); }
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 1180px) {
  .nav-toggle { display: block; }
  .header-phone { display: none; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: #fff;
    padding: 1rem 1.25rem 2rem; overflow-y: auto;
    transform: translateX(100%); transition: transform .25s ease; visibility: hidden;
  }
  .main-nav.open { transform: none; visibility: visible; }
  .main-nav ul { flex-direction: column; align-items: stretch; }
  .main-nav a, .main-nav button { width: 100%; justify-content: space-between; padding: .9rem .6rem; font-size: 1.08rem; }
  .main-nav a[aria-current="page"], .main-nav .is-current > button { box-shadow: inset 4px 0 0 var(--green); border-radius: 0; }
  .submenu::before { display: none; }
  .submenu { position: static; box-shadow: none; border: 0; border-left: 2px solid var(--line); border-radius: 0; margin-left: .6rem; padding: 0 0 0 .5rem; min-width: 0; }
  .nav-mobile-cta { display: block !important; margin-top: 1.5rem; }
}
.nav-mobile-cta { display: none; }

/* ---------- Héros (accueil) ---------- */
.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 560px; }
.hero-copy { padding: 4.5rem 3rem 7rem max(1.25rem, calc((100vw - var(--wrap)) / 2)); display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 2; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero .lead { color: #CFE0F2; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }
.hero-media { position: relative; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy) 0%, rgba(14,59,110,0) 28%); z-index: 1; }
.hero-swoosh { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 120px; z-index: 3; pointer-events: none; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-media { order: -1; height: 260px; }
  .hero-media::before { background: linear-gradient(0deg, var(--navy) 0%, rgba(14,59,110,0) 45%); }
  .hero-copy { padding: 1rem 1.25rem 6rem; }
  .hero-swoosh { height: 70px; }
}

/* ---------- Bandeau expertises ---------- */
.expertise-strip { position: relative; z-index: 4; margin-top: -2.5rem; }
.expertise-strip ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); box-shadow: 0 24px 50px -28px rgba(10,42,80,.45); border: 1px solid var(--line); overflow: hidden; }
.expertise-strip li + li { border-left: 1px solid var(--line); }
.expertise-strip a { display: flex; gap: .9rem; align-items: center; padding: 1.35rem 1.25rem; text-decoration: none; color: var(--ink); height: 100%; transition: background-color .2s; }
.expertise-strip a:hover { background: var(--green-soft); color: var(--ink); }
.expertise-strip strong { display: block; color: var(--navy); font-size: 1.02rem; }
.expertise-strip .sub { font-size: .88rem; color: var(--muted); line-height: 1.35; display: block; }
.ico { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--green-soft); color: var(--green-dark); display: grid; place-items: center; }
.ico svg { width: 26px; height: 26px; }
@media (max-width: 860px) {
  .expertise-strip ul { grid-template-columns: 1fr 1fr; }
  .expertise-strip li:nth-child(3) { border-left: 0; }
  .expertise-strip li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .expertise-strip ul { grid-template-columns: 1fr; }
  .expertise-strip li + li { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }
.section-sky { background: var(--sky); }
.section-navy { background: var(--navy); color: #DCE8F5; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-head { margin-bottom: 2.5rem; }
.section-head p { color: var(--muted); max-width: 62ch; }
.section-navy .section-head p { color: #B8CDE4; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 2rem; } .split.reverse > :first-child { order: 0; } }

.photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--sky); }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* Liste à coches */
.checks { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.checks li { position: relative; padding-left: 1.9rem; margin-bottom: .55rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .28em; width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* Vidéo de présentation */
.video-frame { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--navy-deep); aspect-ratio: 16 / 9; box-shadow: 0 30px 60px -30px rgba(10,42,80,.6); }
.video-frame video { width: 100%; height: 100%; object-fit: cover; }
.video-fallback { position: absolute; inset: 0; display: none; place-items: center; text-align: center; padding: 1.5rem; color: #fff; background: linear-gradient(0deg, rgba(10,42,80,.88), rgba(10,42,80,.55)), url("../img/batiment.jpg") center / cover; }
.video-frame.no-video .video-fallback { display: grid; }
.video-frame.no-video video { display: none; }
.video-fallback .play { width: 74px; height: 74px; border-radius: 50%; background: var(--green); display: grid; place-items: center; margin: 0 auto 1rem; }
.video-fallback .play svg { width: 30px; height: 30px; margin-left: 4px; }
.video-fallback p { margin: 0; font-weight: 600; }
.video-fallback small { color: #B8CDE4; }

/* Démarche — étapes séquentielles */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; top: 28px; left: 28px; right: calc((100% - 6rem) / 5 - 28px); height: 2px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.35) 0 8px, transparent 8px 14px); }
.steps li { counter-increment: step; position: relative; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--navy); border: 2px solid var(--green); color: #fff; font-weight: 800; font-size: 1.3rem; margin-bottom: 1rem; position: relative;
}
.steps h3 { font-size: 1.08rem; margin-bottom: .35rem; }
.steps p { font-size: .95rem; margin: 0; }
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; gap: 1.25rem; }
  .steps::before { top: 0; bottom: 0; left: 27px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, rgba(255,255,255,.35) 0 8px, transparent 8px 14px); }
  .steps li { display: grid; grid-template-columns: 56px 1fr; column-gap: 1.1rem; }
  .steps li::before { grid-row: span 2; margin: 0; }
}

/* Atouts */
.reasons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem 2.5rem; }
.reason { display: flex; gap: 1rem; }
.reason h3 { font-size: 1.08rem; margin-bottom: .25rem; }
.reason p { margin: 0; color: var(--muted); font-size: .97rem; }
@media (max-width: 700px) { .reasons { grid-template-columns: 1fr; } }

/* Badge certification */
.cert-card { display: flex; align-items: center; gap: 1.2rem; padding: 1.4rem 1.5rem; border: 2px solid var(--green); border-radius: var(--radius); background: #fff; }
.cert-seal { flex: none; width: 92px; height: 92px; }
.cert-card h3 { margin: 0 0 .2rem; }
.cert-card p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Aides */
.aid-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.aid { padding: 1.6rem; background: #fff; border-radius: var(--radius); border-top: 4px solid var(--green); }
.aid h3 { margin-bottom: .4rem; }
.aid p { margin: 0; color: var(--muted); font-size: .97rem; }
@media (max-width: 860px) { .aid-grid { grid-template-columns: 1fr; } }

/* Zone d'intervention */
.zone { position: relative; border-radius: var(--radius); overflow: hidden; color: #fff; }
.zone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.zone::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,42,80,.92) 0%, rgba(10,42,80,.6) 55%, rgba(10,42,80,.15) 100%); }
.zone-body { position: relative; z-index: 1; padding: 3.5rem 2.5rem; max-width: 560px; }
.zone h2 { color: #fff; }
.zone p { color: #DCE8F5; }

/* CTA final */
.cta-band { background: var(--green); color: #fff; padding: 3.5rem 0; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; right: -80px; top: -120px; width: 380px; height: 380px; border-radius: 0 100% 0 100%; background: rgba(255,255,255,.12); transform: rotate(18deg); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; position: relative; }
.cta-band h2 { color: #fff; margin: 0 0 .3rem; }
.cta-band p { margin: 0; color: #F1FAEA; }
.cta-band .btn-navy { font-size: 1.05rem; }

/* ---------- En-tête de page intérieure ---------- */
.page-hero { position: relative; background: var(--navy); color: #fff; padding: 4rem 0 6.5rem; overflow: hidden; }
.page-hero.has-img { background-color: var(--navy); background-position: center; background-size: cover; }
.page-hero.has-img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,42,80,.95) 0%, rgba(14,59,110,.78) 55%, rgba(14,59,110,.35) 100%); }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; max-width: 20ch; }
.page-hero .lead { color: #CFE0F2; }
.breadcrumb { font-size: .9rem; margin-bottom: 1.2rem; color: #B8CDE4; }
.breadcrumb a { color: #fff; }
.breadcrumb span[aria-hidden] { margin: 0 .4rem; }

/* Sommaire interne (onglets de page) */
.subnav { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: var(--header-h); z-index: 50; }
.subnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .3rem; overflow-x: auto; scrollbar-width: none; }
.subnav a { display: block; padding: 1rem .9rem; font-weight: 600; text-decoration: none; color: var(--muted); white-space: nowrap; border-bottom: 3px solid transparent; }
.subnav a:hover { color: var(--navy); border-bottom-color: var(--green); }

/* Types (PAC, clim) */
.types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.type { padding: 1.75rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; display: flex; flex-direction: column; }
.type h3 { display: flex; align-items: center; gap: .7rem; }
.type p { color: var(--muted); font-size: .98rem; }
.type .checks { font-size: .95rem; margin-top: auto; }
.type.featured { border: 2px solid var(--green); }
.pill { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--green-dark); background: var(--green-soft); padding: .2rem .65rem; border-radius: 999px; margin-bottom: .8rem; align-self: flex-start; }
@media (max-width: 960px) { .types { grid-template-columns: 1fr; } }

/* Encadré chiffres */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }
.fact { background: var(--sky); border-radius: var(--radius); padding: 1.4rem; }
.fact strong { display: block; font-size: 2rem; color: var(--navy); line-height: 1.1; margin-bottom: .3rem; }
.fact span { color: var(--muted); font-size: .95rem; }
@media (max-width: 700px) { .facts { grid-template-columns: 1fr; } }

.note { background: var(--green-soft); border-left: 4px solid var(--green); padding: 1.1rem 1.3rem; border-radius: 0 10px 10px 0; font-size: .98rem; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1.15rem 2.5rem 1.15rem 0; font-weight: 700; color: var(--navy); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .3rem; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--green); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 1rem; margin: 0; }

/* Réalisations */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filters button { font: 600 .95rem var(--font); padding: .55rem 1.1rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.project { margin: 0; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); }
.project[hidden] { display: none; }
.project img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.project figcaption { padding: 1rem 1.2rem 1.2rem; }
.project figcaption strong { display: block; color: var(--navy); }
.project figcaption span { color: var(--muted); font-size: .92rem; }
@media (max-width: 960px) { .gallery { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .gallery { grid-template-columns: 1fr; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 3rem; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: var(--navy); color: #DCE8F5; border-radius: var(--radius); padding: 2rem; }
.contact-card h2 { color: #fff; font-size: 1.6rem; }
.contact-list { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; padding: .9rem 0; border-top: 1px solid rgba(255,255,255,.14); }
.contact-list svg { width: 22px; height: 22px; color: var(--green); flex: none; margin-top: 3px; }
.contact-list a { color: #fff; font-weight: 700; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; color: #fff; }
.contact-list small { display: block; color: #B8CDE4; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.2rem; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: .35rem; color: var(--navy); }
.field label .opt { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: .8rem .95rem; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29,111,184,.18); }
.field .err { display: none; color: #B42318; font-size: .88rem; margin-top: .3rem; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #B42318; }
.field.invalid .err { display: block; }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .92rem; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--green); flex: none; }
.form-status { grid-column: 1 / -1; padding: 1rem 1.2rem; border-radius: 10px; display: none; }
.form-status.ok { display: block; background: var(--green-soft); color: var(--green-dark); font-weight: 600; }
.form-status.ko { display: block; background: #FDECEA; color: #B42318; font-weight: 600; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }

.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 7; margin-top: 3rem; }
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--navy-deep); color: #B8CDE4; padding: 4rem 0 1.5rem; font-size: .95rem; position: relative; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--navy) 0%, var(--blue) 40%, var(--green) 100%); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { color: #DCE8F5; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .brand-name { color: #fff; }
.site-footer .script { color: #A6D86B; font-size: 1.7rem; margin-top: 1rem; }
.footer-certs { display: flex; gap: .6rem; margin-top: 1rem; flex-wrap: wrap; }
.footer-certs span { border: 1px solid rgba(255,255,255,.25); border-radius: 6px; padding: .25rem .6rem; font-size: .8rem; font-weight: 700; color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 3rem; padding-top: 1.4rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .87rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Utilitaires */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 520px) { .brand-tag { display: none; } }

/* ---------- Logos partenaires RGE ---------- */
.header-rge { display: flex; align-items: center; gap: .45rem; margin-right: auto; padding-left: 1rem; border-left: 1px solid var(--line); }
.header-rge-label { font-size: .7rem; line-height: 1.15; font-weight: 600; color: var(--muted); }
.header-rge img { height: 40px; width: auto; border-radius: 4px; }
.header-rge a { display: block; }
@media (max-width: 1240px) { .header-rge-label { display: none; } }
@media (max-width: 1150px) and (min-width: 1181px) { .main-nav a, .main-nav button { padding: .6rem .6rem; } }
@media (max-width: 1180px) { .header-rge { padding-left: .6rem; } }
@media (max-width: 520px) { .header-rge img { height: 32px; } .header-rge { gap: .3rem; padding-left: .4rem; } .brand-name { font-size: 1.3rem; } .brand img { width: 36px; height: 36px; } }
@media (max-width: 380px) { .header-rge img { height: 26px; } }

.cert-logos { display: flex; flex-direction: column; gap: .5rem; flex: none; }
.cert-logos img { width: 118px; height: auto; border-radius: 6px; }

.footer-rge-note { margin: 1rem 0 .3rem; font-size: .85rem; }
.footer-certs img { height: 50px; width: auto; border-radius: 4px; background: #fff; }

.partner-card { border: 2px solid var(--green); border-radius: var(--radius); padding: 2rem; background: #fff; }
.partner-card > img { width: 160px; height: auto; margin-bottom: 1.2rem; }
.partner-kicker { font-size: .9rem; font-weight: 600; color: var(--green-dark); margin: 0 0 .2rem; }
.partner-card h3 { font-size: 1.5rem; margin-bottom: .4rem; }
.partner-meta { color: var(--muted); font-size: .95rem; }
.partner-num { font-size: 1.1rem; color: var(--navy); }
.qual { background: var(--sky); border-radius: 10px; padding: 1rem 1.2rem; margin-bottom: 1.2rem; }
.qual h4 { margin: 0 0 .3rem; color: var(--navy); font-size: 1.05rem; }
.qual p { margin: 0 0 .3rem; font-size: .95rem; color: var(--muted); }
.qual .qual-dates { margin: 0; color: var(--ink); }
.header-rge, .header-rge a { flex: none; }
.header-rge img { max-width: none; }
.brand { flex: none; }
@media (max-width: 1320px) { .site-header .brand-tag { display: none; } }
@media (max-width: 99999px) { .site-header .brand-tag { display: none; } }
@media (max-width: 1480px) { .header-phone { display: none; } }
html, body { overflow-x: clip; }
@media (max-width: 520px) { .header-inner { gap: .5rem; } .nav-toggle { padding: .3rem; } }

/* Bandeau 5 expertises : séparateurs via gap */
.expertise-strip li { background: #fff; }
.expertise-strip li + li, .expertise-strip li:nth-child(3), .expertise-strip li:nth-child(n+3) { border: 0; }
.expertise-strip a { flex-direction: column; align-items: flex-start; text-align: left; }
@media (max-width: 1100px) { .expertise-strip ul { grid-template-columns: repeat(3, 1fr); } .expertise-strip li:last-child { grid-column: span 2; } }
@media (max-width: 700px) { .expertise-strip ul { grid-template-columns: 1fr 1fr; } .expertise-strip li:last-child { grid-column: span 2; } .expertise-strip a { flex-direction: row; align-items: center; } }
@media (max-width: 520px) { .expertise-strip ul { grid-template-columns: 1fr; } .expertise-strip li:last-child { grid-column: auto; } }

/* Flux d'énergie (photovoltaïque) */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: flow; }
.flow li { position: relative; background: #fff; border-radius: var(--radius); padding: 1.5rem; counter-increment: flow; }
.flow li::after { content: ""; position: absolute; right: -1.15rem; top: 2.6rem; width: .8rem; height: .8rem; border-top: 3px solid var(--green); border-right: 3px solid var(--green); transform: rotate(45deg); }
.flow li:last-child::after { display: none; }
.flow h3 { margin: 1rem 0 .3rem; font-size: 1.1rem; }
.flow h3::before { content: counter(flow) ". "; color: var(--green-dark); }
.flow p { margin: 0; color: var(--muted); font-size: .96rem; }
@media (max-width: 900px) { .flow { grid-template-columns: 1fr 1fr; } .flow li::after { display: none; } }
@media (max-width: 560px) { .flow { grid-template-columns: 1fr; } }
.section-navy .aid a { color: var(--blue); }
.expertise-strip strong { line-height: 1.3; margin-bottom: .2rem; }

/* Logos RGE agrandis */
:root { --header-h: 88px; }
.header-rge img { height: 56px; }
.header-rge-label { font-size: .78rem; }
@media (max-width: 1180px) { .header-rge img { height: 48px; } }
@media (max-width: 520px) { :root { --header-h: 72px; } .header-rge img { height: 38px; } .header-rge-label { display: none; } }
@media (max-width: 380px) { .header-rge img { height: 32px; } .brand-name { font-size: 1.15rem; } }

/* Icônes dans les titres de cartes : taille fixe */
.type h3 svg { width: 28px; height: 28px; flex: none; color: var(--green-dark); }

/* Photos du matériel dans les cartes */
.type-photo { aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--sky); margin-bottom: 1.1rem; }
.type-photo img { width: 100%; height: 100%; object-fit: cover; }
.type h3 { margin-top: .2rem; }
/* Cartes à icône (onglet Déstratification) */
.type-head { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 1.1rem; }
.type-head h3 { margin: 0; font-size: 1.2rem; }
.type-ico { flex: none; display: grid; place-items: center; width: 84px; height: 84px; color: var(--blue); }
.type-ico svg { width: 100%; height: 100%; }

/* Carte partenaire */
.partner-meta a { color: var(--navy); font-weight: 700; text-decoration: none; }
.partner-install { border-top: 1px solid var(--line); margin-top: 1.2rem; padding-top: 1.2rem; }
.partner-name { font-weight: 700; color: var(--ink); margin: 0 0 .2rem; }
.partner-install .partner-num { margin-bottom: 1rem; }
.partner-install { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.partner-install img { width: 160px; height: auto; border-radius: 6px; flex: none; }
.partner-install > div { flex: 1 1 200px; }
.partner-install .partner-num { margin-bottom: 0; }
.partner-card .qual { margin-top: 1.2rem; }
.types.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .types.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .types.four { grid-template-columns: 1fr; } }
.section-sky .aid { background: #fff; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-fallback { align-items: end; justify-items: start; text-align: left; padding: 1.5rem 1.6rem; background: linear-gradient(0deg, rgba(10,42,80,.85) 0%, rgba(10,42,80,.1) 60%), url("../img/batiment.jpg") center / cover; }
.video-fallback p { font-size: 1.15rem; }

/* ---------- Nom ENERLYSSE en grand dans l'en-tête ---------- */
:root { --header-h: 104px; }
.site-header .brand { gap: .75rem; }
.site-header .brand img { width: 64px; height: 64px; }
.site-header .brand-name { font-size: 2.4rem; letter-spacing: .02em; }
@media (max-width: 1320px) { .site-header .brand-name { font-size: 2.1rem; } .site-header .brand img { width: 56px; height: 56px; } }
@media (max-width: 1180px) { :root { --header-h: 92px; } .site-header .brand-name { font-size: 2.2rem; } }
@media (max-width: 520px) { :root { --header-h: 76px; } .site-header .brand-name { font-size: 1.6rem; } .site-header .brand img { width: 42px; height: 42px; } .site-header .brand { gap: .45rem; } }
@media (max-width: 380px) { .site-header .brand-name { font-size: 1.35rem; } .site-header .brand img { width: 36px; height: 36px; } }

/* ---------- ENERLYSSE encore plus grand ---------- */
:root { --header-h: 124px; }
.site-header .brand img { width: 84px; height: 84px; }
.site-header .brand-name { font-size: 3.2rem; }
@media (max-width: 1440px) { .site-header .brand-name { font-size: 2.8rem; } .site-header .brand img { width: 74px; height: 74px; } .header-rge-label { display: none; } }
@media (max-width: 1320px) { .site-header .brand-name { font-size: 2.5rem; } .site-header .brand img { width: 66px; height: 66px; } }
@media (max-width: 1180px) { :root { --header-h: 104px; } .site-header .brand-name { font-size: 2.8rem; } .site-header .brand img { width: 70px; height: 70px; } }
@media (max-width: 520px) { :root { --header-h: 84px; } .site-header .brand-name { font-size: 1.9rem; } .site-header .brand img { width: 48px; height: 48px; } .site-header .header-rge img { height: 30px; } }
@media (max-width: 380px) { .site-header .brand-name { font-size: 1.6rem; } .site-header .brand img { width: 40px; height: 40px; } .site-header .header-rge img { height: 26px; } }
/* En-tête plus large pour loger le grand nom sans rien couper */
.site-header .header-inner { width: min(100% - 2.5rem, 1760px); gap: 1.2rem; }
@media (max-width: 1800px) { .header-phone { display: none; } }
@media (max-width: 1600px) { .site-header .main-nav a, .site-header .main-nav button { padding: .6rem .6rem; } }
@media (max-width: 1440px) and (min-width: 1181px) { .site-header .header-rge img { height: 34px; } .site-header .header-rge { padding-left: .7rem; } }
@media (max-width: 1366px) and (min-width: 1181px) { .site-header .brand-name { font-size: 2.2rem; } .site-header .brand img { width: 60px; height: 60px; } .site-header .main-nav a, .site-header .main-nav button { padding: .55rem .45rem; font-size: .95rem; } .site-header .header-inner { width: calc(100% - 2rem); gap: .8rem; } }
@media (max-width: 1260px) and (min-width: 1181px) { .site-header .brand-name { font-size: 1.95rem; } .site-header .brand img { width: 52px; height: 52px; } .site-header .header-rge img { height: 30px; } }
/* Mobile : le bouton menu doit rester visible */
@media (max-width: 520px) { .site-header .header-inner { width: calc(100% - 1.5rem); gap: .5rem; } .site-header .brand-name { font-size: 1.55rem; } .site-header .brand img { width: 40px; height: 40px; } .site-header .brand { gap: .35rem; } .site-header .header-rge { padding-left: .4rem; gap: .25rem; } .site-header .header-rge img { height: 26px; } }
@media (max-width: 380px) { .site-header .brand-name { font-size: 1.3rem; } .site-header .brand img { width: 34px; height: 34px; } .site-header .header-rge img { height: 22px; } }

/* ---------- ENERLYSSE en très grand dans le bandeau d'accueil ---------- */
.hero-brand { margin: 0 0 1.2rem; font-size: clamp(3.2rem, 7.2vw, 6.6rem); font-weight: 800; line-height: .95; letter-spacing: .02em; color: #fff; }
.hero-brand span { color: var(--green); }
.hero .hero-brand + h1 { font-size: clamp(1.6rem, 2.6vw, 2.4rem); max-width: 22ch; }
@media (max-width: 520px) { .hero-brand { font-size: clamp(2.6rem, 14vw, 3.6rem); margin-bottom: .8rem; } }
