/* hgpstack — feuille de style unique.
   Direction : « plan technique » moderne. Héros et pied sombres bleu nuit sur trame de plan, corps clair bleu-gris (#eef2f7 modernisé),
   bleu ciel = hgpstack Plomberie, orange = Bilans de puissance, vert = validations.
   Polices auto-hébergées (CSP font-src 'self') : Inter (variable) pour le texte, JetBrains Mono pour les références techniques. */

@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-var-latin-5.1.0.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/jetbrains-mono-500-latin-5.1.0.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --abyss: #eef2f7;          /* fond historique, conservé pour les bandes teintées */
  --bg: #f4f7fb;
  --surface: #ffffff;
  --ink: #0b1324;
  --text: #1f2a3d;
  --muted: #4a5870;
  --soft: #66748b;
  --line: #dde4ee;
  --line-strong: #c5cfdd;
  --navy-950: #070f1d;
  --navy-900: #0a1628;
  --navy-800: #0f2140;
  --navy-700: #183058;
  --sky: #38bdf8;
  --sky-500: #0ea5e9;
  --sky-600: #0284c7;
  --sky-dark: #0369a1;
  --sky-50: #eaf6fd;
  --volt: #f97316;
  --volt-600: #ea580c;
  --volt-dark: #c2410c;
  --volt-50: #fff3e9;
  --data: #10b981;
  --data-dark: #047857;
  --sky-grad: linear-gradient(135deg, #0ea5e9 0%, #0369a1 100%);
  --volt-grad: linear-gradient(135deg, #fb923c 0%, #ea580c 55%, #c2410c 100%);
  --radius-sm: .5rem;
  --radius: .875rem;
  --radius-lg: 1.25rem;
  --sh-1: 0 1px 2px rgba(11,19,36,.05), 0 1px 3px rgba(11,19,36,.06);
  --sh-2: 0 12px 32px -14px rgba(11,19,36,.22), 0 2px 6px rgba(11,19,36,.05);
  --sh-3: 0 40px 90px -30px rgba(3,10,25,.7), 0 0 0 1px rgba(255,255,255,.06);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --wrap: 104rem;
  --gut: clamp(1.25rem, 4.2vw, 4.5rem);
  --trame: linear-gradient(rgba(148,178,220,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(148,178,220,.07) 1px, transparent 1px);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 1rem; line-height: 1.65; font-feature-settings: "cv11", "ss03"; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, figure { margin: 0; }
ul { padding: 0; list-style: none; }
::selection { background: rgba(14,165,233,.22); }
.halo { display: none; }
.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.2em; }
.skip { position: absolute; left: -999px; top: .5rem; z-index: 100; background: #fff; padding: .5rem 1rem; border-radius: .5rem; }
.skip:focus { left: .5rem; }
:focus-visible { outline: 3px solid var(--sky-600); outline-offset: 2px; border-radius: .3rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.container { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
main { padding-top: calc(var(--h-top) + var(--h-nav) + 1px); }
section { padding-block: 4rem; }
@media (min-width: 62rem) { section { padding-block: 5.25rem; } }
.section-tight { padding-block: 2.5rem; }
.bande { background: var(--surface); border-block: 1px solid var(--line); }
.bande-teinte { background: var(--abyss); }
[id] { scroll-margin-top: calc(var(--h-fixe) + 4.5rem); }

/* ---------- typographie ---------- */
h1 { font-size: clamp(2.2rem, 5.2vw, 3.9rem); line-height: 1.06; font-weight: 740; letter-spacing: -.03em; color: var(--ink); text-wrap: balance; }
h2 { font-size: clamp(1.7rem, 3.3vw, 2.6rem); line-height: 1.12; font-weight: 710; letter-spacing: -.024em; color: var(--ink); text-wrap: balance; }
h3 { font-size: 1.08rem; line-height: 1.35; font-weight: 640; letter-spacing: -.012em; color: var(--ink); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.65; color: var(--muted); max-width: 44rem; text-wrap: pretty; }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--volt-dark); }
.eyebrow .icon { width: 1rem; height: 1rem; }
.eyebrow-sky { color: var(--sky-dark); }
.sec-head { max-width: 48rem; margin-bottom: 2.75rem; }
.sec-head h1, .sec-head h2 { margin-top: .8rem; }
.sec-head p { margin-top: 1rem; color: var(--muted); font-size: 1.06rem; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .lead { margin-inline: auto; }
.accent-volt { color: var(--volt-dark); }
.accent-sky { color: var(--sky-dark); }
.prose { color: var(--muted); }
.prose p + p { margin-top: 1rem; }
.prose a, .link { color: var(--sky-dark); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover, .link:hover { text-decoration-thickness: 2px; }
code, kbd { font-family: var(--mono); font-size: .86em; background: var(--sky-50); color: #075985; padding: .12em .45em; border-radius: .35rem; white-space: nowrap; }

/* ---------- boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.9rem; border-radius: .7rem; padding: .7rem 1.35rem; font: inherit; font-size: .95rem; font-weight: 600; letter-spacing: -.005em; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease; }
.btn-sm { min-height: 2.35rem; padding: .45rem .95rem; font-size: .86rem; border-radius: .6rem; }
.btn-volt { color: #fff; background: var(--volt-grad); box-shadow: 0 8px 22px -8px rgba(234,88,12,.6), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-sky { color: #fff; background: var(--sky-grad); box-shadow: 0 8px 22px -8px rgba(2,132,199,.6), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-ghost { color: var(--ink); background: #fff; border-color: var(--line-strong); box-shadow: var(--sh-1); }
.btn:hover { transform: translateY(-1px); }
.btn-volt:hover { box-shadow: 0 14px 30px -10px rgba(234,88,12,.7), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-sky:hover { box-shadow: 0 14px 30px -10px rgba(2,132,199,.7), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-ghost:hover { border-color: var(--ink); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* ---------- en-tête : deux rangées sur fond noir (barre du haut + navigation), fixe ; la rangée du haut se replie au défilement ---------- */
:root { --h-top: 3.6rem; --h-nav: 3.2rem; --h-fixe: var(--h-nav); --noir: #05080f; }
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; background: var(--noir); color: #e6edf7; box-shadow: 0 1px 0 rgba(255,255,255,.07), 0 10px 30px -12px rgba(0,0,0,.6); }
.top-bar { height: var(--h-top); transition: height .28s ease, opacity .2s ease; }
.site-header.compact .top-bar { height: 0; opacity: 0; overflow: hidden; pointer-events: none; }
.top-inner { height: var(--h-top); display: flex; align-items: center; gap: 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; flex: none; }
.logo { display: inline-flex; align-items: center; justify-content: center; width: 2.1rem; height: 2.1rem; border-radius: .6rem; background: var(--volt-grad); color: #fff; box-shadow: 0 6px 14px -6px rgba(234,88,12,.7), inset 0 1px 0 rgba(255,255,255,.3); }
.logo .icon { width: 1.15rem; height: 1.15rem; stroke-width: 2.5; }
.brand-name { font-size: 1.15rem; font-weight: 750; letter-spacing: -.03em; color: #fff; }
.brand-name span { color: #fb923c; }

/* recherche */
.recherche { position: relative; flex: 1 1 22rem; max-width: 34rem; display: none; align-items: center; }
.js .recherche { display: flex; }
.recherche input { width: 100%; height: 2.5rem; padding: 0 2.6rem 0 2.6rem; font: inherit; font-size: .92rem; color: #fff; background: #151b26; border: 1px solid transparent; border-radius: .6rem; transition: background .15s, border-color .15s, box-shadow .15s; }
.recherche input::placeholder { color: #7f8da3; }
.recherche input:hover { background: #1a2230; }
.recherche input:focus { outline: none; background: #1a2230; border-color: var(--sky-500); box-shadow: 0 0 0 3px rgba(14,165,233,.25); }
.recherche input::-webkit-search-cancel-button { display: none; }
.recherche-ico { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: #9fb0c8; display: inline-flex; pointer-events: none; }
.recherche-ico .icon { width: 1.1rem; height: 1.1rem; }
.recherche-touche { position: absolute; right: .6rem; top: 50%; transform: translateY(-50%); padding: .05rem .45rem; font-family: var(--mono); font-size: .72rem; color: #9fb0c8; background: transparent; border: 1px solid #2b3648; border-radius: .35rem; }
.recherche input:focus ~ .recherche-touche { display: none; }
.recherche-res { position: absolute; left: 0; right: 0; top: calc(100% + .5rem); z-index: 70; background: #fff; color: var(--text); border-radius: .9rem; box-shadow: 0 24px 60px -16px rgba(0,0,0,.55); border: 1px solid var(--line); padding: .4rem; max-height: min(26rem, 70vh); overflow-y: auto; }
.recherche-res a { display: block; padding: .6rem .8rem; border-radius: .6rem; text-decoration: none; color: var(--text); }
.recherche-res a strong { display: block; color: var(--ink); font-size: .93rem; font-weight: 640; }
.recherche-res a span { display: block; margin-top: .1rem; font-size: .8rem; color: var(--soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.recherche-res a[aria-selected="true"], .recherche-res a:hover { background: var(--bg); }
.recherche-res mark { background: rgba(14,165,233,.2); color: inherit; border-radius: .2rem; padding: 0 .1em; }
.recherche-res p { padding: .8rem; font-size: .9rem; color: var(--soft); margin: 0; }

.top-actions { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.btn-top { display: inline-flex; align-items: center; gap: .45rem; height: 2.4rem; padding: 0 .8rem; border-radius: .6rem; font: inherit; font-size: .88rem; font-weight: 560; color: #d6e0ee; text-decoration: none; background: transparent; border: 0; cursor: pointer; transition: background .15s, color .15s; }
.btn-top:hover, .dd[open] > .btn-top { background: rgba(255,255,255,.09); color: #fff; }
.btn-top .icon { width: 1.05rem; height: 1.05rem; }
.btn-top { border: 1px solid rgba(255,255,255,.18); }
.top-actions .btn-volt { min-height: 2.4rem; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: .5rem; border-radius: .5rem; color: #fff; cursor: pointer; }
.nav-toggle .icon { width: 1.5rem; height: 1.5rem; }
.nav-toggle .icon + .icon, .nav-toggle[aria-expanded="true"] .icon:first-child { display: none; }
.nav-toggle[aria-expanded="true"] .icon + .icon { display: inline; }

/* rangée de navigation */
.nav-bar { border-top: 1px solid rgba(255,255,255,.09); background: #0a0f19; }
.nav-inner { position: relative; display: flex; align-items: center; gap: 1rem; height: var(--h-nav); }
.nav-links { display: flex; align-items: center; gap: .15rem; height: 100%; }
.nav-links > li { height: 100%; display: flex; align-items: center; }
.nav-top { position: relative; display: inline-flex; align-items: center; gap: .35rem; height: 100%; padding: 0 .9rem; font-size: .93rem; font-weight: 580; color: #d6e0ee; text-decoration: none; cursor: pointer; transition: color .15s, background .15s; }
.nav-top::after { content: ""; position: absolute; left: .9rem; right: .9rem; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--sky); transform: scaleX(0); transition: transform .2s ease; }
.nav-top:hover { color: #fff; background: rgba(255,255,255,.05); }
.nav-top[aria-current="page"], .nav-top.actif, .dd[open] > .nav-top { color: #fff; }
.nav-top[aria-current="page"]::after, .nav-top.actif::after, .dd[open] > .nav-top::after { transform: scaleX(1); }
.nav-top .icon { width: .95rem; height: .95rem; opacity: .75; }
.nav-badge { margin-left: auto; display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .75rem; border-radius: 999px; background: rgba(16,185,129,.13); color: #6ee7b7; font-size: .8rem; font-weight: 600; }
.nav-badge .icon { width: .9rem; height: .9rem; }
.menu-mobile { display: none; }

/* menus déroulants (details/summary : utilisables sans JavaScript ; site.js ferme les autres, au clic extérieur et à Échap) */
.dd { position: relative; }
.nav-links .dd { position: static; height: 100%; display: flex; }
.dd summary { list-style: none; }
.dd summary::-webkit-details-marker { display: none; }
.dd summary .icon:last-child { transition: transform .18s; }
.dd[open] summary .icon:last-child { transform: rotate(180deg); }
.dd-panneau { position: absolute; left: 0; top: calc(100% + .5rem); min-width: 16rem; padding: .5rem; border-radius: .9rem; background: #fff; color: var(--text); border: 1px solid var(--line); box-shadow: 0 30px 70px -20px rgba(0,0,0,.6); display: grid; gap: .1rem; z-index: 60; }
.dd[open] > .dd-panneau { animation: ddIn .16s ease-out; }
@keyframes ddIn { from { opacity: 0; transform: translateY(-4px); } }
.dd-droite .dd-panneau { left: auto; right: 0; }
.dd-panneau > a { display: block; padding: .6rem .8rem; border-radius: .6rem; font-size: .9rem; color: var(--text); text-decoration: none; }
.dd-panneau > a:hover, .dd-panneau > a[aria-current="page"] { background: var(--bg); }
.dd-panneau strong { display: block; color: var(--ink); font-weight: 640; }
.dd-panneau small { display: block; color: var(--soft); font-size: .78rem; margin-top: .05rem; line-height: 1.4; }

/* méga-menu : pleine largeur du conteneur, sous la rangée de navigation */
.nav-links .dd-panneau.mega { left: var(--gut); right: var(--gut); top: calc(100% - .1rem); min-width: 0; padding: 1rem; border-radius: 0 0 1rem 1rem; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .25rem .5rem; border-top: 0; }
.mega > a { padding: .7rem .85rem; }
.mega > a.riche { grid-column: span 2; display: flex; align-items: center; gap: 1rem; padding: 1rem; border: 1px solid var(--line); }
.mega > a.riche:hover { border-color: var(--line-strong); box-shadow: var(--sh-1); }
.mega > a.riche > .icon { width: 2.9rem; height: 2.9rem; padding: .7rem; border-radius: .8rem; flex: none; }
.mega > a.riche[href*="plomberie"] > .icon { background: var(--sky-50); color: var(--sky-dark); }
.mega > a.riche[href*="bilans"] > .icon { background: var(--volt-50); color: var(--volt-dark); }
.mega > a.riche strong { font-size: 1rem; }
.apps-panneau { width: 22rem; }
.app-lien { display: flex !important; align-items: center; gap: .85rem; padding: .7rem .8rem !important; }
.app-lien { text-decoration: none; }
.app-lien strong, .app-lien small { display: block; }
.app-lien > .icon { width: 2.5rem; height: 2.5rem; padding: .6rem; border-radius: .7rem; flex: none; }
.app-bilans > .icon { background: var(--volt-50); color: var(--volt-dark); }
.app-hydro > .icon { background: var(--sky-50); color: var(--sky-dark); }

@media (max-width: 68rem) {
  :root { --h-fixe: var(--h-top); }
  .site-header.compact .top-bar { height: var(--h-top); opacity: 1; overflow: visible; pointer-events: auto; }
  .recherche, .js .recherche, .top-actions, .nav-badge { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-bar { position: absolute; left: 0; right: 0; top: 100%; background: var(--noir); border-top: 1px solid rgba(255,255,255,.09); box-shadow: 0 30px 60px -20px rgba(0,0,0,.7); max-height: calc(100vh - var(--h-top)); overflow-y: auto; }
  .js .nav-bar { display: none; }
  .js .nav-bar.ouvert { display: block; }
  .nav-inner { display: block; height: auto; padding-block: .5rem 1.25rem; }
  .nav-links { flex-direction: column; align-items: stretch; height: auto; }
  .nav-links > li { height: auto; display: block; }
  .nav-links .dd { display: block; height: auto; }
  .nav-top { width: 100%; height: auto; padding: .95rem .25rem; font-size: 1rem; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.07); }
  .nav-top::after { display: none; }
  .nav-links .dd-panneau.mega, .dd-panneau { position: static; box-shadow: none; border: 0; background: transparent; padding: .25rem 0 .75rem; min-width: 0; width: auto; display: grid; grid-template-columns: 1fr; animation: none !important; }
  .mega > a, .dd-panneau > a { color: #c9d5e6; }
  .mega > a.riche { grid-column: auto; border-color: rgba(255,255,255,.12); }
  .dd-panneau strong { color: #fff; }
  .dd-panneau small { color: #8ea1bb; }
  .dd-panneau > a:hover { background: rgba(255,255,255,.06); }
  .menu-mobile { display: grid; gap: .6rem; margin-top: 1rem; }
  .js .menu-mobile .recherche { display: flex; max-width: none; }
  .menu-mobile .recherche-touche { display: none; }
  .menu-mobile-titre { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: #8ea1bb; margin-top: .5rem; }
  .menu-mobile .app-lien { background: rgba(255,255,255,.05); border-radius: .8rem; color: #fff; }
  .menu-mobile .app-lien strong { color: #fff; }
  .menu-mobile .app-lien small { color: #8ea1bb; }
  .menu-mobile .btn-ghost { color: #fff; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.2); box-shadow: none; }
}
@media (min-width: 68.01rem) { .nav-bar { display: block !important; } }

/* fil d'Ariane */
.ariane-wrap { padding-top: .5rem; }
.ariane ol { display: flex; flex-wrap: wrap; gap: .3rem; margin: 0; padding: 0; list-style: none; font-size: .82rem; color: var(--soft); }
.ariane li + li::before { content: "/"; margin-right: .3rem; color: var(--line-strong); }
.ariane a { color: var(--muted); text-decoration: none; }
.ariane a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.ariane [aria-current] { color: var(--ink); font-weight: 520; }

/* ---------- héros ---------- */
.hero { padding-top: 1.5rem; }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 62rem) { .hero-grid { grid-template-columns: 1.02fr .98fr; } }
.hero h1 { margin-top: 1.1rem; }
.hero .lead { margin-top: 1.4rem; }
.hero .btn-row { margin-top: 2.1rem; }
.puces { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; margin-top: 1.9rem; font-size: .9rem; color: var(--muted); }
.puces li { display: flex; align-items: center; gap: .5rem; }
.puces .icon { color: var(--data-dark); width: 1.05rem; height: 1.05rem; }
.shot-hero { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--sh-2); background: #fff; }

/* héros sombre « plan technique » : la trame et les halos sont des fonds CSS (aucune image) */
.hero-sombre { position: relative; isolation: isolate; margin-top: 0; padding-top: 1.25rem; padding-bottom: 3.25rem; color: #c9d5e6; overflow: hidden;
  background: radial-gradient(60rem 30rem at 15% -10%, rgba(14,165,233,.28), transparent 60%), radial-gradient(50rem 28rem at 95% 10%, rgba(249,115,22,.18), transparent 60%), linear-gradient(180deg, #070c16 0%, var(--navy-900) 45%, var(--navy-800) 100%); }
.hero-sombre::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--trame); background-size: 2.5rem 2.5rem;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 85%); mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 85%); }
.hero-sombre::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(56,189,248,.5), rgba(249,115,22,.5), transparent); }
.hero-sombre h1, .hero-sombre h2, .hero-sombre h3 { color: #fff; }
.hero-sombre .lead { color: #b3c2d8; }
.hero-sombre .eyebrow { color: #7dd3fc; }
.hero-sombre .accent-sky { background: linear-gradient(90deg, #7dd3fc, #38bdf8 40%, #fdba74); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sombre .accent-volt { background: linear-gradient(90deg, #fdba74, #fb923c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sombre .btn-ghost { color: #fff; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.22); box-shadow: none; }
.hero-sombre .btn-ghost:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.45); }
.hero-sombre .puces { color: #a9b8cd; }
.hero-sombre .puces .icon { color: #34d399; }
.hero-sombre .shot-hero { border-color: rgba(255,255,255,.1); box-shadow: var(--sh-3); }
.hero-sombre .ariane ol, .hero-sombre .ariane a { color: #8ea1bb; }
.hero-sombre .ariane [aria-current] { color: #e2e8f0; }
.hero-sombre .ariane li + li::before { color: #3b5276; }
.hero-sombre .ariane { margin-bottom: 1.5rem; }
.pastille { display: inline-flex; align-items: center; gap: .55rem; padding: .32rem .8rem .32rem .4rem; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); font-size: .82rem; color: #cbd5e1; text-decoration: none; }
.pastille b { font-family: var(--mono); font-weight: 500; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; padding: .15rem .5rem; border-radius: 999px; background: rgba(16,185,129,.18); color: #6ee7b7; }

/* héros centré de l'accueil */
.hero-centre { text-align: center; }
.hero-centre h1 { font-size: clamp(2.15rem, 5vw, 3.75rem); max-width: 58rem; margin-inline: auto; }
.hero-centre .lead { margin-inline: auto; max-width: 44rem; margin-top: 1.25rem; }
.hero-centre .btn-row, .hero-centre .puces { justify-content: center; }
.hero-centre .btn-row { margin-top: 1.9rem; }
.hero-centre .puces { margin-top: 1.4rem; }

/* ---------- carrousel (défilement natif à points d'arrêt ; site.js ajoute flèches, points, lecture auto) ---------- */
.carrousel { position: relative; margin-top: 3.25rem; }
.carrousel::before { content: ""; position: absolute; inset: 8% 6% -4%; z-index: -1; background: radial-gradient(closest-side, rgba(56,189,248,.35), transparent); filter: blur(40px); }
.car-cadre { border-radius: var(--radius-lg); overflow: hidden; background: #fff; box-shadow: var(--sh-3); }
.car-barre { display: flex; align-items: center; gap: .45rem; padding: .5rem .9rem; background: #eef2f7; border-bottom: 1px solid var(--line); }
.car-barre i { width: .7rem; height: .7rem; border-radius: 50%; background: #cbd5e1; }
.car-barre i:nth-child(1) { background: #ff5f57; } .car-barre i:nth-child(2) { background: #febc2e; } .car-barre i:nth-child(3) { background: #28c840; }
.car-url { flex: 0 1 26rem; margin-inline: auto; padding: .22rem .9rem; border-radius: .5rem; background: #fff; border: 1px solid var(--line); font-family: var(--mono); font-size: .72rem; color: var(--muted); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.car-piste { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: none; }
.car-piste::-webkit-scrollbar { display: none; }
@media (prefers-reduced-motion: reduce) { .car-piste { scroll-behavior: auto; } }
.car-slide { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; margin: 0; display: flex; flex-direction: column; background: #fff; }
.car-slide picture { aspect-ratio: 16 / 9.4; background: #f8fafc; }
.car-slide img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.car-slide figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.5rem; padding: .7rem 1.1rem; border-top: 1px solid var(--line); text-align: left; }
.car-slide figcaption > div { flex: 1 1 16rem; }
.car-slide figcaption strong { display: block; color: var(--ink); font-weight: 650; }
.car-slide figcaption span:not(.badge) { display: block; font-size: .9rem; color: var(--muted); }
.car-slide .badge { margin: 0 .6rem 0 0; vertical-align: middle; }
.car-slide figcaption strong { display: inline; font-size: 1rem; vertical-align: middle; }
.car-slide figcaption span:not(.badge) { margin-top: .25rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.car-controles { display: none; align-items: center; justify-content: center; gap: .75rem; margin-top: 1rem; }
.js .car-controles { display: flex; }
.car-btn { display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 1px solid var(--line-strong); background: #fff; color: var(--ink); cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.car-btn:hover { transform: translateY(-1px); border-color: var(--ink); }
.car-btn .icon { width: 1.1rem; height: 1.1rem; }
.car-points { display: flex; gap: .2rem; flex-wrap: wrap; justify-content: center; align-items: center; }
.car-points button { width: 1.6rem; height: 1.75rem; padding: 0; border: 0; background: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.car-points button::before { content: ""; width: .5rem; height: .5rem; border-radius: 999px; background: #94a3b8; opacity: .55; transition: width .25s, background .25s, opacity .25s; }
.car-points button[aria-current="true"]::before { width: 1.4rem; opacity: 1; }
.car-points button.plomberie[aria-current="true"]::before { background: var(--sky); }
.car-points button.bilans[aria-current="true"]::before { background: var(--volt); }
.car-points .sep-app { width: 1px; height: 1rem; background: currentColor; opacity: .25; margin-inline: .35rem; }
.hero-sombre .car-btn { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.2); color: #fff; }
.hero-sombre .car-btn:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.5); }
.hero-sombre .car-points { color: #fff; }

/* ---------- références (normes, méthodes, livrables) ---------- */
.preuves-titre { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); text-align: center; margin-bottom: 1.4rem; }
.preuves { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr)); }
.preuve { position: relative; padding: 1rem 1.1rem 1rem 1.25rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.preuve::before { content: ""; position: absolute; left: 0; top: .9rem; bottom: .9rem; width: 3px; border-radius: 0 3px 3px 0; background: var(--data); }
.preuve b { display: block; font-family: var(--mono); font-weight: 500; font-size: .8rem; letter-spacing: .02em; color: var(--ink); }
.preuve span { display: block; margin-top: .3rem; font-size: .86rem; line-height: 1.5; color: var(--muted); }
.preuve.hydro::before { background: var(--sky-500); }
.preuve.bilans::before { background: var(--volt); }

/* chiffres clés */
.chiffres { display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr)); border-radius: var(--radius-lg); overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.chiffre { background: var(--surface); padding: 1.6rem 1.4rem; }
.chiffre b { display: block; font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 760; letter-spacing: -.04em; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.chiffre b small { font-size: .5em; font-weight: 650; letter-spacing: -.01em; color: var(--soft); margin-left: .15em; }
.chiffre span { display: block; margin-top: .45rem; font-size: .88rem; color: var(--muted); line-height: 1.45; }
.chiffre.hydro b { color: var(--sky-dark); }
.chiffre.bilans b { color: var(--volt-dark); }

/* ---------- cartes ---------- */
.grid { display: grid; gap: 1.1rem; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 1.4rem; }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.card { position: relative; display: flex; flex-direction: column; padding: 1.5rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
a.card { text-decoration: none; color: inherit; }
.card:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: var(--line-strong); }
.card h2, .card h3 { margin-top: 0; }
.card p { margin-top: .5rem; font-size: .93rem; color: var(--muted); flex: 1; }
.card-ico { display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; border-radius: .75rem; margin-bottom: 1.1rem; background: linear-gradient(180deg, #fff6ee, var(--volt-50)); border: 1px solid #fed7aa; color: var(--volt-dark); box-shadow: inset 0 1px 0 #fff; }
.card-ico .icon { width: 1.2rem; height: 1.2rem; }
.card.hydro .card-ico, .ico-sky { background: linear-gradient(180deg, #f2fbff, var(--sky-50)); border-color: #bae6fd; color: var(--sky-dark); }
.tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1rem; }
.tag { font-size: .76rem; padding: .22rem .65rem; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--muted); text-decoration: none; }
.tag-sky { border-color: #bae6fd; background: var(--sky-50); color: var(--sky-dark); }
.tag-label { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); width: 100%; margin-top: .35rem; }
.panel { padding: 2rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-2); }
@media (min-width: 48rem) { .panel { padding: 2.5rem; } }
.cta { text-align: center; }
.cta p { max-width: 38rem; margin: 1rem auto 0; color: var(--muted); }
.cta .btn-row { justify-content: center; margin-top: 1.9rem; }
.card-link { margin-top: 1rem; font-weight: 620; font-size: .92rem; text-decoration: none; color: var(--sky-dark); display: inline-flex; gap: .4rem; align-items: center; }
.card-link .icon { transition: transform .18s; }
.card-link:hover .icon, a.card:hover .card-link .icon { transform: translateX(3px); }
.card-link.volt { color: var(--volt-dark); }
.badge { display: inline-block; font-family: var(--mono); font-size: .66rem; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; padding: .25rem .6rem; border-radius: 999px; }
.badge-volt { background: var(--volt-50); color: var(--volt-dark); box-shadow: inset 0 0 0 1px #fed7aa; }
.badge-sky { background: var(--sky-50); color: var(--sky-dark); box-shadow: inset 0 0 0 1px #bae6fd; }
.badge-data { background: #ecfdf5; color: var(--data-dark); box-shadow: inset 0 0 0 1px #a7f3d0; }

/* cartes « application » */
.app-card { padding: 0; overflow: hidden; }
.app-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--volt-grad); z-index: 1; }
.app-card.hydro::before { background: var(--sky-grad); }
.app-card .app-shot { display: block; padding: 1.4rem 1.4rem 0; background: linear-gradient(180deg, var(--abyss), #f8fafc); border-bottom: 1px solid var(--line); overflow: hidden; }
.app-card .app-shot picture { aspect-ratio: 16 / 10; border-radius: .6rem .6rem 0 0; overflow: hidden; box-shadow: 0 -2px 24px -8px rgba(11,19,36,.25); border: 1px solid var(--line); border-bottom: 0; transition: transform .35s ease; }
.app-card:hover .app-shot picture { transform: translateY(-4px); }
.app-card .app-body { padding: 1.6rem 1.6rem 1.8rem; display: flex; flex-direction: column; flex: 1; }
.app-card h2, .app-card h3 { font-size: 1.45rem; letter-spacing: -.025em; margin-top: .8rem; }
.app-card p { font-size: 1rem; }
.app-card ul { margin-top: 1.1rem; display: grid; gap: .5rem; font-size: .93rem; color: var(--muted); }
.app-card li { display: flex; gap: .6rem; align-items: baseline; }
.app-card li .icon { color: var(--data-dark); width: 1rem; height: 1rem; flex: none; position: relative; top: .17rem; }
.app-card .btn-row { margin-top: 1.6rem; }

/* blocs alternés texte / capture */
.split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 62rem) { .split { grid-template-columns: 1fr 1.15fr; gap: 4rem; } .split.inverse > :first-child { order: 2; } }
.split h2 { margin-top: .8rem; }
.split .lead { margin-top: 1.1rem; font-size: 1.05rem; }
.split .checks { margin-top: 1.5rem; }
.split .btn-row { margin-top: 2rem; }
.cadre-app { border-radius: var(--radius-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 70px -30px rgba(11,19,36,.45); }
.cadre-app .barre-nav { display: flex; align-items: center; gap: .4rem; padding: .55rem .8rem; background: #eef2f7; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: .7rem; color: var(--soft); }
.cadre-app .barre-nav i { width: .6rem; height: .6rem; border-radius: 50%; background: #cbd5e1; }
.cadre-app .barre-nav span { margin-left: .5rem; }

/* graphique été / hiver */
.chart { padding: 1.6rem; }
.chart-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.3rem; font-size: .78rem; }
.chart-head strong { font-family: var(--mono); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.legend { display: flex; gap: 1rem; color: var(--muted); }
.legend span::before { content: ""; display: inline-block; width: .6rem; height: .6rem; border-radius: 3px; margin-right: .4rem; background: var(--c); }
.chart-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-top: 1.4rem; text-align: center; font-size: .76rem; }
.chart-stats div { background: var(--bg); border: 1px solid var(--line); border-radius: .7rem; padding: .7rem .5rem; color: var(--soft); }
.chart-stats b { display: block; font-size: 1.05rem; font-variant-numeric: tabular-nums; color: var(--ink); }
.barres { display: grid; gap: .95rem; }
.barre-ligne { display: grid; grid-template-columns: 10rem 1fr; gap: .9rem; align-items: center; font-size: .84rem; color: var(--muted); }
.barre-ligne .duo { display: grid; gap: .25rem; }
.barre { height: .62rem; border-radius: 999px; width: var(--v); min-width: 2px; transform-origin: left; }
.barre.hiver { background: linear-gradient(90deg, #7dd3fc, var(--sky-500)); }
.barre.ete { background: linear-gradient(90deg, #fdba74, var(--volt)); }
.js .chart:not(.vu) .barre { transform: scaleX(0); }
.chart .barre { transition: transform .9s cubic-bezier(.2,.7,.2,1); }
@media (max-width: 30rem) { .barre-ligne { grid-template-columns: 1fr; gap: .3rem; } }

/* ---------- galeries de captures ---------- */
.shots { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.shot { display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); transition: box-shadow .22s, transform .22s; }
.shot:hover { box-shadow: var(--sh-2); transform: translateY(-2px); }
.shot .bar { display: flex; align-items: center; gap: .4rem; padding: .55rem .85rem; border-bottom: 1px solid var(--line); background: #eef2f7; font-family: var(--mono); font-size: .68rem; color: var(--soft); }
.shot .bar i { width: .55rem; height: .55rem; border-radius: 50%; background: #cbd5e1; }
.shot img { width: 100%; height: auto; background: #fff; }
.app-card .app-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.shot figcaption { padding: 1rem 1.15rem 1.25rem; }
.shot figcaption strong { display: block; color: var(--ink); font-weight: 650; }
.shot figcaption span { display: block; margin-top: .25rem; font-size: .9rem; color: var(--muted); }
.shot-wide { grid-column: 1 / -1; }

/* ---------- étapes / listes ---------- */
.steps { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); counter-reset: step; }
.step { position: relative; padding: 1.5rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); display: block; font-family: var(--mono); font-size: .8rem; font-weight: 500; letter-spacing: .05em; color: var(--volt-dark); margin-bottom: .9rem; padding-bottom: .9rem; border-bottom: 1px dashed var(--line-strong); }
.steps-sky .step::before { color: var(--sky-dark); }
.step p { margin-top: .5rem; font-size: .92rem; color: var(--muted); }
.checks { display: grid; gap: .7rem; margin-top: 1rem; color: var(--muted); }
.checks li { display: flex; gap: .7rem; align-items: baseline; }
.checks .icon { color: var(--data-dark); width: 1.05rem; height: 1.05rem; position: relative; top: .18rem; flex: none; }
.checks strong { color: var(--ink); font-weight: 620; }
.two-col { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 62rem) { .two-col { grid-template-columns: 1fr 1fr; gap: 3.5rem; } .two-col.rev > :first-child { order: 2; } }

/* tableaux */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--sh-1); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: .85rem 1.1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #f6f8fb; color: var(--ink); font-weight: 620; font-size: .82rem; white-space: nowrap; }
td { color: var(--muted); }
td:first-child { color: var(--ink); font-weight: 560; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fafbfd; }
.note { padding: 1.1rem 1.3rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); font-size: .92rem; color: var(--muted); }
.note.warn { border-color: #fed7aa; background: var(--volt-50); }
.note strong { color: var(--ink); }

/* bandeau de séparation applications */
.app-band { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.6rem; }
.app-band .icon { width: 1.7rem; height: 1.7rem; }
.app-band h2 { font-size: clamp(1.4rem, 2.5vw, 1.85rem); }
.app-band.hydro .icon { color: var(--sky-dark); }
.app-band.bilans .icon { color: var(--volt-dark); }
.sep { border: 0; border-top: 1px solid var(--line); margin: 1rem 0; }

/* cas d'usage types */
.cas .card h3 { margin-top: .6rem; font-size: 1.1rem; }
.cas dl { margin: 1rem 0 0; display: grid; gap: .55rem; font-size: .9rem; }
.cas dt { font-family: var(--mono); font-size: .68rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.cas dd { margin: 0 0 .35rem; color: var(--muted); }

/* secteurs */
.secteur { flex-direction: row; gap: 1rem; align-items: flex-start; padding: 1.25rem; }
.secteur .card-ico { margin: 0; flex: none; }
.secteur h3 { font-size: 1rem; }
.secteur p { margin-top: .2rem; font-size: .86rem; }

/* ---------- contact / FAQ ---------- */
label { display: block; font-size: .86rem; font-weight: 560; color: var(--ink); margin-bottom: .4rem; }
.field { width: 100%; min-height: 2.9rem; font: inherit; font-size: .95rem; color: var(--text); background: #fff; border: 1px solid var(--line-strong); border-radius: .65rem; padding: .65rem .9rem; transition: border-color .15s, box-shadow .15s; }
.field::placeholder { color: #94a3b8; }
.field:hover { border-color: #94a3b8; }
.field:focus { outline: none; border-color: var(--sky-600); box-shadow: 0 0 0 4px rgba(14,165,233,.18); }
textarea.field { resize: vertical; min-height: 8rem; }
select.field { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2366748b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; background-size: 1rem; padding-right: 2.4rem; }
.form-grid { display: grid; gap: 1.15rem; }
.form-2 { display: grid; gap: 1.15rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.ok-box { text-align: center; padding: 2rem 0; }
.ok-box .icon { width: 3rem; height: 3rem; padding: .6rem; border-radius: 50%; color: var(--data-dark); background: #ecfdf5; }
.form-erreur { color: #b91c1c; font-size: .9rem; }
[hidden] { display: none !important; }
.faq { display: grid; max-width: 50rem; margin: 2.25rem auto 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1.25rem .25rem; font-weight: 620; font-size: 1.02rem; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 1rem; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 1.75rem; height: 1.75rem; border-radius: 50%; border: 1px solid var(--line-strong);
  background: linear-gradient(var(--ink), var(--ink)) center / .7rem 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1.5px .7rem no-repeat; transition: transform .2s, background-color .2s; }
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--bg); }
.faq summary:hover { color: var(--sky-dark); }
.faq details p { padding: 0 3rem 1.35rem .25rem; color: var(--muted); }
.contact-infos { display: grid; gap: 1rem; align-content: start; }
.info { display: flex; align-items: center; gap: 1rem; padding: 1.1rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.info small { display: block; font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.info strong { color: var(--ink); font-size: .93rem; word-break: break-word; }
.contact-grid { display: grid; gap: 1.4rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 62rem) { .contact-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } }
.piege { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.rgpd { font-size: .8rem; color: var(--soft); }
.rgpd a { color: var(--sky-dark); }

/* bandeau d'appel sombre */
.cta-sombre { position: relative; isolation: isolate; overflow: hidden; border-radius: 1.6rem; padding: 2.5rem 1.5rem; color: #b3c2d8;
  background: radial-gradient(40rem 20rem at 0% 0%, rgba(14,165,233,.3), transparent 60%), radial-gradient(40rem 20rem at 100% 100%, rgba(249,115,22,.25), transparent 60%), var(--navy-900); }
@media (min-width: 48rem) { .cta-sombre { padding: 3.5rem; } }
.cta-sombre::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--trame); background-size: 2rem 2rem; -webkit-mask-image: linear-gradient(90deg, #000, transparent 70%); mask-image: linear-gradient(90deg, #000, transparent 70%); }
.cta-sombre h2 { color: #fff; }
.cta-sombre .eyebrow { color: #7dd3fc; }
.cta-sombre .prose, .cta-sombre .checks { color: #b3c2d8; }
.cta-sombre .checks .icon { color: #34d399; }
.cta-sombre .btn-ghost { color: #fff; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.22); box-shadow: none; }
.cta-sombre .formulaire { background: #fff; color: var(--text); border-radius: var(--radius-lg); padding: 1.6rem; box-shadow: var(--sh-3); }
.cta-sombre .formulaire .link { color: var(--sky-dark); }

/* page d'accès */
.acces-card { padding: 0; }
.acces-card h2 { font-size: 1.6rem; margin-top: .9rem; }

/* 404 */
.nf { text-align: center; padding-block: 4rem; }
.nf .code { font-family: var(--mono); font-size: clamp(4rem, 14vw, 7rem); font-weight: 500; letter-spacing: -.04em; color: var(--ink); line-height: 1; }

/* pages juridiques et textes longs */
.doc { max-width: 46rem; }
.doc h2 { font-size: 1.4rem; margin-top: 2.5rem; }
.doc h3 { margin-top: 1.6rem; }
.doc p, .doc ul, .doc ol { margin-top: .85rem; color: var(--muted); }
.doc ul { list-style: disc; padding-left: 1.25rem; }
.doc li + li { margin-top: .4rem; }
.doc a { color: var(--sky-dark); text-underline-offset: 3px; }
.a-completer { background: #fef3c7; color: #92400e; padding: .05em .4em; border-radius: .3rem; font-weight: 600; }

/* aide en ligne de Bilans de puissance (pages générées par tools/aide-bilans.mjs) */
.aide-grille { display: grid; gap: 2rem; }
@media (min-width: 68rem) { .aide-grille { grid-template-columns: 15rem minmax(0, 46rem); gap: 3.5rem; } .aide-sommaire { position: sticky; top: 5.5rem; align-self: start; max-height: calc(100vh - 7rem); overflow-y: auto; } }
.aide-sommaire { font-size: .9rem; padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.aide-sommaire-titre { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); margin-bottom: .6rem; }
.aide-sommaire ol { list-style: decimal; padding-left: 1.2rem; color: var(--soft); }
.aide-sommaire li + li { margin-top: .35rem; }
.aide-sommaire a { color: var(--text); text-decoration: none; }
.aide-sommaire a:hover { color: var(--sky-dark); text-decoration: underline; }
.aide-sommaire > p:last-child { margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.aide-sommaire > p:last-child a { display: inline-flex; align-items: center; gap: .3rem; color: var(--sky-dark); font-weight: 600; }
.aide-sommaire .icon { width: 1rem; height: 1rem; }
.doc.aide { max-width: none; min-width: 0; }
.aide-rubrique { padding: 0; scroll-margin-top: 5.5rem; }
.aide-rubrique + .aide-rubrique { margin-top: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.aide-rubrique > h2:first-child { margin-top: 0; }
.doc.aide h3 { font-size: 1.08rem; }
.doc.aide ol { list-style: decimal; padding-left: 1.4rem; }
.doc.aide li { color: var(--muted); }
.doc.aide code { white-space: normal; }
.doc.aide strong { color: var(--ink); font-weight: 620; }
.aide-chemin { display: inline-block; padding: .05em .45em; border-radius: .35rem; background: var(--volt-50); border: 1px solid #fed7aa; color: var(--volt-dark); font-size: .88em; font-weight: 560; }
.aide-encadre, .aide-plus { margin-top: 1.2rem; padding: .9rem 1.1rem; border-left: 4px solid var(--sky-500); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--sky-50); }
.aide-encadre > p, .aide-encadre > ul { margin-top: .4rem; }
.aide-encadre-titre { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--sky-dark); margin: 0 !important; }
.aide-tip { border-color: var(--data); background: #ecfdf5; } .aide-tip .aide-encadre-titre { color: var(--data-dark); }
.aide-warn { border-color: #f59e0b; background: #fffbeb; } .aide-warn .aide-encadre-titre { color: #92400e; }
.aide-limit { border-color: #ef4444; background: #fef2f2; } .aide-limit .aide-encadre-titre { color: #b91c1c; }
.aide-tableau { margin-top: 1.1rem; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.aide-tableau table { width: 100%; border-collapse: collapse; font-size: .86rem; background: var(--surface); }
.aide-tableau th { text-align: left; padding: .5rem .7rem; background: var(--navy-800); color: #fff; font-weight: 600; white-space: nowrap; }
.aide-tableau td { padding: .45rem .7rem; border-top: 1px solid var(--line); vertical-align: top; color: var(--muted); }
.aide-tableau tr:nth-child(even) td { background: #f8fafc; }
.aide-tableau td:first-child { color: var(--ink); font-weight: 560; }
.aide-formule { margin-top: 1.1rem; padding: 1rem 1.2rem; overflow-x: auto; border-radius: var(--radius-sm); background: var(--navy-900); color: #e2e8f0; font-family: var(--mono); font-size: .8rem; line-height: 1.6; white-space: pre; }
.aide-exemple { margin-top: 1.2rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); overflow: hidden; }
.aide-exemple-titre { margin: 0 !important; padding: .55rem 1rem; background: #f1f5f9; border-bottom: 1px solid var(--line-strong); color: var(--ink) !important; font-weight: 620; font-size: .9rem; }
.aide-exemple > div { padding: .2rem 1rem 1rem; }
.aide-fig { margin: 1.3rem 0 0; }
.aide-zoom { display: block; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--sh-1); transition: border-color .15s; }
.aide-zoom:hover { border-color: var(--sky-500); }
.aide-fig figcaption { margin-top: .5rem; font-size: .82rem; color: var(--soft); }
.aide-etape-num { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--volt-dark) !important; }
.aide-etape-num + h2 { margin-top: .4rem !important; }
.aide-but { font-size: 1.02rem; color: var(--text) !important; }
.aide-plus ul { list-style: none !important; padding: 0 !important; display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; }
.aide-plus li + li { margin-top: 0; }
.aide-suite { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; margin-top: 3rem; }
.aide-suite a { display: block; padding: .9rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; }
.aide-suite a:hover { border-color: var(--sky-500); }
.aide-suite small { display: block; font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); font-weight: 500; margin-bottom: .25rem; }
.aide-suiv { text-align: right; grid-column: 2; }
.aide-appel { padding-top: 0; }
.aide-demarrage { display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1.4rem; border: 1px solid #fed7aa; border-radius: var(--radius-lg); background: var(--volt-50); color: var(--ink); text-decoration: none; }
.aide-demarrage .card-ico { margin: 0; flex: none; }
.aide-demarrage > span:nth-child(2) { flex: 1; }
.aide-demarrage small { display: block; color: var(--muted); margin-top: .2rem; }
.aide-demarrage > .icon { width: 1.3rem; height: 1.3rem; color: var(--volt-dark); }
.aide-sommaire-h2 { margin-top: 3rem; font-size: 1.5rem; }
.aide-cartes { margin-top: 1.4rem; }
.aide-carte { text-decoration: none; color: inherit; }
.aide-carte h3 { font-size: 1.05rem; margin-top: .4rem; }
.aide-carte-num { font-family: var(--mono); font-size: .75rem; color: var(--volt-dark); }
.aide-carte-rubriques { margin-top: .9rem; font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }

/* ---------- pied de page ---------- */
.site-footer { position: relative; margin-top: 0; padding: 4.5rem 0 2rem; color: #94a3b8; background: var(--navy-950); overflow: hidden; isolation: isolate; }
.site-footer::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--trame); background-size: 2.5rem 2.5rem; -webkit-mask-image: linear-gradient(180deg, #000, transparent 60%); mask-image: linear-gradient(180deg, #000, transparent 60%); }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); }
@media (min-width: 62rem) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-name span { color: #fb923c; }
.footer-about p { margin-top: 1.1rem; max-width: 26rem; font-size: .92rem; line-height: 1.6; }
.footer-about .gratuit { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .8rem; border-radius: 999px; background: rgba(16,185,129,.12); color: #6ee7b7; font-size: .84rem; font-weight: 600; }
.footer-about .gratuit .icon { width: 1rem; height: 1rem; }
.site-footer h2 { font-family: var(--mono); font-size: .7rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: #e2e8f0; margin-bottom: 1rem; }
.site-footer li { margin-bottom: .55rem; font-size: .92rem; }
.site-footer li a { text-decoration: none; transition: color .15s; }
.site-footer li a:hover { color: #fff; }
.footer-bas { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 3.5rem; padding-top: 1.6rem; border-top: 1px solid rgba(148,163,184,.15); font-size: .8rem; color: #7c8aa0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; }
.footer-legal li { margin: 0; font-size: .8rem; }

/* ---------- apparition au défilement (site.js ajoute .vu ; rien de masqué sans JavaScript ni avec mouvement réduit) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
  .js [data-reveal].vu { opacity: 1; transform: none; }
}

/* en-tête sombre des pages intérieures */
.page-tete { padding-bottom: 3.5rem; }
.page-tete .sec-head { margin-bottom: 0; }
.page-tete h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.apres-tete { padding-top: 3.5rem; }
.hero-sombre .tag { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); color: #cbd5e1; }
.hero-sombre .tag:hover { background: rgba(255,255,255,.12); }
.hero-sombre .shot-hero { background: #fff; }

/* petits écrans : boutons du héros pleine largeur, carrousel compact */
@media (max-width: 36rem) {
  .hero .btn-row .btn { width: 100%; }
  .hero-centre .btn-row { max-width: 24rem; margin-inline: auto; }
  .pastille { font-size: .78rem; text-align: left; }
  .car-controles { gap: .4rem; }
  .car-btn { width: 2.25rem; height: 2.25rem; }
  .car-points button { width: 1.05rem; }
  .car-points button[aria-current="true"]::before { width: .95rem; }
  .car-points .sep-app { margin-inline: .15rem; }
  .car-slide figcaption .btn { width: 100%; }
}
.lien-clair { display: inline-flex; align-items: center; gap: .35rem; padding: .5rem .25rem; font-weight: 600; font-size: .95rem; color: #7dd3fc; text-decoration: none; }
.lien-clair:hover { color: #fff; }
.lien-clair .icon { width: 1rem; height: 1rem; transition: transform .18s; }
.lien-clair:hover .icon { transform: translateX(3px); }

/* ---------- bannière (même principe que le bandeau d'accueil d'un éditeur de logiciels : titre à gauche, visuel à droite) ---------- */
.bandeau-fond { position: absolute; z-index: -1; top: 0; right: 0; bottom: 0; width: 62%; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 30%, #000 62%), linear-gradient(180deg, #000 70%, transparent 100%); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 30%, #000 62%), linear-gradient(180deg, #000 70%, transparent 100%); mask-composite: intersect; }
.bandeau-fond picture, .bandeau-fond img { width: 100%; height: 100%; }
.bandeau-fond img { object-fit: cover; object-position: left top; opacity: .55; filter: saturate(.9); transform-origin: left top; transform: scale(1.12); }
@media (max-width: 62rem) { .bandeau-fond { width: 100%; } .bandeau-fond img { opacity: .2; } }
.page-tete .sec-head { position: relative; max-width: 44rem; }
.page-tete { min-height: 17rem; display: flex; flex-direction: column; justify-content: center; padding-top: 1.5rem; padding-bottom: 3.5rem; }
.page-tete > .container { width: 100%; }
.page-tete h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }

/* grille texte / visuel : le visuel déborde jusqu'au bord droit de la fenêtre */
.bandeau-grid, .hero-sombre .hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; align-items: center; }
@media (min-width: 62rem) {
  .bandeau-visuel { width: 100%; max-width: max(30rem, calc((100svh - 23.5rem) * 1.7)); margin-inline: auto; }
  .bandeau-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6.6fr); gap: clamp(2rem, 4vw, 4.5rem); }
  .hero-sombre .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 4vw, 4.5rem); }
}
.bandeau-texte h1 { margin-top: 1rem; font-size: clamp(2rem, 3vw, 2.8rem); line-height: 1.08; }
.bandeau-texte .lead { margin-top: 1.25rem; font-size: 1.05rem; }
.bandeau-texte .btn-row { margin-top: 1.75rem; }
.bandeau-texte .puces { margin-top: 1.5rem; }
.hero-sombre .hero-grid h1 { font-size: clamp(2rem, 3vw, 2.8rem); line-height: 1.08; }
.bandeau-visuel.carrousel { margin-top: 0; }
.bandeau-visuel .car-controles { justify-content: center; margin-top: .65rem; }
.bandeau-visuel .car-points { justify-content: center; }

/* ---------- barre d'onglets (navigation dans la page, suivi de la section visible) ---------- */
.onglets { position: sticky; top: var(--h-fixe); z-index: 40; background: #edf0f5; border-bottom: 1px solid var(--line); }
.onglets .container { position: relative; }
.onglets ul { display: flex; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; }
.onglets ul::-webkit-scrollbar { display: none; }
.onglets li { flex: none; }
.onglets a { display: flex; align-items: center; gap: .7rem; height: 3.6rem; padding: 0 1.4rem; font-size: .96rem; font-weight: 520; color: var(--muted); text-decoration: none; white-space: nowrap; border-top: 3px solid transparent; transition: background .15s, color .15s, border-color .15s; }
.onglets a .icon { width: 1.35rem; height: 1.35rem; color: var(--soft); transition: color .15s; }
.onglets a:hover { color: var(--ink); background: rgba(255,255,255,.65); }
.onglets a[aria-current="true"] { background: var(--bg); color: var(--ink); font-weight: 650; border-top-color: var(--ink); }
.onglets a[aria-current="true"] .icon { color: var(--ink); }
.onglets-sky a[aria-current="true"] { border-top-color: var(--sky-500); }
.onglets-sky a[aria-current="true"] .icon { color: var(--sky-dark); }
.onglets-volt a[aria-current="true"] { border-top-color: var(--volt); }
.onglets-volt a[aria-current="true"] .icon { color: var(--volt-dark); }
.onglets-suiv { position: absolute; top: 0; right: 0; bottom: 0; width: 4rem; display: none; align-items: center; justify-content: flex-end; padding-right: .5rem; border: 0; cursor: pointer; color: var(--ink);
  background: linear-gradient(90deg, rgba(237,240,245,0), #edf0f5 55%); }
.onglets-suiv .icon { width: 1.3rem; height: 1.3rem; }
.onglets.deborde .onglets-suiv { display: flex; }
.onglets.fin .onglets-suiv { display: none; }

@media (max-width: 68rem) {
  main { padding-top: var(--h-top); }
  .hero-sombre { padding-top: 1.75rem; }
  .onglets a { height: 3.1rem; padding: 0 1rem; font-size: .9rem; }
}
@media (max-width: 36rem) {
  .bandeau-visuel .car-controles, .bandeau-visuel .car-points { justify-content: center; }
}
