/* Mise en page : bandeaux diagonaux orange et bleu nuit repris du flyer, fiches de référence en plaques signalétiques (kWc / kW / kWh). */
:root {
  --chart: #c46f00; --chart-fill: rgba(243,146,0,.16);
  --bg: #f6f7fc; --surface: #ffffff; --alt: #eceefa;
  --ink: #17184a; --muted: #5b5d82; --line: #d9dcef;
  --navy: #2b2a80; --on-navy: #ffffff; --navy-soft: #c9cbf2;
  --sun: #f39200; --sun-deep: #945000; --on-sun: #1d1300; --ok: #1b7a43;
  --display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0f1030; --surface: #181a45; --alt: #14153b;
  --ink: #eeeffb; --muted: #a9acd4; --line: #2e3068;
  --navy: #23246e; --on-navy: #ffffff; --navy-soft: #c9cbf2;
  --sun: #ffa71f; --sun-deep: #ffb84d; --on-sun: #1d1300; --ok: #5ed494; --chart: #ffa71f; --chart-fill: rgba(255,167,31,.18); color-scheme: dark } }
:root[data-theme="dark"] {
  --bg: #0f1030; --surface: #181a45; --alt: #14153b;
  --ink: #eeeffb; --muted: #a9acd4; --line: #2e3068;
  --navy: #23246e; --on-navy: #ffffff; --navy-soft: #c9cbf2;
  --sun: #ffa71f; --sun-deep: #ffb84d; --on-sun: #1d1300; --ok: #5ed494; --chart: #ffa71f; --chart-fill: rgba(255,167,31,.18); color-scheme: dark }

*, *::before, *::after { box-sizing: border-box }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.6 var(--body); font-variant-numeric: lining-nums; -webkit-text-size-adjust: 100% }
img { max-width: 100%; display: block }
[hidden] { display: none !important }
a { color: inherit }
p { margin: 0 }
h1, h2, h3, h4 { margin: 0; text-wrap: balance }
h1, h2 { font-family: var(--display); font-weight: 700; line-height: 1.05; letter-spacing: -.005em }
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem) }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem) }
h3 { font-size: 1.05rem; font-weight: 700; line-height: 1.3 }
u { text-decoration: none; font: 500 .62em var(--mono); color: var(--muted); letter-spacing: .02em }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%) }
.sel { user-select: all }
.mono { font-family: var(--mono); font-size: .85rem }

/* langues */
.en { display: none }
html[data-lang="en"] .fr { display: none }
html[data-lang="en"] .en { display: inline }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px) }

/* en-tête */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line) }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0 }
.brand img { width: 44px; height: auto; flex: none }
.brand b { display: block; font: 700 1.45rem/1 var(--display); white-space: nowrap }
.brand i { display: block; font: italic 600 .82rem/1.2 var(--display); color: var(--sun-deep); white-space: nowrap }
#nav { display: flex; align-items: center; gap: 4px }
#nav a { text-decoration: none; font-weight: 600; font-size: .93rem; padding: 8px 11px; border-radius: 6px; color: var(--muted); white-space: nowrap }
#nav { gap: 0 }
#nav a { padding: 8px 7px; font-size: .88rem }
#nav a:hover { color: var(--ink); background: var(--alt) }
#nav a[aria-current] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--sun) ; border-radius: 0 }
.lang { margin-left: 8px; font: 500 .8rem var(--mono); padding: 7px 10px; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: var(--ink); cursor: pointer }
.lang:hover { border-color: var(--sun) }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 8px; background: transparent; cursor: pointer; flex-direction: column; gap: 5px; align-items: center; justify-content: center }
.burger span { width: 20px; height: 2px; background: var(--ink) }
@media (max-width: 1240px) {
  .burger { display: flex }
  #nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 16px 16px }
  #nav.open { display: flex }
  #nav a { padding: 12px 8px; font-size: 1rem }
  .lang { margin: 8px 0 0; align-self: flex-start }
}

/* boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; font: 700 .97rem var(--body); padding: 13px 22px; border-radius: 6px; text-decoration: none; border: 2px solid transparent; cursor: pointer }
.btn.sun { background: var(--sun); color: var(--on-sun) }
.btn.sun:hover { filter: brightness(1.07) }
.btn.ghost { border-color: var(--line); color: var(--ink); background: transparent }
.btn.ghost:hover { border-color: var(--ink) }
.actions { display: flex; flex-wrap: wrap; gap: 12px }
.eyebrow { font: 500 .78rem var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--sun-deep) }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 62ch }

/* accueil */
.hero { position: relative; overflow: hidden; padding-block: clamp(32px, 6vw, 72px) 0 }
.hero::before { content: ""; position: absolute; inset: 0 0 auto auto; width: 46%; height: 100%; background: var(--navy); clip-path: polygon(34% 0, 100% 0, 100% 100%, 0 100%); z-index: 0 }
.hero::after { content: ""; position: absolute; top: 0; right: 0; width: 46%; height: 100%; background: var(--sun); clip-path: polygon(30% 0, 34% 0, 0 100%, -4% 100%); z-index: 0 }
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 64px); align-items: center }
.hero-t { display: flex; flex-direction: column; gap: 20px; min-width: 0 }
.hero-p { margin: 0; min-width: 0 }
.hero-p img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 4px; border: 6px solid var(--surface) }
.hero-p figcaption { margin-top: 8px; font: 400 .78rem var(--mono); color: var(--navy-soft) }
.meter { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); margin: clamp(28px, 5vw, 56px) 0 0; background: var(--surface); border: 1px solid var(--line); border-bottom: 0; border-radius: 6px 6px 0 0 }
.meter div { padding: 20px 22px; border-left: 1px solid var(--line); min-width: 0 }
.meter div:first-child { border-left: 0 }
.meter dd { margin: 0; font: 700 clamp(1.9rem, 3.4vw, 2.6rem)/1 var(--display); font-variant-numeric: tabular-nums }
.meter dt { margin-top: 6px; font-size: .88rem; color: var(--muted) }
@media (max-width: 860px) {
  .hero::before, .hero::after { display: none }
  .hero-in { grid-template-columns: 1fr }
  .hero-p figcaption { color: var(--muted) }
  .meter { grid-template-columns: 1fr 1fr }
  .meter div:nth-child(3) { border-left: 0 }
  .meter div:nth-child(n+3) { border-top: 1px solid var(--line) }
}

/* sections */
.sec { padding-block: clamp(40px, 7vw, 80px); border-top: 1px solid var(--line) }
.sec.alt { background: var(--alt) }
.sec h2 { margin-bottom: 24px }
.sec-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px }
.sec-h h2 { margin: 0 }
.sec-h a { font-weight: 600; color: var(--sun-deep); text-decoration: none; white-space: nowrap }
.sec-h a:hover { text-decoration: underline }
.sub { color: var(--muted); margin: -12px 0 20px }
.phead { padding-block: clamp(36px, 6vw, 68px); background: var(--navy); color: var(--on-navy); position: relative; overflow: hidden }
.phead::after { content: ""; position: absolute; right: -40px; bottom: 0; width: 38%; height: 100%; background: var(--sun); clip-path: polygon(88% 0, 100% 0, 30% 100%, 18% 100%) }
.phead .wrap { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 14px }
.phead .eyebrow { color: var(--sun) }
.phead .lead { color: var(--navy-soft) }

.grid3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line) }
.grid4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px }
.svc { padding: 24px; display: flex; flex-direction: column; gap: 8px; min-width: 0 }
.grid3 .svc { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface) }
.grid4 .svc { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--sun); border-radius: 4px }
.svc p { color: var(--muted); font-size: .96rem }

/* plaque de référence */
.plate { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; min-width: 0 }
.plate img { width: 100%; aspect-ratio: 16/10; object-fit: cover }
.plate-b { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1 }
.when { display: flex; justify-content: space-between; gap: 8px; font: 400 .76rem var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .05em }
.live { color: var(--ok) }
.live::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); margin-right: 6px }
.lieu { color: var(--muted); font-size: .92rem }
.note { font-size: .9rem }
.specs { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: auto 0 0; padding-top: 12px }
.specs:empty { display: none }
.specs dt { font-size: .72rem; color: var(--muted) }
.specs dd { margin: 0; font: 500 1.02rem var(--mono); font-variant-numeric: tabular-nums }
.cost { border-top: 1px dashed var(--line); padding-top: 10px; margin-top: 8px; font: 500 .86rem var(--mono); color: var(--sun-deep) }
.cost:empty { display: none }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center }
.two.top { align-items: start }
.two > * { min-width: 0 }
.two p + p { margin-top: 14px }
.pic { margin: 0 }
.pic img { width: 100%; border-radius: 4px }
.pic figcaption { margin-top: 8px; font: 400 .78rem var(--mono); color: var(--muted) }
.anniv { margin-top: 24px; width: min(420px, 100%); background: #ffffff; padding: 12px 16px; border-radius: 4px }
@media (max-width: 860px) { .two { grid-template-columns: 1fr } }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px }
.chips li { padding: 10px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; font-weight: 600 }

.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 18px }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; column-gap: 14px }
.steps li::before { content: counter(s); grid-row: span 2; font: 700 2rem/1 var(--display); color: var(--sun-deep) }
.steps p { color: var(--muted); font-size: .96rem }

.prod { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 20px; display: flex; flex-direction: column; gap: 8px; min-width: 0 }
.kind { font: 400 .74rem var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted) }
.prod ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: .92rem }
.price { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); font: 700 1.9rem/1 var(--display); font-variant-numeric: tabular-nums }

.filters { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px }
.fset { display: flex; flex-wrap: wrap; gap: 8px }
.fset button { font: 600 .88rem var(--body); padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer }
.fset button:hover { border-color: var(--sun) }
.fset button.on { background: var(--navy); color: var(--on-navy); border-color: var(--navy) }
.count { font: 400 .82rem var(--mono); color: var(--muted); margin-bottom: 16px }

.band { background: var(--navy); color: var(--on-navy); padding-block: clamp(32px, 5vw, 56px) }
.band-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px }
.band p { color: var(--navy-soft); margin-top: 8px; max-width: 56ch }
.bignum { font: 700 clamp(1.5rem, 3.4vw, 2.2rem)/1.1 var(--display); font-variant-numeric: tabular-nums; overflow-wrap: anywhere }
.bignum.sm { font-size: clamp(1.15rem, 2.4vw, 1.5rem) }
.band .bignum { color: var(--sun); margin: 0 }

.cards { display: grid; gap: 14px }
.ccard { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--sun); border-radius: 4px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start }
.ccard h3 { font: 400 .76rem var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted) }
.copy { font: 600 .82rem var(--body); padding: 7px 12px; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: var(--ink); cursor: pointer }
.copy:hover { border-color: var(--sun) }
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: clamp(18px, 3vw, 28px); display: flex; flex-direction: column; gap: 16px }
.quote h2 { margin: 0 }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px }
@media (max-width: 560px) { .row { grid-template-columns: 1fr } }
label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .9rem; min-width: 0 }
input, select, textarea { font: 400 1rem var(--body); padding: 11px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--ink); width: 100% }
.out { border-top: 1px dashed var(--line); padding-top: 16px; display: flex; flex-direction: column; gap: 12px }
.out pre { margin: 0; padding: 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; font: 400 .86rem/1.5 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere }

.foot { background: var(--alt); border-top: 1px solid var(--line); padding-block: 40px 20px; font-size: .92rem; color: var(--muted) }
.foot-in { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px }
.foot-in > div { display: flex; flex-direction: column; gap: 8px; min-width: 0 }
.foot-name { font: 700 1.5rem var(--display); color: var(--ink) }
.foot h4, .foot-h { font: 400 .74rem var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--ink) }
.foot-end { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .84rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px }
.team-link { color: var(--muted); text-decoration: none; font-weight: 600 }
.team-link:hover { color: var(--ink); text-decoration: underline }
@media (max-width: 720px) { .foot-in { grid-template-columns: 1fr } }
@media (prefers-reduced-motion: no-preference) { .btn, .fset button, #nav a { transition: background-color .15s, border-color .15s, filter .15s } }

/* WordPress */
.prod img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 2px; height: auto }
.plate img { height: auto }
.ccard a { text-decoration: none }
.ccard a:hover { text-decoration: underline }
.msg { padding: 12px 14px; border-radius: 6px; border: 1px solid var(--line); border-left: 4px solid var(--ok); font-weight: 600 }
.msg.err { border-left-color: var(--sun) }
.prose { max-width: 760px }
.prose > * + * { margin-top: 1em }
.prose a { color: var(--sun-deep) }

/* Bilan de charge */
.bc { border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px 16px; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 10px }
.bc legend { font-weight: 700; padding: 0 6px }
.hint { color: var(--muted); font-size: .88rem }
.bc-head, .bc-row { display: grid; grid-template-columns: minmax(0,2.2fr) minmax(0,1.3fr) minmax(0,.7fr) minmax(0,1fr) minmax(0,.9fr) minmax(0,.9fr) 32px; gap: 6px; align-items: center }
.bc-head { font: 400 .7rem var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--muted) }
.bc-rows { display: flex; flex-direction: column; gap: 8px }
.bc-row .cell { display: flex; flex-direction: column; gap: 4px; font-weight: 400 }
.bc-row input, .bc-row select { padding: 8px; font-size: .92rem }
.bc-row .t { font: 500 .92rem var(--mono); text-align: right; font-variant-numeric: tabular-nums }
.rm { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: var(--muted); font-size: 1.1rem; cursor: pointer }
.rm:hover { color: var(--ink); border-color: var(--sun) }
.bc-tot { display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 4px 0 0; padding-top: 10px; border-top: 1px dashed var(--line) }
.bc-tot dt { font-size: .8rem; color: var(--muted) }
.bc-tot dd { margin: 0; font: 700 1.5rem var(--display); font-variant-numeric: tabular-nums }
@media (max-width: 700px) {
  .bc-head { display: none }
  .bc-row { grid-template-columns: 1fr 1fr; padding: 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg) }
  .bc-row .c-a { grid-column: 1 / -1 }
  .bc-row .sr { position: static; width: auto; height: auto; clip-path: none; font-size: .74rem; color: var(--muted) }
  .bc-row .t { grid-column: 1 / 3; text-align: left }
  .bc-row .t::before { content: "Wh/j : "; color: var(--muted); font-size: .8rem }
  .bc-row .rm { justify-self: end }
}

.contact-wrap { display: flex; flex-direction: column; gap: 28px }
.cards4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) }
.contact-wrap .quote { max-width: 1000px }
@media (max-width: 700px) { .bc-row .t { grid-column: 1 / 2 } }

/* En direct */
.pulse { position: relative; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-right: 6px; vertical-align: 1px }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ok); opacity: 0 }
@media (prefers-reduced-motion: no-preference) { .pulse::after { animation: ne-pulse 2s ease-out infinite } }
@keyframes ne-pulse { 0% { transform: scale(1); opacity: .6 } 70% { transform: scale(2.8); opacity: 0 } 100% { transform: scale(2.8); opacity: 0 } }
#nav a.live-link { color: var(--ink) }
.livebar { display: block; text-decoration: none; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line) }
.livebar-in { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding-block: 14px }
.lb-tag { font: 500 .78rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ok) }
.lb-go { margin-left: auto; font-weight: 600; color: var(--sun-deep) }
.livebar:hover .lb-go { text-decoration: underline }
.live-sum { margin: 0 0 12px; border-bottom: 1px solid var(--line); border-radius: 6px }
.live-grid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 20px; margin-top: 12px; align-items: start }
.live-list { display: flex; flex-direction: column; gap: 8px; max-height: 640px; overflow: auto; padding: 2px }
.live-item { text-align: left; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; cursor: pointer; display: flex; flex-direction: column; gap: 4px }
.live-item:hover { border-color: var(--sun) }
.live-item[aria-selected="true"] { border-color: var(--navy); box-shadow: inset 4px 0 0 var(--sun) }
.li-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline }
.li-sub { color: var(--muted); font-size: .86rem }
.li-num { font: 500 1rem var(--mono) }
.state { font: 400 .7rem var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); white-space: nowrap }
.state.on { color: var(--ok) }
.live-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: clamp(18px, 3vw, 30px); display: flex; flex-direction: column; gap: 14px; min-width: 0 }
.gauge p { color: var(--muted) }
.gauge b { color: var(--ink); font: 700 1.6rem var(--display) }
.g-bar { height: 12px; background: var(--alt); border-radius: 999px; overflow: hidden; margin-bottom: 8px }
.g-bar span { display: block; height: 100%; background: var(--sun); border-radius: 999px }
.specs.big { gap: 14px 32px; padding-top: 6px; margin: 0 }
.specs.big dd { font-size: 1.4rem }
.empty-live { max-width: 640px; display: flex; flex-direction: column; gap: 14px }
@media (max-width: 860px) {
  .live-grid { grid-template-columns: 1fr }
  .live-list { flex-direction: row; overflow-x: auto; max-height: none; padding-bottom: 6px }
  .live-item { min-width: 220px }
  .lb-go { margin-left: 0 }
}

/* Graphiques */
.chart { margin: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0 }
.chart figcaption { font-weight: 600; font-size: .95rem }
.chart .unit { font: 400 .75rem var(--mono); color: var(--muted); margin-left: 4px }
.chart-box { position: relative }
.chart svg { width: 100%; height: auto; display: block; overflow: visible }
.chart .grid { stroke: var(--line); stroke-width: 1 }
.chart .axis { stroke: var(--muted); stroke-width: 1; opacity: .6 }
.chart .tick { fill: var(--muted); font: 400 11px var(--mono) }
.chart .val { fill: var(--ink); font: 600 12px var(--mono) }
.chart .area { fill: var(--chart-fill) }
.chart .line { fill: none; stroke: var(--chart); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round }
.chart .end { fill: var(--chart); stroke: var(--surface); stroke-width: 2 }
.chart .cross { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3 }
.chart .hov { fill: var(--chart); stroke: var(--surface); stroke-width: 2 }
.chart .hit { fill: transparent; cursor: crosshair }
.chart .bar path { fill: var(--chart); opacity: .55 }
.chart .bar.today path { opacity: 1 }
.chart .bar:hover path, .chart .bar.on path { opacity: 1 }
.chart .bar .hit { cursor: default }
.ctip { position: absolute; transform: translate(-50%, calc(-100% - 10px)); background: var(--ink); color: var(--surface); font: 500 .78rem var(--mono); padding: 5px 8px; border-radius: 4px; white-space: nowrap; pointer-events: none }
@media (max-width: 560px) { .chart .tick { font-size: 19px } .chart .val { font-size: 20px } }

/* chiffres alignés (la police de titre a des chiffres « elzéviriens » par défaut) */
h1, h2, h3, .meter dd, .bignum, .price, .gauge b, .bc-tot dd, .foot-name, .steps li::before { font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1 }
.state.off { color: var(--sun-deep) }

.hero-p img, .pic img { height: auto }
.hero-p figcaption { color: var(--muted) }
@media (min-width: 861px) { .hero-p figcaption { color: #e3e4f7; text-shadow: 0 1px 2px rgba(0,0,0,.4) } }
.hero-p { position: relative }
.hero-p figcaption, .hero-p figcaption[class] { position: absolute; left: 12px; bottom: 12px; margin: 0; padding: 4px 8px; border-radius: 3px; background: rgba(15, 16, 48, .78); color: #ffffff; text-shadow: none }
@media (min-width: 861px) { .hero-p figcaption { color: #ffffff; text-shadow: none } }

/* Sur le terrain */
.gal-filters { margin-bottom: 18px }
.fset button .n { font: 400 .75rem var(--mono); opacity: .7; margin-left: 2px }
.chantier-ctx { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; margin-bottom: 18px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--sun); border-radius: 4px }
.chantier-ctx a { color: var(--sun-deep); font-weight: 600; text-decoration: none }
.gal { columns: 4 240px; column-gap: 14px }
.gal-item { display: block; break-inside: avoid; margin-bottom: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; text-decoration: none; color: var(--ink) }
.gal-item img { width: 100%; height: auto; display: block; transition: transform .25s }
.gal-item:hover img { transform: scale(1.03) }
.gal-cap { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; font-size: .88rem; line-height: 1.35 }
.gal-cap b { font-weight: 600 }
.gal-cap i { font-style: normal; font: 400 .74rem var(--mono); color: var(--muted) }
.plate-photos { margin-top: 8px; font-size: .85rem; font-weight: 600; color: var(--sun-deep); text-decoration: none }
.plate-photos:hover { text-decoration: underline }
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(8, 9, 28, .94); display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; padding: calc(env(safe-area-inset-top, 0px) + 48px) 8px calc(env(safe-area-inset-bottom, 0px) + 40px); touch-action: pan-y }
.lb figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; max-height: 100% }
.lb img { max-width: 100%; max-height: calc(100vh - 160px); object-fit: contain; border-radius: 3px }
.lb figcaption { color: #ffffff; text-align: center; font-size: .95rem; display: flex; flex-direction: column; gap: 2px }
.lb figcaption i { font-style: normal; font: 400 .78rem var(--mono); color: #c9cbf2 }
.lb button { background: rgba(255, 255, 255, .12); color: #ffffff; border: 0; border-radius: 50%; width: 44px; height: 44px; font-size: 1.6rem; line-height: 1; cursor: pointer }
.lb button:hover { background: rgba(255, 255, 255, .25) }
.lb-x { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 8px); right: 12px }
.lb-n { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 18px); left: 16px; margin: 0; color: #c9cbf2; font: 400 .8rem var(--mono) }
@media (max-width: 600px) { .lb { grid-template-columns: 1fr; padding-inline: 8px } .lb-prev, .lb-next { position: absolute; bottom: calc(env(safe-area-inset-bottom, 0px) + 10px) } .lb-prev { left: 16px } .lb-next { right: 16px } }
@media (prefers-reduced-motion: reduce) { .gal-item img { transition: none } }
.admin-bar .lb { top: 32px }
@media (max-width: 782px) { .admin-bar .lb { top: 46px } }

/* accès du personnel (connexion puis espace Stock) */
#nav a.team { display: inline-flex; align-items: center; justify-content: center; margin-left: 8px; width: 36px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); box-shadow: none }
#nav a.team:hover { border-color: var(--sun); background: transparent }
#nav a.team .team-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%) }
@media (max-width: 1240px) {
  #nav a.team { width: auto; height: auto; justify-content: flex-start; gap: 8px; margin: 8px 0 0; padding: 10px 12px; align-self: flex-start }
  #nav a.team .team-t { position: static; width: auto; height: auto; clip-path: none }
}
/* Boutique mise en avant dans le menu : pastille aux couleurs de la marque */
#nav a.shop-link { display: inline-flex; align-items: center; gap: 6px; margin: 0 6px; padding: 7px 12px; border-radius: 6px; background: var(--sun); color: var(--on-sun); box-shadow: none }
#nav a.shop-link:hover { background: var(--sun); color: var(--on-sun); filter: brightness(1.06) }
#nav a.shop-link[aria-current] { box-shadow: inset 0 -3px 0 var(--sun-deep); border-radius: 6px }
@media (max-width: 1240px) { #nav a.shop-link { align-self: flex-start; margin: 6px 0; padding: 10px 14px } }

/* ------------------------------------------------------------------ 1.7 : mise en page plus dense, menu proportionnel à l'écran */
.wrap { max-width: 1440px; padding-inline: clamp(16px, 3.2vw, 48px) }
.top-in { padding-block: clamp(8px, .7vw, 14px) }
.brand img { width: clamp(42px, 2.2vw + 14px, 58px) }
.brand b { font-size: clamp(1.4rem, .9rem + .7vw, 1.85rem) }
.brand i { font-size: clamp(.8rem, .62rem + .25vw, .95rem) }
#nav a { font-size: clamp(.95rem, .35rem + .7vw, 1.2rem); padding: 9px clamp(6px, .5vw, 12px) }
#nav a.shop-link { padding: 8px clamp(10px, .8vw, 16px); margin: 0 clamp(4px, .4vw, 10px) }
#nav a.team { width: clamp(36px, 1.2vw + 20px, 42px); height: clamp(34px, 1.2vw + 18px, 40px) }
.lang { font-size: clamp(.78rem, .6rem + .2vw, .9rem); padding: 8px 11px }
.hero { padding-block: clamp(24px, 3.6vw, 52px) 0 }
.meter { margin-top: clamp(20px, 3vw, 40px) }
.sec { padding-block: clamp(28px, 4vw, 56px) }
.phead { padding-block: clamp(26px, 3.6vw, 48px) }
.band { padding-block: clamp(22px, 3vw, 40px) }
.foot { padding-block: 28px 16px }
.foot-end { margin-top: 18px }
.sec-h { margin-bottom: clamp(14px, 1.6vw, 22px) }
@media (max-width: 1240px) { #nav a { font-size: 1rem; padding: 12px 8px } #nav a.shop-link { padding: 10px 14px; margin: 6px 0 } }
.grid4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) }
@media (min-width: 900px) { .grid3 { grid-template-columns: repeat(3, 1fr) } }
.phead h1 { font-size: clamp(2rem, 3.6vw, 3.2rem) }

/* bouton flottant « Aide WhatsApp » : même style que le bouton Panier, en bas à droite (sous le Panier dans la boutique) */
.wahelp { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 30 }
.wahelp-btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 18px; border-radius: 999px; border: 0; background: var(--navy); color: var(--on-navy); font: 700 .97rem var(--body); cursor: pointer; box-shadow: 0 8px 24px rgba(16,17,52,.28) }
.wahelp-btn:hover { filter: brightness(1.12) }
.wahelp-btn i { width: 26px; height: 26px; border-radius: 13px; background: #1fa855; display: inline-grid; place-items: center }
.wahelp-btn svg { width: 17px; height: 17px; color: #fff }
.wahelp-pop { position: absolute; right: 0; bottom: calc(100% + 12px); width: min(300px, calc(100vw - 32px)); background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: 10px; padding: 18px 18px 16px; box-shadow: 0 16px 40px rgba(16,17,52,.25) }
.wahelp-x { position: absolute; top: 6px; right: 8px; border: 0; background: none; font-size: 1.4rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px 8px }
.wahelp-t { font: 700 1.25rem/1.2 var(--display); margin: 0 0 6px }
.wahelp-d { font-size: .88rem; color: var(--muted); margin: 0 0 14px }
.wahelp-go { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 14px; border-radius: 6px; background: #1fa855; color: #fff; font-weight: 700; text-decoration: none }
.wahelp-go svg { width: 20px; height: 20px }
.wahelp-go:hover { filter: brightness(1.06) }
.wahelp-tel { display: block; text-align: center; margin-top: 10px; font-size: .9rem; color: var(--ink); text-decoration: none }
.wahelp-tel:hover b { text-decoration: underline }
/* boutique : le Panier remonte au-dessus de l'aide */
.wahelp.in-shop ~ .cartbtn, body.ne-shop .cartbtn { bottom: calc(80px + env(safe-area-inset-bottom, 0px)) }
@media (prefers-reduced-motion: no-preference) { .wahelp-pop:not([hidden]) { animation: wahelp-in .18s ease-out } @keyframes wahelp-in { from { opacity: 0; translate: 0 8px } } }
