/* ============================================================
   CLP Électricité — direction « Haute Tension »
   Bleu nuit / bleu électrique / jaune sécurité / blanc technique
   Signature : tracé de circuit (nœuds, borniers, courant animé)
   ============================================================ */

:root {
  --navy-950: #0B1524;
  --navy-900: #0F1B2E;
  --navy-800: #16263D;
  --navy-700: #22385A;
  --blue: #2D7DF6;
  --blue-soft: #6FA5F9;
  --blue-ink: #1A5FD6;
  --yellow: #F5C518;
  --yellow-deep: #E3B30B;
  --paper: #F4F7FB;
  --white: #FFFFFF;
  --ink: #14213A;
  --muted: #44556E;
  --muted-dark: #9FB2CC;
  --line: #DCE4EF;
  --line-dark: #23364F;
  --wa: #23c05c;
  --radius: 14px;
  --font-display: "Chakra Petch", "Trebuchet MS", sans-serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .6em; }

p { margin: 0 0 1em; }

a { color: var(--blue-ink); }

section[id], footer[id] { scroll-margin-top: calc(var(--header-h) + 18px); }

.container { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--yellow); color: var(--navy-900);
  padding: .6rem 1rem; font-weight: 700; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.on-dark :focus-visible, .site-header :focus-visible { outline-color: var(--yellow); }

/* ---------- Reveal au scroll (gated par .js) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Eyebrow « point de connexion » ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .65rem;
  font-family: var(--font-mono); font-size: .78rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--blue-ink); margin: 0 0 .9rem;
}
.on-dark .eyebrow { color: var(--yellow); }
.eyebrow::before {
  content: ""; flex: none; width: 34px; height: 10px;
  background:
    radial-gradient(circle 3px at 5px 5px, currentColor 3px, transparent 3.5px),
    linear-gradient(currentColor, currentColor) 10px 4px / 24px 2px no-repeat;
  background-repeat: no-repeat;
}

/* ---------- Puces « points de connexion » ---------- */
.pinlist { list-style: none; margin: 0; padding: 0; }
.pinlist li { position: relative; padding-left: 1.5rem; margin-bottom: .45rem; }
.pinlist li::before {
  content: ""; position: absolute; left: 0; top: .52em;
  width: 9px; height: 9px; border-radius: 50%;
  border: 2px solid var(--blue); background: transparent;
}
.on-dark .pinlist li::before { border-color: var(--yellow); }

/* ---------- Séparateur circuit ---------- */
.circuit-sep { display: block; width: 100%; height: 26px; color: var(--line); }
.on-dark .circuit-sep, .circuit-sep.dark { color: var(--line-dark); }
.circuit-sep svg { display: block; width: 100%; height: 100%; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  padding: .85rem 1.5rem; border-radius: 10px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; line-height: 1.2;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.btn svg { flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--yellow); color: var(--navy-900); box-shadow: 0 6px 20px rgba(245, 197, 24, .25); }
.btn-primary:hover { background: var(--yellow-deep); }

.btn-outline { border-color: var(--navy-700); color: var(--white); background: transparent; }
.btn-outline:hover { border-color: var(--blue-soft); }

.btn-outline-light { border-color: rgba(20, 33, 58, .25); color: var(--ink); background: transparent; }
.btn-outline-light:hover { border-color: var(--blue-ink); color: var(--blue-ink); }

.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 6px 20px rgba(35, 192, 92, .3); }
.btn-wa:hover { background: #1da44e; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15, 27, 46, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand svg { flex: none; }
.brand-name {
  font-family: var(--font-display); font-weight: 700; font-size: 1.12rem;
  color: var(--white); letter-spacing: .02em; line-height: 1.1;
}
.brand-name small {
  display: block; font-family: var(--font-mono); font-weight: 400;
  font-size: .62rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted-dark);
}

.main-nav { display: flex; align-items: center; gap: 1.5rem; }
.main-nav a {
  color: var(--muted-dark); text-decoration: none; font-weight: 500; font-size: .95rem;
  transition: color .15s ease;
}
.main-nav a:hover { color: var(--white); }
.main-nav .btn { padding: .55rem 1.1rem; font-size: .9rem; }
.main-nav a.btn-primary, .main-nav a.btn-primary:hover { color: var(--navy-900); }

.burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px;
  background: transparent; border: 1px solid var(--line-dark); border-radius: 8px; cursor: pointer;
}
.burger span { display: block; height: 2px; background: var(--white); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }

@media (max-width: 480px) {
  .brand-name small { display: none; }
}

@media (max-width: 880px) {
  .burger { display: flex; }
  .main-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy-900); border-bottom: 1px solid var(--line-dark);
    padding: .5rem 1.25rem 1.25rem;
    display: none;
  }
  .site-header.nav-open .main-nav { display: flex; }
  .main-nav a { padding: .8rem .2rem; border-bottom: 1px solid var(--line-dark); font-size: 1.05rem; }
  .main-nav a:last-of-type { border-bottom: none; }
  .main-nav .btn { margin-top: .8rem; justify-content: center; }
  .site-header.nav-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.nav-open .burger span:nth-child(2) { opacity: 0; }
  .site-header.nav-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  background: var(--navy-900);
  color: var(--white);
  overflow: hidden;
}
.hero-circuit {
  position: absolute; inset: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(105deg, transparent 0%, rgba(0,0,0,.45) 38%, rgba(0,0,0,.9) 70%);
  mask-image: linear-gradient(105deg, transparent 0%, rgba(0,0,0,.45) 38%, rgba(0,0,0,.9) 70%);
}
.hero-circuit svg { width: 100%; height: 100%; display: block; }

.trace { stroke: var(--navy-700); stroke-width: 2; fill: none; }
.trace-node { fill: var(--navy-700); }
.trace-pad { fill: none; stroke: var(--navy-700); stroke-width: 2; }
.trace-live { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 10 14; animation: current-flow 2.6s linear infinite; }
.trace-live.yellow { stroke: var(--yellow); }
.trace-live.blue { stroke: var(--blue); }
.node-live { animation: node-pulse 2.6s ease-in-out infinite; }

@keyframes current-flow { to { stroke-dashoffset: -240; } }
@keyframes node-pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

.hero-inner {
  position: relative;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 3.5rem;
  align-items: center;
  padding: clamp(3.2rem, 7vw, 5.5rem) 0 clamp(3.4rem, 7vw, 5.8rem);
}

.hero h1 {
  font-size: clamp(2.1rem, 4.8vw, 3.3rem);
  font-weight: 700; margin-bottom: .5em;
}
.hero h1 .hl { color: var(--yellow); }
.hero-sub { font-size: 1.1rem; color: var(--muted-dark); max-width: 34rem; margin-bottom: 1.4rem; }
.hero-sub strong { color: var(--white); font-weight: 600; }

.gbadge {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--navy-800); border: 1px solid var(--line-dark);
  border-radius: 999px; padding: .5rem 1.05rem .5rem .8rem;
  text-decoration: none; margin-bottom: 1.6rem;
  transition: border-color .15s ease, transform .15s ease;
}
.gbadge:hover { border-color: var(--blue-soft); transform: translateY(-2px); }
.gbadge .stars { display: inline-flex; gap: 2px; }
.gbadge .stars svg { width: 15px; height: 15px; fill: var(--yellow); }
.gbadge b { color: var(--white); font-size: .95rem; }
.gbadge span { color: var(--muted-dark); font-size: .88rem; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 1.2rem; }

.photo-cta {
  display: inline-flex; align-items: flex-start; gap: .7rem;
  border: 1px dashed var(--navy-700); border-radius: 12px;
  padding: .8rem 1rem; max-width: 30rem;
  color: var(--muted-dark); text-decoration: none; font-size: .92rem; line-height: 1.45;
  transition: border-color .15s ease, color .15s ease;
}
.photo-cta:hover { border-color: var(--yellow); color: var(--white); }
.photo-cta svg { flex: none; margin-top: .1rem; color: var(--yellow); }
.photo-cta b { color: var(--white); }

.hero-trust {
  display: flex; flex-wrap: wrap; gap: 1.3rem; margin-top: 1.5rem; padding: 0;
  list-style: none; font-family: var(--font-mono); font-size: .78rem;
  letter-spacing: .06em; color: var(--muted-dark);
}
.hero-trust li { display: flex; align-items: center; gap: .45rem; padding: 0; }
.hero-trust li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 2px solid var(--yellow); }

/* ---------- Carrousel « coffret » ---------- */
.coffret {
  position: relative;
  background: var(--navy-800);
  border: 1px solid var(--line-dark);
  border-radius: 18px;
  padding: 1rem 1rem 1.15rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .4);
}
.coffret-rail {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 .35rem .8rem;
}
.coffret-rail .rail-label {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--muted-dark);
}
.coffret-rail .rail-dots { display: flex; gap: 6px; }
.coffret-rail .rail-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--navy-700); }
.coffret-rail .rail-dots i:first-child { background: var(--yellow); }

.scenes { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--navy-900); border: 1px solid var(--line-dark); }
.scene { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.scene.is-active { opacity: 1; }
.scene svg { width: 100%; height: 100%; display: block; }

.scene-chip {
  position: absolute; left: .9rem; bottom: .9rem;
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(15, 27, 46, .88); border: 1px solid var(--line-dark);
  border-radius: 999px; padding: .4rem .95rem;
  font-family: var(--font-mono); font-size: .75rem; letter-spacing: .08em;
  color: var(--white);
}
.scene-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); }

.scene-dots { display: flex; justify-content: center; gap: .55rem; padding-top: 1rem; }
.scene-dots button {
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid var(--navy-700); background: transparent; cursor: pointer; padding: 0;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.scene-dots button:hover { border-color: var(--yellow); transform: scale(1.15); }
.scene-dots button[aria-current="true"] { background: var(--yellow); border-color: var(--yellow); }

/* --- Animations internes des scènes (rejouées à chaque activation) --- */
.scene .lever, .scene .needle, .scene .pop, .scene .pop-2, .scene .pop-3 { transform-box: fill-box; transform-origin: center; }
.scene .needle { transform-origin: 90% 95%; }
.scene .anim { animation-play-state: paused !important; }
.scene.is-active .anim { animation-play-state: running !important; }

.scene.is-active .draw { stroke-dasharray: 300; stroke-dashoffset: 300; animation: scene-draw 1.6s ease forwards; }
.scene.is-active .flow { stroke-dasharray: 8 12; animation: current-flow 2s linear infinite; }
.scene.is-active .blink { animation: scene-blink 1.8s ease-in-out infinite; }
.scene.is-active .blink-late { animation: scene-blink 1.8s ease-in-out .5s infinite; }
.scene.is-active .lever { animation: scene-lever .5s ease-out .8s forwards; }
.scene.is-active .pop { opacity: 0; animation: scene-pop .45s ease forwards; }
.scene.is-active .pop-2 { opacity: 0; animation: scene-pop .45s ease .35s forwards; }
.scene.is-active .pop-3 { opacity: 0; animation: scene-pop .45s ease .7s forwards; }
.scene.is-active .wave { opacity: 0; animation: scene-wave 2.4s ease-in-out infinite; }
.scene.is-active .wave-2 { opacity: 0; animation: scene-wave 2.4s ease-in-out .4s infinite; }
.scene.is-active .wave-3 { opacity: 0; animation: scene-wave 2.4s ease-in-out .8s infinite; }
.scene.is-active .flicker { animation: scene-flicker 2.2s linear forwards; }
.scene.is-active .glow-pulse { animation: node-pulse 2s ease-in-out infinite; }
.scene.is-active .needle { animation: scene-needle 1.4s ease-in-out .4s forwards; }

@keyframes scene-draw { to { stroke-dashoffset: 0; } }
@keyframes scene-blink { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes scene-lever { to { transform: translateY(-7px); } }
@keyframes scene-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
@keyframes scene-wave { 0% { opacity: 0; transform: translateX(0); } 25% { opacity: .9; } 100% { opacity: 0; transform: translateX(26px); } }
@keyframes scene-flicker {
  0%, 8%, 14%, 26% { opacity: .1; }
  4%, 11%, 20% { opacity: .9; }
  32%, 100% { opacity: 1; }
}
@keyframes scene-needle { to { transform: rotate(52deg); } }

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.6rem; }
  .coffret { max-width: 540px; margin-inline: auto; width: 100%; }
}

/* ============================================================
   Sections communes
   ============================================================ */
.section { padding: clamp(3.4rem, 7vw, 5.6rem) 0; }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; }
.section-head .lead { color: var(--muted); font-size: 1.08rem; margin: 0; }
.on-dark .section-head .lead { color: var(--muted-dark); }

.on-dark { background: var(--navy-900); color: var(--white); }
.on-dark h2, .on-dark h3 { color: var(--white); }

/* ============================================================
   Prestations
   ============================================================ */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }

.service-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem 1.6rem 1.5rem; position: relative;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
}
.service-card:hover { border-color: var(--blue); transform: translateY(-4px); box-shadow: 0 14px 34px rgba(20, 33, 58, .09); }
.service-card h3 { font-size: 1.18rem; margin: 1rem 0 .5rem; }
.service-card p { color: var(--muted); font-size: .96rem; margin-bottom: .9rem; }
.service-card .pinlist { font-size: .92rem; color: var(--muted); margin-top: auto; }

.service-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--navy-900); color: var(--yellow);
  display: grid; place-items: center;
}
.service-icon svg { width: 28px; height: 28px; }

.service-card.featured {
  grid-column: span 2;
  background: var(--navy-900); border-color: var(--navy-700); color: var(--white);
}
.service-card.featured h3 { color: var(--white); font-size: 1.35rem; }
.service-card.featured p { color: var(--muted-dark); }
.service-card.featured .pinlist { color: var(--muted-dark); }
.service-card.featured .pinlist li::before { border-color: var(--yellow); }
.service-card.featured:hover { border-color: var(--blue-soft); }
.service-card.featured .service-icon { background: var(--yellow); color: var(--navy-900); }

.badge-spe {
  position: absolute; top: 1.4rem; right: 1.4rem;
  background: var(--yellow); color: var(--navy-900);
  font-family: var(--font-mono); font-size: .68rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  padding: .35rem .7rem; border-radius: 6px;
}

@media (max-width: 960px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card.featured { grid-column: span 2; }
}
@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-card.featured { grid-column: span 1; }
}

/* ============================================================
   Bandeau types de clients
   ============================================================ */
.clients-band { position: relative; }
.clients-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.client-tile {
  border: 1px solid var(--line-dark); border-radius: var(--radius);
  background: var(--navy-800); padding: 1.5rem 1.4rem;
  transition: border-color .2s ease, transform .2s ease;
}
.client-tile:hover { border-color: var(--blue-soft); transform: translateY(-3px); }
.client-tile svg { width: 34px; height: 34px; color: var(--yellow); margin-bottom: .8rem; }
.client-tile h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.client-tile p { color: var(--muted-dark); font-size: .9rem; margin: 0; }

@media (max-width: 960px) { .clients-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .clients-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Avis Google
   ============================================================ */
.avis-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.4rem; margin-bottom: clamp(2rem, 4vw, 2.8rem); }
.avis-head .section-head { margin-bottom: 0; }

.avis-summary {
  display: flex; align-items: center; gap: .9rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .9rem 1.3rem;
}
.avis-summary .g-mark { width: 30px; height: 30px; }
.avis-summary .score { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; line-height: 1; }
.avis-summary .sub { font-size: .85rem; color: var(--muted); line-height: 1.3; }
.avis-summary .stars { display: flex; gap: 2px; }
.avis-summary .stars svg { width: 14px; height: 14px; fill: var(--yellow); stroke: #C79A00; stroke-width: .5; }

.avis-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; margin-bottom: 2rem; }
.avis-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.3rem; display: flex; flex-direction: column; gap: .8rem;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.avis-card:hover { border-color: var(--blue); transform: translateY(-3px); box-shadow: 0 12px 30px rgba(20, 33, 58, .08); }
.avis-card .stars { display: flex; gap: 3px; }
.avis-card .stars svg { width: 16px; height: 16px; fill: var(--yellow); stroke: #C79A00; stroke-width: .5; }
.avis-card blockquote { margin: 0; font-size: .95rem; color: var(--ink); flex: 1; }
.avis-card footer { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.avis-card cite { font-style: normal; font-weight: 600; font-size: .92rem; }
.avis-card cite span { display: block; font-weight: 400; font-family: var(--font-mono); font-size: .72rem; color: var(--muted); letter-spacing: .04em; }
.avis-card .g-mark { width: 20px; height: 20px; flex: none; }
.avis-actions { text-align: center; }

@media (max-width: 960px) { .avis-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .avis-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Pourquoi Clément
   ============================================================ */
.why-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.why-list { display: grid; gap: 1.5rem; }
.why-item { display: flex; gap: 1.1rem; }
.why-item .why-icon {
  flex: none; width: 46px; height: 46px; border-radius: 11px;
  background: var(--navy-900); color: var(--yellow); display: grid; place-items: center;
}
.why-item .why-icon svg { width: 24px; height: 24px; }
.why-item h3 { font-size: 1.1rem; margin-bottom: .25rem; }
.why-item p { color: var(--muted); font-size: .95rem; margin: 0; }
.why-item p q { font-style: italic; }
.why-item p .who { font-family: var(--font-mono); font-size: .78rem; color: var(--blue-ink); white-space: nowrap; }

.why-figure { position: relative; margin: 0; }
.why-figure img { border-radius: var(--radius); border: 1px solid var(--line); }
.why-figure figcaption {
  position: absolute; left: 1rem; right: 1rem; bottom: 1rem;
  background: rgba(15, 27, 46, .88); color: var(--white);
  border: 1px solid var(--line-dark); border-radius: 10px;
  font-size: .85rem; padding: .6rem .9rem; backdrop-filter: blur(4px);
}

@media (max-width: 900px) {
  .why-wrap { grid-template-columns: 1fr; }
  .why-figure { max-width: 560px; }
}

/* ============================================================
   Réalisations (teaser)
   ============================================================ */
.gallery-teaser { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; margin-bottom: 2rem; }
.tile {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); aspect-ratio: 4 / 5; text-decoration: none;
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tile:hover img { transform: scale(1.05); }
.tile .tile-label {
  position: absolute; left: .8rem; bottom: .8rem; right: .8rem;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em;
  color: #fff; background: rgba(15, 27, 46, .82); border-radius: 8px; padding: .4rem .6rem;
}
.tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(15, 27, 46, .45));
}
.tile .tile-label { z-index: 2; }
.teaser-actions { text-align: center; }

@media (max-width: 900px) { .gallery-teaser { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   Zone d'intervention
   ============================================================ */
.zone-wrap { display: grid; grid-template-columns: .95fr 1.05fr; gap: 3rem; align-items: center; }
.zone-map { position: relative; }
.zone-map svg { width: 100%; height: auto; display: block; }
.ring { fill: none; stroke: var(--line-dark); stroke-width: 1.5; }
.ring-dash { stroke-dasharray: 4 8; }
.zone-center { fill: var(--yellow); }
.zone-center-halo { fill: var(--yellow); opacity: .2; animation: halo 3s ease-in-out infinite; }
@keyframes halo { 0%, 100% { transform: scale(1); opacity: .25; } 50% { transform: scale(1.35); opacity: .08; } }
.zone-dot { fill: var(--blue-soft); }
.zone-label { font-family: var(--font-mono); font-size: 12px; fill: var(--muted-dark); }
.zone-label.main { fill: var(--white); font-weight: 600; font-size: 14px; letter-spacing: .08em; }
.ring-label { font-family: var(--font-mono); font-size: 10.5px; fill: var(--muted-dark); opacity: .75; }

.zone-chips { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.4rem 0 1.6rem; padding: 0; list-style: none; }
.zone-chips li {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 1px solid var(--line-dark); background: var(--navy-800);
  border-radius: 999px; padding: .45rem 1rem; font-size: .9rem; color: var(--white);
}
.zone-chips li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 2px solid var(--yellow); }
.zone-note { color: var(--muted-dark); font-size: .95rem; }
.zone-note a { color: var(--blue-soft); }

@media (max-width: 900px) {
  .zone-wrap { grid-template-columns: 1fr; }
  .zone-map { max-width: 480px; margin-inline: auto; width: 100%; }
}

/* ============================================================
   Contact
   ============================================================ */
.contact-panel {
  background: var(--navy-950); color: var(--white);
  border-radius: 22px; border: 1px solid var(--line-dark);
  padding: clamp(2.2rem, 5vw, 3.6rem);
  position: relative; overflow: hidden;
}
.contact-panel .contact-circuit { position: absolute; inset: 0; pointer-events: none; opacity: .55; }
.contact-panel .contact-circuit svg { width: 100%; height: 100%; }
.contact-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.6rem; align-items: center; }
.contact-grid h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
.contact-grid .lead { color: var(--muted-dark); margin-bottom: 1.6rem; }
.contact-ctas { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 1.3rem; }

.contact-info { display: grid; gap: 1rem; margin: 0; }
.contact-info > div {
  display: flex; gap: .9rem; align-items: flex-start;
  background: rgba(22, 38, 61, .7); border: 1px solid var(--line-dark);
  border-radius: 12px; padding: .95rem 1.1rem;
}
.contact-info svg { flex: none; width: 22px; height: 22px; color: var(--yellow); margin-top: .1rem; }
.contact-info b { display: block; font-size: .95rem; }
.contact-info span, .contact-info a.plain { color: var(--muted-dark); font-size: .88rem; text-decoration: none; }
.contact-info a { color: var(--blue-soft); }

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--navy-950); color: var(--muted-dark); border-top: 1px solid var(--line-dark); }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2.5rem; padding: 3rem 0 2rem; }
.site-footer h4 { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--white); margin: 0 0 .9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.site-footer a { color: var(--muted-dark); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.footer-brand p { font-size: .9rem; max-width: 26rem; }
.footer-bottom {
  border-top: 1px solid var(--line-dark); padding: 1.1rem 0;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em;
  display: flex; flex-wrap: wrap; gap: .6rem; justify-content: space-between;
}

@media (max-width: 800px) { .footer-inner { grid-template-columns: 1fr; gap: 1.8rem; } }

/* ============================================================
   Bouton WhatsApp flottant
   ============================================================ */
.wa-float {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 28px rgba(20, 130, 60, .45);
  transition: transform .2s ease, box-shadow .2s ease;
}
.wa-float:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 14px 34px rgba(20, 130, 60, .55); }
.wa-float svg { width: 30px; height: 30px; }

/* ============================================================
   Page galerie
   ============================================================ */
.page-hero { background: var(--navy-900); color: var(--white); padding: clamp(2.6rem, 5vw, 4rem) 0; position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: .3em; }
.page-hero p { color: var(--muted-dark); max-width: 40rem; margin: 0; }

.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.filter-chip {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-mono); font-size: .82rem; letter-spacing: .04em;
  border: 1.5px solid var(--line); border-radius: 999px;
  background: var(--white); color: var(--ink);
  padding: .5rem 1.05rem; cursor: pointer;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.filter-chip .count { font-size: .72rem; color: var(--muted); }
.filter-chip:hover { border-color: var(--blue); }
.filter-chip[aria-pressed="true"] { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.filter-chip[aria-pressed="true"] .count { color: var(--yellow); }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.gallery-item { border: none; padding: 0; background: none; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; position: relative; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; transition: transform .4s ease; border-radius: var(--radius); border: 1px solid var(--line); }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item .cap {
  position: absolute; left: .7rem; bottom: .7rem; right: .7rem; z-index: 2;
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .05em; text-align: left;
  color: #fff; background: rgba(15, 27, 46, .85); border-radius: 8px; padding: .4rem .6rem;
}
.gallery-item figcaption {
  position: absolute; left: .7rem; bottom: .7rem; right: .7rem; z-index: 2;
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .05em;
  color: #fff; background: rgba(15, 27, 46, .85); border-radius: 8px; padding: .4rem .6rem;
}
.gallery-item[hidden] { display: none; }

@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } }

/* Lightbox */
.lightbox { border: none; border-radius: 16px; padding: 0; background: var(--navy-900); max-width: min(940px, 92vw); }
.lightbox::backdrop { background: rgba(8, 14, 24, .85); backdrop-filter: blur(3px); }
.lightbox figure { margin: 0; position: relative; }
.lightbox img { width: 100%; max-height: 76vh; object-fit: contain; background: var(--navy-950); }
.lightbox figcaption { color: var(--white); font-size: .9rem; padding: .9rem 3.4rem .9rem 1.2rem; font-family: var(--font-mono); letter-spacing: .04em; }
.lb-close, .lb-prev, .lb-next {
  position: absolute; z-index: 5;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-dark); background: rgba(15, 27, 46, .85);
  color: #fff; font-size: 1.25rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: var(--navy-700); }
.lb-close { top: .8rem; right: .8rem; }
.lb-prev { left: .8rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: .8rem; top: 50%; transform: translateY(-50%); }

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .trace-live, .node-live, .zone-center-halo,
  .scene.is-active .draw, .scene.is-active .flow, .scene.is-active .blink,
  .scene.is-active .blink-late, .scene.is-active .lever, .scene.is-active .pop,
  .scene.is-active .pop-2, .scene.is-active .pop-3, .scene.is-active .wave,
  .scene.is-active .wave-2, .scene.is-active .wave-3, .scene.is-active .flicker,
  .scene.is-active .glow-pulse, .scene.is-active .needle {
    animation: none !important;
  }
  .scene.is-active .draw { stroke-dashoffset: 0; }
  .scene.is-active .pop, .scene.is-active .pop-2, .scene.is-active .pop-3,
  .scene.is-active .wave, .scene.is-active .wave-2, .scene.is-active .wave-3 { opacity: 1; }
  .scene { transition: opacity 1.2s ease; }
  .tile img, .gallery-item img, .btn, .gbadge { transition: none; }
}
