/* ==========================================================================
   D.E.S – Defive Électricité Solution
   Concept : plan de repérage d'un tableau électrique (Q1, Q2… / C1, C2…)
   ========================================================================== */

@font-face {
  font-family: "Sofia Sans Extra Condensed";
  src: url("assets/fonts/sofia-sans-extra-condensed.woff2") format("woff2");
  font-weight: 600 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Sofia Sans";
  src: url("assets/fonts/sofia-sans.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Martian Mono";
  src: url("assets/fonts/martian-mono.woff2") format("woff2");
  font-weight: 400 500; font-style: normal; font-display: swap;
}

:root {
  --paper: #F4F1EA;
  --paper-2: #ECE8DE;
  --card: #FBFAF6;
  --ink: #17181A;
  --ink-2: #4D5053;
  --line: #D9D4C8;
  --line-strong: #B3AD9F;
  --yellow: #F5C518;
  --yellow-hover: #FFD53D;
  --dark: #17181A;
  --dark-2: #212326;
  --dark-line: #34373B;
  --on-dark: #EEEBE4;
  --on-dark-2: #A7AAAD;

  --f-display: "Sofia Sans Extra Condensed", "Arial Narrow", sans-serif;
  --f-text: "Sofia Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Martian Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(88px, 11vw, 168px);
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: clamp(1.0625rem, .35vw + 1rem, 1.1875rem);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.section--dark :focus-visible, .site-footer :focus-visible, .nav.is-open :focus-visible { outline-color: var(--yellow); }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--radius); text-decoration: none; }
.skip:focus { top: 12px; }

.ico { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- Typo ---------- */
.h2 {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 5.2vw, 4.6rem);
  line-height: .92;
  letter-spacing: .002em;
  text-transform: uppercase;
  text-wrap: balance;
}

/* Étiquette de repérage + mini-disjoncteur */
.tag {
  display: inline-flex; align-items: center; gap: .7em;
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 1.6rem;
}
.tag__ref {
  color: var(--ink);
  font-weight: 500;
  padding: .28em .55em .22em;
  border: 1px solid var(--ink);
  border-radius: 2px;
  line-height: 1;
}
.brk {
  position: relative;
  width: 12px; height: 19px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  color: var(--ink);
  flex: none;
}
.brk::after {
  content: "";
  position: absolute; left: 2px; right: 2px; bottom: 2px; height: 6px;
  background: var(--line-strong);
  border-radius: 1px;
  transition: transform .6s var(--ease), background-color .6s var(--ease);
}
.tag.is-on .brk::after { transform: translateY(-7px); background: var(--yellow); box-shadow: 0 0 0 1px var(--ink); }

.tag--dark, .section--dark .tag { color: var(--on-dark-2); }
.section--dark .tag__ref { color: var(--on-dark); border-color: var(--on-dark-2); }
.section--dark .brk { color: var(--on-dark); }
.section--dark .brk::after { background: var(--dark-line); }
.section--dark .tag.is-on .brk::after { background: var(--yellow); box-shadow: none; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px;
  padding: .7em 1.3em;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  font-family: var(--f-text);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn--call { background: var(--yellow); color: var(--ink); border-color: var(--ink); }
.btn--call:hover { background: var(--yellow-hover); }
.btn--call:active { transform: translateY(1px); }
.btn--lg { min-height: 58px; padding: .9em 1.6em; font-size: 1.0625rem; }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: #2B2D31; }
.btn--ghost { background: transparent; color: var(--on-dark); border-color: var(--dark-line); min-height: 44px; font-size: .9375rem; }
.btn--ghost:hover { border-color: var(--on-dark); }
.btn--ghost-strong { border-color: var(--on-dark-2); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: border-color .25s var(--ease);
}
.link-arrow::after { content: "↓"; transition: transform .3s var(--ease); }
.link-arrow:hover { border-color: var(--ink); }
.link-arrow:hover::after { transform: translateY(2px); }

.linklike { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }

/* ---------- Barre de progression (courant) ---------- */
.progress {
  position: fixed; top: 0; left: 0; right: 0; z-index: 55;
  height: 3px;
  background: var(--yellow);
  transform-origin: left; transform: scaleX(0);
  pointer-events: none;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), transform .4s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__in { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: block; flex: none; }
.brand img { height: 36px; width: auto; }

.nav { display: flex; align-items: center; margin-left: auto; }
.nav__list { display: flex; gap: clamp(16px, 2.2vw, 32px); }
.nav__list a {
  position: relative;
  font-weight: 600; font-size: .9375rem;
  text-decoration: none;
  padding-block: 8px;
}
.nav__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px;
  background: var(--yellow);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav__list a:hover::after, .nav__list a[aria-current="true"]::after { transform: scaleX(1); }
.nav__call { display: none; }
.header-call { flex: none; }
.header-call__short { display: none; }
.burger { display: none; }

@media (max-width: 1040px) {
  .nav {
    position: fixed; inset: 0; z-index: 60;
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 40px;
    margin: 0; padding: 96px var(--gutter) 40px;
    background: var(--dark); color: var(--on-dark);
    opacity: 0; visibility: hidden;
    transition: opacity .3s var(--ease), visibility 0s linear .3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transition: opacity .3s var(--ease); }
  .nav__list { flex-direction: column; gap: 6px; }
  .nav__list a { font-family: var(--f-display); font-weight: 800; font-size: clamp(2.4rem, 10vw, 3.4rem); text-transform: uppercase; line-height: 1.05; }
  .nav__call { display: inline-flex; min-height: 56px; font-size: 1.0625rem; }
  .nav.is-open .nav__list li { animation: navIn .45s var(--ease) both; }
  .nav.is-open .nav__list li:nth-child(2) { animation-delay: .03s; }
  .nav.is-open .nav__list li:nth-child(3) { animation-delay: .06s; }
  .nav.is-open .nav__list li:nth-child(4) { animation-delay: .09s; }
  .nav.is-open .nav__list li:nth-child(5) { animation-delay: .12s; }
  .nav.is-open .nav__list li:nth-child(6) { animation-delay: .15s; }

  .header-call { margin-left: auto; }
  .burger {
    display: grid; place-items: center;
    width: 48px; height: 48px;
    background: none; border: 1.5px solid var(--ink); border-radius: var(--radius);
    cursor: pointer;
    position: relative; z-index: 70;
  }
  .burger__bars, .burger__bars::before, .burger__bars::after {
    display: block; width: 20px; height: 2px; background: currentColor;
    transition: transform .3s var(--ease), background-color .2s;
  }
  .burger__bars { position: relative; }
  .burger__bars::before, .burger__bars::after { content: ""; position: absolute; left: 0; }
  .burger__bars::before { top: -6px; }
  .burger__bars::after { top: 6px; }
  .burger[aria-expanded="true"] { color: var(--on-dark); border-color: var(--on-dark-2); }
  .burger[aria-expanded="true"] .burger__bars { background: transparent; }
  .burger[aria-expanded="true"] .burger__bars::before { transform: translateY(6px) rotate(45deg); }
  .burger[aria-expanded="true"] .burger__bars::after { transform: translateY(-6px) rotate(-45deg); }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 560px) {
  :root { --header-h: 66px; }
  .brand img { height: 28px; }
  .header-call__num { display: none; }
  .header-call__short { display: inline; }
  .header-call { min-height: 44px; padding-inline: .9em; }
  .burger { width: 44px; height: 44px; }
}
@keyframes navIn { from { opacity: 0; transform: translateY(12px); } }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(40px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: end;
}
.hero__title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 6.6vw, 6.4rem);
  line-height: .88;
  text-transform: uppercase;
  letter-spacing: -.004em;
  text-wrap: balance;
}
.mark {
  background: linear-gradient(var(--yellow), var(--yellow)) no-repeat 0 88% / 100% .28em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  padding-inline: .04em;
}
.nowrap { white-space: nowrap; }
.js .hero__title .mark { animation: markIn .9s var(--ease) .35s both; }
@keyframes markIn { from { background-size: 0% .28em; } }
.hero__lead { margin-top: 1.8rem; max-width: 34ch; color: var(--ink-2); font-size: clamp(1.125rem, .6vw + 1rem, 1.3125rem); line-height: 1.5; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; margin-top: 2.4rem; }

.hero__photo { position: relative; justify-self: end; width: 100%; max-width: 440px; }
.hero__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); background: var(--paper-2); }
.plate {
  position: absolute; left: -28px; bottom: 28px;
  max-width: 250px;
  background: var(--card);
  border: 1px solid var(--ink);
  border-radius: 2px;
  padding: 12px 14px;
  box-shadow: 4px 4px 0 var(--ink);
  display: flex; align-items: center; gap: 14px;
}
.plate__k { display: block; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.plate__v { display: block; margin-top: 4px; font-weight: 600; font-size: .9375rem; line-height: 1.35; }

.pillars {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(56px, 8vw, 112px);
  border-top: 1.5px solid var(--ink);
}
.pillars li { display: grid; gap: 2px; padding: 22px 24px 0 0; }
.pillars li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.pillars__n { font-family: var(--f-mono); font-size: .7rem; color: var(--ink-2); margin-bottom: 6px; }
.pillars strong { font-family: var(--f-display); font-weight: 700; font-size: 1.6rem; line-height: 1; text-transform: uppercase; }
.pillars li > span:last-child { color: var(--ink-2); font-size: .9375rem; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__photo { justify-self: start; max-width: 520px; }
  .plate { left: auto; right: 16px; bottom: 16px; }
}
@media (max-width: 700px) {
  .pillars { grid-template-columns: 1fr; }
  .pillars li, .pillars li + li { padding: 18px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .hero__actions .btn { width: 100%; }
}

/* ---------- Head de section ---------- */
.head { margin-bottom: clamp(48px, 6vw, 80px); }
.head--split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 24px 64px; align-items: end; }
.head__lead { color: var(--ink-2); max-width: 42ch; }
.head__lead a { color: var(--ink); font-weight: 600; }
@media (max-width: 800px) { .head--split { grid-template-columns: 1fr; } }

/* ---------- Services (circuits) ---------- */
.services { background: var(--card); border-block: 1px solid var(--line); }
.circuits { border-top: 1.5px solid var(--ink); }
.circuit {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 12px 40px;
  padding: 36px 0 38px;
  border-bottom: 1px solid var(--line);
}
.circuit::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 3px; width: 100%;
  background: var(--yellow);
  transform: scaleX(0); transform-origin: left;
  transition: transform .6s var(--ease);
}
.circuit:hover::before { transform: scaleX(1); }
.circuit__ref {
  position: relative; z-index: 1;
  width: 16px; height: 16px;
  margin-top: .55rem;
  align-self: start;
  justify-self: center;
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  transition: background-color .15s linear, box-shadow .15s linear;
}
.circuit__title { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: .95; text-transform: uppercase; }
.circuit__list li { position: relative; padding-left: 22px; color: var(--ink-2); }
.circuit__list li + li { margin-top: 6px; }
.circuit__list li::before { content: ""; position: absolute; left: 0; top: .78em; width: 10px; height: 1.5px; background: var(--ink); }
.circuit > .circuit__cta { grid-column: 3; justify-self: start; margin-top: 4px; }
.circuit__cta {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--f-mono); font-size: .7rem; letter-spacing: .05em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  padding: 6px 0; border-bottom: 1px solid var(--line-strong);
  transition: border-color .25s var(--ease);
}
.circuit__cta::after { content: "→"; transition: transform .3s var(--ease); }
.circuit__cta:hover { border-color: var(--ink); }
.circuit__cta:hover::after { transform: translateX(3px); }
.care .circuit__cta { margin-top: 18px; }

/* Fil électrique qui alimente les circuits au scroll */
.circuits-wrap { position: relative; }
.bus { display: none; }
.js .bus {
  display: block;
  position: absolute; left: 19px; width: 2px;
  top: 0; height: 0;
  background: repeating-linear-gradient(to bottom, var(--line-strong) 0 4px, transparent 4px 8px);
  pointer-events: none;
}
.bus__flow {
  position: absolute; left: 0; top: 0; width: 2px; height: 0;
  background: var(--yellow);
  box-shadow: 0 0 6px rgba(245, 197, 24, .8);
}
.bus__flow::after {
  content: ""; position: absolute; left: 50%; bottom: -4px;
  width: 8px; height: 8px; margin-left: -4px; border-radius: 50%;
  background: #FFF6CF;
  box-shadow: 0 0 0 2px var(--yellow), 0 0 14px 4px rgba(245, 197, 24, .75);
  opacity: 0; transition: opacity .3s;
}
.bus.is-flowing .bus__flow::after { opacity: 1; }
.js .circuit__title, .js .circuit__list, .js .circuit > .circuit__cta { transition: opacity .15s linear; }
.js .circuit:not(.is-live) .circuit__title { opacity: .28; }
.js .circuit:not(.is-live) .circuit__list, .js .circuit:not(.is-live) > .circuit__cta { opacity: .38; }
.circuit.is-live .circuit__ref { background: var(--yellow); box-shadow: 0 0 0 4px rgba(245, 197, 24, .25), 0 0 10px rgba(245, 197, 24, .7); }
.services__note { margin-top: 32px; font-family: var(--f-mono); font-size: .75rem; line-height: 1.7; color: var(--ink-2); letter-spacing: .02em; }
@media (max-width: 800px) {
  .circuit { grid-template-columns: 40px minmax(0, 1fr); gap: 14px 18px; padding: 28px 0 30px; }
  .circuit__title, .circuit__list, .circuit > .circuit__cta { grid-column: 2; }
}

/* ---------- À propos ---------- */
.about__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.about__num {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(9rem, 24vw, 21rem);
  line-height: .78;
  letter-spacing: -.02em;
  color: var(--ink);
  position: sticky; top: calc(var(--header-h) + 40px);
}
.about__num span {
  display: block;
  font-family: var(--f-mono); font-weight: 400;
  font-size: .8rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-2);
  margin-top: 24px;
}
.about__num span::before { content: ""; display: inline-block; width: 28px; height: 10px; margin-right: 10px; background: var(--yellow); border: 1px solid var(--ink); vertical-align: -1px; }
.about__lead { margin-top: 1.8rem; font-size: clamp(1.125rem, .5vw + 1rem, 1.3125rem); max-width: 46ch; }
.values { margin-top: clamp(40px, 5vw, 64px); display: grid; gap: 0; border-top: 1px solid var(--line); }
.values > div { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.values dt { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; padding-top: .3em; }
.values dd { color: var(--ink-2); }
@media (max-width: 800px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__num { position: static; }
  .values > div { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- Avant / après (sombre) ---------- */
.section--dark { background: var(--dark); color: var(--on-dark); }
.ba__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 112px); align-items: center; }
.ba__viewer { max-width: 520px; width: 100%; }
.ba__lead { margin-top: 1.6rem; color: var(--on-dark-2); max-width: 40ch; }

.compare {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--dark-2);
  user-select: none;
  touch-action: pan-y;
}
.compare__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__img--after { clip-path: inset(0 0 0 var(--pos)); }
.compare__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos);
  width: 2px; margin-left: -1px;
  background: var(--yellow);
  pointer-events: none;
}
.compare__handle::after {
  content: "‹ ›";
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--yellow); color: var(--ink);
  font-weight: 700; font-size: 1rem; letter-spacing: .1em;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}
.compare__label {
  position: absolute; top: 14px;
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase;
  background: var(--dark); color: var(--on-dark);
  padding: .45em .7em .4em; border-radius: 2px;
  pointer-events: none;
}
.compare__label--l { left: 14px; }
.compare__label--r { right: 14px; background: var(--yellow); color: var(--ink); }
.compare__range {
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: ew-resize;
  -webkit-appearance: none; appearance: none;
}
.compare:has(.compare__range:focus-visible) { outline: 2px solid var(--yellow); outline-offset: 4px; }

.steps { margin-top: clamp(32px, 4vw, 48px); counter-reset: step; border-top: 1px solid var(--dark-line); }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 48px 1fr; gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--dark-line);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--f-mono); font-size: .75rem; color: var(--yellow);
  padding-top: .35em;
}
@media (max-width: 900px) {
  .ba__grid { grid-template-columns: 1fr; }
  .ba__viewer { max-width: 560px; }
}

/* ---------- Chantiers ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: -16px 0 32px; }
.chip {
  font-size: .9375rem; font-weight: 600; line-height: 1.3;
  padding: .45em .95em;
  background: transparent; color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: 999px;
  cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip[aria-pressed="true"]::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--yellow); vertical-align: 1px; }
.works__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: row dense;
  gap: clamp(28px, 3vw, 40px) clamp(16px, 2.4vw, 32px);
}
.work[hidden] { display: none; }
.work--wide { grid-column: span 2; }
.work img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); background: var(--paper-2); }
.work__zoom { aspect-ratio: 3 / 4; }
.work--wide .work__zoom { aspect-ratio: auto; height: calc(100% - 0px); }
.work--wide img { aspect-ratio: auto; height: 100%; }
.work { display: grid; grid-template-rows: auto 1fr; }
.work--wide { grid-template-rows: minmax(0, 1fr) auto; }
.work figcaption { margin-top: 14px; color: var(--ink-2); font-size: .9375rem; max-width: 46ch; }
.work figcaption strong {
  display: block; margin-bottom: 4px;
  font-family: var(--f-mono); font-weight: 500; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink);
}
.work__desc { display: block; }
.works__count:empty { display: none; }
.works__count { margin-top: 24px; font-family: var(--f-mono); font-size: .7rem; color: var(--ink-2); }
@media (max-width: 900px) {
  .works__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .chips { margin-top: -24px; flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { white-space: nowrap; }
  .works__grid { gap: 22px 12px; }
  .work--wide .work__zoom { aspect-ratio: 16 / 10; height: auto; }
  .work figcaption { font-size: .875rem; margin-top: 10px; }
  .work__desc { display: none; }
  .lb .work__desc { display: block; }
}

/* ---------- Maintenance ---------- */
.care { background: var(--paper-2); }
.care__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.care__photo img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; border-radius: var(--radius); }
.care__lead { margin-top: 1.6rem; color: var(--ink-2); max-width: 44ch; }
.checks { margin-top: 32px; display: grid; gap: 12px; }
.checks li {
  display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.checks li::before {
  content: "";
  width: 22px; height: 22px; margin-top: 2px;
  border-radius: 50%;
  background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%2317181A' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  border: 1px solid var(--ink);
}
.care__end { margin-top: 28px; font-weight: 700; }
@media (max-width: 900px) {
  .care__grid { grid-template-columns: 1fr; }
  .care__photo img { aspect-ratio: 16 / 10; }
}

/* ---------- Avis ---------- */
.reviews__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 0 clamp(32px, 6vw, 96px);
}
.review { padding: 28px 0; border-top: 1px solid var(--line); }
.review--main { grid-row: span 2; border-top: 1.5px solid var(--ink); padding-top: 36px; }
.review blockquote p { font-size: 1.0625rem; line-height: 1.55; }
.review--main blockquote p {
  font-weight: 500;
  font-size: clamp(1.4rem, 2.1vw, 1.95rem);
  line-height: 1.35;
  letter-spacing: -.005em;
  text-wrap: pretty;
}
.review figcaption { margin-top: 18px; font-family: var(--f-mono); font-size: .75rem; letter-spacing: .04em; color: var(--ink-2); }
.review figcaption::before { content: "— "; }
.stars { display: flex; gap: 4px; margin-bottom: 18px; }
.stars i { position: relative; width: 20px; height: 20px; background: var(--ink); clip-path: polygon(50% 0%, 61.8% 35.4%, 100% 35.4%, 69.1% 57.3%, 80.9% 91.2%, 50% 70%, 19.1% 91.2%, 30.9% 57.3%, 0% 35.4%, 38.2% 35.4%); }
.stars i::after { content: ""; position: absolute; inset: 2.2px 2px 2.6px; background: var(--yellow); clip-path: polygon(50% 0%, 61.8% 35.4%, 100% 35.4%, 69.1% 57.3%, 80.9% 91.2%, 50% 70%, 19.1% 91.2%, 30.9% 57.3%, 0% 35.4%, 38.2% 35.4%); }
.reviews__src { margin-top: 40px; font-family: var(--f-mono); font-size: .7rem; color: var(--ink-2); }
@media (max-width: 800px) {
  .reviews__grid { grid-template-columns: 1fr; }
  .review--main { grid-row: auto; }
}

/* ---------- Zone ---------- */
.zone { border-top: 1px solid var(--line); }
.zone__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.zone__lead { margin-top: 1.6rem; color: var(--ink-2); max-width: 44ch; }
.towns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.town {
  font-size: .9375rem; font-weight: 600; line-height: 1.3;
  padding: .4em .8em;
  background: transparent; color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.town:hover { border-color: var(--ink); }
.town.is-base { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.town.is-base::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--yellow); vertical-align: 1px; }
.town.is-hot:not(.is-base), .town[aria-pressed="true"]:not(.is-base) { background: var(--yellow); border-color: var(--ink); }
.town.is-base[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--yellow); }
.map__hl rect { transition: opacity .2s, stroke-width .2s; stroke: var(--ink); stroke-width: 0; }
.map__hl rect.is-hot, .map__hl rect.is-pinned { opacity: 1; stroke-width: 2; }
.zone__more { margin-top: 18px; color: var(--ink-2); }

.map { width: 100%; max-width: 560px; justify-self: end; }
.map__frame { position: relative; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.map__frame img { width: 100%; }
.map__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map__hl rect { fill: var(--yellow); opacity: .72; mix-blend-mode: multiply; }
.map__lbl { font-family: "Noto Sans", var(--f-text); font-size: 11px; fill: #2E2F31; paint-order: stroke; stroke: #EEEAE2; stroke-width: 3px; stroke-linejoin: round; }
.map__base rect { fill: none; stroke: var(--ink); stroke-width: 2; }
.map__tag {
  position: absolute; transform: translate(-50%, calc(-100% - 8px));
  font-family: var(--f-mono); font-size: .64rem; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  background: var(--ink); color: var(--paper); padding: .45em .65em .4em; border-radius: 2px;
  pointer-events: none;
}
.map__tag::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -5px; border: 5px solid transparent; border-top-color: var(--ink); }
.map__cap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin-top: 14px; font-size: .875rem; color: var(--ink-2); }
.map__cap a { color: var(--ink); font-weight: 600; }
.map__cap small { flex-basis: 100%; font-family: var(--f-mono); font-size: .64rem; }
.map__cap small a { font-weight: 400; color: var(--ink-2); }
.map__key { display: inline-block; width: 22px; height: 12px; margin-right: 8px; border-radius: 2px; background: var(--yellow); opacity: .8; vertical-align: -1px; }
.map.is-visible .map__hl rect { animation: hlIn .55s var(--ease) backwards; animation-delay: var(--d, 0s); }
@keyframes hlIn { from { opacity: 0; transform: scaleX(.3); } }
.map__hl rect { transform-box: fill-box; transform-origin: left center; }
@media (max-width: 900px) {
  .zone__grid { grid-template-columns: 1fr; }
  .map { justify-self: start; }
}

/* ---------- Contact ---------- */
.contact { background: var(--card); border-top: 1px solid var(--line); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 7vw, 112px); align-items: start; }
.contact__lead { margin-top: 1.6rem; color: var(--ink-2); max-width: 38ch; }
.bigcall {
  display: block;
  margin-top: 40px;
  padding: 24px 28px 26px;
  background: var(--yellow);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--ink);
  text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  max-width: 460px;
}
.bigcall:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.bigcall:active { transform: translate(3px, 3px); box-shadow: 3px 3px 0 var(--ink); }
.bigcall__k { display: block; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.bigcall__num { display: block; margin-top: 4px; font-family: var(--f-display); font-weight: 800; font-size: clamp(2.8rem, 6vw, 4.2rem); line-height: 1; letter-spacing: .01em; white-space: nowrap; }
.copy {
  display: none;
  margin-top: 14px;
  background: none; border: 0; padding: 4px 0;
  font-family: var(--f-mono); font-size: .7rem; letter-spacing: .05em; text-transform: uppercase;
  color: var(--ink-2); cursor: pointer;
  text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 1px;
}
.copy:hover { color: var(--ink); }
.copy.is-done { color: #1D6B3A; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .copy { display: block; } }
.fb { display: inline-flex; align-items: center; gap: .5em; margin-top: 32px; font-weight: 600; }

.form { display: grid; gap: 18px; }
.form__title { font-family: var(--f-display); font-weight: 700; font-size: 1.7rem; line-height: 1; text-transform: uppercase; margin-bottom: 6px; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { font-weight: 600; font-size: .9375rem; }
.field__opt { font-weight: 400; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2317181A' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px;
  padding-right: 40px;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-2); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--yellow); }
.field [aria-invalid="true"] { border-color: #A3261B; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: .9063rem; color: var(--ink-2); }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); }
.consent a { color: var(--ink); }
.form__req { font-size: .8125rem; color: var(--ink-2); }
.form .btn { justify-self: start; min-width: 220px; }
.form__status { min-height: 1.5em; font-weight: 600; }
.form__status.is-ok { color: #1D6B3A; }
.form__status.is-err { color: #A3261B; }
.form__status.is-info { color: var(--ink); font-weight: 500; padding: 12px 14px; background: var(--paper-2); border-left: 3px solid var(--yellow); border-radius: 2px; }
@media (max-width: 900px) {
  .contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .form .btn { width: 100%; }
  .bigcall { padding: 20px 20px 22px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: var(--on-dark-2); padding-top: clamp(64px, 8vw, 96px); font-size: .9375rem; }
.site-footer a { color: var(--on-dark); }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 40px; }
.site-footer__brand img { height: 40px; width: auto; margin-bottom: 18px; }
.site-footer__k { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--on-dark); margin-bottom: 12px; }
.site-footer__col ul { display: grid; gap: 6px; }
.site-footer .linklike { color: var(--on-dark); font-size: inherit; }
.site-footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 56px; padding-block: 24px; border-top: 1px solid var(--dark-line); font-size: .8125rem; }
@media (max-width: 800px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}

/* ---------- Barre d'appel mobile ---------- */
.callbar { display: none; }
@media (max-width: 700px) {
  .callbar {
    display: flex; align-items: center; justify-content: center; gap: .55em;
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 40;
    min-height: 54px;
    background: var(--yellow); color: var(--ink);
    border: 1.5px solid var(--ink); border-radius: var(--radius);
    box-shadow: 0 6px 20px rgba(23, 24, 26, .25);
    font-weight: 700; text-decoration: none;
    transform: translateY(160%);
    transition: transform .4s var(--ease);
  }
  .callbar.is-shown { transform: none; }
  .site-footer__bottom { padding-bottom: 96px; }
}

/* ---------- Cookies ---------- */
.cookie {
  position: fixed; z-index: 80;
  left: 16px; bottom: 16px;
  width: min(440px, calc(100% - 32px));
  background: var(--dark); color: var(--on-dark);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .3);
  font-size: .9375rem;
}
.cookie[hidden] { display: none; }
.cookie__title { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--yellow); margin-bottom: 8px; }
.cookie__text { color: var(--on-dark-2); }
.cookie__text a { color: var(--on-dark); }
.cookie__opts { display: grid; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--dark-line); }
.cookie__opts[hidden] { display: none; }
.switch { display: flex; gap: 10px; align-items: center; }
.switch input { width: 18px; height: 18px; accent-color: var(--yellow); }
.cookie__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.cookie__btns .btn { flex: 1 1 auto; }
.cookie :focus-visible { outline-color: var(--yellow); }

/* ---------- Apparitions ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .circuits .reveal:nth-child(2) { transition-delay: .06s; }
.js .circuits .reveal:nth-child(3) { transition-delay: .12s; }
.js .circuits .reveal:nth-child(4) { transition-delay: .18s; }

/* ---------- Pages secondaires (légal, 404) ---------- */
.page { padding-block: clamp(56px, 8vw, 112px) var(--section); }
.page__in { max-width: 760px; }
.page h1 { font-family: var(--f-display); font-weight: 800; font-size: clamp(2.8rem, 6vw, 4.6rem); line-height: .92; text-transform: uppercase; margin-bottom: 12px; }
.page__meta { font-family: var(--f-mono); font-size: .72rem; color: var(--ink-2); margin-bottom: 48px; }
.page h2 { font-family: var(--f-display); font-weight: 800; font-size: 1.9rem; line-height: 1; text-transform: uppercase; margin: 48px 0 14px; padding-top: 20px; border-top: 1px solid var(--line); }
.page p, .page ul { margin-bottom: 14px; color: var(--ink-2); }
.page ul { padding-left: 1.2em; list-style: disc; }
.page li + li { margin-top: 4px; }
.page strong { color: var(--ink); }
.page a { color: var(--ink); font-weight: 600; }
.todo { background: #FFF0B3; color: var(--ink); padding: 0 .3em; border-radius: 2px; font-family: var(--f-mono); font-size: .85em; }
.back { display: inline-flex; margin-bottom: 32px; font-weight: 600; text-decoration: none; }
.back::before { content: "←"; margin-right: .5em; }

.nf { min-height: calc(100vh - var(--header-h)); display: grid; align-items: center; padding-block: 64px; }
.nf__code { font-family: var(--f-display); font-weight: 800; font-size: clamp(8rem, 26vw, 18rem); line-height: .8; }
.nf__code span { display: inline-block; background: var(--yellow); border: 1.5px solid var(--ink); padding: 0 .08em; }
.nf h1 { font-family: var(--f-display); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: .95; text-transform: uppercase; margin: 32px 0 14px; }
.nf p { color: var(--ink-2); max-width: 44ch; }
.nf__actions { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; margin-top: 32px; }


/* ---------- Étapes pilotées par le comparateur ---------- */
.compare__hint { margin-top: 14px; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; color: var(--on-dark-2); }
.compare__hint::before { content: "← → "; color: var(--yellow); }
.steps__meter { margin-top: 28px; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; color: var(--on-dark-2); }
.steps__count { color: var(--yellow); font-weight: 500; }
.steps__meter + .steps { margin-top: 12px; }
.js .steps li { color: var(--on-dark-2); transition: color .35s var(--ease); }
.js .steps li::before { color: #5E6268; transition: color .35s var(--ease); }
.js .steps li.is-done { color: var(--on-dark); }
.js .steps li.is-done::before { color: var(--yellow); text-shadow: 0 0 10px rgba(245, 197, 24, .6); }

/* ---------- Compteur 14 ans ---------- */
.about__count { font-weight: inherit; font-variant-numeric: tabular-nums; }

/* ---------- Étoiles-voyants ---------- */
.js .review .stars i::after { background: var(--card); transition: background-color .6s var(--ease); }
.js .review.is-visible .stars i::after { background: var(--yellow); transition-delay: .4s; }
.js .review.is-visible .stars i:nth-child(2)::after { transition-delay: .85s; }
.js .review.is-visible .stars i:nth-child(3)::after { transition-delay: 1.3s; }
.js .review.is-visible .stars i:nth-child(4)::after { transition-delay: 1.75s; }
.js .review.is-visible .stars i:nth-child(5)::after { transition-delay: 2.2s; }

/* ---------- Coches maintenance ---------- */
.js .checks li::before { transform: scale(0); transition: transform .45s cubic-bezier(.3, 1.6, .5, 1); }
.js .checks.is-visible li::before { transform: none; }
.js .checks.is-visible li:nth-child(2)::before { transition-delay: .18s; }
.js .checks.is-visible li:nth-child(3)::before { transition-delay: .36s; }
.js .checks.is-visible li:nth-child(4)::before { transition-delay: .54s; }

/* ---------- Photos agrandissables ---------- */
.work__zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; position: relative; }
.work__zoom img { transform: translate3d(0, var(--py, 0px), 0) scale(var(--zs, 1)); transition: transform .8s var(--ease); }
.js .work__zoom img { --zs: 1.1; transition: transform .25s linear; }
.work__zoom:hover img { --zs: 1.14; }
.work__zoom::after {
  content: "+"; position: absolute; right: 12px; bottom: 12px;
  width: 36px; height: 36px; display: grid; place-items: center;
  background: var(--card); color: var(--ink); border: 1px solid var(--ink); border-radius: 50%;
  font-size: 1.3rem; line-height: 1;
  opacity: 0; transform: translateY(6px); transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.work__zoom:hover::after, .work__zoom:focus-visible::after { opacity: 1; transform: none; }

.lb { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(17, 18, 20, .94); color: var(--on-dark); }
.lb::backdrop { background: transparent; }
.lb[open] { display: grid; place-items: center; animation: lbIn .3s var(--ease); }
@keyframes lbIn { from { opacity: 0; } }
.lb__fig { display: grid; justify-items: center; gap: 14px; padding: 64px 72px 48px; max-width: 100%; }
.lb__img { max-width: min(92vw, 900px); max-height: calc(100vh - 170px); width: auto; height: auto; object-fit: contain; border-radius: var(--radius); }
.lb__cap { max-width: 60ch; text-align: center; font-size: .9375rem; color: var(--on-dark-2); }
.lb__cap strong { display: block; font-family: var(--f-mono); font-weight: 500; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--yellow); margin-bottom: 4px; }
.lb__btn { position: absolute; width: 48px; height: 48px; display: grid; place-items: center; background: var(--dark-2); color: var(--on-dark); border: 1px solid var(--dark-line); border-radius: 50%; font-size: 1.1rem; cursor: pointer; transition: border-color .2s, background-color .2s; }
.lb__btn:hover { border-color: var(--yellow); }
.lb__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb__close { right: 16px; top: 16px; }
.lb__count { position: absolute; left: 20px; top: 28px; font-family: var(--f-mono); font-size: .72rem; color: var(--on-dark-2); }
.lb :focus-visible { outline-color: var(--yellow); }
@media (max-width: 700px) {
  .lb__fig { padding: 72px 12px 96px; }
  .lb__prev, .lb__next { top: auto; bottom: 20px; transform: none; }
  .lb__prev { left: calc(50% - 60px); }
  .lb__next { right: calc(50% - 60px); }
}

/* ---------- Formulaire : message extensible ---------- */
.field textarea { field-sizing: content; max-height: 420px; }
.field textarea::placeholder { color: #8B8E90; }

/* ---------- Plaque du portrait ---------- */
.plate__txt { min-width: 0; }
.plate { z-index: 2; }

/* ---------- 2. Atouts branchés en série ---------- */
.pillars { position: relative; }
.js .pillars::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1.5px; height: 1.5px;
  background: var(--yellow);
  box-shadow: 0 0 8px rgba(245, 197, 24, .7);
  transform: scaleX(0); transform-origin: left;
  animation: wireRun 1.5s var(--ease) .9s forwards;
}
@keyframes wireRun { to { transform: scaleX(1); } }
.pillars__n { display: inline-flex; align-items: center; gap: 8px; }
.pillars__n::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--yellow); border: 1px solid var(--ink);
}
.js .pillars__n::before { background: var(--paper-2); animation: ledOn .3s linear forwards; }
.js .pillars li:nth-child(1) .pillars__n::before { animation-delay: 1s; }
.js .pillars li:nth-child(2) .pillars__n::before { animation-delay: 1.45s; }
.js .pillars li:nth-child(3) .pillars__n::before { animation-delay: 1.9s; }
@keyframes ledOn { to { background: var(--yellow); box-shadow: 0 0 8px rgba(245, 197, 24, .8); } }
@media (max-width: 700px) {
  .js .pillars::before { display: none; }
}

/* ---------- 3. Témoins des valeurs ---------- */
.values dt { display: flex; align-items: flex-start; gap: 10px; }
.values dt::before {
  content: ""; flex: none; width: 10px; height: 10px; margin-top: .15em; border-radius: 50%;
  background: var(--yellow); border: 1px solid var(--ink);
}
.js .values > div dt::before { background: var(--paper-2); transition: background-color .4s var(--ease) .35s, box-shadow .4s var(--ease) .35s; }
.js .values > div.is-visible dt::before { background: var(--yellow); box-shadow: 0 0 8px rgba(245, 197, 24, .8); }

/* ---------- 5. Légendes tapées ---------- */
.typed.is-typing::after { content: ""; display: inline-block; width: .55em; height: 1em; margin-left: 2px; background: var(--ink); vertical-align: -2px; animation: caret .6s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.lb .typed.is-typing::after { display: none; }

/* ---------- 7. Zoom du plan ---------- */
.map__canvas { position: relative; transform-origin: 0 0; transition: transform .7s var(--ease); will-change: transform; }
.map__frame.is-zoomed .map__tag { font-size: .5rem; }
.map__reset {
  position: absolute; right: 12px; top: 12px; z-index: 3;
  min-height: 36px; padding: 0 14px;
  background: var(--ink); color: var(--paper);
  border: 0; border-radius: 999px;
  font-family: var(--f-mono); font-size: .66rem; letter-spacing: .05em; text-transform: uppercase;
  cursor: pointer;
}
.map__reset[hidden] { display: none; }
.map__reset::before { content: "⤢ "; }
.map__frame { cursor: default; }
.map__frame.is-zoomed { cursor: zoom-out; }

/* ---------- 8. Bloc téléphone sous tension ---------- */
@property --arc { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.bigcall { position: relative; }
.bigcall::after {
  content: ""; position: absolute; inset: -6px; padding: 3px;
  border-radius: 8px;
  background: conic-gradient(from var(--arc), transparent 0 70%, rgba(245, 197, 24, .2) 78%, var(--yellow) 88%, #FFF3C0 90%, transparent 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .3s var(--ease);
  pointer-events: none;
}
.bigcall:hover::after, .bigcall:focus-visible::after { opacity: 1; animation: arcRun 1.6s linear infinite; }
@keyframes arcRun { to { --arc: 360deg; } }

/* ---------- 9. Jauge du formulaire ---------- */
.meter { display: grid; gap: 8px; }
.meter__bar { display: block; height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.meter__fill { display: block; height: 100%; width: 100%; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.meter__txt { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .04em; color: var(--ink-2); }
.meter__n { font-weight: 500; color: var(--ink); }
.meter.is-full .meter__fill { box-shadow: 0 0 8px rgba(245, 197, 24, .8); }
.meter[hidden] { display: none; }
.form__send { transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease); }
.form__send.is-ready { background: var(--yellow); color: var(--ink); border-color: var(--ink); }
.form__send.is-ready:hover { background: var(--yellow-hover); }

/* ---------- 10. Ampoule du logo ---------- */
.flogo { position: relative; display: inline-block; }
.flogo img { position: relative; z-index: 1; }
.flogo__glow {
  position: absolute; left: 18px; top: 17px; z-index: 0;
  width: 64px; height: 64px; margin: -32px 0 0 -32px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 80, .75), rgba(245, 197, 24, .25) 45%, transparent 70%);
  opacity: 0; transform: scale(.6);
  pointer-events: none;
}
.flogo.is-on .flogo__glow { animation: bulbOn 1.4s var(--ease) forwards; }
@keyframes bulbOn { 0% { opacity: 0; transform: scale(.6); } 30% { opacity: 1; transform: scale(1.15); } 100% { opacity: .65; transform: scale(1); } }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .circuit:not(.is-live) .circuit__title, .js .circuit:not(.is-live) .circuit__list, .js .circuit:not(.is-live) > .circuit__cta { opacity: 1; }
  .progress { display: none; }
  .js .pillars::before { transform: none; }
  .js .pillars__n::before, .js .values > div dt::before { background: var(--yellow); }
  .flogo .flogo__glow { opacity: .65; transform: none; }
}
.link-arrow--home::after { content: "→"; }
.link-arrow--home:hover::after { transform: translateX(3px); }

/* ---------- Avant / après : sélecteur de réalisations ---------- */
.ba__h3 { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: .98; text-transform: uppercase; color: var(--yellow); margin-top: clamp(28px, 3vw, 40px); text-wrap: balance; }
.ba__panel .ba__lead { margin-top: 1rem; }
.ba__panel[hidden] { display: none; }
.js .ba__panel:not([hidden]) { animation: panelIn .45s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } }
.ba__tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
.ba__tab {
  position: relative; display: block; width: 100%; padding: 0;
  background: var(--dark-2); border: 1.5px solid var(--dark-line); border-radius: var(--radius);
  overflow: hidden; cursor: pointer;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.ba__tab img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; opacity: .55; filter: grayscale(.6); transition: opacity .25s var(--ease), filter .25s var(--ease); }
.ba__tab:hover img { opacity: .85; filter: none; }
.ba__tab:hover { border-color: var(--on-dark-2); }
.ba__tab[aria-pressed="true"] { border-color: var(--yellow); }
.ba__tab[aria-pressed="true"] img { opacity: 1; filter: none; }
.ba__tab-n {
  position: absolute; left: 6px; bottom: 6px;
  font-family: var(--f-mono); font-size: .62rem; line-height: 1;
  background: var(--dark); color: var(--on-dark); padding: .4em .45em .35em; border-radius: 2px;
}
.ba__tab[aria-pressed="true"] .ba__tab-n { background: var(--yellow); color: var(--ink); }
.compare__img { transition: opacity .25s var(--ease); }
.compare.is-loading .compare__img { opacity: .35; }

/* ---------- Bornes de recharge (IRVE) ---------- */
.irve { border-top: 1px solid var(--line); }
.irve__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.irve__photo { position: sticky; top: calc(var(--header-h) + 24px); }
.irve__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 85%; border-radius: var(--radius); background: var(--paper-2); }
.irve__photo .plate { left: auto; right: -20px; bottom: 28px; }
.irve__h3 { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.8rem, 2.8vw, 2.5rem); line-height: .98; text-transform: uppercase; text-wrap: balance; }
.irve__lead { margin-top: 1.2rem; color: var(--ink-2); max-width: 52ch; }
.why { margin-top: 28px; border-top: 1.5px solid var(--ink); }
.why li { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr); gap: 6px 24px; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.why strong { font-family: var(--f-mono); font-weight: 500; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); padding-top: .35em; display: flex; gap: 10px; align-items: flex-start; }
.why strong::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: .1em; border-radius: 50%; background: var(--yellow); border: 1px solid var(--ink); }

.charge { margin-top: 36px; padding: 24px 24px 20px; background: var(--dark); color: var(--on-dark); border-radius: var(--radius); }
.charge__title { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; color: var(--yellow); margin-bottom: 18px; }
.charge__list { display: grid; gap: 14px; }
.charge__list li { display: grid; grid-template-columns: minmax(0, 180px) minmax(0, 1fr) 64px; gap: 14px; align-items: center; font-size: .9375rem; }
.charge__k em { font-style: normal; color: var(--on-dark-2); font-size: .85em; margin-left: .3em; white-space: nowrap; }
.charge__bar { height: 12px; background: var(--dark-2); border: 1px solid var(--dark-line); border-radius: 2px; overflow: hidden; }
.charge__bar span { display: block; height: 100%; width: var(--w); background: repeating-linear-gradient(90deg, var(--yellow) 0 10px, #D9AC0C 10px 12px); transform-origin: left; }
.js .charge .charge__bar span { transform: scaleX(0); transition: transform 1.4s var(--ease); }
.js .charge.is-visible .charge__bar span { transform: none; }
.js .charge.is-visible li:nth-child(2) .charge__bar span { transition-delay: .15s; }
.js .charge.is-visible li:nth-child(3) .charge__bar span { transition-delay: .3s; }
.charge__v { font-family: var(--f-mono); font-size: .78rem; text-align: right; white-space: nowrap; }
.charge__list li:last-child .charge__v { color: var(--yellow); }
.charge__note { margin-top: 16px; font-size: .8125rem; color: var(--on-dark-2); }

.irve__offer { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 5vw, 72px); margin-top: clamp(56px, 7vw, 96px); padding-top: clamp(40px, 5vw, 56px); border-top: 1.5px solid var(--ink); align-items: start; }
.checks--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 24px; }
.irve__cta { padding: 28px 28px 24px; background: var(--yellow); border: 1.5px solid var(--ink); border-radius: var(--radius); box-shadow: 6px 6px 0 var(--ink); }
.irve__cta-t { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: .95; text-transform: uppercase; }
.irve__cta > p:not(.irve__cta-t) { margin-top: 10px; }
.irve__cta .btn { margin-top: 20px; width: 100%; background: var(--ink); color: var(--yellow); }
.irve__cta .btn:hover { background: #2B2D31; }
.irve__cta .circuit__cta { margin-top: 14px; border-bottom-color: var(--ink); }
@media (max-width: 1000px) {
  .irve__grid, .irve__offer { grid-template-columns: 1fr; }
  .irve__photo { position: relative; top: auto; max-width: 560px; }
  .irve__photo .plate { right: 16px; bottom: 16px; }
}
@media (max-width: 600px) {
  .why li { grid-template-columns: 1fr; }
  .checks--grid { grid-template-columns: 1fr; }
  .charge { padding: 20px 16px 18px; }
  .charge__list li { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
  .charge__bar { grid-column: 1 / -1; grid-row: 2; }
}

/* ---------- Ajouts octobre 2026 ---------- */
.js .circuits .reveal:nth-child(5) { transition-delay: .24s; }
@media (max-width: 1040px) { .nav.is-open .nav__list li:nth-child(7) { animation-delay: .18s; } }
.site-footer__siret { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .03em; }
.contact__mail { margin-top: 18px; color: var(--ink-2); }
.contact__mail a { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.site-footer a[href^="mailto"] { overflow-wrap: anywhere; }

/* ---------- Avis : note Google ---------- */
.reviews__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 48px; margin-bottom: clamp(36px, 5vw, 56px); }
.gscore {
  display: flex; align-items: center; gap: 18px;
  padding: 16px 22px 16px 18px;
  background: var(--card); color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: var(--radius);
  box-shadow: 5px 5px 0 var(--ink);
  text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.gscore:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.gscore:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.gscore__note {
  font-family: var(--f-display); font-weight: 800; font-size: 3.6rem; line-height: .85;
  padding: 8px 12px 4px; background: var(--yellow); border: 1.5px solid var(--ink); border-radius: 2px;
}
.gscore__body { display: grid; gap: 4px; }
.gscore .stars { margin-bottom: 2px; }
.gscore__count { font-size: 1rem; }
.gscore__link { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); }
.gscore:hover .gscore__link { color: var(--ink); text-decoration: underline; text-underline-offset: .3em; }
.js .gscore .stars i::after { background: var(--card); transition: background-color .6s var(--ease); }
.js .gscore.is-visible .stars i::after { background: var(--yellow); transition-delay: .3s; }
.js .gscore.is-visible .stars i:nth-child(2)::after { transition-delay: .45s; }
.js .gscore.is-visible .stars i:nth-child(3)::after { transition-delay: .6s; }
.js .gscore.is-visible .stars i:nth-child(4)::after { transition-delay: .75s; }
.js .gscore.is-visible .stars i:nth-child(5)::after { transition-delay: .9s; }
@media (max-width: 560px) {
  .gscore { width: 100%; }
  .gscore__note { font-size: 3rem; }
}
