/* ==========================================================================
   EWG-FR · Autovoltaic-FR — feuille de style
   Direction : « chantier solaire » / plan d'architecte
   Couleurs reprises du site d'origine : #004D8F, #578FBF, #143852
   ========================================================================== */

/* polices auto-hébergées (SIL Open Font License) — aucune requête vers Google */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url("../fonts/archivo-latin.woff2") format("woff2-variations"), url("../fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url("../fonts/archivo-latin-ext.woff2") format("woff2-variations"), url("../fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/plex-mono-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/plex-mono-500.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/plex-mono-600.woff2") format("woff2"); }

:root {
  --navy: #143852;
  --navy-2: #0e2a3e;
  --blue: #004d8f;
  --sky: #578fbf;
  --sky-2: #a9c6e0;
  --sky-ink: #3a6b98;
  --ice: #dce8f3;
  --paper: #f2f6fa;
  --white: #ffffff;
  --text: #1d3346;
  --muted: #4f6275;
  --line: rgba(20, 56, 82, .16);
  --line-2: rgba(20, 56, 82, .28);
  --field: #6f879c;
  --error: #b3261e;
  --error-bg: #fdf1f0;
  --ok: #1f6f43;

  --f-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wrap: 1320px;
  --gut: clamp(16px, 4vw, 40px);
  --header: 72px;
  --r: 3px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --grid-c: rgba(0, 77, 143, .055);
  --grid-c2: rgba(0, 77, 143, .085);
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); }
body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 1rem;
  line-height: 1.62;
  color: var(--text);
  background: var(--paper);
  font-variation-settings: "wdth" 100;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (min-width: 860px) { body { font-size: 1.0625rem; } }
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--blue); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
abbr[title] { text-decoration: none; }
:focus-visible { outline: 2.5px solid var(--blue); outline-offset: 3px; }
::selection { background: var(--navy); color: #fff; }
main:focus { outline: none; }
[hidden] { display: none !important; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico--flip { transform: scaleX(-1); }
.ico--up { transform: rotate(-90deg); }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.muted { color: var(--muted); font-weight: 400; }
.small { font-size: .875rem; }

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 200;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--r);
  transform: translateY(-160%); transition: transform .2s;
}
.skip-link:focus { transform: none; }

/* papier quadrillé « plan » */
.hero, .section--paper, .section--contact, .plan-sheet, .calc-sheet {
  background-image:
    linear-gradient(var(--grid-c2) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-c2) 1px, transparent 1px),
    linear-gradient(var(--grid-c) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-c) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
}

/* ---------------------------------------------------------------- typo */
h1, h2, h3, h4, h5, h6 { margin: 0; color: var(--navy); line-height: 1.08; font-weight: 750; }
.h2 {
  font-size: clamp(2rem, 1.25rem + 3vw, 3.75rem);
  font-weight: 780; font-stretch: 108%; font-variation-settings: "wdth" 108;
  letter-spacing: -.022em; line-height: 1.02; margin-bottom: .45em; text-wrap: balance;
}
.h3 { font-size: clamp(1.35rem, 1.1rem + .9vw, 1.85rem); letter-spacing: -.01em; margin-bottom: .55em; }
.h3--light { color: #fff; }
.h4 { font-size: 1.28rem; letter-spacing: -.005em; margin-bottom: .5em; }
.h5 { font-size: 1.08rem; margin-bottom: .6em; }
.h6 { font-family: var(--f-mono); font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; margin-bottom: .9em; }
.lead { font-size: clamp(1.1rem, 1rem + .45vw, 1.32rem); line-height: 1.55; color: var(--text); max-width: 38em; }
.lead--sm { font-size: clamp(1.02rem, .98rem + .25vw, 1.15rem); color: var(--muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .7em;
  font-family: var(--f-mono); font-size: .75rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--blue);
  margin-bottom: 1.4em;
}
.eyebrow .ref { border: 1px solid currentColor; padding: .25em .5em; line-height: 1; letter-spacing: .06em; }
.eyebrow--light { color: var(--sky-2); }
.eyebrow--plain { color: var(--navy); }
.eyebrow--plain::before { content: ""; width: 28px; height: 1px; background: currentColor; }

/* ---------------------------------------------------------------- boutons */
.btn {
  --bg: var(--navy); --fg: #fff; --bd: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: .85em 1.35em;
  background: var(--bg); color: var(--fg); border: 1.5px solid var(--bd); border-radius: var(--r);
  font-weight: 650; font-size: 1rem; line-height: 1.1; text-decoration: none;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .25s var(--ease), border-color .25s, background .25s, transform .2s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--blue);
  transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn .ico { transition: transform .3s var(--ease); }
.btn:hover .ico:not(.ico--flip) { transform: translateX(4px); }
.btn--primary { --bg: var(--navy); --bd: var(--navy); }
.btn--ghost { --bg: transparent; --fg: var(--navy); --bd: var(--navy); }
.btn--ghost:hover { --fg: #fff; --bd: var(--blue); }
.btn--light { --bg: #fff; --fg: var(--navy); --bd: #fff; }
.btn--light::before { background: var(--ice); }
.btn--sm { min-height: 42px; padding: .6em 1em; font-size: .92rem; }
.btn--block { width: 100%; }
.btn-text {
  background: none; border: 0; padding: .35em 0; color: var(--blue); font-weight: 600;
  text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px;
}
.btn-text:hover { text-decoration-thickness: 2px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5em; font-weight: 650; text-decoration: none;
  color: var(--blue); border-bottom: 1.5px solid currentColor; padding-bottom: 2px;
}
.link-arrow .ico { transition: transform .3s var(--ease); }
.link-arrow:hover .ico { transform: translateX(5px); }
.link-file { display: inline-flex; align-items: center; gap: .55em; font-weight: 600; }
.link-file .ico { width: 1.35em; height: 1.35em; }

.chip {
  display: inline-flex; align-items: center; gap: .5em;
  min-height: 40px; padding: .45em .95em; border-radius: 999px;
  background: #fff; border: 1px solid var(--line-2); color: var(--navy);
  font-size: .92rem; font-weight: 550; transition: background .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--navy); }
.chip.is-on, .chip[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip.is-on .role-tag, .chip[aria-pressed="true"] .role-tag { border-color: rgba(255, 255, 255, .6); color: #fff; background: transparent; }
.chip-count { font-family: var(--f-mono); font-size: .75rem; opacity: .7; }
.chip-count:empty { display: none; }

.badge {
  display: inline-block; font-family: var(--f-mono); font-size: .7rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; line-height: 1;
  padding: .38em .5em; border: 1px solid var(--line-2); border-radius: 2px; color: var(--navy);
}
.badge--lang { background: var(--ice); border-color: transparent; }

.role-tag {
  display: inline-block; font-family: var(--f-mono); font-size: .68rem; font-weight: 600; letter-spacing: .04em;
  line-height: 1; padding: .34em .42em; border: 1px solid var(--navy); color: var(--navy); border-radius: 2px;
}
.role-tag--mo { background: var(--navy); color: #fff; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header);
  background: rgba(242, 246, 250, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(242, 246, 250, .94); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: block; flex: none; margin-right: auto; }
.logo { width: auto; height: 34px; filter: url(#tint-navy); }
.logo--white { filter: url(#tint-white); }
@media (min-width: 600px) { .logo { height: 40px; } }

.main-nav { display: none; }
.main-nav ul { list-style: none; display: flex; gap: 4px; }
.main-nav a {
  display: inline-flex; align-items: baseline; gap: .45em; padding: .55em .8em; border-radius: var(--r);
  color: var(--navy); font-weight: 600; font-size: .98rem; text-decoration: none; position: relative;
}
.main-nav a .num { font-family: var(--f-mono); font-size: .7rem; color: var(--sky-ink); font-weight: 500; }
.main-nav a::after {
  content: ""; position: absolute; left: .8em; right: .8em; bottom: .3em; height: 2px; background: var(--blue);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.main-nav a:hover::after, .main-nav a.is-current::after { transform: scaleX(1); }
.main-nav a.is-current { color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-cta { display: none; }
@media (min-width: 600px) { .header-cta { display: inline-flex; } }
@media (min-width: 1100px) {
  .main-nav { display: block; }
  .menu-toggle { display: none !important; }
  .brand { margin-right: 0; }
  .main-nav { margin-inline: auto; }
}

.lang-switch { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.lang-switch a {
  font-family: var(--f-mono); font-size: .78rem; font-weight: 600; letter-spacing: .06em;
  padding: .55em .7em; min-width: 40px; text-align: center; text-decoration: none; color: var(--navy);
}
.lang-switch a + a { border-left: 1px solid var(--line-2); }
.lang-switch a[aria-current="page"] { background: var(--navy); color: #fff; }
.lang-switch a:not([aria-current]):hover { background: var(--ice); }
.lang-switch--lg a { font-family: var(--f-sans); font-size: 1rem; padding: .7em 1.1em; letter-spacing: 0; }

.menu-toggle {
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: var(--r);
  background: var(--navy); border: 0; color: #fff;
}
.burger { width: 20px; height: 12px; position: relative; display: block; }
.burger span { position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform .3s var(--ease); }
.burger span:first-child { top: 0; }
.burger span:last-child { bottom: 0; right: 6px; }

.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; }
.scroll-progress span { display: block; height: 100%; background: var(--blue); transform-origin: left; transform: scaleX(0); }

/* menu mobile */
.mobile-menu {
  position: fixed; inset: 0; z-index: 80; background: var(--navy); color: #fff;
  overflow-y: auto; overscroll-behavior: contain;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { animation: menu-in .45s var(--ease) both; }
@keyframes menu-in { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.mobile-menu__inner { min-height: 100%; display: flex; flex-direction: column; gap: 32px; padding: 88px var(--gut) 32px; }
.mobile-menu__close {
  position: absolute; top: 13px; right: var(--gut); width: 46px; height: 46px; display: grid; place-items: center;
  background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .35); border-radius: var(--r);
}
.mobile-menu__close .ico { width: 22px; height: 22px; }
.mobile-menu ol { list-style: none; border-top: 1px solid rgba(255, 255, 255, .18); }
.mobile-menu li { border-bottom: 1px solid rgba(255, 255, 255, .18); }
.mobile-menu nav a {
  display: flex; align-items: baseline; gap: 16px; padding: 16px 0; color: #fff; text-decoration: none;
  font-size: clamp(1.9rem, 8vw, 2.6rem); font-weight: 750; font-stretch: 110%; font-variation-settings: "wdth" 110; letter-spacing: -.02em;
}
.mobile-menu nav .num { font-family: var(--f-mono); font-size: .85rem; color: var(--sky-2); font-weight: 500; }
.mobile-menu.is-open li { animation: item-in .5s var(--ease) both; animation-delay: calc(.12s + var(--i, 0) * 60ms); }
@keyframes item-in { from { opacity: 0; transform: translateY(16px); } }
.mobile-menu .btn--primary { --bg: #fff; --fg: var(--navy); --bd: #fff; }
.mobile-menu .btn--primary::before { background: var(--ice); }
.mobile-menu__foot { margin-top: auto; color: var(--sky-2); font-size: .95rem; display: grid; gap: 16px; }
.mobile-menu .lang-switch { border-color: rgba(255, 255, 255, .35); justify-self: start; }
.mobile-menu .lang-switch a { color: #fff; }
.mobile-menu .lang-switch a + a { border-color: rgba(255, 255, 255, .35); }
.mobile-menu .lang-switch a[aria-current="page"] { background: #fff; color: var(--navy); }
.mobile-menu :focus-visible { outline-color: #fff; }

/* ---------------------------------------------------------------- hero */
.hero { padding-top: calc(var(--header) + clamp(28px, 5vw, 64px)); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; padding-bottom: clamp(40px, 6vw, 72px); }
.ac-grid, .faq-grid, .co-grid, .ct-grid, .calc, .video, .defs, .phases, .team, .docs, .media { grid-template-columns: minmax(0, 1fr); }
.ac-grid > *, .faq-grid > *, .co-grid > *, .ct-grid > *, .calc > *, .hero-grid > * { min-width: 0; }
@media (min-width: 960px) {
  .hero { min-height: 100svh; display: flex; flex-direction: column; }
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); flex: 1; }
}
.hero-title {
  font-size: clamp(2.5rem, .9rem + 4.6vw, 5.4rem);
  font-weight: 820; font-stretch: 104%; font-variation-settings: "wdth" 104;
  line-height: .94; letter-spacing: -.035em; word-spacing: .06em; margin-bottom: .42em;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero-title .line > span { display: inline-block; }
.ink {
  font-style: normal; white-space: nowrap; color: transparent; -webkit-text-stroke: 1.5px var(--blue);
  background: linear-gradient(90deg, var(--blue) 50%, transparent 50%) 0 0 / 200% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text;
}
.hero .lead { margin-bottom: 1.6em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 480px) { .hero-ctas .btn { width: 100%; } }

.js .hero-title .line > span { animation: rise 1s var(--ease) both; }
.js .hero-title .line:nth-child(2) > span { animation-delay: .12s; }
.js .ink { animation: ink 1.4s 1s var(--ease) both; }
.js [data-hero-in] { animation: fade-up .9s var(--ease) both; animation-delay: .45s; }
.js .hero-ctas[data-hero-in] { animation-delay: .6s; }
@keyframes rise { from { transform: translateY(105%); } }
@keyframes ink { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } }
@keyframes fade { from { opacity: 0; } }

/* plan */
.plan { margin: 0; position: relative; }
.plan-sheet {
  background-color: #fff; border: 1px solid var(--navy); position: relative;
  box-shadow: 10px 10px 0 var(--ice), 10px 10px 0 1px var(--line);
}
.plan-sheet::before, .plan-sheet::after {
  content: ""; position: absolute; width: 14px; height: 14px; border: 1.5px solid var(--navy); pointer-events: none;
}
.plan-sheet::before { top: -8px; left: -8px; border-right: 0; border-bottom: 0; }
.plan-sheet::after { bottom: -8px; right: -8px; border-left: 0; border-top: 0; }
.plan-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 9px 14px;
  border-bottom: 1px solid var(--line-2); font-family: var(--f-mono); font-size: .7rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--navy); background: rgba(255, 255, 255, .85);
}
.plan-status { display: inline-flex; align-items: center; gap: .6em; }
.plan-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.plan.is-playing .plan-status:not(.is-done) i { background: #d98a00; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.plan-svg { width: 100%; height: auto; padding: 6px 6px 0; overflow: visible; }
.plan-foot { display: grid; grid-template-columns: auto 1fr; border-top: 1px solid var(--line-2); background: rgba(255, 255, 255, .9); }
.plan-readout { margin: 0; display: flex; }
.plan-readout > div { padding: 10px 16px; border-right: 1px solid var(--line-2); min-width: 112px; }
.plan-readout dt { font-family: var(--f-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.plan-readout dd { margin: 0; font-family: var(--f-mono); font-size: 1.35rem; font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; }
.cartouche { border-collapse: collapse; width: 100%; font-family: var(--f-mono); font-size: .66rem; color: var(--navy); }
.cartouche th, .cartouche td { padding: 3px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.cartouche th { font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; width: 1%; border-right: 1px solid var(--line); }
.cartouche tr:last-child th, .cartouche tr:last-child td { border-bottom: 0; }
@media (max-width: 560px) {
  .plan-foot { grid-template-columns: 1fr; }
  .plan-readout > div { flex: 1; min-width: 0; }
  .plan-readout > div:last-child { border-right: 0; }
  .cartouche { border-top: 1px solid var(--line-2); }
  .cartouche tr:nth-child(n+3) { display: none; }
}
.plan-replay {
  margin-top: 22px; display: inline-flex; align-items: center; gap: .55em; background: none; border: 0; padding: .4em 0;
  font-family: var(--f-mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--blue);
}
.plan-replay:hover { text-decoration: underline; }
.no-js .plan-replay { display: none; }

/* --- dessin SVG : état final (sans JS / mouvement réduit) */
.plan-svg path, .plan-svg polygon, .plan-svg circle { vector-effect: non-scaling-stroke; }
.p-ground path { stroke: var(--navy); stroke-width: 1.4; fill: none; }
.p-ground .p-hatch { stroke-width: .8; opacity: .45; }
.p-wall-front { fill: #fff; stroke: var(--navy); stroke-width: 1.5; stroke-linejoin: round; }
.p-wall-side { fill: #e7eff7; stroke: var(--navy); stroke-width: 1.5; stroke-linejoin: round; }
.p-roof { fill: #d5e3f0; stroke: var(--navy); stroke-width: 1.5; stroke-linejoin: round; }
.p-roof-hatch { fill: url(#hatch-roof); stroke: none; }
.p-verge { fill: none; stroke: var(--navy); stroke-width: 3.2; stroke-linejoin: round; stroke-linecap: round; }
.p-line { fill: none; stroke: var(--navy); stroke-width: 1.4; }
.p-door { fill: none; stroke: var(--navy); stroke-width: 1.4; }
.p-win { fill: #cfe4f6; stroke: var(--navy); stroke-width: 1.2; }
.p-scaffold { opacity: 0; }
.p-scaffold path { fill: none; stroke: var(--sky); stroke-width: 1.3; stroke-linecap: round; }
.p-scaffold text { font-family: var(--f-mono); font-size: 10px; letter-spacing: .08em; fill: var(--sky); text-transform: uppercase; }
.p-panel polygon { fill: url(#pv-grad); stroke: #0b2236; stroke-width: .8; stroke-linejoin: round; }
.p-panel path { stroke: rgba(255, 255, 255, .3); stroke-width: .7; fill: none; }
.p-cable { fill: none; stroke: var(--navy); stroke-width: 1.6; }
.p-pulse { fill: none; stroke: #7fb2e0; stroke-width: 3.5; stroke-linecap: round; opacity: 0; }
.p-inverter { fill: #fff; stroke: var(--navy); stroke-width: 1.4; }
.p-dims path { fill: none; stroke: var(--blue); stroke-width: .9; }
.p-dims text, .p-label text { font-family: var(--f-mono); font-size: 11px; fill: var(--blue); letter-spacing: .04em; }
.p-label path { fill: none; stroke: var(--navy); stroke-width: .9; }
.p-label circle { fill: var(--navy); }
.p-label text { fill: var(--navy); font-weight: 600; letter-spacing: .04em; }
.p-sun circle, .p-sun path { fill: none; stroke: var(--navy); stroke-width: 1.4; stroke-linecap: round; }
.p-sun-rays { transform-box: fill-box; transform-origin: center; animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --- animation du chantier */
.plan.is-playing .draw { stroke-dasharray: 1; animation: draw 1.3s var(--ease) both; }
.plan.is-playing .p-wall-front { animation-delay: .05s; }
.plan.is-playing .p-wall-side { animation-delay: .2s; }
.plan.is-playing .p-roof { animation-delay: .35s; }
.plan.is-playing .p-verge { animation-delay: .5s; }
.plan.is-playing .p-line { animation-delay: .6s; }
.plan.is-playing .p-door { animation-delay: .7s; }
@keyframes draw { from { stroke-dashoffset: 1; fill-opacity: 0; } 60% { fill-opacity: 0; } to { stroke-dashoffset: 0; fill-opacity: 1; } }
.plan.is-playing .p-roof-hatch { animation: fade .6s 1.1s both; }
.plan.is-playing .p-ground .p-hatch { animation: fade .6s .6s both; }
.plan.is-playing .p-win { animation: fade .5s 1.1s both, win-lit .7s 5.05s both; }
@keyframes win-lit { from { fill: #2b4760; } to { fill: #cfe4f6; } }
.plan.is-playing .p-dims { animation: fade .8s .9s both; }
.plan.is-playing .p-sun { animation: sun-rise 1.6s .2s var(--ease) both; }
@keyframes sun-rise { from { opacity: 0; transform: translate(572px, 118px); } to { opacity: 1; transform: translate(572px, 74px); } }
.plan.is-playing .p-scaffold { animation: scaffold 3.5s 1.2s linear both; }
.plan.is-playing .p-scaffold path { stroke-dasharray: 1; animation: draw .9s 1.2s var(--ease) both; }
@keyframes scaffold { 0% { opacity: 0; } 4% { opacity: 1; } 86% { opacity: 1; } 100% { opacity: 0; } }
.plan.is-playing .p-panel { animation: panel-drop .55s cubic-bezier(.25, .9, .3, 1.2) both; animation-delay: calc(1.9s + var(--i) * .11s); }
@keyframes panel-drop { from { opacity: 0; transform: translate(-30px, -34px); } 60% { opacity: 1; } }
.plan.is-playing .p-cable { stroke-dasharray: 1; animation: cable .5s 4.35s linear both; }
@keyframes cable { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.plan.is-playing .p-pulse { stroke-dasharray: .14 1; animation: pulse 1s 4.6s linear 3 both; }
@keyframes pulse { 0% { opacity: 1; stroke-dashoffset: .14; } 98% { opacity: 1; stroke-dashoffset: -1; } 100% { opacity: 0; stroke-dashoffset: -1; } }
.plan.is-playing .p-inverter { animation: fade .4s 1.3s both, inv-on .5s 4.9s 2 both; }
@keyframes inv-on { 50% { fill: #a9c6e0; } }
.plan.is-playing .p-label--pv { animation: fade-up .6s 5.1s both; }

/* chiffres clés */
.facts { border-top: 1px solid var(--navy); background: rgba(255, 255, 255, .7); }
.facts-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 960px) { .facts-list { grid-template-columns: repeat(4, 1fr); } }
.facts-list li { position: relative; padding: 20px 18px 22px; border-left: 1px solid var(--line); display: grid; gap: 4px; }
.facts-list li:nth-child(odd) { border-left: 0; }
@media (min-width: 960px) { .facts-list li:nth-child(odd) { border-left: 1px solid var(--line); } .facts-list li:first-child { border-left: 0; } }
.facts-list li:nth-child(n+3) { border-top: 1px solid var(--line); }
@media (min-width: 960px) { .facts-list li:nth-child(n+3) { border-top: 0; } }
.facts-list li::before {
  content: ""; position: absolute; left: -7px; top: -7px; width: 13px; height: 13px;
  background: linear-gradient(135deg, transparent 44%, var(--navy) 44%, var(--navy) 56%, transparent 56%);
}
.facts-list strong { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); font-weight: 800; font-stretch: 110%; font-variation-settings: "wdth" 110; color: var(--navy); letter-spacing: -.02em; line-height: 1.1; }
.facts-list span { font-size: .92rem; color: var(--muted); line-height: 1.45; }

/* ---------------------------------------------------------------- sections */
.section { padding-block: clamp(72px, 10vw, 140px); position: relative; }
.section--paper { background-color: var(--paper); }
.section--ac, #tarifs, #faq, #cooperative { background: #fff; }
.section-head { max-width: 860px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head--row { max-width: none; display: grid; gap: 8px 48px; align-items: end; }
@media (min-width: 960px) { .section-head--row { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } .section-head--row .lead, .section-head--row .seg { justify-self: end; margin-bottom: .9em; } }
.section-foot { margin-top: 36px; }

/* révélations au scroll */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- autoconstruction */
.ac-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .ac-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; } }
.ac-sticky { position: sticky; top: calc(var(--header) + 40px); }
.ac-visual { display: none; }
@media (min-width: 960px) {
  .ac-visual { display: flex; align-items: center; gap: 28px; margin-top: 48px; }
  .ac-big {
    font-size: 9.5rem; font-weight: 800; line-height: .8; font-stretch: 115%; font-variation-settings: "wdth" 115;
    color: transparent; -webkit-text-stroke: 1.5px var(--navy); letter-spacing: -.04em; font-variant-numeric: tabular-nums;
  }
  .ac-big.is-flip { animation: num-flip .5s var(--ease); }
  @keyframes num-flip { from { opacity: 0; transform: translateY(20px); } }
  .ac-icons { position: relative; width: 120px; height: 120px; border: 1px solid var(--line-2); border-radius: 50%; }
  .ac-icon {
    position: absolute; inset: 18px; width: calc(100% - 36px); height: calc(100% - 36px);
    fill: none; stroke: var(--blue); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
    opacity: 0; transform: scale(.85) rotate(-8deg); transition: opacity .5s, transform .6s var(--ease);
  }
  .ac-icon.is-on { opacity: 1; transform: none; }
}
.ac-steps { list-style: none; position: relative; padding-left: 40px; }
.ac-steps::before, .ac-steps::after { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.ac-steps::after { background: var(--blue); bottom: auto; height: calc(var(--p, 0) * (100% - 20px)); }
.ac-step { position: relative; padding-bottom: clamp(48px, 7vw, 96px); }
.ac-step:last-child { padding-bottom: 0; }
@media (min-width: 960px) { .ac-step { min-height: 46vh; } .ac-step:last-child { min-height: 0; } }
.ac-node {
  position: absolute; left: -40px; top: 4px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 2px solid var(--line-2); z-index: 1; transition: border-color .3s, background .3s, box-shadow .3s;
}
.ac-step.is-active .ac-node, .ac-step.is-past .ac-node { border-color: var(--blue); background: var(--blue); }
.ac-step.is-active .ac-node { box-shadow: 0 0 0 6px rgba(0, 77, 143, .14); }
.ac-step-num { font-family: var(--f-mono); font-size: .78rem; color: var(--sky-ink); letter-spacing: .1em; margin-bottom: .6em; }
.ac-step p:not(.ac-step-num) { max-width: 36em; }
.ac-step .h3 { transition: color .3s; }

/* ---------------------------------------------------------------- bande photo */
.band { position: relative; min-height: 78vh; display: flex; align-items: center; overflow: hidden; color: #fff; background: var(--navy); isolation: isolate; }
.band-media { position: absolute; inset: -12% 0; z-index: -2; will-change: transform; }
.band-media img { width: 100%; height: 100%; object-fit: cover; }
.band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20, 56, 82, .55) 0%, rgba(20, 56, 82, .88) 70%);
}
@media (min-width: 860px) { .band::before { background: linear-gradient(90deg, rgba(14, 42, 62, .93) 0%, rgba(20, 56, 82, .72) 50%, rgba(20, 56, 82, .1) 100%); } }
.band-inner { padding-block: 96px; }
.band-big {
  color: #fff; font-size: clamp(3rem, 1rem + 8vw, 8.4rem); font-weight: 820; font-stretch: 115%; font-variation-settings: "wdth" 115;
  line-height: .9; letter-spacing: -.04em; max-width: 9ch; margin-bottom: .3em;
}
.band-big span { color: var(--sky-2); }
.frac { display: inline-flex; align-items: baseline; letter-spacing: -.06em; }
.frac sup, .frac sub { font-size: .52em; line-height: 1; vertical-align: 0; }
.frac sup { align-self: flex-start; margin-top: .05em; }
.frac i { font-style: normal; font-weight: 300; font-size: .9em; margin: 0 .04em; }
.facts-list strong .ico { display: inline-block; width: .8em; height: .8em; stroke-width: 2.4; vertical-align: -.02em; margin: 0 .12em; }
.band-text { font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); max-width: 30em; color: #e6eef6; }
.band-source { font-family: var(--f-mono); font-size: .72rem; color: var(--sky-2); letter-spacing: .04em; margin-top: 2em; max-width: 48em; }

/* ---------------------------------------------------------------- déroulement */
.role-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.role-filter .role-tag { font-size: .62rem; }
.phases { list-style: none; display: grid; gap: 28px; counter-reset: ph; position: relative; }
@media (min-width: 700px) { .phases { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) {
  .phases { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .phases::before { content: ""; position: absolute; left: 22px; right: 0; top: 22px; height: 1px; background: var(--navy); }
}
.phase { position: relative; }
.phase-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.phase-num {
  width: 45px; height: 45px; flex: none; border-radius: 50%; background: var(--navy); color: #fff;
  display: grid; place-items: center; font-family: var(--f-mono); font-weight: 600; position: relative; z-index: 1;
  box-shadow: 0 0 0 6px var(--paper);
}
.phase-head .h4 { margin: 0; background: var(--paper); padding-right: 12px; position: relative; z-index: 1; }
.phase-steps { list-style: none; display: grid; gap: 10px; }
.pstep {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; padding: 14px 16px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r); transition: opacity .35s, border-color .35s, transform .35s var(--ease), box-shadow .35s;
}
.pstep p { margin: 0; line-height: 1.45; font-size: .97rem; }
.pstep-n { font-family: var(--f-mono); font-size: .75rem; color: var(--sky-ink); padding-top: .2em; grid-row: span 2; }
.pstep-roles { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 4px !important; }
.phases.is-filtered .pstep { opacity: .32; }
.phases.is-filtered .pstep.is-hit { opacity: 1; border-color: var(--blue); box-shadow: 4px 4px 0 var(--ice); transform: translateX(3px); }

/* ---------------------------------------------------------------- tarifs */
.calc { display: grid; gap: 24px; }
@media (min-width: 960px) { .calc { grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); gap: 40px; align-items: start; } }
.calc-controls { border: 1px solid var(--line-2); border-radius: var(--r); padding: clamp(20px, 3vw, 36px); background: var(--paper); display: grid; gap: 32px; }
.calc-label { font-family: var(--f-mono); font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); display: block; margin-bottom: .5em; padding: 0; }
.calc-kwp { display: block; font-size: clamp(2.6rem, 2rem + 2.5vw, 4rem); font-weight: 820; font-stretch: 112%; font-variation-settings: "wdth" 112; color: var(--navy); line-height: 1; margin: .1em 0 .3em; font-variant-numeric: tabular-nums; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 36px; background: transparent; margin: 0; --fill: 19%; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--navy) var(--fill), var(--ice) var(--fill)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--ice); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--navy); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -11px; border-radius: 50%; background: #fff; border: 2px solid var(--navy); box-shadow: 0 2px 0 var(--line-2); cursor: grab; }
input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid var(--navy); cursor: grab; }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(0, 77, 143, .3); }
input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px rgba(0, 77, 143, .3); }
.calc-scale { position: relative; height: 1.4em; margin: 0 14px; font-family: var(--f-mono); font-size: .7rem; color: var(--muted); }
.calc-scale span { position: absolute; left: var(--p); transform: translateX(-50%); white-space: nowrap; }
.calc-scale span:last-child { transform: translateX(-70%); }
.field-hint { font-size: .86rem; color: var(--muted); margin: .6em 0 0; }
.calc-opts { border: 0; padding: 0; margin: 0; display: grid; gap: 4px; }
.switch { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui { width: 44px; height: 26px; border-radius: 13px; background: #c3d2e0; position: relative; transition: background .25s; }
.switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .3s var(--ease); }
.switch input:checked + .switch-ui { background: var(--navy); }
.switch input:checked + .switch-ui::after { transform: translateX(18px); }
.switch input:focus-visible + .switch-ui { outline: 2.5px solid var(--blue); outline-offset: 3px; }
.switch-label { font-weight: 550; line-height: 1.3; }
.switch-price { font-family: var(--f-mono); font-size: .85rem; color: var(--muted); white-space: nowrap; }
.calc-note { margin: 8px 0 0; font-size: .88rem; color: var(--blue); }

.calc-sheet { background-color: #fff; border: 1px solid var(--navy); padding: clamp(20px, 3vw, 32px); position: relative; box-shadow: 10px 10px 0 var(--ice); }
@media (min-width: 960px) { .calc-sheet { position: sticky; top: calc(var(--header) + 32px); } }
.calc-sheet-head { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); border-bottom: 2px solid var(--navy); padding-bottom: 10px; margin-bottom: 4px; }
.calc-lines { margin: 0; }
.cl { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--line-2); align-items: baseline; }
.cl dt { font-weight: 550; line-height: 1.35; }
.cl dt small { display: block; font-weight: 400; color: var(--muted); font-size: .82rem; }
.cl dd { margin: 0; font-family: var(--f-mono); font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--navy); }
.cl--opt { animation: fade-up .35s var(--ease); }
.cl--opt dt::before { content: "+ "; color: var(--sky); }
.cl--total { border-bottom: 0; border-top: 2px solid var(--navy); margin-top: 6px; padding-top: 16px; }
.cl--total dt { font-weight: 750; color: var(--navy); }
.cl--total dd { font-size: clamp(1.1rem, 1rem + .6vw, 1.45rem); font-weight: 600; }
.cl--total dd.is-bump { animation: bump .4s var(--ease); }
@keyframes bump { 40% { color: var(--sky); transform: translateY(-2px); } }
.cl--part { border-bottom: 0; border-top: 1px solid var(--line); color: var(--muted); }
.cl--part dt, .cl--part dd { color: var(--muted); font-weight: 450; }
.calc-disclaimer { font-size: .82rem; color: var(--muted); margin: 14px 0 0; }
.calc-notes { margin-top: 40px; display: grid; gap: 12px 48px; }
@media (min-width: 960px) { .calc-notes { grid-template-columns: auto 1fr auto; align-items: start; } }
.calc-notes ul { list-style: none; display: grid; gap: 6px; font-size: .94rem; color: var(--muted); }
@media (min-width: 700px) { .calc-notes ul { grid-template-columns: 1fr 1fr; gap: 6px 32px; } }
.calc-notes li { padding-left: 16px; position: relative; }
.calc-notes li::before { content: ""; position: absolute; left: 0; top: .7em; width: 7px; height: 1px; background: var(--navy); }

/* ---------------------------------------------------------------- connaissances / schéma */
.section--navy {
  background-color: var(--navy); color: #dbe6f0;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 48px 48px;
}
.section--navy .h2 { color: #fff; }
.section--navy :focus-visible { outline-color: #fff; }
.flow { border: 1px solid rgba(255, 255, 255, .2); border-radius: 6px; padding: clamp(20px, 3.4vw, 44px); background: rgba(14, 42, 62, .55); }
.flow-head { display: grid; gap: 24px; margin-bottom: 36px; }
@media (min-width: 960px) { .flow-head { grid-template-columns: 1fr auto; align-items: end; } }
.flow-lead { color: #c9d8e6; max-width: 36em; margin: 0; }
.flow-controls { display: grid; gap: 14px; justify-items: start; }
@media (min-width: 960px) { .flow-controls { justify-items: end; } }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3); gap: 2px; }
.seg button {
  display: inline-flex; align-items: center; gap: .5em; min-height: 40px; padding: .4em 1.1em; border-radius: 999px;
  background: transparent; border: 0; color: #fff; font-weight: 600; font-size: .95rem; transition: background .25s, color .25s;
}
.seg button .ico { width: 1.3em; height: 1.3em; stroke-width: 2.4; }
.seg button[aria-checked="true"] { background: #fff; color: var(--navy); }
.seg--light { border-color: var(--line-2); background: #fff; }
.seg--light button { color: var(--navy); font-size: .9rem; }
.seg--light button[aria-checked="true"] { background: var(--navy); color: #fff; }
.flow-opts { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tick { display: inline-flex; align-items: center; gap: .55em; padding: .45em .8em .45em .55em; border: 1px dashed rgba(255, 255, 255, .4); border-radius: var(--r); cursor: pointer; font-size: .92rem; color: #fff; transition: background .2s, border-color .2s; }
.tick input { width: 18px; height: 18px; accent-color: var(--sky); margin: 0; }
.tick:has(input:checked) { border-style: solid; border-color: var(--sky-2); background: rgba(87, 143, 191, .22); }

.flow-grid {
  display: grid; grid-template-columns: minmax(0, 1.18fr) 22px minmax(0, .82fr);
  grid-template-rows: auto 34px auto 34px auto 34px auto 34px auto;
  align-items: stretch;
}
.node {
  grid-column: 1; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-items: center; column-gap: 12px;
  text-align: left; padding: 12px 14px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .05); color: #fff; position: relative;
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease), opacity .3s;
}
.node:hover { border-color: #fff; transform: translateY(-2px); }
.node-ico { width: 32px; height: 32px; grid-row: span 2; fill: none; stroke: var(--sky-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: stroke .25s; }
.node-name { font-weight: 700; line-height: 1.15; font-size: .98rem; }
.node-sub { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .06em; color: var(--sky-2); text-transform: uppercase; }
.node.is-selected { background: #fff; color: var(--navy); border-color: #fff; }
.node.is-selected .node-ico { stroke: var(--blue); }
.node.is-selected .node-sub { color: var(--blue); }
.node.is-off { border-style: dashed; border-color: rgba(255, 255, 255, .4); background: transparent; }
.node.is-off .node-ico { stroke: #8eabc5; }
.node.is-off .node-name { color: #d5e1ec; }
.node.is-off.is-selected { opacity: 1; background: rgba(255, 255, 255, .92); }
.node.is-powered:not(.is-selected) { border-color: var(--sky-2); box-shadow: 0 0 0 4px rgba(87, 143, 191, .16), 0 0 24px rgba(87, 143, 191, .25); }
.node-opt, .node-badge {
  position: absolute; top: -9px; right: 8px; font-family: var(--f-mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase;
  background: var(--navy); color: var(--sky-2); border: 1px solid rgba(255, 255, 255, .3); padding: 2px 6px; border-radius: 2px;
}
.node:not(.is-off) .node-opt { display: none; }
.node-badge { background: var(--sky); color: #fff; border-color: var(--sky); right: auto; left: 8px; }
.node--sun { grid-row: 1; } .node--pv { grid-row: 3; } .node--inv { grid-row: 5; } .node--tab { grid-row: 7; } .node--house { grid-row: 9; }
.node--side { grid-column: 3; }
.node--bat { grid-row: 5; } .node--grid { grid-row: 7; } .node--ev { grid-row: 9; }
.flow[data-mode="night"] .node--sun .node-ico, .flow[data-mode="night"] .node--pv { opacity: .45; }

.conn { display: grid; place-items: center; position: relative; }
.conn i { display: block; background: rgba(255, 255, 255, .18); transition: opacity .3s; }
.conn--main { grid-column: 1; }
.conn--main i { width: 2px; height: 100%; }
.conn--1 { grid-row: 2; } .conn--2 { grid-row: 4; } .conn--3 { grid-row: 6; } .conn--4 { grid-row: 8; }
.conn--side { grid-column: 2; }
.conn--side i { height: 2px; width: 100%; }
.conn--bat { grid-row: 5; } .conn--grid { grid-row: 7; } .conn--ev { grid-row: 9; }
.conn.is-flow i { background: repeating-linear-gradient(180deg, var(--sky-2) 0 7px, transparent 7px 13px); background-size: 2px 13px; animation: flow-y .55s linear infinite; }
.conn--side.is-flow i { background: repeating-linear-gradient(90deg, var(--sky-2) 0 7px, transparent 7px 13px); background-size: 13px 2px; animation-name: flow-x; }
.conn.is-rev i { animation-direction: reverse; }
.conn.is-off i { opacity: .15; }
@keyframes flow-y { to { background-position: 0 13px; } }
@keyframes flow-x { to { background-position: 13px 0; } }

@media (min-width: 1000px) {
  .flow-grid { grid-template-columns: repeat(4, minmax(0, 1fr) 44px) minmax(0, 1fr); grid-template-rows: auto 44px auto; }
  .node { grid-template-columns: 1fr; grid-template-rows: auto auto auto; justify-items: start; padding: 18px 16px 16px; row-gap: 4px; min-height: 148px; align-content: start; }
  .node-ico { grid-row: auto; width: 44px; height: 44px; margin-bottom: 10px; }
  .node--sun { grid-column: 1; grid-row: 1; } .node--pv { grid-column: 3; grid-row: 1; } .node--inv { grid-column: 5; grid-row: 1; }
  .node--tab { grid-column: 7; grid-row: 1; } .node--house { grid-column: 9; grid-row: 1; }
  .node--bat { grid-column: 5; grid-row: 3; } .node--grid { grid-column: 7; grid-row: 3; } .node--ev { grid-column: 9; grid-row: 3; }
  .node--side { min-height: 0; }
  .conn--main { grid-row: 1; }
  .conn--main i { height: 2px; width: 100%; }
  .conn--1 { grid-column: 2; } .conn--2 { grid-column: 4; } .conn--3 { grid-column: 6; } .conn--4 { grid-column: 8; }
  .conn--side { grid-row: 2; }
  .conn--side i { width: 2px; height: 100%; }
  .conn--bat { grid-column: 5; } .conn--grid { grid-column: 7; } .conn--ev { grid-column: 9; }
  .conn--main.is-flow i { background: repeating-linear-gradient(90deg, var(--sky-2) 0 7px, transparent 7px 13px); background-size: 13px 2px; animation-name: flow-x; }
  .conn--side.is-flow i { background: repeating-linear-gradient(180deg, var(--sky-2) 0 7px, transparent 7px 13px); background-size: 2px 13px; animation-name: flow-y; }
}
.flow-detail { margin-top: 28px; border-top: 1px solid rgba(255, 255, 255, .2); padding-top: 24px; min-height: 120px; }
.flow-info { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; animation: fade-up .4s var(--ease); }
.flow-info[hidden] { display: none; }
.flow-info-ico { width: 54px; height: 54px; fill: none; stroke: var(--sky-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.flow-info .h5 { color: #fff; font-size: 1.2rem; margin-bottom: .35em; }
.flow-info .h5 span { font-family: var(--f-mono); font-size: .75rem; color: var(--sky-2); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.flow-info p { margin: 0; color: #dbe6f0; max-width: 52em; }

/* ---------------------------------------------------------------- définitions */
.defs { display: grid; gap: 16px; }
@media (min-width: 700px) { .defs { grid-template-columns: repeat(2, 1fr); } .def--wide { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .defs { grid-template-columns: repeat(3, 1fr); } }
.def { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: clamp(22px, 2.6vw, 32px); position: relative; transition: border-color .3s, box-shadow .3s; }
.def:hover, .def:target { border-color: var(--navy); box-shadow: 8px 8px 0 var(--ice); }
.def p { margin-bottom: .6em; font-size: .98rem; }
.def-tag { display: flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 1.1em !important; }
.def--wide { background: var(--navy); color: #dbe6f0; border-color: var(--navy); display: grid; gap: 0 40px; }
.def--wide .h4 { color: #fff; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); font-stretch: 108%; font-variation-settings: "wdth" 108; }
.def--wide .def-tag { color: var(--sky-2); }
.def--wide p { font-size: clamp(1rem, .96rem + .2vw, 1.12rem); max-width: 50em; }
@media (min-width: 1100px) { .def--wide { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); } .def--wide .def-tag { grid-column: 1; } .def--wide .h4 { grid-column: 1; } .def--wide p { grid-column: 2; grid-row: 1 / span 3; margin: 0; } }
.def-photo { float: right; width: 92px; aspect-ratio: 1; overflow: hidden; position: relative; margin: 0 0 12px 16px; border: 1px solid var(--navy); border-radius: 50%; background: var(--ice); }
.crop { position: absolute; max-width: none; width: 449%; height: auto; top: -5.7%; }
.crop--0 { left: -4.5%; } .crop--1 { left: -172.2%; } .crop--2 { left: -338.6%; }
.def-list { list-style: none; display: grid; gap: 4px; font-size: .95rem; }
.def-list li { padding-left: 16px; position: relative; }
.def-list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 7px; height: 1px; background: var(--navy); }

/* ---------------------------------------------------------------- FAQ */
.faq-grid { display: grid; gap: 36px; }
@media (min-width: 960px) { .faq-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 72px; } .faq-sticky { position: sticky; top: calc(var(--header) + 40px); } }
.search { position: relative; margin-top: 8px; }
.search .ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--navy); pointer-events: none; }
.search input {
  width: 100%; min-height: 54px; padding: .8em 1em .8em 48px; border: 1.5px solid var(--navy); border-radius: var(--r);
  background: #fff; font-size: 1rem;
}
.search input::placeholder { color: #6a7d8f; }
.search input:focus-visible { outline: 3px solid rgba(0, 77, 143, .35); outline-offset: 0; border-color: var(--blue); }
.faq-count { font-family: var(--f-mono); font-size: .78rem; color: var(--muted); margin: 12px 0 4px; letter-spacing: .04em; }
.faq-tools { display: flex; gap: 20px; margin-bottom: 20px; }
.faq-more { color: var(--muted); font-size: .95rem; }
.faq-list { border-top: 1px solid var(--navy); }
.qa { border-bottom: 1px solid var(--line-2); }
.qa summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 48px 1fr 28px; gap: 12px; align-items: start;
  padding: 20px 4px; transition: background .2s;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover .qa-q { color: var(--blue); }
.qa-n { font-family: var(--f-mono); font-size: .76rem; color: var(--sky-ink); padding-top: .35em; }
.qa-q { font-weight: 650; font-size: clamp(1.02rem, .98rem + .25vw, 1.15rem); color: var(--navy); line-height: 1.38; transition: color .2s; }
.qa-ico { width: 28px; height: 28px; border: 1px solid var(--line-2); border-radius: 50%; position: relative; transition: transform .35s var(--ease), background .25s, border-color .25s; }
.qa-ico::before, .qa-ico::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.6px; background: var(--navy); transform: translate(-50%, -50%); }
.qa-ico::after { transform: translate(-50%, -50%) rotate(90deg); }
.qa[open] .qa-ico { transform: rotate(45deg); background: var(--navy); border-color: var(--navy); }
.qa[open] .qa-ico::before, .qa[open] .qa-ico::after { background: #fff; }
.qa-a { padding: 0 44px 24px 64px; color: var(--text); }
@media (max-width: 600px) { .qa summary { grid-template-columns: 36px 1fr 28px; } .qa-a { padding: 0 4px 22px 52px; } }
.qa[open] .qa-a { animation: fade-up .45s var(--ease); }
.qa-a ul { list-style: none; display: grid; gap: 8px; margin-bottom: 1em; }
.qa-a li { padding-left: 18px; position: relative; }
.qa-a li::before { content: ""; position: absolute; left: 0; top: .75em; width: 8px; height: 1px; background: var(--navy); }
.qa-a .note { font-size: .92rem; padding: 10px 14px; background: var(--paper); border-left: 3px solid var(--sky); }
.qa mark { background: #d7e7f6; color: inherit; padding: 0 .1em; border-radius: 2px; }
.qa[hidden] { display: none; }
.faq-none { padding: 24px 0; color: var(--muted); }

/* ---------------------------------------------------------------- médias */
.md-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.media { list-style: none; display: grid; gap: 10px; }
@media (min-width: 960px) { .media { grid-template-columns: 1fr 1fr; } }
.media-item[hidden] { display: none; }
.media-item a {
  display: grid; grid-template-columns: auto 1fr auto auto; gap: 14px; align-items: center; height: 100%;
  padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--text);
  transition: border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.media-item a:hover { border-color: var(--navy); transform: translateY(-2px); box-shadow: 6px 6px 0 var(--ice); }
.media-ico { width: 30px; height: 30px; fill: none; stroke: var(--blue); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.media-body { display: grid; gap: 2px; min-width: 0; }
.media-src { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.media-title { font-weight: 600; color: var(--navy); line-height: 1.35; }
.media-meta { display: flex; gap: 4px; }
.media-arrow { color: var(--blue); transition: transform .25s var(--ease); }
.media-item a:hover .media-arrow { transform: translate(2px, -2px); }
@media (max-width: 520px) { .media-item a { grid-template-columns: auto 1fr auto; } .media-meta { grid-column: 2; grid-row: 2; } .media-arrow { grid-column: 3; grid-row: 1 / span 2; } }

/* ---------------------------------------------------------------- coopérative */
.co-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .co-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; } }
.co-network { font-size: .95rem; color: var(--muted); }
.join { margin-top: 32px; background: var(--navy); color: #dbe6f0; padding: clamp(24px, 3vw, 36px); border-radius: var(--r); position: relative; overflow: hidden; }
.join::after {
  content: ""; position: absolute; right: -40px; bottom: -40px; width: 180px; height: 180px; border: 1px solid rgba(255, 255, 255, .15); border-radius: 50%;
  box-shadow: 0 0 0 30px rgba(255, 255, 255, .03), 0 0 0 60px rgba(255, 255, 255, .02);
}
.join-kicker { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sky-2); margin-bottom: 1em; }
.join-text { margin-bottom: .2em; max-width: 24em; }
.join-price { font-size: clamp(2.6rem, 2rem + 2.4vw, 3.8rem); font-weight: 820; font-stretch: 112%; font-variation-settings: "wdth" 112; color: #fff; letter-spacing: -.03em; line-height: 1.05; margin-bottom: .5em; }
.join :focus-visible { outline-color: #fff; }
.founders { margin: 0; }
.founders-photo { position: relative; border: 1px solid var(--navy); background: var(--ice); aspect-ratio: 1024 / 591; }
.founders-photo img { width: 100%; height: 100%; object-fit: cover; }
.pin {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  width: 30px; height: 30px; border-radius: 50%; padding: 0;
  background: #fff; border: 1.5px solid var(--navy); color: var(--navy);
  font-family: var(--f-mono); font-size: .78rem; font-weight: 600; display: grid; place-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .25); transition: background .2s, color .2s, transform .25s var(--ease);
}
.pin::after {
  content: attr(data-name); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(4px);
  white-space: nowrap; background: var(--navy); color: #fff; font-family: var(--f-sans); font-size: .82rem; font-weight: 600;
  padding: 5px 9px; border-radius: 2px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.pin:hover, .pin:focus-visible, .pin.is-hl { background: var(--navy); color: #fff; transform: translate(-50%, -50%) scale(1.12); z-index: 2; }
.pin:hover::after, .pin:focus-visible::after, .pin.is-hl::after { opacity: 1; transform: translateX(-50%); }
.founders figcaption { margin-top: 18px; }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .94rem; }
.legend li { display: inline-flex; align-items: center; gap: 8px; transition: color .2s; }
.legend li.is-hl { color: var(--blue); }
.legend-n { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--navy); display: grid; place-items: center; font-family: var(--f-mono); font-size: .68rem; transition: background .2s, color .2s; }
.legend li.is-hl .legend-n { background: var(--navy); color: #fff; }

.docs-row { margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--navy); padding-top: 28px; }
.docs { list-style: none; display: grid; gap: 12px; }
@media (min-width: 600px) { .docs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .docs { grid-template-columns: repeat(4, 1fr); } }
.doc {
  display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 14px; align-items: center; height: 100%;
  padding: 18px; border: 1px solid var(--line-2); border-radius: var(--r); text-decoration: none; color: var(--navy); background: var(--paper);
  transition: background .25s, border-color .25s, color .25s;
}
.doc:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.doc-ico { width: 34px; height: 34px; grid-row: span 2; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.doc-title { font-weight: 650; line-height: 1.25; }
.doc-meta { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .06em; opacity: .75; grid-column: 2; }
.doc-arrow { grid-column: 3; grid-row: 1 / span 2; transition: transform .25s var(--ease); }
.doc:hover .doc-arrow { transform: translateY(3px); }

.video { margin-top: clamp(48px, 6vw, 80px); display: grid; gap: 24px; align-items: center; }
@media (min-width: 860px) { .video { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 48px; } }
.video-frame { aspect-ratio: 1650 / 858; background: var(--navy); border-radius: var(--r); overflow: hidden; position: relative; }
.video-frame video { width: 100%; height: 100%; background: #000; }
.video-poster {
  position: absolute; inset: 0; width: 100%; border: 0; color: #fff; display: grid; place-content: center; justify-items: center; gap: 12px;
  background-color: var(--navy);
  background-image: radial-gradient(circle at 70% 30%, rgba(87, 143, 191, .45), transparent 55%), linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: auto, 32px 32px, 32px 32px;
}
.video-play { width: 76px; height: 76px; border-radius: 50%; background: #fff; color: var(--navy); display: grid; place-items: center; transition: transform .3s var(--ease); box-shadow: 0 0 0 10px rgba(255, 255, 255, .12); }
.video-play .ico { width: 30px; height: 30px; fill: currentColor; margin-left: 4px; }
.video-poster:hover .video-play { transform: scale(1.08); }
.video-label { font-weight: 700; font-size: 1.1rem; }
.video-tag { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--sky-2); }
.video-poster:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }

/* ---------------------------------------------------------------- équipe */
.team { list-style: none; display: grid; gap: 18px; }
@media (min-width: 600px) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .team { grid-template-columns: repeat(4, 1fr); } }
.badge-card {
  background: #fff; border: 1px solid var(--navy); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s; transform-origin: 50% -20px;
}
.badge-card:hover { transform: rotate(-1.2deg) translateY(-3px); box-shadow: 8px 10px 0 var(--ice); }
.badge-card[hidden] { display: none; }
.badge-top {
  display: flex; justify-content: space-between; padding: 22px 14px 8px; background: var(--navy); color: var(--sky-2);
  font-family: var(--f-mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; position: relative;
}
.badge-top::before { content: ""; position: absolute; top: 8px; left: 50%; width: 34px; height: 7px; border-radius: 4px; background: var(--paper); transform: translateX(-50%); }
.badge-id { display: grid; grid-template-columns: 62px 1fr; gap: 14px; padding: 18px 16px 12px; align-items: center; }
.badge-id img { width: 62px; height: 86px; object-fit: contain; border: 1px solid var(--line); border-radius: 4px; background: #fff; padding: 4px; }
.badge-name { font-size: 1.14rem; font-weight: 750; line-height: 1.15; margin-bottom: .25em; }
.badge-role { font-size: .86rem; color: var(--muted); line-height: 1.35; margin-bottom: .55em; }
.badge-langs { display: flex; gap: 4px; margin: 0; }
.badge-contact { list-style: none; margin-top: auto; border-top: 1px dashed var(--line-2); padding: 10px 16px 14px; display: grid; gap: 2px; }
.badge-contact a { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: .9rem; text-decoration: none; color: var(--navy); word-break: break-all; }
.badge-contact a:hover { color: var(--blue); text-decoration: underline; }
.badge-contact .ico { color: var(--blue); }

/* ---------------------------------------------------------------- contact & formulaires */
.section--contact { background-color: var(--paper); }
.ct-grid { display: grid; gap: 40px; }
@media (min-width: 1000px) { .ct-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 64px; align-items: start; } .ct-aside { position: sticky; top: calc(var(--header) + 40px); } }
.ct-img { width: 180px; mix-blend-mode: multiply; margin: 8px 0 24px; opacity: .9; }
.ct-info { display: grid; gap: 22px; border-top: 1px solid var(--navy); padding-top: 22px; }
.ct-info p { margin: 0; color: var(--muted); font-size: .95rem; }
.ct-forms { background: #fff; border: 1px solid var(--navy); border-radius: var(--r); box-shadow: 10px 10px 0 var(--ice); position: relative; }
.tabs { display: flex; border-bottom: 1px solid var(--line-2); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs [role="tab"] {
  flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 60px; padding: .6em 1.2em;
  background: transparent; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; color: var(--muted); font-weight: 650; white-space: nowrap;
  transition: color .2s, border-color .2s, background .2s;
}
.tabs [role="tab"]:hover { color: var(--navy); background: var(--paper); }
.tabs [role="tab"][aria-selected="true"] { color: var(--navy); border-bottom-color: var(--navy); }
.tab-n { font-family: var(--f-mono); font-size: .7rem; color: var(--sky-ink); }
.tabs [role="tab"]:focus-visible { outline-offset: -4px; }
@media (max-width: 600px) {
  .tabs [role="tab"] { flex: 1 1 0; min-width: 0; white-space: normal; flex-direction: column; gap: 2px; padding: .6em .4em; font-size: .88rem; line-height: 1.2; text-align: center; min-height: 68px; }
}
.panel { padding: clamp(20px, 3.4vw, 40px); }
.panel[hidden] { display: none; }
.form-intro { color: var(--muted); }
.form-warn { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; background: var(--paper); border-left: 3px solid var(--sky); font-size: .94rem; }
.form-warn .ico { color: var(--blue); margin-top: .2em; }

.stepper { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 8px 0 6px; counter-reset: s; }
.stepper li { display: grid; gap: 6px; font-size: .78rem; color: var(--muted); }
.stepper li::before { content: ""; height: 4px; border-radius: 2px; background: var(--ice); transition: background .35s; }
.stepper li span { display: none; }
.stepper li em { font-style: normal; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stepper li.is-done::before { background: var(--sky); }
.stepper li.is-current::before { background: var(--navy); }
.stepper li.is-current em { color: var(--navy); }
@media (max-width: 640px) { .stepper li em { display: none; } }
.step-status { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .06em; color: var(--muted); margin-bottom: 18px; }
.wstep[hidden] { display: none; }
.no-js .tabs, .no-js .stepper, .no-js .step-status, .no-js [data-next], .no-js [data-prev], .no-js .wstep[data-step="5"], .no-js .done-actions { display: none !important; }
.no-js .panel + .panel { border-top: 1px solid var(--line-2); }
.js .wizard:not(.is-ready) .wstep:not([data-step="1"]), .js .wizard:not(.is-ready) [data-submit], .js .wizard:not(.is-ready) [data-prev], .js [data-forms]:not(.is-ready) .panel:not([data-panel="offre"]) { display: none; }
.wstep:not([hidden]) { animation: fade-up .4s var(--ease); }
.wstep-title { font-size: 1.3rem; margin-bottom: 18px; }
.wstep-title:focus { outline: none; }

.fields { display: grid; gap: 4px 18px; }
@media (min-width: 600px) { .fields { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field { margin-bottom: 14px; }
.field label, .choice legend { display: block; font-weight: 600; font-size: .95rem; color: var(--navy); margin-bottom: 6px; padding: 0; }
.req { color: var(--error); }
.field input, .field textarea, .select select {
  width: 100%; min-height: 50px; padding: .7em .9em; border: 1.5px solid var(--field); border-radius: var(--r); background: #fff;
  font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:hover, .field textarea:hover, .select select:hover { border-color: var(--navy); }
.field input:focus-visible, .field textarea:focus-visible, .select select:focus-visible { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 77, 143, .25); }
.select { position: relative; }
.select select { -webkit-appearance: none; appearance: none; padding-right: 2.6em; }
.select::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
[aria-invalid="true"] { border-color: var(--error) !important; background-color: var(--error-bg) !important; }
.field-err { display: flex; gap: 6px; align-items: center; color: var(--error); font-size: .88rem; font-weight: 550; margin: 6px 0 0; }
.field-err::before { content: "!"; width: 18px; height: 18px; flex: none; border-radius: 50%; background: var(--error); color: #fff; display: grid; place-items: center; font-size: .72rem; font-weight: 800; }
.field-err[hidden] { display: none; }
.field-warn { margin: -6px 0 18px; padding: 10px 14px; background: #fff7e6; border-left: 3px solid #b26b00; color: #6b4100; font-size: .92rem; }
.field-warn[hidden] { display: none; }

.choice { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.choice-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.choice--stack .choice-opts { display: grid; }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.opt span {
  display: flex; align-items: center; gap: .6em; min-height: 46px; padding: .55em 1em; border: 1.5px solid var(--field); border-radius: var(--r);
  font-weight: 550; font-size: .95rem; background: #fff; transition: background .2s, color .2s, border-color .2s; line-height: 1.3;
}
.opt span::before { content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%; border: 1.5px solid var(--field); background: #fff; transition: box-shadow .2s, border-color .2s; }
.opt:hover span { border-color: var(--navy); }
.opt input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.opt input:checked + span::before { border-color: #fff; box-shadow: inset 0 0 0 4px var(--navy), inset 0 0 0 8px #fff; }
.opt input:focus-visible + span { outline: 2.5px solid var(--blue); outline-offset: 3px; }
.choice[aria-invalid="true"] .opt span { border-color: var(--error); background: var(--error-bg); }
.choice .field-hint a { white-space: nowrap; }

.field--check { margin-top: 6px; }
.check { display: grid !important; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-weight: 500 !important; cursor: pointer; line-height: 1.45; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-ui { width: 24px; height: 24px; border: 1.5px solid var(--field); border-radius: 3px; display: grid; place-items: center; background: #fff; color: #fff; transition: background .2s, border-color .2s; }
.check-ui .ico { width: 16px; height: 16px; stroke-width: 2.6; opacity: 0; }
.check input:checked + .check-ui { background: var(--navy); border-color: var(--navy); }
.check input:checked + .check-ui .ico { opacity: 1; }
.check input:focus-visible + .check-ui { outline: 2.5px solid var(--blue); outline-offset: 3px; }
.check input[aria-invalid="true"] + .check-ui { border-color: var(--error); background: var(--error-bg); }

.err-summary { background: var(--error-bg); border: 1.5px solid var(--error); color: var(--error); padding: 12px 16px; border-radius: var(--r); font-weight: 600; margin-bottom: 18px; }
.err-summary[hidden] { display: none; }
.err-summary ul { list-style: none; margin-top: 6px; font-weight: 500; display: grid; gap: 2px; }
.err-summary a { color: var(--error); }
.form-nav { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 8px; }
.form-nav [data-next], .form-nav [data-submit], .form-nav [type="submit"] { margin-left: auto; }
.required-note { font-size: .82rem; color: var(--muted); margin: 14px 0 0; }

.recap { display: grid; gap: 14px; }
.recap-block { border: 1px solid var(--line-2); border-radius: var(--r); padding: 14px 16px; }
.recap-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.recap-head h4 { font-size: .98rem; margin: 0; }
.recap dl { margin: 0; display: grid; gap: 4px; font-size: .92rem; }
.recap dl div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.recap dt { color: var(--muted); }
.recap dd { margin: 0; font-weight: 600; color: var(--navy); word-break: break-word; }

.done { padding: clamp(28px, 4vw, 48px); text-align: left; }
.done[hidden] { display: none; }
.done:focus { outline: none; }
.done-ico { width: 64px; height: 64px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; margin-bottom: 20px; animation: pop .5s var(--ease); }
.done-ico .ico { width: 32px; height: 32px; stroke-width: 2.6; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.done-fallback { color: var(--muted); font-size: .95rem; }
.done-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 20px; }

/* ---------------------------------------------------------------- pied de page */
.site-footer { background: var(--navy-2); color: #b9cadb; padding-top: clamp(56px, 7vw, 96px); overflow: hidden; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer :focus-visible { outline-color: #fff; }
.ft-grid { display: grid; gap: 36px; }
@media (min-width: 700px) { .ft-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .ft-grid { grid-template-columns: 2fr 1fr 1.3fr .8fr; } }
.ft-brand .logo { height: 46px; margin-bottom: 20px; }
.ft-brand p { max-width: 26em; }
.ft-address { font-size: .94rem; }
.ft-col .h6 { color: var(--sky-2); }
.ft-col ul { list-style: none; display: grid; gap: 8px; }
.ft-col a[aria-current="page"]::after { content: " ●"; color: var(--sky); font-size: .7em; }
.ft-word { margin-top: clamp(48px, 7vw, 96px); padding-inline: var(--gut); max-width: var(--wrap); margin-inline: auto; }
.ft-word svg { width: 100%; height: auto; overflow: visible; }
.ft-word text { font-family: var(--f-sans); font-weight: 850; font-stretch: 115%; font-variation-settings: "wdth" 115; font-size: 200px; fill: none; stroke: rgba(255, 255, 255, .2); stroke-width: 1; }
.ft-bottom { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; border-top: 1px solid rgba(255, 255, 255, .14); padding-block: 22px 26px; font-size: .86rem; position: relative; }
.ft-bottom p { margin: 0 auto 0 0; }
.ft-top { display: inline-flex; align-items: center; gap: 6px; }

/* ---------------------------------------------------------------- toast + haut de page */
.toast {
  position: fixed; left: 16px; bottom: 16px; z-index: 60; max-width: min(420px, calc(100vw - 32px));
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 52px 14px 16px;
  background: #fff; border: 1px solid var(--navy); border-radius: var(--r); box-shadow: 8px 8px 0 var(--ice);
  animation: fade-up .5s var(--ease);
}
.toast[hidden] { display: none; }
.toast p { margin: 0; font-weight: 600; color: var(--navy); }
.toast-close { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; display: grid; place-items: center; background: none; border: 0; color: var(--navy); }
.to-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 55; width: 50px; height: 50px; display: grid; place-items: center;
  background: var(--navy); color: #fff; border-radius: var(--r); opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .3s, transform .3s var(--ease), background .2s;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--blue); }

/* image indisponible */
img.is-missing { opacity: 0; }
.img-missing {
  position: relative; background-color: var(--ice) !important;
  background-image: repeating-linear-gradient(-45deg, transparent 0 9px, rgba(20, 56, 82, .08) 9px 10px) !important;
}
.img-missing::after {
  content: attr(data-missing); position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-family: var(--f-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap;
}

/* ---------------------------------------------------------------- mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .p-sun-rays { animation: none; }
}

/* ---------------------------------------------------------------- impression */
@media print {
  .site-header, .mobile-menu, .toast, .to-top, .plan-replay, .band, .flow-controls, .ct-forms, .video { display: none !important; }
  body { background: #fff; }
  .hero { padding-top: 0; min-height: 0; }
  .qa:not([open]) .qa-a { display: block; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

@media (max-width: 600px) {
  .node { padding: 10px; column-gap: 9px; }
  .node-name { font-size: .9rem; }
  .node-sub { font-size: .6rem; }
  .node--side .node-ico { width: 26px; height: 26px; }
  .plan-head { font-size: .62rem; letter-spacing: .06em; padding: 8px 10px; }
  .facts-list li { padding: 18px 14px 20px; }
}
