/* ==========================================================
   Lumen Électricité — feuille de style
   Pour changer l'identité d'un client : modifier les variables ci-dessous.
   ========================================================== */
:root {
  --bg: #F3F5F7;          /* gris clair, plastique de tableau */
  --surface: #FFFFFF;
  --ink: #16202B;         /* texte principal */
  --muted: #56626F;       /* texte secondaire */
  --line: #D6DCE2;        /* filets, bordures */
  --volt: #FFC21A;        /* jaune tension : actions principales */
  --volt-deep: #E0A400;
  --wire: #1E56A0;        /* bleu neutre : liens */
  --earth-g: #3A8F4E;     /* vert/jaune de terre : filet de pied de page */
  --enclosure: #202B37;   /* coffret du tableau */
  --enclosure-2: #2B3845;

  --f-display: "Archivo Narrow", "Arial Narrow", "Roboto Condensed", sans-serif;
  --f-body: "Archivo", "Segoe UI", system-ui, -apple-system, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.65rem;
  --step-3: 2.2rem;
  --step-4: clamp(2.4rem, 5.2vw, 3.9rem);

  --radius-s: 4px;
  --radius-m: 10px;
  --wrap: 1180px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--wire); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--wire); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.08; margin: 0 0 .6em; letter-spacing: -0.01em; }
h1 { font-size: var(--step-4); font-weight: 700; }
h2 { font-size: var(--step-3); font-weight: 700; }
h3 { font-size: var(--step-1); font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 1em; max-width: 68ch; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font: 600 1rem/1 var(--f-body);
  padding: .95em 1.35em; border-radius: var(--radius-s);
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-volt { background: var(--volt); color: var(--ink); border-color: var(--volt); }
.btn-volt:hover { background: var(--volt-deep); border-color: var(--volt-deep); color: var(--ink); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ---------- En-tête ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand-mark { width: 38px; height: 38px; }
.brand-name { font: 700 1.35rem/1 var(--f-display); }
.brand-name small { display: block; font: 500 .78rem/1.3 var(--f-body); color: var(--muted); letter-spacing: 0; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav ul { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--volt-deep); }
.nav .btn { padding: .75em 1.1em; font-size: .95rem; }
.nav-toggle { display: none; background: none; border: 2px solid var(--line); border-radius: var(--radius-s); padding: .5rem .7rem; font: 600 .95rem var(--f-body); color: var(--ink); cursor: pointer; }
@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 1rem var(--gutter) 1.4rem; gap: 1rem; display: none; }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; gap: .2rem; }
  .nav ul a { display: block; padding: .6rem 0; font-size: 1.1rem; }
}

/* ---------- Héros + tableau électrique ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5rem); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { max-width: 14ch; }
.hero-lead { font-size: var(--step-1); line-height: 1.45; color: var(--muted); max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 1.6rem; }
.proofs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-size: .95rem; color: var(--muted); }
.proofs li { display: flex; align-items: center; gap: .45rem; }
.proofs svg { width: 18px; height: 18px; color: var(--earth-g); }

.panel {
  background: linear-gradient(180deg, var(--enclosure-2), var(--enclosure));
  border-radius: 14px; padding: 1.4rem 1.4rem 1.6rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 30px 60px -30px rgba(22,32,43,.55);
  color: #E8EDF2;
}
.panel-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; font-size: .8rem; color: #9AA8B6; }
.panel-screen {
  background: #0F1720; border-radius: 6px; padding: 1rem 1.1rem; min-height: 7.6rem;
  border: 1px solid #33414F; margin-bottom: 1.3rem;
}
.panel-screen strong { display: block; font: 600 1.25rem/1.2 var(--f-display); color: var(--volt); margin-bottom: .35rem; }
.panel-screen p { margin: 0; font-size: .95rem; color: #C9D3DC; line-height: 1.5; }
.panel-screen a { color: #fff; }
.rail { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; background: #B9C2CA; padding: 8px 6px; border-radius: 4px; position: relative; }
.rail::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 10px; transform: translateY(-50%); background: repeating-linear-gradient(90deg, #9EA8B1 0 2px, transparent 2px 8px); opacity: .5; }
.breaker {
  position: relative; z-index: 1;
  background: #F4F6F8; border: 1px solid #C9D0D6; border-radius: 3px;
  height: 128px; cursor: pointer; padding: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 8px 2px 8px; font: inherit; color: var(--ink);
}
.breaker .led { width: 8px; height: 8px; border-radius: 50%; background: #9AA3AC; transition: background-color .2s, box-shadow .2s; }
.breaker .slot { width: 22px; height: 50px; background: #D8DEE3; border-radius: 3px; position: relative; box-shadow: inset 0 2px 3px rgba(0,0,0,.15); }
.breaker .lever { position: absolute; left: 2px; right: 2px; height: 22px; bottom: 2px; background: var(--ink); border-radius: 2px; transition: bottom .22s cubic-bezier(.4,1.6,.6,1); }
.breaker .tag { font-size: .68rem; font-weight: 600; line-height: 1.15; text-align: center; }
.breaker[aria-pressed="true"] .lever { bottom: 26px; }
.breaker[aria-pressed="true"] .led { background: var(--volt); box-shadow: 0 0 10px 2px rgba(255,194,26,.7); }
.breaker.is-selected { outline: 2px solid var(--volt); outline-offset: 1px; }
.panel-note { margin: 1rem 0 0; font-size: .82rem; color: #9AA8B6; }
@media (prefers-reduced-motion: reduce) { .breaker .lever, .breaker .led { transition: none; } }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .rail { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 46rem; margin-bottom: 2.5rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

/* Services : liste en lignes, pas de cartes identiques */
.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 3.5rem; }
.service { display: grid; grid-template-columns: 48px 1fr; gap: 1.1rem; padding: 1.6rem 0; border-top: 1px solid var(--line); }
.service svg { width: 40px; height: 40px; color: var(--wire); }
.service h3 { margin-bottom: .35rem; }
.service p { margin: 0 0 .5rem; color: var(--muted); }
.price-hint { font-size: .92rem; font-weight: 600; color: var(--ink); }
@media (max-width: 800px) { .services { grid-template-columns: 1fr; } }

/* Déroulé : vraie séquence, donc numérotée */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.steps li { counter-increment: step; position: relative; padding-top: 3.4rem; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; font: 700 1.1rem var(--f-display); }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 1.2rem; left: 3rem; right: -1.4rem; height: 2px; background: var(--line); }
.steps h3 { font-size: 1.2rem; }
.steps p { color: var(--muted); font-size: .98rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } .steps li::after { display: none; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Zone + engagements */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.towns { list-style: none; padding: 0; margin: 0 0 1.2rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.towns li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .35rem .9rem; font-size: .95rem; }
.section-alt .towns li { background: var(--bg); }
.commitments { margin: 0; }
.commitments div { padding: 1.1rem 0; border-top: 1px solid var(--line); }
.commitments dt { font: 600 1.15rem var(--f-display); margin-bottom: .2rem; }
.commitments dd { margin: 0; color: var(--muted); }

/* Avis */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.review blockquote { margin: 0 0 .8rem; font-size: 1.08rem; line-height: 1.55; }
.review figcaption { font-size: .92rem; color: var(--muted); }
.review .stars { color: var(--volt-deep); letter-spacing: 2px; margin-bottom: .6rem; font-size: 1.05rem; }
@media (max-width: 860px) { .reviews { grid-template-columns: 1fr; gap: 2rem; } }

/* FAQ */
.faq { max-width: 52rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.2rem 2.5rem 1.2rem 0; position: relative; font: 600 1.15rem/1.35 var(--f-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .4rem; top: 50%; transform: translateY(-50%); font: 400 1.6rem var(--f-body); }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 0 1.2rem; color: var(--muted); }

/* Bandeau d'appel à l'action */
.cta-band { background: var(--ink); color: #fff; padding: clamp(3rem, 7vw, 4.5rem) 0; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta-band h2 { margin: 0 0 .3rem; }
.cta-band p { margin: 0; color: #C3CCD5; }
.cta-band .btn-line { color: #fff; border-color: #fff; }
.cta-band .btn-line:hover { background: #fff; color: var(--ink); }
.cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--surface); border-top: 6px solid transparent; border-image: repeating-linear-gradient(90deg, var(--earth-g) 0 18px, var(--volt) 18px 36px) 6; padding: 3.5rem 0 2rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.site-footer h2 { font-size: 1.05rem; margin-bottom: .8rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: var(--ink); }
.site-footer address { font-style: normal; }
.footer-legal { border-top: 1px solid var(--line); padding-top: 1.4rem; color: var(--muted); font-size: .85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; cursor: pointer; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Barre d'appel mobile */
.callbar { display: none; }
@media (max-width: 700px) {
  .callbar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; box-shadow: 0 -4px 20px rgba(22,32,43,.15); }
  .callbar a { text-align: center; padding: 1rem .5rem; font-weight: 600; text-decoration: none; }
  .callbar a:first-child { background: var(--ink); color: #fff; }
  .callbar a:last-child { background: var(--volt); color: var(--ink); }
  body { padding-bottom: 58px; }
}

/* ---------- Pages intérieures ---------- */
.page-head { padding: clamp(2.5rem, 6vw, 4rem) 0 2rem; }
.page-head p { color: var(--muted); font-size: 1.1rem; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--line); }
.prose { max-width: 52rem; padding-bottom: 4rem; }
.prose h2 { font-size: var(--step-2); margin-top: 2.2rem; }
.prose h3 { margin-top: 1.5rem; }
.prose ul { padding-left: 1.2rem; max-width: 68ch; }
.prose li { margin-bottom: .35rem; }
.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; margin: 1rem 0 1.5rem; }
.prose th, .prose td { text-align: left; border-bottom: 1px solid var(--line); padding: .6rem .5rem; vertical-align: top; }
.table-scroll { overflow-x: auto; }

/* ---------- Formulaires ---------- */
.field { margin-bottom: 1.1rem; }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .98rem; }
.field .hint { display: block; font-weight: 400; color: var(--muted); font-size: .88rem; }
.input, .field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea, .field select {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface);
  border: 1.5px solid #B8C2CC; border-radius: var(--radius-s); padding: .75rem .85rem;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid rgba(30,86,160,.35); border-color: var(--wire); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .92rem; color: var(--muted); }
.check input { margin-top: .3rem; width: 18px; height: 18px; flex: none; accent-color: var(--ink); }
.hp { position: absolute; left: -5000px; }
.form-status { margin-top: 1rem; font-weight: 600; }
.form-status.ok { color: var(--earth-g); }
.form-status.err { color: #B3261E; }
.contact-grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: clamp(2rem, 5vw, 4rem); padding-bottom: 4rem; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 1.6rem; align-self: start; }
.contact-card h2 { font-size: 1.3rem; }
.contact-card dl { margin: 0; }
.contact-card dt { font-weight: 600; margin-top: .9rem; }
.contact-card dd { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Estimation en ligne ---------- */
.estimator { display: grid; grid-template-columns: 1fr 340px; gap: 2.5rem; align-items: start; padding-bottom: 4rem; }
@media (max-width: 960px) { .estimator { grid-template-columns: 1fr; } }
.progress { display: flex; list-style: none; padding: 0; margin: 0 0 2rem; gap: .5rem; counter-reset: p; }
.progress li { flex: 1; counter-increment: p; font-size: .88rem; color: var(--muted); border-top: 4px solid var(--line); padding-top: .5rem; }
.progress li::before { content: counter(p) ". "; font-weight: 700; }
.progress li.is-done { border-color: var(--ink); color: var(--ink); }
.progress li.is-current { border-color: var(--volt-deep); color: var(--ink); font-weight: 600; }
.est-step[hidden] { display: none; }
.est-step > h2 { font-size: var(--step-2); }
.choices { display: grid; gap: .7rem; border: 0; padding: 0; margin: 0 0 1.5rem; }
.choice { display: flex; gap: .9rem; align-items: flex-start; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-m); padding: 1rem 1.1rem; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.choice input { margin-top: .3rem; accent-color: var(--ink); width: 18px; height: 18px; flex: none; }
.choice strong { display: block; }
.choice span span { color: var(--muted); font-size: .92rem; }
.cat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); margin-bottom: 1.2rem; }
.cat > h3 { margin: 0; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); font-size: 1.2rem; }
.line-item { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; padding: .85rem 1.2rem; border-bottom: 1px solid var(--line); }
.line-item:last-child { border-bottom: 0; }
.line-item .li-label { font-weight: 500; }
.line-item .li-meta { display: block; color: var(--muted); font-size: .86rem; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid #B8C2CC; border-radius: var(--radius-s); overflow: hidden; }
.qty button { width: 40px; height: 40px; background: var(--bg); border: 0; font: 600 1.2rem var(--f-body); cursor: pointer; color: var(--ink); }
.qty button:hover { background: var(--line); }
.qty input { width: 48px; height: 40px; border: 0; text-align: center; font: 600 1rem var(--f-body); -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.line-item.has-qty { background: #FFF8E1; }
.est-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; }
.est-error { color: #B3261E; font-weight: 600; min-height: 1.4em; }
.summary { position: sticky; top: 92px; background: var(--ink); color: #fff; border-radius: var(--radius-m); padding: 1.4rem; }
.summary h2 { font-size: 1.3rem; margin-bottom: 1rem; }
.summary ul { list-style: none; margin: 0 0 1rem; padding: 0; font-size: .92rem; max-height: 280px; overflow: auto; }
.summary li { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; border-bottom: 1px solid #33414F; }
.summary .empty { color: #9AA8B6; border: 0; }
.totals { display: grid; grid-template-columns: 1fr auto; gap: .3rem 1rem; font-size: .95rem; }
.totals .grand { font: 700 1.6rem var(--f-display); color: var(--volt); margin-top: .5rem; }
.summary .note { font-size: .8rem; color: #9AA8B6; margin: 1rem 0 0; }
@media (max-width: 960px) { .summary { position: static; } }
.done-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 1.8rem; }
.done-box .btn { margin: .4rem .6rem .4rem 0; }

/* ---------- Bandeau cookies ---------- */
.cookie-banner { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 60; max-width: 560px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 1.3rem 1.4rem; box-shadow: 0 20px 50px -20px rgba(22,32,43,.45); font-size: .93rem; }
.cookie-banner h2 { font-size: 1.2rem; margin-bottom: .5rem; }
.cookie-banner p { margin-bottom: .9rem; color: var(--muted); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-actions .btn { padding: .7em 1em; font-size: .92rem; flex: 1 1 auto; justify-content: center; }
.cookie-prefs { border-top: 1px solid var(--line); margin: .5rem 0 1rem; padding-top: .8rem; }
.cookie-prefs label { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; }
.cookie-prefs input { width: 20px; height: 20px; accent-color: var(--ink); }
@media (max-width: 700px) { .cookie-banner { bottom: 70px; left: .6rem; right: .6rem; } }

/* ---------- 404 ---------- */
.notfound { padding: 6rem 0; }

/* Ajustements */
.review { margin: 0; }
.summary li span:last-child, .totals span:nth-child(even) { white-space: nowrap; text-align: right; }
