/* ============================================================
   Clément Morgand Électricité Générale — feuille de styles
   Identité : schéma électrique, bleu nuit + ambre « volt »,
   coins chanfreinés, liseré terre vert/jaune.
   ============================================================ */

/* ============ TOKENS ============ */
:root {
  --bg: #EEF1F5;
  --surface: #FFFFFF;
  --surface-2: #E4E9EF;
  --ink: #16212C;
  --muted: #52616F;
  --line: #C9D2DC;
  --volt: #F5A623;          /* remplissage accent */
  --volt-text: #8F5B00;     /* accent lisible sur fond clair */
  --volt-ink: #201503;      /* texte posé sur remplissage volt */
  --glow: none;
  --wire: #8FA0B2;
  --terre-a: #3E9B4F;
  --terre-b: #E7C51B;
  --shadow: 0 12px 32px rgba(22, 33, 44, .10);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B0F14;
    --surface: #121922;
    --surface-2: #1A2430;
    --ink: #E9EEF3;
    --muted: #93A1B0;
    --line: #243244;
    --volt: #FFB92E;
    --volt-text: #FFB92E;
    --volt-ink: #1A1205;
    --glow: 0 0 18px rgba(255, 185, 46, .45), 0 0 60px rgba(255, 185, 46, .18);
    --wire: #3D5065;
    --shadow: 0 12px 32px rgba(0, 0, 0, .35);
  }
}
:root[data-theme="dark"] {
  --bg: #0B0F14;
  --surface: #121922;
  --surface-2: #1A2430;
  --ink: #E9EEF3;
  --muted: #93A1B0;
  --line: #243244;
  --volt: #FFB92E;
  --volt-text: #FFB92E;
  --volt-ink: #1A1205;
  --glow: 0 0 18px rgba(255, 185, 46, .45), 0 0 60px rgba(255, 185, 46, .18);
  --wire: #3D5065;
  --shadow: 0 12px 32px rgba(0, 0, 0, .35);
}
:root[data-theme="light"] {
  --bg: #EEF1F5;
  --surface: #FFFFFF;
  --surface-2: #E4E9EF;
  --ink: #16212C;
  --muted: #52616F;
  --line: #C9D2DC;
  --volt: #F5A623;
  --volt-text: #8F5B00;
  --volt-ink: #201503;
  --glow: none;
  --wire: #8FA0B2;
  --shadow: 0 12px 32px rgba(22, 33, 44, .10);
}

/* ============ BASE ============ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden; /* évite le débordement lié au rail d'avis en 100vw */
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; text-wrap: balance; margin: 0; }
p { margin: 0; }

.mono {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.wrap { max-width: 1120px; margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }

/* chanfrein façon appareillage */
.chamfer { clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); }

.eyebrow {
  display: flex; align-items: center; gap: .65rem;
  color: var(--volt-text);
}
.eyebrow::before {
  content: ""; width: 9px; height: 9px; background: var(--volt);
  box-shadow: var(--glow); flex: none;
}
.eyebrow::after {
  content: ""; height: 1px; background: var(--line); flex: 0 0 56px;
}

/* ============ HEADER ============ */
.top {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 97%, transparent);
  backdrop-filter: none;
  border-bottom: 1px solid var(--line);
}
.top-in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: .8rem;
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; flex: none;
  background: var(--volt); color: var(--volt-ink);
  display: grid; place-items: center;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%);
  box-shadow: var(--glow);
}
.brand-name { font-weight: 800; letter-spacing: .02em; font-size: 1.02rem; }
.brand-name small { display: block; font-weight: 500; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; gap: 1.4rem; align-items: center; }
.nav a { text-decoration: none; font-size: .92rem; color: var(--muted); transition: color .18s; }
.nav a:hover, .nav a:focus-visible { color: var(--ink); }
@media (max-width: 780px) { .nav .navlink { display: none; } }

.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .78rem 1.35rem; font-weight: 700; font-size: .95rem;
  text-decoration: none; border: none; cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 11px, 100% 100%, 0 100%);
  transition: transform .15s ease, filter .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-volt { background: var(--volt); color: var(--volt-ink); box-shadow: var(--glow); }
.btn-volt:hover { filter: brightness(1.07); }
.btn-ghost {
  background: transparent; color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--wire); }
.btn-sm { padding: .55rem 1rem; font-size: .88rem; }

/* ============ HERO ============ */
.hero { position: relative; overflow: hidden; }
.hero-in {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem);
}
@media (max-width: 880px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-fig { max-width: 420px; margin-inline: auto; }
}
.hero h1 {
  font-size: clamp(2.35rem, 5.6vw, 4.1rem);
  font-weight: 800; letter-spacing: -0.022em;
  margin-block: 1.1rem 1.2rem;
}
.allume {
  color: var(--volt-text);
  text-shadow: var(--glow);
  animation: flicker 1.8s ease-out .35s 1 both;
}
@keyframes flicker {
  0% { opacity: .15; } 9% { opacity: .9; } 14% { opacity: .25; }
  22% { opacity: 1; } 28% { opacity: .5; } 36%, 100% { opacity: 1; }
}
.hero-sub { max-width: 34rem; color: var(--muted); font-size: 1.08rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.dispo {
  display: inline-flex; align-items: center; gap: .55rem;
  margin-top: 1.6rem; padding: .45rem .85rem;
  background: var(--surface); border: 1px solid var(--line);
  font-size: .85rem; color: var(--muted);
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--terre-a); flex: none;
  animation: pulse-dot 2.2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(62, 155, 79, .5); }
  55% { box-shadow: 0 0 0 7px rgba(62, 155, 79, 0); }
}
.hero-fig svg { display: block; width: 100%; height: auto; }
.wire-path { stroke: var(--wire); stroke-width: 2; fill: none; }
.wire-node { fill: var(--wire); }
.wire-label { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11px; letter-spacing: .12em; fill: var(--muted); }
.pulse {
  stroke: var(--volt); stroke-width: 2.5; fill: none;
  stroke-dasharray: 14 86; stroke-dashoffset: 0;
  stroke-linecap: round;
  animation: travel 3.6s linear infinite;
  filter: drop-shadow(0 0 5px var(--volt));
}
.pulse.p2 { animation-delay: 1.2s; animation-duration: 4.4s; }
@keyframes travel { to { stroke-dashoffset: -100; } }
.lamp-glow {
  fill: var(--volt); opacity: .85;
  filter: drop-shadow(0 0 14px var(--volt));
  animation: lampflicker 5.5s linear infinite;
}
@keyframes lampflicker {
  0%, 41%, 45%, 100% { opacity: .85; }
  42.5% { opacity: .3; }
}

/* ============ TICKER ============ */
.ticker {
  border-block: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden; white-space: nowrap;
}
.ticker-track {
  display: inline-flex; align-items: center; gap: 2.2rem;
  padding-block: .75rem; padding-left: 2.2rem;
  animation: slide 36s linear infinite;
  will-change: transform;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span { font-size: .88rem; color: var(--muted); }
.tick-sep { width: 7px; height: 7px; background: var(--volt); transform: rotate(45deg); flex: none; box-shadow: var(--glow); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ============ SECTIONS ============ */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
/* section inversée : bleu nuit dans les deux thèmes */
.band {
  --bg: #101826;
  --surface: #172233;
  --surface-2: #202E45;
  --ink: #E9EEF3;
  --muted: #97A5B6;
  --line: #28394F;
  --volt: #FFB92E;
  --volt-text: #FFB92E;
  --volt-ink: #1A1205;
  --glow: 0 0 18px rgba(255, 185, 46, .45), 0 0 60px rgba(255, 185, 46, .18);
  --wire: #43587A;
  --shadow: 0 16px 36px rgba(0, 0, 0, .4);
  background: var(--bg);
  color: var(--ink);
  border-block: 1px solid var(--line);
}
.section-head { max-width: 42rem; margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800;
  letter-spacing: -0.015em; margin-top: .9rem;
}
.section-head p { color: var(--muted); margin-top: .8rem; }

/* services */
.services-explorer {
  position: relative;
}
.service-carousel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.1rem;
}
.service-carousel-head .eyebrow {
  flex: none;
  white-space: nowrap;
}
.service-carousel-controls { display: flex; align-items: center; gap: .5rem; }
.service-counter {
  display: flex;
  align-items: baseline;
  gap: .35rem;
  margin-right: .45rem;
  font-variant-numeric: tabular-nums;
}
.service-counter b { color: var(--volt-text); font-size: 1.35rem; }
.service-counter span { color: var(--muted); font-size: .78rem; }
.service-carousel-controls button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: border-color .18s, color .18s, background .18s;
}
.service-carousel-controls button:hover:not(:disabled) { border-color: var(--volt); color: var(--volt-text); }
.service-carousel-controls button:disabled { cursor: default; opacity: .35; }
.service-carousel-controls button:focus-visible,
.service-nav-item:focus-visible,
.service-viewport:focus-visible { outline: 2px solid var(--volt); outline-offset: 3px; }
.service-carousel-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}
.service-nav-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: .15rem .55rem;
  padding: 0 0 .6rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.service-nav-marker {
  grid-column: 1 / -1;
  position: relative;
  height: 2px;
  margin-bottom: .45rem;
  background: var(--line);
  transition: background .2s;
}
.service-nav-marker::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  background: var(--wire);
  transform: translateY(-50%) rotate(45deg);
  transition: background .2s, box-shadow .2s;
}
.service-nav-item b { font-size: .86rem; line-height: 1.25; }
.service-nav-item.is-active { color: var(--ink); }
.service-nav-item.is-active .service-nav-marker { background: var(--volt); }
.service-nav-item.is-active .service-nav-marker::before { background: var(--volt); box-shadow: var(--glow); }
.service-viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
}
.service-viewport::-webkit-scrollbar { display: none; }
.service-track {
  display: flex;
  align-items: stretch;
  gap: 0;
}
.service-panel {
  display: flex;
  flex: 0 0 100%;
  flex-direction: column;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.service-panel-toggle { display: none; }
.service-panel-body {
  position: relative;
  isolation: isolate;
  flex: 1;
  overflow: hidden;
  padding: clamp(1.5rem, 3vw, 2.2rem);
}
.service-universe-head {
  min-height: 230px;
  padding-right: 43%;
  margin-bottom: 1.4rem;
}
.service-universe-head > div:first-child,
.service-universe-head > p {
  position: relative;
  z-index: 2;
}
.service-universe-head .mono { color: var(--volt-text); }
.service-universe-head h3 {
  max-width: 38rem;
  margin-top: .55rem;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -.015em;
}
.service-universe-head > p {
  max-width: 38rem;
  margin-top: .8rem;
  color: var(--muted);
  font-size: .92rem;
}
.service-gallery {
  position: absolute;
  z-index: 2;
  top: clamp(1.5rem, 3vw, 2.2rem);
  right: clamp(1.5rem, 3vw, 2.2rem);
  bottom: auto;
  left: auto;
  width: 38%;
  height: 200px;
  display: grid;
  gap: .55rem;
}
.service-gallery-one { grid-template-columns: 1fr; }
.service-gallery-three { grid-template-columns: 1.2fr .8fr .8fr; }
.service-photo {
  min-width: 0;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.service-photo-open {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.service-photo-open::after {
  content: "Agrandir";
  position: absolute;
  right: .65rem;
  bottom: .65rem;
  padding: .38rem .55rem;
  background: rgba(16, 24, 38, .88);
  color: #FFFFFF;
  font: 700 .68rem/1.2 var(--font, sans-serif);
  letter-spacing: .04em;
}
.service-photo-open:focus-visible { outline: 2px solid var(--volt); outline-offset: -3px; }
.service-photo picture { display: block; height: 100%; }
.service-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.service-gallery-one .service-photo img { object-position: center 42%; }
.service-cards { position: relative; z-index: 2; display: grid; gap: 1rem; }
.service-cards-three { grid-template-columns: repeat(3, 1fr); }
.service-cards-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line);
  padding: 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--volt); box-shadow: var(--shadow); }
.card-ico {
  width: 42px; height: 42px; display: grid; place-items: center;
  background: var(--surface-2); color: var(--volt-text);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  margin-bottom: 1rem;
}
.card h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: .35rem; }
.card-lead {
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.5;
  margin-top: .6rem;
  margin-bottom: 1.15rem;
}
.card ul { margin: .8rem 0 0; padding: 0; list-style: none; display: grid; gap: .38rem; }
.card li {
  font-size: .9rem; color: var(--muted);
  padding-left: 1rem; position: relative;
}
.card li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 6px; height: 2px; background: var(--volt);
}
.card-details {
  margin-top: auto;
  padding-top: .8rem;
  border-top: 1px solid var(--line);
}
.card-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  color: var(--ink);
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.card-details summary::-webkit-details-marker { display: none; }
.card-details summary span {
  width: 24px;
  height: 24px;
  display: grid;
  flex: none;
  place-items: center;
  background: var(--surface-2);
  color: var(--volt-text);
  transition: transform .18s ease;
}
.card-details[open] summary span { transform: rotate(45deg); }
.card-details summary:focus-visible { outline: 2px solid var(--volt); outline-offset: 4px; }
.image-lightbox {
  width: min(92vw, 1100px);
  max-width: none;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .62);
}
.image-lightbox::backdrop {
  background: rgba(4, 10, 18, .84);
  backdrop-filter: blur(3px);
}
.image-lightbox figure { margin: 0; }
.image-lightbox img {
  display: block;
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  background: #07101D;
}
.image-lightbox figcaption {
  min-height: 2.8rem;
  padding: .8rem 3.8rem .8rem 1rem;
  color: var(--muted);
  font-size: .86rem;
}
.image-lightbox-close {
  position: absolute;
  z-index: 2;
  top: .75rem;
  right: .75rem;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(16, 24, 38, .9);
  color: #FFFFFF;
  font: 400 1.65rem/1 sans-serif;
  cursor: pointer;
}
.image-lightbox-close:hover,
.image-lightbox-close:focus-visible { border-color: var(--volt); color: var(--volt-text); }
.services-cta {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-content: center;
  align-items: center;
  gap: 1.1rem 1.25rem;
  margin: 1.25rem 0 0;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  background: var(--volt);
  color: var(--volt-ink);
}
.services-cta::after {
  content: "?";
  position: absolute;
  right: 1rem;
  bottom: -3.6rem;
  color: rgba(16, 24, 38, .08);
  font-size: 13rem;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}
.services-cta-ico {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  background: #101826;
  color: #FFB92E;
  clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 0 100%);
}
.services-cta .mono { color: rgba(16, 24, 38, .68); }
.services-cta h3 {
  margin-top: .35rem;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  font-weight: 800;
}
.services-cta p:not(.mono) {
  max-width: 31rem;
  margin-top: .65rem;
  color: rgba(16, 24, 38, .72);
  font-size: .92rem;
}
.services-cta-btn {
  position: relative;
  z-index: 1;
  width: max-content;
  background: #101826;
  color: #FFFFFF;
}
.services-cta-btn:hover { filter: brightness(1.18); }
@media (max-width: 980px) {
  .service-carousel-nav { gap: .65rem; }
  .service-nav-item b { font-size: .8rem; }
  .service-cards-three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-cards-three > .card:last-child { grid-column: 1 / -1; }
  .service-universe-head { padding-right: 38%; }
}
@media (max-width: 720px) {
  .service-carousel-controls, .service-carousel-nav { display: none; }
  .service-viewport {
    overflow: visible;
    scroll-snap-type: none;
  }
  .service-track { display: grid; gap: .7rem; padding: 0; }
  .service-panel {
    display: block;
    width: 100%;
    flex: none;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 72%, transparent);
    box-shadow: none;
  }
  .service-panel-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border: 0;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
  }
  .service-panel-toggle::after { content: "+"; color: var(--volt-text); font-size: 1.4rem; line-height: 1; }
  .service-panel.is-active .service-panel-toggle { background: var(--volt); color: var(--volt-ink); }
  .service-panel.is-active .service-panel-toggle::after { content: "−"; color: var(--volt-ink); }
  .service-panel-toggle span { font-weight: 800; }
  .service-panel-toggle small { color: var(--muted); white-space: nowrap; }
  .service-panel.is-active .service-panel-toggle small { color: rgba(16, 24, 38, .68); }
  .service-panel:not(.is-active) .service-panel-body { display: none; }
  .service-panel-body { padding: 1rem; }
  .service-panel-body::before { display: none; }
  .service-universe-head { min-height: 0; padding-right: 0; }
  .service-gallery {
    position: relative;
    z-index: 0;
    inset: auto;
    left: auto;
    width: 100%;
    height: 180px;
    margin-top: 1rem;
  }
  .service-cards-three, .service-cards-two { grid-template-columns: 1fr; }
  .service-cards-three > .card:last-child { grid-column: auto; }
  .services-cta { grid-template-columns: auto 1fr; margin: .8rem 0 0; }
  .services-cta-btn { grid-column: 2; }
}
@media (max-width: 480px) {
  .services-cta { grid-template-columns: 1fr; }
  .services-cta-btn { grid-column: auto; }
}

/* témoignages */
.avis-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.note-badge {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--surface); border: 1px solid var(--line);
  padding: .6rem 1rem;
}
.note-badge b { font-size: 1.3rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.stars { color: var(--volt-text); letter-spacing: .1em; text-shadow: var(--glow); }
/* rail d'avis à défilement horizontal, pause au survol */
.avis-rail {
  /* pleine largeur : le rail déborde du conteneur .wrap centré */
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.avis-track { display: flex; width: max-content; }
.avis-track.ready { animation: slide-avis 60s linear infinite; will-change: transform; }
.avis-rail:hover .avis-track, .avis-rail:focus-within .avis-track { animation-play-state: paused; }
.avis-set { display: flex; gap: 1.1rem; padding-right: 1.1rem; }
@keyframes slide-avis { to { transform: translateX(-50%); } }
.avis-id { display: flex; align-items: center; gap: .7rem; margin-bottom: .9rem; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  background: var(--av, var(--wire)); color: #FFFFFF;
  display: grid; place-items: center;
  font-weight: 700; font-size: .92rem; letter-spacing: .03em;
}
.avis-who { display: grid; line-height: 1.35; }
.avis-who b { font-weight: 600; font-size: .95rem; }
.avis-who small { color: var(--muted); font-size: .78rem; }
.avis-src {
  margin-left: auto;
  font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600;
  padding: .2rem .55rem; border: 1px solid var(--line); color: var(--muted);
  white-space: nowrap;
}
.avis {
  background: var(--surface); border: 1px solid var(--line);
  padding: 1.5rem 1.4rem; position: relative;
  width: min(350px, 78vw); flex: none;
}
.avis::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 3px;
  background: var(--volt); box-shadow: var(--glow);
}
.avis blockquote { margin: .7rem 0 0; font-size: .95rem; }

/* ============ MENTIONS LÉGALES ============ */
.legal { max-width: 46rem; }
.legal h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800; letter-spacing: -.02em;
  margin-block: 1rem .4rem;
}
.legal h2 { margin-top: 2.4rem; font-size: 1.2rem; }
.legal p, .legal li { color: var(--muted); }
.legal strong { color: var(--ink); }
.legal a { color: var(--volt-text); }
.legal-updated { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.legal-note {
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--volt);
  padding: .8rem 1.1rem; margin-top: 1.6rem;
  font-size: .9rem;
}

/* ============ ZONE D'INTERVENTION ============ */
.zone { position: relative; overflow: hidden; }
.zone .wrap { position: relative; z-index: 1; }
.zone-head {
  max-width: 46rem; margin-inline: auto; text-align: center;
}
.zone-head .eyebrow { justify-content: center; }
.zone-head .eyebrow::after { content: none; }
.zone-bg {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.zone-bg svg { width: min(1150px, 118%); height: auto; flex: none; }
.zone-bg path {
  fill: color-mix(in srgb, var(--surface-2) 55%, transparent);
  stroke: var(--line); stroke-width: 2; stroke-linejoin: round;
}
.zone-bg-home { fill: var(--volt); opacity: .7; }
.zone-bg-halo { fill: none; stroke: var(--volt); stroke-width: 2; opacity: .4; }
.zone-bg-city { fill: var(--volt); opacity: .82; }
.zone-bg-city-halo {
  fill: none;
  stroke: var(--volt);
  stroke-width: 2;
  opacity: .35;
}
.zone-cities {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline;
  max-width: 1000px; margin: 0 auto; padding: 0; list-style: none;
}
.zone-cities li {
  font-size: clamp(1.3rem, 3vw, 2.2rem);
  font-weight: 800; letter-spacing: -.03em; line-height: 1.7;
  white-space: nowrap;
}
.zone-cities li:not(:last-child)::after {
  content: "·"; margin: 0 clamp(.7rem, 2vw, 1.5rem);
  color: var(--volt-text); text-shadow: var(--glow);
}
.zone-cities .city-home { color: var(--volt-text); text-shadow: var(--glow); }
.zone-note { margin: 2.2rem 0 0; text-align: center; color: var(--muted); font-size: .95rem; }
.zone-note a { color: var(--volt-text); font-weight: 700; }

/* ============ CONTACT ============ */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 1.4rem; align-items: start; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.form-card, .urgence-card { background: var(--surface); border: 1px solid var(--line); padding: clamp(1.4rem, 3vw, 2rem); }
/* le formulaire reste blanc, même posé sur la bande nuit */
.form-card {
  --bg: #EEF1F5;
  --surface: #FFFFFF;
  --surface-2: #E4E9EF;
  --ink: #16212C;
  --muted: #52616F;
  --line: #C9D2DC;
  --volt: #F5A623;
  --volt-text: #8F5B00;
  --volt-ink: #201503;
  --glow: none;
  background: var(--surface);
  color: var(--ink);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
label.fld { display: grid; gap: .4rem; font-size: .85rem; font-weight: 600; }
.fld input, .fld select, .fld textarea {
  font: inherit; font-size: .95rem;
  padding: .7rem .85rem; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 0;
  transition: border-color .15s, box-shadow .15s;
}
.fld input:focus-visible, .fld select:focus-visible, .fld textarea:focus-visible {
  outline: none; border-color: var(--volt);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--volt) 28%, transparent);
}
.fld textarea { resize: vertical; min-height: 110px; }
.pills { display: flex; gap: .5rem; }
.pills input { position: absolute; opacity: 0; pointer-events: none; }
.pills span {
  display: inline-block; padding: .55rem 1rem; font-size: .88rem; font-weight: 600;
  border: 1px solid var(--line); cursor: pointer; color: var(--muted);
  transition: all .15s;
}
.pills input:checked + span { background: var(--volt); color: var(--volt-ink); border-color: var(--volt); box-shadow: var(--glow); }
.pills input:focus-visible + span { outline: 2px solid var(--volt); outline-offset: 2px; }
.netlify-bot-field { display: none; }
.form-error {
  display: none;
  margin-top: .75rem;
  color: #9A3412;
  font-size: .9rem;
  font-weight: 600;
}
.form-privacy {
  max-width: 34rem;
  margin-top: .8rem;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 400;
  line-height: 1.5;
}
.form-privacy a { color: var(--volt-text); font-weight: 600; }
.form-card .btn[disabled] {
  cursor: wait;
  filter: grayscale(.25);
  opacity: .78;
}
.form-ok { display: none; text-align: center; padding: 2.5rem 1rem; }
.form-ok .ok-ico {
  width: 54px; height: 54px; margin: 0 auto 1rem;
  background: var(--volt); color: var(--volt-ink);
  display: grid; place-items: center; font-size: 1.6rem; font-weight: 800;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  box-shadow: var(--glow);
}
/* encart urgence : fond ambre, texte bleu nuit */
.urgence-card {
  --surface: #FFB92E;
  --ink: #101826;
  --muted: rgba(16, 24, 38, .72);
  --line: rgba(16, 24, 38, .28);
  --volt: #101826;
  --volt-text: #101826;
  --glow: none;
  background: var(--surface);
  color: var(--ink);
  position: sticky; top: 84px;
}
.tel-big {
  display: block; font-size: clamp(1.5rem, 3.4vw, 2rem); font-weight: 800;
  letter-spacing: .02em; color: var(--volt-text); text-decoration: none;
  font-variant-numeric: tabular-nums; text-shadow: var(--glow);
  margin-block: .7rem 1rem;
}
.urgence-card hr { border: none; border-top: 1px solid var(--line); margin-block: 1.2rem; }
.u-line { display: flex; justify-content: space-between; gap: 1rem; font-size: .92rem; padding-block: .3rem; }
.u-line span:first-child { color: var(--muted); }
.u-line b { font-weight: 600; font-variant-numeric: tabular-nums; }

/* ============ FOOTER ============ */
.terre { height: 6px; background: repeating-linear-gradient(45deg, var(--terre-a) 0 14px, var(--terre-b) 14px 28px); }
.footer { background: var(--surface); border-top: 1px solid var(--line); }
.footer-main {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem;
  padding-block: clamp(2.5rem, 5vw, 4rem) 2rem;
}
@media (max-width: 880px) { .footer-main { grid-template-columns: 1fr; gap: 2rem; } }
.footer h4 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 1rem; font-weight: 700; }
.footer p, .footer li, .footer a { font-size: .92rem; color: var(--muted); }
.footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .45rem; }
.footer a { text-decoration: none; transition: color .15s; }
.footer a:hover { color: var(--volt-text); }
.footer-brand p { max-width: 30rem; margin-top: .9rem; }
.footer-bottom {
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding-block: 1.2rem; font-size: .8rem; color: var(--muted);
}

/* ============ REVEAL ============ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .ticker-track { animation: none !important; }
  /* le rail d'avis devient défilable à la main */
  .avis-rail { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}

/* ============ PARCOURS DES PRESTATIONS ============ */
.services-head { max-width: 46rem; margin: 0; }
.service-carousel-head { align-items: flex-end; margin-bottom: 2rem; }
.services-total {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding-left: 1.25rem;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.35;
  white-space: nowrap;
}
.services-total strong {
  color: var(--volt-text);
  font-size: 2.6rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.service-carousel-nav {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
  margin-bottom: 1.5rem;
}
.service-nav-item {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .08rem .8rem;
  min-height: 96px;
  padding: 1rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.service-nav-item::after {
  content: "→";
  position: absolute;
  right: 1rem;
  bottom: .8rem;
  color: var(--volt-text);
  font-size: 1.1rem;
  transition: transform .18s ease;
}
.service-nav-item:hover {
  transform: translateY(-3px);
  border-color: var(--volt);
  background: var(--surface-2);
}
.service-nav-item:hover::after { transform: translateX(3px); }
.service-nav-item:focus-visible { outline: 2px solid var(--volt); outline-offset: 3px; }
.service-nav-number {
  grid-row: 1 / span 2;
  color: var(--volt-text);
  font: 700 .72rem/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  letter-spacing: .08em;
}
.service-nav-item b { font-size: .92rem; line-height: 1.2; }
.service-nav-item small { color: var(--muted); font-size: .72rem; }
.service-viewport { overflow: visible; scroll-snap-type: none; }
.service-track { display: grid; gap: 1.25rem; }
.service-panel,
.service-panel.is-active {
  display: block;
  width: 100%;
  scroll-margin-top: 86px;
  border-color: var(--line);
  box-shadow: none;
  content-visibility: auto;
  contain-intrinsic-size: auto 720px;
}
.service-panel + .service-panel { margin-top: 0; }
.service-panel-toggle { display: none; }
.service-panel-body { display: block; overflow: hidden; }
.service-panel:nth-child(even) .service-universe-head { padding-right: 0; padding-left: 43%; }
.service-panel:nth-child(even) .service-gallery { right: auto; left: clamp(1.5rem, 3vw, 2.2rem); }
.service-panel:nth-child(even) .service-universe-head > div:first-child,
.service-panel:nth-child(even) .service-universe-head > p { margin-left: clamp(1.4rem, 3vw, 2.2rem); }
.card-details { margin-top: auto; }
.card-jump {
  display: inline-flex;
  justify-content: space-between;
  gap: .6rem;
  margin-top: .8rem;
  color: var(--volt-text);
  font-size: .79rem;
  font-weight: 750;
  text-decoration: none;
}
.card-jump:hover { text-decoration: underline; }

/* ============ CLIMATISATION ============ */
.climate-section {
  --cool: #168CA5;
  --cool-soft: color-mix(in srgb, var(--cool) 12%, var(--surface));
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 90%, color-mix(in srgb, var(--cool) 12%, transparent), transparent 27rem),
    var(--bg);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 62px;
}
:root[data-theme="dark"] .climate-section { --cool: #62D5EC; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .climate-section { --cool: #62D5EC; }
}
.climate-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: center;
}
.climate-copy h2 {
  max-width: 42rem;
  margin-top: 1rem;
  font-size: clamp(2rem, 4.3vw, 3.45rem);
  letter-spacing: -.025em;
}
.climate-intro {
  max-width: 39rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.05rem;
}
.climate-steps {
  display: grid;
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}
.climate-steps > div {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: .8rem;
  padding-block: .9rem;
  border-bottom: 1px solid var(--line);
}
.climate-steps > div > span {
  padding-top: .22rem;
  color: var(--cool);
  font: 700 .7rem/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
.climate-steps p { color: var(--muted); font-size: .9rem; }
.climate-steps strong { display: block; margin-bottom: .08rem; color: var(--ink); font-size: .94rem; }
.climate-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.2rem; margin-top: 1.8rem; }
.climate-phone { color: var(--ink); font-size: .87rem; font-weight: 700; text-underline-offset: .2rem; }
.climate-showcase {
  position: relative;
  min-height: 570px;
  padding: clamp(13.5rem, 24vw, 16.5rem) clamp(1.4rem, 3vw, 2.2rem) 2rem;
  overflow: hidden;
  background: #101826;
  color: #E9EEF3;
  box-shadow: var(--shadow);
}
.climate-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(125deg, rgba(98, 213, 236, .11), transparent 42%),
    repeating-linear-gradient(90deg, transparent 0 54px, rgba(255,255,255,.025) 54px 55px);
  pointer-events: none;
}
.climate-showcase > * { position: relative; z-index: 1; }
.climate-showcase .mono { color: #62D5EC; }
.climate-showcase h3 { max-width: 26rem; margin-top: .5rem; font-size: clamp(1.45rem, 2.8vw, 2rem); }
.climate-showcase ul { margin: 1.35rem 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.14); }
.climate-showcase li {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: .65rem;
  padding-block: .62rem;
  border-bottom: 1px solid rgba(255,255,255,.14);
  color: #C6D0DC;
  font-size: .86rem;
}
.climate-showcase li span { color: #62D5EC; font: 700 .67rem/1.8 ui-monospace, monospace; }
.climate-note { margin-top: 1rem; color: #97A5B6; font-size: .78rem; }
.climate-unit {
  position: absolute;
  z-index: 2;
  top: 3rem;
  right: clamp(1.6rem, 5vw, 3.5rem);
  left: clamp(1.6rem, 5vw, 3.5rem);
  height: 112px;
  border-radius: 8px 8px 16px 16px;
  background: linear-gradient(180deg, #F8FAFC 0 72%, #DCE4EA 73% 100%);
  box-shadow: 0 20px 42px rgba(0,0,0,.3), inset 0 -1px rgba(0,0,0,.12);
}
.climate-unit::before {
  content: "";
  position: absolute;
  right: 1.1rem;
  bottom: 20px;
  width: 42px;
  height: 4px;
  border-radius: 10px;
  background: #AFBAC4;
}
.climate-unit-light {
  position: absolute;
  right: 1.2rem;
  top: 1rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #4CCF72;
  box-shadow: 0 0 8px #4CCF72;
}
.climate-unit-vent {
  position: absolute;
  right: 8%;
  bottom: 11px;
  left: 8%;
  height: 7px;
  border-radius: 0 0 50% 50%;
  background: #81909E;
}
.climate-air {
  position: absolute;
  z-index: 1;
  top: 9.6rem;
  right: 12%;
  left: 12%;
  height: 90px;
}
.climate-air span {
  position: absolute;
  top: 0;
  width: 2px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(#62D5EC, transparent);
  transform: rotate(12deg);
  transform-origin: top;
  animation: climate-breeze 2.8s ease-in-out infinite;
}
.climate-air span:nth-child(1) { left: 23%; }
.climate-air span:nth-child(2) { left: 50%; animation-delay: -.9s; }
.climate-air span:nth-child(3) { left: 77%; animation-delay: -1.8s; }
@keyframes climate-breeze {
  0%, 100% { opacity: .25; transform: translateY(0) rotate(12deg) scaleY(.75); }
  50% { opacity: .9; transform: translateY(8px) rotate(-8deg) scaleY(1.08); }
}

@media (max-width: 980px) {
  .service-carousel-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .climate-wrap { grid-template-columns: 1fr; }
  .climate-showcase { min-height: 520px; padding-top: 15rem; }
}

@media (max-width: 720px) {
  .service-carousel-head { align-items: flex-start; }
  .services-total { display: none; }
  .service-carousel-nav { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
  .service-nav-item { min-height: 88px; padding: .85rem; }
  .service-track { display: grid; gap: .8rem; }
  .service-panel,
  .service-panel.is-active { display: block; background: var(--surface); }
  .service-panel-toggle { display: none; }
  .service-panel:not(.is-active) .service-panel-body,
  .service-panel .service-panel-body { display: block; padding: 1rem; }
  .service-universe-head,
  .service-panel:nth-child(even) .service-universe-head { min-height: 0; padding: 0; }
  .service-panel:nth-child(even) .service-universe-head > div:first-child,
  .service-panel:nth-child(even) .service-universe-head > p { margin-left: 0; }
  .service-gallery,
  .service-panel:nth-child(even) .service-gallery {
    position: relative;
    inset: auto;
    width: 100%;
    height: 170px;
    margin-top: 1rem;
  }
  .services-cta { margin-top: .8rem; }
  .climate-showcase { min-height: 540px; }
}

@media (max-width: 480px) {
  .service-carousel-nav { grid-template-columns: 1fr; }
  .service-nav-item { min-height: 74px; }
  .climate-showcase { min-height: 555px; padding-top: 13.5rem; }
  .climate-unit { top: 2.5rem; right: 1.3rem; left: 1.3rem; height: 96px; }
  .climate-air { top: 8.6rem; }
}

/* ============ PRESTATIONS — UNIVERS ILLUSTRÉS ============ */
.services-section {
  overflow: hidden;
  padding-block: clamp(3rem, 6vw, 5rem) clamp(2.2rem, 4vw, 3.5rem);
  background: var(--bg);
  color: var(--ink);
}
.services-section .service-carousel-head {
  align-items: flex-end;
  margin-bottom: clamp(1.5rem, 3vw, 2.2rem);
}
.services-section .services-head { max-width: 47rem; }
.services-section .services-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.65rem); }
.services-section .service-carousel-nav {
  width: 100vw;
  height: clamp(210px, 24vw, 340px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0 calc(50% - 50vw);
  background: #101826;
}
.services-section .service-nav-item {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, .22);
  background: #101826;
  color: #FFFFFF;
  font: inherit;
  text-align: left;
  cursor: pointer;
  isolation: isolate;
  transition: none;
}
.services-section .service-nav-item:last-child { border-right: 0; }
.services-section .service-nav-item picture,
.services-section .service-nav-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.services-section .service-nav-item img {
  object-fit: cover;
  filter: none;
  transition: none;
}
.services-section .service-nav-item:nth-child(1) img { object-position: center 42%; }
.services-section .service-nav-item:nth-child(2) img { object-position: center 50%; }
.services-section .service-nav-item:nth-child(3) img { object-position: center 55%; }
.services-section .service-nav-item:nth-child(4) img { object-position: center 50%; }
.service-nav-shade {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 14, 22, .08) 12%, rgba(8, 14, 22, .88) 100%);
  transition: none;
}
.service-nav-copy {
  position: absolute;
  z-index: 2;
  right: clamp(1rem, 2.4vw, 2rem);
  bottom: clamp(1rem, 2.4vw, 1.8rem);
  left: clamp(1rem, 2.4vw, 2rem);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .18rem .7rem;
  align-items: end;
}
.services-section .service-nav-number {
  grid-row: 1 / span 2;
  align-self: start;
  padding-top: .22rem;
  color: #FFB92E;
  font-size: .7rem;
}
.services-section .service-nav-item b {
  color: #FFFFFF;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  line-height: 1.12;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .45);
}
.services-section .service-nav-item small {
  color: rgba(255, 255, 255, .72);
  font-size: .75rem;
}
.services-section .service-nav-item::after {
  content: "+";
  z-index: 3;
  top: 1rem;
  right: 1rem;
  bottom: auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .62);
  background: rgba(8, 14, 22, .72);
  color: #FFFFFF;
  font-size: 1.25rem;
  line-height: 1;
  backdrop-filter: none;
  transition: color .2s, background .2s, border-color .2s;
}
.services-section .service-nav-item:hover { transform: none; background: #101826; }
.services-section .service-nav-item:hover img { transform: none; filter: none; }
.services-section .service-nav-item:hover .service-nav-shade {
  background: linear-gradient(180deg, rgba(8, 14, 22, .02) 10%, rgba(8, 14, 22, .78) 100%);
}
.services-section .service-nav-item.is-active::before {
  content: "";
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 0;
  left: 0;
  height: 5px;
  background: #FFB92E;
  box-shadow: 0 0 18px rgba(255, 185, 46, .55);
}
.services-section .service-nav-item.is-active::after {
  content: "−";
  border-color: #FFB92E;
  background: #FFB92E;
  color: #1A1205;
}
.services-section .service-nav-item:focus-visible {
  z-index: 5;
  outline: 3px solid #FFB92E;
  outline-offset: -4px;
}
.services-section .service-viewport {
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  overflow: visible;
}
.services-section .service-track { display: block; }
.services-section .service-panel,
.services-section .service-panel.is-active {
  display: none;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  box-shadow: none;
  color: var(--ink);
  content-visibility: visible;
}
.services-section .service-panel.is-active { display: block; animation: service-band-in .32s ease both; }
@keyframes service-band-in {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: none; }
}
.services-section .service-panel-body {
  width: min(1120px, 100%);
  margin-inline: auto;
  padding: clamp(1.5rem, 3vw, 2.4rem) clamp(1.1rem, 4vw, 2rem);
  overflow: visible;
}
.services-section .service-panel-toggle,
.services-section .service-gallery { display: none; }
.services-section .service-universe-head,
.services-section .service-panel:nth-child(even) .service-universe-head {
  min-height: 0;
  padding: 0;
  margin-bottom: 1.35rem;
}
.services-section .service-panel:nth-child(even) .service-universe-head > div:first-child,
.services-section .service-panel:nth-child(even) .service-universe-head > p { margin-left: 0; }
.services-section .service-universe-head h3 {
  max-width: 48rem;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
}
.services-section .service-universe-head > p { max-width: 48rem; }
.services-section .service-cards { gap: .8rem; }
.services-section .card {
  min-width: 0;
  padding: 1.15rem;
  background: var(--surface);
  box-shadow: 0 7px 22px rgba(22, 33, 44, .07);
}
.services-section .card:hover { transform: translateY(-2px); }
.services-section .card-ico {
  width: 36px;
  height: 36px;
  margin-bottom: .75rem;
}
.services-section .card-lead { margin: .4rem 0 .8rem; }
.services-section .services-cta {
  margin-top: 1rem;
  padding: clamp(1.15rem, 2.5vw, 1.6rem);
}
.services-section .services-cta-ico { width: 48px; height: 48px; }
.services-section .services-cta h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
.services-section .services-cta p:not(.mono) { margin-top: .35rem; }

@media (max-width: 720px) {
  .services-section .service-carousel-head { margin-bottom: 1.35rem; }
  .services-section .services-total { display: none; }
  .services-section .service-carousel-nav {
    height: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .services-section .service-nav-item { height: 160px; border-bottom: 1px solid rgba(255, 255, 255, .22); }
  .services-section .service-nav-item:nth-child(2) { border-right: 0; }
  .services-section .service-nav-item:nth-child(n+3) { border-bottom: 0; }
  .services-section .service-nav-item::after { top: .7rem; right: .7rem; width: 30px; height: 30px; }
  .services-section .service-nav-copy { right: .9rem; bottom: .85rem; left: .9rem; }
  .services-section .service-panel,
  .services-section .service-panel.is-active { background: var(--surface-2); }
  .services-section .service-panel:not(.is-active) .service-panel-body { display: none; }
  .services-section .service-panel.is-active .service-panel-body { display: block; padding: 1.35rem 1.1rem; }
  .services-section .service-cards-three,
  .services-section .service-cards-two { grid-template-columns: 1fr; }
  .services-section .service-cards-three > .card:last-child { grid-column: auto; }
}

@media (max-width: 430px) {
  .services-section .service-nav-item { height: 145px; }
  .services-section .service-nav-item b { font-size: .98rem; }
  .services-section .service-nav-item small { font-size: .68rem; }
  .services-section .service-nav-number { display: none; }
  .service-nav-copy { grid-template-columns: 1fr; }
}

/* ============ HERO — RÉALISATION AUTHENTIQUE ============ */
.hero-realisation {
  width: min(100%, 430px);
  margin: 0 0 0 auto;
}
.hero-realisation-frame {
  position: relative;
  isolation: isolate;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
  box-shadow: var(--shadow);
}
.hero-realisation-frame::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(8, 14, 22, .78) 100%);
  pointer-events: none;
}
.hero-realisation-frame::after {
  content: "";
  position: absolute;
  z-index: 4;
  top: 1rem;
  right: 1rem;
  width: 42px;
  height: 42px;
  border-top: 2px solid var(--volt);
  border-right: 2px solid var(--volt);
  pointer-events: none;
}
.hero-realisation picture,
.hero-realisation img {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-realisation img {
  object-fit: cover;
  object-position: center 45%;
  transform: scale(1.01);
}
.hero-realisation-scan {
  position: absolute;
  z-index: 3;
  top: 12%;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 4%, var(--volt) 50%, transparent 96%);
  box-shadow: 0 0 14px rgba(245, 166, 35, .42);
  opacity: 0;
  animation: hero-realisation-scan 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes hero-realisation-scan {
  0%, 18%, 100% { opacity: 0; transform: translateY(0); }
  24% { opacity: .72; }
  62% { opacity: .22; transform: translateY(285px); }
  68% { opacity: 0; transform: translateY(285px); }
}
.hero-realisation-label {
  position: absolute;
  z-index: 5;
  right: 1.2rem;
  bottom: 1.2rem;
  left: 1.2rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  color: #FFFFFF;
}
.hero-realisation-label .brand-mark { width: 42px; height: 42px; }
.hero-realisation-label p { display: grid; line-height: 1.25; }
.hero-realisation-label small {
  color: rgba(255, 255, 255, .7);
  font: 600 .62rem/1.2 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hero-realisation-label strong { margin-top: .15rem; font-size: 1rem; }
.hero-realisation figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .7rem;
}
.hero-realisation figcaption span {
  padding: .28rem .6rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: .7rem;
  font-weight: 650;
}

/* Le bleu nuit cadre les univers et leur contenu déplié. */
.services-section {
  background: #101826;
  color: #E9EEF3;
}
.services-section .services-head h2 { color: #E9EEF3; }
.services-section .services-head > p,
.services-section .services-total { color: #97A5B6; }
.services-section .services-total { border-color: #28394F; }
.services-section .services-total strong { color: #FFB92E; }
.services-section .service-panel,
.services-section .service-panel.is-active {
  --surface: #172233;
  --surface-2: #101826;
  --ink: #E9EEF3;
  --muted: #97A5B6;
  --line: #28394F;
  --volt: #FFB92E;
  --volt-text: #FFB92E;
  --volt-ink: #1A1205;
  --glow: 0 0 18px rgba(255, 185, 46, .32);
  background: #101826;
  color: #E9EEF3;
  border: 0;
}
.services-section .card { position: relative; }
.services-section .card-climate .card-jump {
  position: absolute;
  top: 1.15rem;
  right: 1.15rem;
  max-width: 10.5rem;
  justify-content: flex-end;
  margin: 0;
  padding: .38rem .55rem;
  border: 1px solid #3B4D66;
  background: #101826;
  color: #FFB92E;
  font-size: .7rem;
  line-height: 1.3;
  text-align: right;
  text-decoration: none;
}
.services-section .card-climate .card-jump:hover {
  border-color: #FFB92E;
  text-decoration: none;
}

@media (max-width: 880px) {
  .hero-realisation { margin-inline: auto; }
}

@media (max-width: 480px) {
  .hero-realisation { width: min(100%, 350px); }
  .hero-realisation-frame { aspect-ratio: 4 / 4.7; }
}

/* ============ REPÈRES DE CONFIANCE ============ */
.trust-strip {
  width: calc(100% - 2.2rem);
  max-width: 960px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: clamp(2rem, 4vw, 3rem) auto;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(22, 33, 44, .04);
}
.trust-item {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: .18rem;
  min-height: 104px;
  padding: 1.15rem 1.5rem;
}
.trust-item + .trust-item { border-left: 1px solid var(--line); }
.trust-item strong {
  color: var(--volt-text);
  font-size: clamp(1.25rem, 2.3vw, 1.55rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.trust-item span {
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.4;
}

@media (max-width: 620px) {
  .trust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-item { min-height: 88px; padding: 1rem; }
  .trust-item + .trust-item { border-left: 0; }
  .trust-item:nth-child(even) { border-left: 1px solid var(--line); }
  .trust-item:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ============ HERO — ÉNERGIE ABSTRAITE ============ */
.hero-motion {
  position: relative;
  width: min(100%, 500px);
  margin: 0;
  isolation: isolate;
}
.hero-motion::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 13% 8%;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--volt) 13%, transparent), transparent 68%);
  filter: blur(12px);
}
.hero-motion svg { overflow: visible; }
.energy-grid,
.energy-frame,
.energy-corner,
.energy-orbit,
.energy-flow,
.energy-rays {
  fill: none;
  vector-effect: non-scaling-stroke;
}
.energy-grid {
  stroke: var(--line);
  stroke-width: 1;
  opacity: .38;
  stroke-dasharray: 2 8;
}
.energy-frame {
  stroke: var(--line);
  stroke-width: 1;
  opacity: .72;
}
.energy-corner {
  stroke: var(--volt);
  stroke-width: 2;
  opacity: .9;
}
.energy-orbit {
  stroke: var(--wire);
  stroke-width: 1.5;
  opacity: .7;
}
.orbit-b { stroke-dasharray: 3 7; opacity: .45; }
.energy-flow {
  stroke: var(--volt);
  stroke-width: 3;
  stroke-linecap: square;
  stroke-dasharray: 9 91;
  filter: drop-shadow(0 0 5px var(--volt));
  animation: energy-travel 4.5s linear infinite;
}
.flow-b {
  stroke-width: 2;
  stroke-dasharray: 6 94;
  animation-duration: 6s;
  animation-direction: reverse;
  animation-delay: -2s;
}
@keyframes energy-travel { to { stroke-dashoffset: -100; } }
.energy-rays {
  stroke: var(--wire);
  stroke-width: 1.5;
  stroke-dasharray: 5 8;
  animation: energy-rays-pulse 3.2s ease-in-out infinite;
}
@keyframes energy-rays-pulse {
  0%, 100% { opacity: .28; }
  50% { opacity: .8; }
}
.energy-core-float {
  transform-box: fill-box;
  transform-origin: center;
  animation: energy-core-float 3.6s ease-in-out infinite;
}
@keyframes energy-core-float {
  0%, 100% { transform: translateY(-3px) scale(.98); }
  50% { transform: translateY(3px) scale(1.02); }
}
.energy-core-halo {
  fill: color-mix(in srgb, var(--volt) 8%, transparent);
  stroke: color-mix(in srgb, var(--volt) 35%, transparent);
  stroke-width: 1;
}
.energy-core-shell {
  fill: var(--surface);
  stroke: var(--line);
  stroke-width: 1.5;
  filter: drop-shadow(0 14px 25px rgba(22, 33, 44, .16));
}
.energy-core-inner { fill: #101826; stroke: #28394F; stroke-width: 1; }
.energy-bolt {
  fill: url(#energyCore);
  transform-origin: center;
  animation: energy-bolt-pulse 2.4s ease-in-out infinite;
}
@keyframes energy-bolt-pulse {
  0%, 100% { opacity: .82; transform: scale(.95); }
  50% { opacity: 1; transform: scale(1.04); }
}
.energy-nodes rect {
  fill: var(--volt);
  filter: drop-shadow(0 0 6px var(--volt));
  transform-box: fill-box;
  transform-origin: center;
  animation: energy-node-pulse 2.8s ease-in-out infinite;
}
.energy-nodes rect:nth-child(2) { animation-delay: -.7s; }
.energy-nodes rect:nth-child(3) { animation-delay: -1.4s; }
.energy-nodes rect:nth-child(4) { animation-delay: -2.1s; }
@keyframes energy-node-pulse {
  0%, 100% { opacity: .45; }
  50% { opacity: 1; }
}
.energy-label {
  fill: var(--muted);
  font: 600 10px/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  letter-spacing: 2px;
}
.energy-label-accent { fill: var(--volt-text); font-weight: 800; }

@media (max-width: 880px) {
  .hero-motion { margin-inline: auto; }
}

/* ============ HERO — CIRCUIT D'ÉCLAIRAGE SIMPLIFIÉ ============ */
.hero-simple-circuit {
  position: relative;
  width: min(100%, 500px);
  margin: 0;
}
.hero-simple-circuit::before {
  content: "";
  position: absolute;
  inset: 18% 5% 10% 22%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--volt) 12%, transparent), transparent 70%);
  filter: blur(14px);
}
.hero-simple-circuit svg { overflow: visible; }
.simple-grid,
.simple-wire,
.simple-current,
.simple-switch,
.simple-lamp,
.simple-lamp-cross,
.simple-source-mark {
  fill: none;
  vector-effect: non-scaling-stroke;
}
.simple-grid {
  stroke: var(--line);
  stroke-width: 1;
  stroke-dasharray: 2 9;
  opacity: .4;
}
.simple-kicker,
.simple-label,
.simple-conductor,
.simple-status text {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  letter-spacing: 1.8px;
}
.simple-kicker { fill: var(--volt-text); font-size: 10px; font-weight: 800; }
.simple-title { fill: var(--ink); font: 800 22px/1 system-ui, sans-serif; }
.simple-label { fill: var(--muted); font-size: 9px; font-weight: 700; }
.simple-conductor { fill: var(--muted); font-size: 13px; font-weight: 800; }
.phase-label { fill: var(--volt-text); }
.simple-wire {
  stroke: var(--wire);
  stroke-width: 2;
  stroke-linecap: square;
  stroke-linejoin: miter;
}
.simple-node { fill: var(--wire); }
.simple-switch {
  stroke: var(--wire);
  stroke-width: 3;
  stroke-linecap: square;
  transform-box: view-box;
  transform-origin: 170px 180px;
  animation: simple-switch-close 6s ease-in-out infinite;
}
@keyframes simple-switch-close {
  0%, 12%, 82%, 100% { transform: rotate(-23deg); stroke: var(--wire); }
  20%, 72% { transform: rotate(0); stroke: var(--volt); }
}
.simple-current {
  stroke: var(--volt);
  stroke-width: 3;
  stroke-linecap: square;
  stroke-dasharray: 10 90;
  filter: drop-shadow(0 0 5px var(--volt));
  animation: simple-current-flow 6s linear infinite;
}
.current-neutral { animation-delay: -.45s; }
@keyframes simple-current-flow {
  0%, 16% { opacity: 0; stroke-dashoffset: 0; }
  21% { opacity: 1; }
  69% { opacity: 1; stroke-dashoffset: -100; }
  75%, 100% { opacity: 0; stroke-dashoffset: -100; }
}
.simple-lamp {
  fill: var(--surface);
  stroke: var(--wire);
  stroke-width: 2;
  animation: simple-lamp-stroke 6s ease-in-out infinite;
}
.simple-lamp-cross {
  stroke: var(--wire);
  stroke-width: 2;
  animation: simple-lamp-stroke 6s ease-in-out infinite;
}
@keyframes simple-lamp-stroke {
  0%, 17%, 75%, 100% { stroke: var(--wire); }
  23%, 69% { stroke: var(--volt); }
}
.simple-lamp-glow {
  fill: var(--volt);
  filter: drop-shadow(0 0 18px var(--volt));
  transform-box: fill-box;
  transform-origin: center;
  animation: simple-lamp-on 6s ease-in-out infinite;
}
@keyframes simple-lamp-on {
  0%, 17%, 75%, 100% { opacity: 0; transform: scale(.6); }
  24%, 68% { opacity: .2; transform: scale(1); }
}
.simple-source-mark { stroke: var(--wire); stroke-width: 1.5; }
.simple-status rect {
  fill: var(--surface);
  stroke: var(--line);
  stroke-width: 1;
}
.simple-status circle { fill: var(--terre-a); }
.simple-status text { fill: var(--muted); font-size: 9px; font-weight: 800; }
.simple-status {
  animation: simple-status-on 6s ease-in-out infinite;
}
@keyframes simple-status-on {
  0%, 17%, 75%, 100% { opacity: .35; }
  24%, 68% { opacity: 1; }
}

@media (max-width: 880px) {
  .hero-simple-circuit { margin-inline: auto; }
}

/* Évite de solliciter le processeur graphique pour les animations hors écran. */
.hero-simple-circuit:not(.is-motion-visible) *,
.ticker:not(.is-motion-visible) .ticker-track,
.avis-rail:not(.is-motion-visible) .avis-track,
.climate-showcase:not(.is-motion-visible) .climate-air span {
  animation-play-state: paused !important;
}
