/* Loire Tech Énergie — feuille de style (refonte nov. 2026)
   Charte : marine #04295E, vert #77BC01, ardoise #476388, filet #BFCEE1 */

:root {
  --marine: #04295E;
  --nuit: #021B40;
  --vert: #77BC01;
  --vert-fonce: #5E9601;
  --ardoise: #476388;
  --filet: #BFCEE1;
  --papier: #F3F6FA;
  --blanc: #FFFFFF;
  --max: 1180px;
  --font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-cond: "Barlow Condensed", "Barlow", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ardoise);
  background: var(--blanc);
}

img, svg { display: block; max-width: 100%; }
a { color: var(--marine); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--vert-fonce); }

:focus-visible { outline: 3px solid var(--vert); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { color: var(--marine); margin: 0; line-height: 1.08; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: 0; line-height: 1.25; }
p { margin: 0 0 1rem; max-width: 66ch; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--marine); color: #fff; padding: 8px 14px; z-index: 999; }
.skip:focus { left: 8px; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 24px;
  font: 700 1rem/1.1 var(--font);
  border-radius: 6px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn svg { flex: none; }
.btn-vert { background: var(--vert); color: var(--nuit); }
.btn-vert:hover { background: #86CF0B; color: var(--nuit); }
.btn-ligne { border-color: var(--marine); color: var(--marine); background: transparent; }
.btn-ligne:hover { background: var(--marine); color: #fff; }

/* En-tête */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--filet);
}
.header .wrap { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { height: 40px; width: auto; border-radius: 9px; }
.brand span { font-weight: 800; font-size: 1.2rem; color: var(--marine); letter-spacing: -0.01em; white-space: nowrap; }
.nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav a { text-decoration: none; font-weight: 600; color: var(--marine); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--vert); color: var(--marine); }
.header .btn { min-height: 44px; padding: 10px 18px; }
.menu-btn { display: none; background: none; border: 1px solid var(--filet); border-radius: 6px; width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--marine); cursor: pointer; }

/* Hero */
.hero { background: var(--papier); border-bottom: 1px solid var(--filet); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero h1 { max-width: 16ch; }
.hero .lead { font-size: 1.2rem; color: var(--ardoise); margin: 24px 0 32px; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note { margin: 18px 0 0; font-size: 0.95rem; }

.schema { margin: 0; }
.schema-frame {
  background-color: #fff;
  background-image:
    linear-gradient(rgba(191,206,225,.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(191,206,225,.35) 1px, transparent 1px);
  background-size: 20px 20px;
  border: 1px solid var(--filet);
  border-radius: 8px;
  padding: 18px 14px 8px;
}
.schema figcaption { font-size: 0.9rem; margin-top: 12px; color: var(--ardoise); }

.schema .w { fill: none; stroke: var(--filet); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.schema .live { fill: none; stroke: var(--vert); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; animation: courant 1.6s cubic-bezier(.45,0,.2,1) forwards; }
.schema .live.d2 { animation-delay: .15s; } .schema .live.d3 { animation-delay: .3s; }
.schema .live.d4 { animation-delay: .45s; } .schema .live.d5 { animation-delay: .6s; } .schema .live.d6 { animation-delay: .75s; }
.schema .box { fill: #fff; stroke: var(--marine); stroke-width: 2; }
.schema .brk { fill: #fff; stroke: var(--marine); stroke-width: 1.6; }
.schema .bus { stroke: var(--marine); stroke-width: 4; stroke-linecap: round; }
.schema .dot { fill: var(--filet); animation: allume .3s ease forwards; animation-delay: 1.75s; }
.schema text { font-family: var(--font-cond); fill: var(--marine); }
.schema .t-s { font-size: 13px; font-weight: 600; }
.schema .t-xs { font-size: 11.5px; font-weight: 500; fill: var(--ardoise); }
.schema .t-box { font-size: 12px; font-weight: 700; }
@keyframes courant { to { stroke-dashoffset: 0; } }
@keyframes allume { to { fill: var(--vert); } }
@media (prefers-reduced-motion: reduce) {
  .schema .live { animation: none; stroke-dashoffset: 0; }
  .schema .dot { animation: none; fill: var(--vert); }
}

/* Photo du hero */
.hero .wrap { grid-template-columns: 1fr 1.05fr; }
.hero-photo { margin: 0; position: relative; justify-self: end; width: 100%; max-width: 470px; }
.hero-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; box-shadow: 0 24px 60px rgba(4,41,94,.22); }
.hero-photo figcaption { position: absolute; left: -28px; bottom: 28px; background: #fff; border-left: 4px solid var(--vert); border-radius: 6px; padding: 12px 18px; color: var(--marine); font-weight: 700; box-shadow: 0 10px 30px rgba(4,41,94,.15); max-width: 85%; }
.hero-photo figcaption span { display: block; font-size: 0.85rem; font-weight: 600; color: var(--vert-fonce); }

/* Bandeau d'engagements */
.engagements { background: #fff; border-bottom: 1px solid var(--filet); }
.engagements ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.engagements li { padding: 26px 24px; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--filet); }
.engagements li:first-child { border-left: 0; padding-left: 0; }
.engagements strong { color: var(--marine); font-size: 1.05rem; }
.engagements strong::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--vert); margin-right: 10px; vertical-align: middle; position: relative; top: -2px; }
.engagements span { font-size: 0.95rem; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: start; }
.faq { border-top: 1px solid var(--filet); }
.faq details { border-bottom: 1px solid var(--filet); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative; font-weight: 700; font-size: 1.1rem; color: var(--marine); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; border-right: 2.5px solid var(--vert-fonce); border-bottom: 2.5px solid var(--vert-fonce); transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq summary:hover { color: var(--vert-fonce); }
.faq details p { margin: -4px 0 22px; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* Sections */
.section { padding: 96px 0; }
.section-head { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: end; margin-bottom: 48px; }
.section-head p { margin: 0; font-size: 1.1rem; }
.alt { background: var(--papier); border-top: 1px solid var(--filet); border-bottom: 1px solid var(--filet); }

/* Services : présentés comme les départs d'un tableau */
.departs { list-style: none; margin: 0; padding: 0 0 0 44px; position: relative; border-top: 1px solid var(--filet); }
.departs::before { content: ""; position: absolute; left: 6px; top: 0; bottom: 34px; width: 4px; background: var(--marine); border-radius: 2px; }
.departs li { position: relative; display: grid; grid-template-columns: minmax(220px, 1fr) 2fr; gap: 32px; padding: 26px 0; border-bottom: 1px solid var(--filet); }
.departs li::before { content: ""; position: absolute; left: -34px; top: 36px; width: 22px; height: 2px; background: var(--marine); }
.departs li::after { content: ""; position: absolute; left: -14px; top: 31px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--vert); }
.departs h3 { padding-top: 4px; }
.departs p { margin: 0; }

/* Pour qui */
.publics { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--filet); border-radius: 8px; background: #fff; overflow: hidden; }
.public { padding: 40px; }
.public + .public { border-left: 1px solid var(--filet); }
.public h3 { font-size: 1.5rem; margin-bottom: 12px; }
.public ul { list-style: none; padding: 0; margin: 20px 0 0; }
.public li { padding: 10px 0 10px 30px; position: relative; border-top: 1px solid #E3EAF3; }
.public li::before { content: ""; position: absolute; left: 4px; top: 19px; width: 12px; height: 7px; border-left: 2.5px solid var(--vert); border-bottom: 2.5px solid var(--vert); transform: rotate(-45deg); }

/* Méthode : vraie séquence, donc numérotée */
.etapes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: etape; position: relative; }
.etapes::before { content: ""; position: absolute; top: 22px; left: 22px; right: 12%; height: 2px; background: var(--filet); }
.etapes li { counter-increment: etape; position: relative; padding-right: 28px; }
.etapes li::before {
  content: counter(etape);
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: #fff; border: 2px solid var(--marine); color: var(--marine);
  font: 800 1.15rem/1 var(--font); position: relative; margin-bottom: 20px;
}
.etapes li:last-child::before { background: var(--vert); border-color: var(--vert); color: var(--nuit); }
.etapes h3 { margin-bottom: 8px; }
.etapes p { margin: 0; font-size: 1rem; }

/* Réalisation mise en avant */
.chantier { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; }
.chantier-txt h3 { font-size: 1.6rem; margin: 0 0 14px; }
.chantier-tag { display: inline-block; font-weight: 700; font-size: 0.9rem; color: var(--vert-fonce); margin-bottom: 10px; }
.vignettes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.vignettes figure { margin: 0; }
.vignettes a, .vignettes button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 6px; overflow: hidden; }
.vignettes img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .25s ease; }
.vignettes a:hover img, .vignettes button:hover img { transform: scale(1.04); }
.vignettes .v-haut img { object-position: center 10%; }

/* Zones */
.zones { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; }
.communes { columns: 3 180px; column-gap: 32px; list-style: none; margin: 0; padding: 0; }
.communes li { break-inside: avoid; padding: 8px 0; border-bottom: 1px solid var(--filet); color: var(--marine); font-weight: 500; }

/* Contact */
.contact { background: var(--marine); color: #DCE6F2; }
.contact h2, .contact h3 { color: #fff; }
.contact .wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; }
.contact p { color: #DCE6F2; }
.tel-geant { display: inline-block; font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; color: #fff; text-decoration: none; letter-spacing: -0.01em; margin: 18px 0 6px; }
.tel-geant:hover { color: var(--vert); }
.coord { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid rgba(191,206,225,.3); }
.coord li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(191,206,225,.3); }
.coord span { color: #9FB4CF; }
.coord a { color: #fff; }
.coord a:hover { color: var(--vert); }

.form { background: #fff; border-radius: 8px; padding: 36px; color: var(--ardoise); }
.form h3 { color: var(--marine); font-size: 1.35rem; margin-bottom: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.95rem; color: var(--marine); }
.field .opt { font-weight: 400; color: var(--ardoise); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--nuit);
  border: 1px solid #AFC0D6; border-radius: 6px; padding: 11px 13px; background: #fff; width: 100%;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--marine); box-shadow: 0 0 0 3px rgba(119,188,1,.35); }
.field input[type="file"] { padding: 9px; font-size: 0.95rem; }
.hint { font-size: 0.85rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { width: 100%; }
.contact .form p { color: var(--ardoise); }
.form-privacy { font-size: 0.85rem; margin: 14px 0 0; }
.form-note { margin: 14px 0 0; font-weight: 600; color: var(--vert-fonce); }
.form-note--error { color: #B42318; }

/* Pied de page */
.footer { background: var(--nuit); color: #9FB4CF; padding: 56px 0 40px; font-size: 0.95rem; }
.footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { height: 38px; width: auto; border-radius: 9px; box-shadow: 0 0 0 1px rgba(191,206,225,.25); }
.footer-brand span { color: #fff; font-weight: 800; font-size: 1.15rem; }
.footer h3 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { padding: 3px 0; }
.footer a { color: #DCE6F2; }
.footer a:hover { color: var(--vert); }
.footer p { margin: 0 0 6px; }
.footer-bas { grid-column: 1 / -1; border-top: 1px solid rgba(191,206,225,.2); padding-top: 22px; margin-top: 8px; font-size: 0.85rem; }

/* Bouton d'appel mobile */
.appel-mobile { display: none; }

/* Pages secondaires */
.page-head { background: var(--papier); border-bottom: 1px solid var(--filet); padding: 64px 0 56px; }
.page-head p { font-size: 1.15rem; margin: 18px 0 0; }
.legal { max-width: 760px; }
.legal h2 { font-size: 1.35rem; margin: 40px 0 12px; }
.legal h2:first-child { margin-top: 0; }

.projet { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; padding-bottom: 56px; border-bottom: 1px solid var(--filet); }
.projet h2 { font-size: 1.8rem; margin-bottom: 14px; }
.fiche { list-style: none; padding: 0; margin: 20px 0 0; border-top: 1px solid var(--filet); }
.fiche li { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--filet); }
.fiche span { color: var(--marine); font-weight: 600; }
.a-venir { margin-top: 40px; }

/* Visionneuse */
.lightbox { position: fixed; inset: 0; z-index: 500; background: rgba(2, 27, 64, 0.95); display: none; flex-direction: column; align-items: center; justify-content: center; padding: 24px 72px; }
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-height: 80vh; width: auto; border-radius: 6px; }
.lightbox figcaption { margin-top: 14px; color: #fff; font-weight: 600; text-align: center; }
.lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.06); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lb-btn:hover { border-color: var(--vert); background: rgba(119,188,1,.25); }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-close { top: 16px; right: 16px; }
.lb-count { position: absolute; bottom: 18px; color: #9FB4CF; font-size: 0.9rem; }

/* Responsive */
@media (max-width: 1020px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; padding-top: 56px; }
  .hero h1 { max-width: 20ch; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-photo { justify-self: start; max-width: 520px; }
  .hero-photo figcaption { left: 16px; bottom: 16px; }
  .faq-wrap { grid-template-columns: 1fr; gap: 28px; }
  .engagements ul { grid-template-columns: 1fr 1fr; }
  .engagements li:nth-child(3) { border-left: 0; padding-left: 0; }
  .engagements li:nth-child(n+3) { border-top: 1px solid var(--filet); }
  .section-head, .chantier, .zones, .contact .wrap, .projet { grid-template-columns: 1fr; gap: 28px; }
  .etapes { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .etapes::before { display: none; }
  .footer .wrap { grid-template-columns: 1fr 1fr; }
  .footer .wrap > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--filet); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 8px 28px 18px; }
  .nav li a { display: block; padding: 12px 0; border-bottom: 1px solid #E3EAF3; }
  .menu-btn { display: inline-flex; }
  .header .btn-tel span { display: none; }
  .header .btn-tel { padding: 10px 12px; }
  .publics { grid-template-columns: 1fr; }
  .public + .public { border-left: 0; border-top: 1px solid var(--filet); }
  .departs li { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .wrap { padding: 0 20px; }
  .section { padding: 64px 0; }
  .brand span { font-size: 1.05rem; }
  .brand img { height: 34px; }
  .header .wrap { gap: 10px; min-height: 66px; }
  .hero-actions .btn { width: 100%; }
  .public, .form { padding: 26px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .etapes { grid-template-columns: 1fr; }
  .coord li, .fiche li { grid-template-columns: 1fr; gap: 2px; }
  .footer .wrap { grid-template-columns: 1fr; }
  .appel-mobile {
    display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 200;
    box-shadow: 0 10px 30px rgba(2,27,64,.35);
  }
  .footer { padding-bottom: 96px; }
  .lightbox { padding: 16px; }
  .lb-prev, .lb-next { top: auto; bottom: 10px; transform: none; }
  .vignettes { gap: 10px; }
  .vignettes img { aspect-ratio: 1 / 1; }
}

a[href^="tel:"] { white-space: nowrap; }

/* Schéma interactif */
.schema .hit { fill: transparent; }
.schema .node { cursor: pointer; outline: none; }
.schema .lev { stroke: var(--marine); stroke-width: 1.6; }
.schema .node:hover .box, .schema .node:hover .brk { stroke: var(--vert-fonce); }
.schema .node:focus-visible .box, .schema .node:focus-visible .brk { stroke: var(--vert); stroke-width: 3; }
.schema .node.sel .box, .schema .node.sel .brk { fill: #EEF7DD; stroke: var(--vert-fonce); stroke-width: 2.5; }
.schema .node.sel text { fill: var(--nuit); }
.schema svg .live { transition: opacity .25s ease; }
.schema svg.focus .live { opacity: .12; }
.schema svg.focus .live.on { opacity: 1; }
.schema-info { border-top: 1px solid var(--filet); margin: 8px -14px 0; padding: 14px 18px 12px; background: #fff; min-height: 104px; border-radius: 0 0 8px 8px; }
.si-title { font-weight: 700; color: var(--marine); margin: 0 0 4px; }
.si-text { margin: 0; font-size: 0.95rem; }
.schema-frame { padding-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .schema svg .live { transition: none; } }

/* Montages d'éclairage */
.si-ecl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--filet); }
.si-ecl[hidden] { display: none; }
.montage svg { width: 100%; height: auto; display: block; overflow: visible; }
.montage p { font-size: .82rem; line-height: 1.35; margin: 4px 0 0; color: var(--ardoise); }
.montage p strong { display: block; color: var(--marine); font-size: .9rem; }
.si-hint { grid-column: 1 / -1; font-size: .8rem; margin: 0; color: var(--ardoise); }
.si-hint .k-ph { color: #C62828; font-weight: 600; } .si-hint .k-n { color: #1E6FD9; font-weight: 600; }
.schema .montage .lb { font-size: 13px; font-weight: 700; }
.schema .montage .lb.ph { fill: #C62828; } .schema .montage .lb.n { fill: #1E6FD9; }
.montage .fil, .montage .levier { fill: none; stroke: #B4C2D4; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; transition: stroke .2s; }
.montage .fil.ph, .montage .fil.on, .montage .levier.on { stroke: #C62828; }
.montage .fil.n { stroke: #1E6FD9; }
.montage .borne { fill: #fff; stroke: var(--marine); stroke-width: 1.5; }
.montage .lampe circle { fill: #fff; stroke: var(--marine); stroke-width: 2; transition: fill .25s, filter .25s; }
.montage .lampe path { fill: none; stroke: var(--marine); stroke-width: 2; }
.montage.lit .lampe circle { fill: #FFD84D; filter: drop-shadow(0 0 7px rgba(255, 196, 0, .85)); }
.montage .sw-hit { fill: transparent; cursor: pointer; }
.montage .sw-hit:hover { fill: rgba(119, 188, 1, .08); }
.montage .sw-hit:focus { outline: none; }
.montage .sw-hit:focus-visible { stroke: var(--vert); stroke-width: 2; stroke-dasharray: 4 3; }

/* Contacteur jour/nuit */
.si-cjn { grid-template-columns: 1fr; }
.montage .lien { stroke: var(--marine); stroke-width: 1.5; stroke-dasharray: 4 3; }
.montage .bobine rect { fill: #fff; stroke: var(--marine); stroke-width: 2; transition: fill .2s, stroke .2s; }
.schema .montage .bobine text { font-size: 12px; font-weight: 700; }
.montage.bob-on .bobine rect { fill: #EEF7DD; stroke: var(--vert-fonce); }
.montage .resist rect { fill: #fff; stroke: var(--marine); stroke-width: 2; transition: fill .25s, filter .25s; }
.montage.chauffe .resist rect { fill: #FF9A3C; filter: drop-shadow(0 0 7px rgba(255, 120, 30, .75)); }
.cjn-ctrl { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.seg { display: inline-flex; border: 1px solid var(--filet); border-radius: 6px; overflow: hidden; }
.seg button, .cjn-ctrl .hc { font: inherit; font-size: .8rem; font-weight: 600; color: var(--marine); background: #fff; border: 0; padding: 7px 11px; cursor: pointer; }
.seg button + button { border-left: 1px solid var(--filet); }
.seg button[aria-pressed="true"] { background: var(--marine); color: #fff; }
.cjn-ctrl .hc { border: 1px solid var(--filet); border-radius: 6px; }
.cjn-ctrl .hc[aria-pressed="true"] { background: #EEF7DD; border-color: var(--vert); color: var(--vert-fonce); }
.cjn-ctrl .hc:disabled { opacity: .45; cursor: not-allowed; }
.seg button:focus-visible, .cjn-ctrl .hc:focus-visible { outline: 2px solid var(--vert); outline-offset: -2px; }
.cjn-etat { font-size: .82rem; font-weight: 600; color: var(--marine); margin: 8px 0 0; min-height: 1.2em; }
