/* ============ L.L ÉLECTRICITÉ — direction "Étincelle du Bocage" ============ */

:root {
  --navy: #0b1b3a;
  --navy-deep: #071026;
  --cyan: #3ec6ff;
  --cyan-soft: #bdeeff;
  --lime: #d7e94e;
  --lime-deep: #b9cf2c;
  --copper: #c17a45;
  --copper-deep: #9c5f34;
  --cream: #f8f4ea;
  --cream-soft: #f1ead9;
  --paper: #fffdf8;
  --ink: #16213d;
  --grey: #5b6478;
  --line: rgba(11, 27, 58, 0.12);
  --shadow: 0 20px 45px -20px rgba(11, 27, 58, 0.35);
  --radius: 18px;
  --header-h: 86px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Work Sans', Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  color: var(--navy);
  line-height: 1.12;
  margin: 0 0 0.5em;
}

h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }

p { margin: 0 0 1em; color: var(--grey); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Work Sans', sans-serif;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--copper-deep);
  margin-bottom: 0.9em;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--copper);
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

section[id] { scroll-margin-top: 96px; }

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { transition: none; opacity: 1; transform: none; }
}

/* ---------- Bolt divider (signature) ---------- */
.bolt-divider {
  width: 100%;
  height: 22px;
  display: block;
}
.bolt-divider svg { width: 100%; height: 100%; display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 12px 24px -10px rgba(37, 211, 102, 0.6);
}
.btn-primary:hover { box-shadow: 0 16px 30px -10px rgba(37, 211, 102, 0.75); }
.btn-ghost {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-ghost:hover { background: var(--navy); color: var(--cream); }
.btn-light {
  background: var(--lime);
  color: var(--navy);
}
.btn-light:hover { background: var(--lime-deep); }
.btn-outline-light {
  background: transparent;
  border-color: rgba(248,244,234,0.5);
  color: var(--cream);
}
.btn-outline-light:hover { background: rgba(248,244,234,0.12); border-color: var(--cream); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- Header ---------- */
header.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(248, 244, 234, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease;
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 50px; width: auto; }

nav.main-nav { display: flex; align-items: center; gap: 30px; }
nav.main-nav a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  position: relative;
}
nav.main-nav a::after {
  content: "";
  position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--copper);
  transition: width 0.25s ease;
}
nav.main-nav a:hover::after { width: 100%; }

.header-cta { display: flex; align-items: center; gap: 14px; }
.header-cta .btn { padding: 12px 22px; font-size: 0.92rem; }
.phone-link { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy); text-decoration: none; font-size: 0.95rem; }
.phone-link svg { width: 18px; height: 18px; color: var(--copper); }

.burger {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 44px; height: 44px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.burger span { width: 24px; height: 2.5px; background: var(--navy); border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease; }
.burger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  padding: calc(var(--header-h) + 56px) 0 70px;
  background:
    radial-gradient(ellipse at top right, rgba(62,198,255,0.10), transparent 55%),
    var(--cream);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='60' viewBox='0 0 140 60'%3E%3Cpath d='M0 30 L18 10 L26 28 L40 6 L48 30' fill='none' stroke='%230b1b3a' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round' opacity='0.05'/%3E%3C/svg%3E");
  background-size: 280px 120px;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 50px;
  align-items: center;
  position: relative;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
  box-shadow: var(--shadow);
  margin-bottom: 22px;
  transition: transform 0.2s ease;
}
.hero-badge:hover { transform: translateY(-2px); }
.hero-badge .stars { color: var(--copper); letter-spacing: 1px; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.hero h1 em { font-style: italic; color: var(--copper-deep); }
.hero-lede { font-size: 1.1rem; max-width: 46ch; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin: 26px 0; }
.hero-reassure {
  display: flex; flex-wrap: wrap; gap: 20px 28px;
  margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line);
}
.hero-reassure li { list-style: none; display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 0.92rem; color: var(--navy); }
.hero-reassure svg { width: 20px; height: 20px; color: var(--copper); flex: none; }
.hero-reassure ul { display: flex; flex-wrap: wrap; gap: 20px 28px; padding: 0; margin: 0; }

/* Hero scene carousel */
.hero-visual { position: relative; }
.scene-frame {
  position: relative;
  aspect-ratio: 1/1;
  background: var(--navy);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.scene-frame::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 28px;
  border: 1px solid rgba(215, 233, 78, 0.25);
  pointer-events: none;
}
.scene {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
}
.scene.is-active { opacity: 1; pointer-events: auto; }
.scene svg { width: 100%; height: 100%; }

.scene-chip {
  position: absolute;
  top: 20px; left: 20px;
  background: rgba(11,27,58,0.55);
  backdrop-filter: blur(6px);
  color: var(--lime);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  z-index: 5;
}
.scene-dots {
  position: absolute;
  bottom: 18px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 9px;
  z-index: 5;
}
.scene-dots button {
  width: 9px; height: 9px; border-radius: 50%;
  border: none; background: rgba(255,255,255,0.35);
  cursor: pointer; padding: 0;
  transition: background 0.25s ease, transform 0.25s ease;
}
.scene-dots button.is-active { background: var(--lime); transform: scale(1.3); }

@keyframes sparkPulse { 0%,100% { opacity: 0.55; } 50% { opacity: 1; } }
@keyframes dashMove { to { stroke-dashoffset: -40; } }
@keyframes floatSlow { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes signalWave { 0% { opacity: 0; transform: scale(0.7); } 40% { opacity: 0.9; } 100% { opacity: 0; transform: scale(1.5); } }
.js .scene.is-active .anim-pulse { animation: sparkPulse 1.6s ease-in-out infinite; }
.js .scene.is-active .anim-dash { stroke-dasharray: 10 8; animation: dashMove 1.4s linear infinite; }
.js .scene.is-active .anim-float { animation: floatSlow 3.2s ease-in-out infinite; }
.js .scene.is-active .anim-wave1 { animation: signalWave 2.4s ease-out infinite; }
.js .scene.is-active .anim-wave2 { animation: signalWave 2.4s ease-out infinite 0.6s; }
.js .scene.is-active .anim-wave3 { animation: signalWave 2.4s ease-out infinite 1.2s; }
@media (prefers-reduced-motion: reduce) {
  .scene { transition: opacity 3.5s ease; }
  .anim-pulse, .anim-dash, .anim-float, .anim-wave1, .anim-wave2, .anim-wave3 { animation: none !important; }
}

/* ---------- Section shells ---------- */
section { padding: 90px 0; }
.section-cream { background: var(--cream); }
.section-paper { background: var(--paper); }
.section-head { max-width: 640px; margin-bottom: 50px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Prestations ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 26px;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-card.is-specialty { border-color: var(--copper); background: linear-gradient(180deg, #fff 0%, var(--cream-soft) 100%); }
.service-badge {
  position: absolute; top: -13px; right: 22px;
  background: var(--copper); color: #fff;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 1px;
  padding: 6px 14px; border-radius: 999px;
  text-transform: uppercase;
  box-shadow: 0 8px 16px -6px rgba(193,122,69,0.6);
}
.service-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.service-icon svg { width: 30px; height: 30px; }
.service-card h3 { margin-bottom: 8px; }
.service-card p { font-size: 0.95rem; margin-bottom: 0; }

/* ---------- Bandeau clients ---------- */
.clients-band {
  background: var(--navy);
  color: var(--cream);
  padding: 46px 0;
}
.clients-band .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.clients-band p { color: rgba(248,244,234,0.75); margin: 0; }
.clients-list { display: flex; flex-wrap: wrap; gap: 14px; list-style: none; padding: 0; margin: 0; }
.clients-list li {
  background: rgba(215,233,78,0.12);
  border: 1px solid rgba(215,233,78,0.3);
  color: var(--lime);
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ---------- Avis ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.review-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.review-stars { color: var(--copper); letter-spacing: 2px; font-size: 1rem; }
.review-text { color: var(--ink); font-size: 0.96rem; margin: 0; flex: 1; }
.review-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 0.85rem; color: var(--grey); }
.review-author { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy); }
.google-g { width: 18px; height: 18px; flex: none; }
.reviews-cta { text-align: center; margin-top: 40px; }

/* ---------- Pourquoi nous ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}
.why-item { display: flex; gap: 16px; }
.why-num {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 2.2rem;
  color: var(--copper);
  line-height: 1;
  flex: none;
}
.why-item h3 { margin-bottom: 6px; font-size: 1.15rem; }
.why-item p { font-size: 0.94rem; margin: 0; }

/* ---------- Galerie / réalisations ---------- */
.gallery-filters {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px;
}
.chip {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--navy);
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.chip.is-active, .chip:hover { background: var(--navy); border-color: var(--navy); color: var(--cream); }

.masonry {
  column-count: 3;
  column-gap: 18px;
}
.masonry figure {
  break-inside: avoid;
  margin: 0 0 18px;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--navy);
  cursor: zoom-in;
}
.masonry img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}
.masonry figure:hover img { transform: scale(1.04); }
.masonry figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 34px 16px 14px;
  background: linear-gradient(180deg, transparent, rgba(7,16,38,0.88));
  color: #fff;
  font-size: 0.86rem;
  font-weight: 600;
}
.masonry[hidden], .masonry figure[hidden] { display: none; }

dialog.lightbox {
  border: none;
  border-radius: 16px;
  padding: 0;
  max-width: min(90vw, 900px);
  max-height: 88vh;
  margin: auto;
  background: var(--navy-deep);
  overflow: hidden;
}
dialog.lightbox::backdrop { background: rgba(7,16,38,0.82); }
.lightbox-inner { position: relative; }
.lightbox-inner img { max-height: 76vh; width: 100%; object-fit: contain; background: #000; }
.lightbox-caption { color: var(--cream); padding: 14px 20px; font-size: 0.9rem; }
.lightbox-close, .lightbox-nav {
  position: absolute;
  background: rgba(11,27,58,0.65);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
}
.lightbox-close { top: 12px; right: 12px; }
.lightbox-nav.prev { top: 50%; left: 12px; transform: translateY(-50%); }
.lightbox-nav.next { top: 50%; right: 12px; transform: translateY(-50%); }
.lightbox-nav:hover, .lightbox-close:hover { background: var(--copper); }

/* ---------- Zone d'intervention ---------- */
.zone-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.zone-rings { position: relative; aspect-ratio: 1/1; }
.zone-rings svg { width: 100%; height: 100%; }
.zone-list { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.zone-list li {
  background: var(--cream-soft);
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
}
.zone-list li.center { background: var(--navy); color: var(--lime); border-color: var(--navy); }

/* ---------- Contact ---------- */
.contact {
  background: var(--navy);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='60' viewBox='0 0 140 60'%3E%3Cpath d='M0 30 L18 10 L26 28 L40 6 L48 30' fill='none' stroke='%23d7e94e' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round' opacity='0.06'/%3E%3C/svg%3E");
  background-size: 280px 120px;
  pointer-events: none;
}
.contact h2 { color: var(--cream); }
.contact .eyebrow { color: var(--lime); }
.contact .eyebrow::before { background: var(--lime); }
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; position: relative; }
.contact-lede { font-size: 1.05rem; color: rgba(248,244,234,0.8); max-width: 48ch; }
.contact-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin: 26px 0 34px; }
.contact-card {
  background: rgba(248,244,234,0.06);
  border: 1px solid rgba(248,244,234,0.16);
  border-radius: var(--radius);
  padding: 30px;
}
.contact-card dl { margin: 0; }
.contact-card dt { font-size: 0.78rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--lime); margin-top: 18px; }
.contact-card dt:first-child { margin-top: 0; }
.contact-card dd { margin: 5px 0 0; font-weight: 600; font-size: 1.02rem; }
.contact-card a { text-decoration: none; color: var(--cream); }
.contact-card a:hover { color: var(--lime); }
.hours-table { width: 100%; border-collapse: collapse; margin-top: 6px; font-size: 0.92rem; }
.hours-table td { padding: 3px 0; color: rgba(248,244,234,0.85); }
.hours-table td:last-child { text-align: right; font-weight: 600; }
.hours-table tr.closed td:last-child { color: rgba(248,244,234,0.5); }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--navy-deep);
  color: rgba(248,244,234,0.6);
  padding: 40px 0;
  font-size: 0.86rem;
}
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-inner a { color: rgba(248,244,234,0.75); text-decoration: none; }
.footer-inner a:hover { color: var(--lime); }
.footer-social { display: flex; gap: 14px; }
.footer-social svg { width: 20px; height: 20px; }

/* ---------- WhatsApp floating button ---------- */
.wa-float {
  position: fixed;
  bottom: 22px; right: 22px;
  z-index: 90;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25d366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 30px -10px rgba(37,211,102,0.7);
  text-decoration: none;
  transition: transform 0.2s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 420px; margin: 0 auto; }
  .zone-wrap { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .masonry { column-count: 2; }
}
@media (max-width: 880px) {
  nav.main-nav, .header-cta .phone-link { display: none; }
  .burger { display: flex; }
  .header-cta .btn-primary { padding: 10px 16px; font-size: 0; gap: 0; }
  .header-cta .btn-primary svg { width: 22px; height: 22px; }
  nav.main-nav.is-open {
    display: flex;
    position: absolute;
    top: var(--header-h); left: 0; right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 24px 20px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  nav.main-nav.is-open a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  section { padding: 64px 0; }
  .masonry { column-count: 1; }
  .clients-band .container { flex-direction: column; align-items: flex-start; }
}
