/* bandeau commun aux démos (copié en tête de chaque feuille de démo) */
.demo-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 18px; padding: 10px max(16px, 3vw); padding-top: calc(10px + env(safe-area-inset-top, 0px)); background: #1A2BC3; color: #FFFFFF; font: 500 14px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; }
.demo-banner p { margin: 0; }
.demo-banner a { color: #FFFFFF; font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 3px; white-space: nowrap; }
.demo-note { margin: 12px 0 0; font-weight: 700; }
/* Démo Watt Next : conseil en énergie, bilingue. Nuit, papier, signal orange, menthe. Host Grotesk. */
@font-face { font-family: "Host Grotesk"; src: url("../../fonts/host-grotesk.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }
:root { --papier: #F5F6F8; --blanc: #FFFFFF; --nuit: #0F1E2E; --texte: #13202E; --texte-2: #4C5B6B; --signal: #FF5F1F; --menthe: #12936A; --brume: #E3E9F0; --ligne: rgba(19,32,46,.14); color-scheme: light; }
@media (prefers-color-scheme: dark) { :root { --papier: #0C1724; --blanc: #12202F; --texte: #EAF0F6; --texte-2: #A6B4C3; --brume: #172738; --ligne: rgba(234,240,246,.14); color-scheme: dark; } }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--papier); color: var(--texte); font: 400 1.0625rem/1.6 "Host Grotesk", system-ui, sans-serif; }
svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: -.025em; text-wrap: balance; }
h1 { font-weight: 750; }
h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.2rem); font-weight: 700; margin-bottom: .6em; }
h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: .3em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }
.w-wrap { max-width: 1160px; margin-inline: auto; padding-inline: clamp(18px, 4vw, 40px); }

.w-header { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 18px; padding: 14px clamp(18px, 4vw, 40px); background: color-mix(in srgb, var(--papier) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--ligne); }
.w-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 750; font-size: 1.25rem; letter-spacing: -.03em; }
.w-logo svg { width: 40px; color: var(--signal); }
.w-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.w-nav a:not(.w-btn) { padding: 8px 12px; text-decoration: none; font-weight: 600; border-radius: 8px; }
.w-nav a:not(.w-btn):hover { background: var(--brume); }
.w-lang { border: 1.5px solid var(--ligne); }
.w-burger { display: none; margin-left: auto; font: 700 1rem "Host Grotesk", sans-serif; background: var(--nuit); color: #fff; border: 0; border-radius: 8px; padding: 10px 16px; }
.w-btn { display: inline-flex; align-items: center; min-height: 48px; padding: 12px 22px; border-radius: 8px; background: var(--signal); color: #14100C; font-weight: 750; text-decoration: none; border: 0; cursor: pointer; font-size: 1rem; }
.w-btn:hover { background: #FF7A42; }
@media (max-width: 900px) {
  .w-burger { display: inline-block; }
  .w-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 12px clamp(18px, 4vw, 40px) 20px; background: var(--papier); border-bottom: 1px solid var(--ligne); }
  .w-nav.is-open { display: flex; }
}

.w-hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-block: clamp(48px, 7vw, 100px); }
.w-hero h1 { font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4.2rem); }
.w-lead { font-size: 1.2rem; color: var(--texte-2); max-width: 42ch; margin: 24px 0 30px; }
.w-ctas { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.w-link { font-weight: 700; text-underline-offset: 5px; text-decoration-thickness: 2px; text-decoration-color: var(--signal); }
.w-chart { margin: 0; background: var(--blanc); border-radius: 18px; padding: 24px 24px 18px; box-shadow: 0 30px 60px -30px rgba(15,30,46,.35); border: 1px solid var(--ligne); }
.w-chart figcaption { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 14px; font-size: .95rem; }
.w-chart figcaption span { color: var(--texte-2); }
.w-chart text { font: 600 12px "Host Grotesk", sans-serif; fill: var(--texte-2); }
.w-grid { stroke: var(--ligne); stroke-width: 1; }
.w-avant { fill: none; stroke: #9AA7B5; stroke-width: 3; stroke-dasharray: 6 7; }
.w-apres { fill: none; stroke: var(--menthe); stroke-width: 4; stroke-linecap: round; }
.w-aire { fill: var(--menthe); opacity: .12; }
.w-legende { list-style: none; display: flex; gap: 18px; padding: 0; margin: 12px 0 0; font-size: .9rem; color: var(--texte-2); }
.w-legende li { display: inline-flex; align-items: center; gap: 8px; }
.w-legende li::before { content: ""; width: 22px; height: 0; border-top: 3px dashed #9AA7B5; }
.w-legende .ap::before { border-top: 4px solid var(--menthe); }
@media (prefers-reduced-motion: no-preference) {
  .js .w-apres { stroke-dasharray: 1; stroke-dashoffset: 1; animation: trace 1.8s cubic-bezier(.4,0,.2,1) .5s forwards; }
  .js .w-aire { opacity: 0; animation: aire .8s ease 1.9s forwards; }
}
@keyframes trace { to { stroke-dashoffset: 0; } }
@keyframes aire { to { opacity: .12; } }
@media (max-width: 900px) { .w-hero-in { grid-template-columns: 1fr; } }

.w-section { padding-block: clamp(64px, 9vw, 120px); }
.w-section--nuit { background: var(--nuit); color: #EAF0F6; }
.w-section--brume { background: var(--brume); }
.w-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.w-steps li { border-top: 3px solid var(--texte); padding-top: 22px; }
.w-num { display: inline-block; font-weight: 750; font-size: 2.8rem; line-height: 1; color: var(--signal); margin-bottom: 12px; letter-spacing: -.04em; }
.w-steps p { color: var(--texte-2); }
@media (max-width: 860px) { .w-steps { grid-template-columns: 1fr; } }
.w-regl { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: end; }
.w-regl p { color: #C2CEDA; max-width: 58ch; font-size: 1.1rem; }
.w-jalons { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: end; height: 300px; }
.w-jalons li { display: grid; align-content: end; gap: 6px; height: 100%; }
.w-bar { display: block; height: calc(var(--h) * 1%); background: linear-gradient(var(--signal), #FF8A55); border-radius: 8px 8px 2px 2px; transform-origin: bottom; }
.w-jalons strong { font-size: 2rem; letter-spacing: -.03em; }
.w-jalons span:last-child { color: #A6B4C3; font-weight: 600; }
.w-jalons .will-reveal .w-bar { transform: scaleY(0); transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.w-jalons .will-reveal.is-in .w-bar { transform: none; }
.w-jalons .will-reveal { opacity: 1 !important; transform: none !important; }
.w-jalons li:nth-child(2) .w-bar { transition-delay: .12s; }
.w-jalons li:nth-child(3) .w-bar { transition-delay: .24s; }
@media (max-width: 860px) { .w-regl { grid-template-columns: 1fr; } .w-jalons { height: 220px; } }
.w-qui { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.w-qui li { background: var(--blanc); border-radius: 14px; padding: 22px; border: 1px solid var(--ligne); }
.w-qui p { color: var(--texte-2); margin: 0; }
@media (max-width: 960px) { .w-qui { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .w-qui { grid-template-columns: 1fr; } }
.w-contact { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; }
.w-contact p { color: var(--texte-2); font-size: 1.1rem; }
.w-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.w-form label { display: grid; gap: 6px; font-weight: 650; font-size: .95rem; }
.w-form .w-full { grid-column: 1 / -1; }
.w-form input, .w-form textarea { width: 100%; min-height: 48px; padding: 10px 12px; border-radius: 8px; border: 1.5px solid var(--ligne); background: var(--blanc); color: var(--texte); font: inherit; }
.w-form button { justify-self: start; }
.w-form .demo-note { grid-column: 1 / -1; color: var(--menthe); }
@media (max-width: 860px) { .w-contact, .w-form { grid-template-columns: 1fr; } }
.w-footer { background: var(--nuit); color: #A6B4C3; padding-block: 28px; font-size: .95rem; }
.w-footer p { margin: 0; }
.will-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.will-reveal.is-in { opacity: 1; transform: none; }
.w-steps .will-reveal:nth-child(2), .w-qui .will-reveal:nth-child(2) { transition-delay: .08s; }
.w-steps .will-reveal:nth-child(3), .w-qui .will-reveal:nth-child(3) { transition-delay: .16s; }
.w-qui .will-reveal:nth-child(4) { transition-delay: .24s; }
