/* =========================================================
   Rénover Pour Demain — Homepage
   Identité conservée : Anton + Poppins, vert #0C6953, lavande #AD8FEB
   ========================================================= */

:root {
  /* Couleurs de marque (site actuel) */
  --green: #0C6953;
  --green-2: #0C876A;
  --lav: #AD8FEB;
  /* Déclinaisons */
  --forest: #093A2F;
  --forest-2: #0C4537;
  --lav-soft: #EEE8FC;
  --lav-ink: #6B4FC0;
  --ink: #0E1E1A;
  --ink-2: #26342F;
  --muted: #56645F;
  --paper: #F3F3EE;
  --white: #FFFFFF;
  --cream: #F2F0E8;
  --cream-70: rgba(242, 240, 232, .72);
  --cream-50: rgba(242, 240, 232, .5);
  --line: rgba(14, 30, 26, .12);
  --line-d: rgba(242, 240, 232, .14);

  --f-display: "Anton", "Arial Narrow", Impact, sans-serif;
  --f-text: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1360px;
  --gutter: 40px;
  --header-h: 76px;
  --proof-h: 112px;
  /* Angles adoucis (test) — ajouter ?carre à l'URL pour comparer avec la version à angles vifs */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;

  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1 8h13M9 3l5 5-5 5' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--f-text);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
sub { font-size: .7em; }
:focus-visible { outline: 2px solid var(--lav); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 16px; text-decoration: none; }
.skip:focus { top: 12px; }

/* Cadre à filets (inspiration Cadvel) */
.wrap {
  max-width: var(--container);
  margin-inline: auto;
  border-inline: 1px solid var(--line);
}
.dark .wrap, .hero .wrap { border-color: var(--line-d); }
.pad { padding-inline: var(--gutter); }

/* ---------- Typo ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
}
.eyebrow--light { color: var(--cream-70); }

.h2 {
  font-weight: 400;
  font-size: clamp(34px, 4.2vw, 60px);
  line-height: 1.04;
  letter-spacing: -.04em;
  text-wrap: balance;
}

/* ---------- Boutons (bloc + carré fléché, inspiration Cadvel) ---------- */
.btn {
  --bg: var(--white); --fg: var(--ink); --ib: var(--ink); --if: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 20px;
  height: 52px;
  padding: 4px 4px 4px 20px;
  background: var(--bg);
  color: var(--fg);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -.005em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
.btn__icon {
  position: relative;
  width: 44px; height: 44px;
  flex: none;
  background: var(--ib);
  color: var(--if);
  overflow: hidden;
  transition: background-color .35s var(--ease);
}
.btn__icon i { position: absolute; inset: 0; display: grid; place-items: center; transition: transform .5s var(--ease); }
.btn__icon i::before { content: ""; width: 15px; height: 15px; background: currentColor; -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat; }
.btn__icon i:nth-child(2) { transform: translateX(-110%); }
.btn:hover .btn__icon i:first-child { transform: translateX(110%); }
.btn:hover .btn__icon i:nth-child(2) { transform: none; }
.btn--green { --bg: var(--green); --fg: var(--white); --ib: var(--forest); --if: var(--lav); }
.btn--green:hover { --bg: var(--forest); --ib: var(--lav); --if: var(--forest); }
.btn--light { --bg: var(--cream); --fg: var(--ink); --ib: var(--green); --if: var(--white); }
.btn--light:hover { --bg: var(--lav); --ib: var(--forest); }
.btn--sm { height: 44px; padding-left: 16px; gap: 14px; }
.btn--sm .btn__icon { width: 36px; height: 36px; }

.link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 5px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .45s var(--ease), color .3s;
  width: fit-content;
}
.link::after { content: ""; width: 13px; height: 13px; background: currentColor; -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat; transition: transform .4s var(--ease); }
.link:hover { background-size: 0 1px; background-position: 100% 100%; color: var(--green); }
.link:hover::after { transform: translateX(4px); }
.link--light { color: var(--cream); }
.link--light:hover { color: var(--lav); }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--lav-soft);
  color: var(--forest);
}
.tag--on-photo { position: absolute; top: 16px; left: 16px; background: rgba(255, 255, 255, .94); color: var(--ink); }

.keys { display: flex; flex-wrap: wrap; gap: 8px; }
.keys li { padding: 7px 12px; font-size: 12px; font-weight: 500; border: 1px solid var(--line); color: var(--ink-2); }
.keys--dark li { border-color: var(--line-d); color: var(--cream-70); }

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(243, 243, 238, .9);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background-color .3s;
}
.header.is-scrolled { background: rgba(243, 243, 238, .97); }
.header__inner {
  height: var(--header-h);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding-inline: var(--gutter);
}
.header__logo img { height: 42px; width: auto; }
.nav ul { display: flex; justify-content: center; gap: clamp(20px, 2.6vw, 40px); }
.nav a {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  padding-block: 6px;
}
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--green); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav a:hover { color: var(--green); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav a[aria-current="page"] { color: var(--green); }
.header__end { display: flex; align-items: center; gap: 24px; }
.header__tel { font-size: 13px; font-weight: 500; color: var(--muted); text-decoration: none; }
.header__tel:hover { color: var(--green); }

.burger { display: none; width: 44px; height: 44px; position: relative; border: 1px solid var(--line); }
.burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

.menu {
  position: fixed;
  z-index: 55;
  inset: var(--header-h) 0 0 0;
  background: var(--forest);
  color: var(--cream);
  padding: 24px 20px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
}
.menu[hidden] { display: none; }
.menu li { border-bottom: 1px solid var(--line-d); }
.menu nav a { display: flex; align-items: baseline; gap: 16px; padding: 18px 0; font-size: 30px; letter-spacing: -.03em; text-decoration: none; }
.menu nav small { font-family: var(--f-display); font-size: 14px; color: var(--lav); letter-spacing: 0; }
.menu__foot { display: grid; gap: 8px; font-size: 15px; color: var(--cream-70); }
.menu__foot a { text-decoration: none; }

/* =========================================================
   HERO
   ========================================================= */
.hero { background: var(--forest); color: var(--cream); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  min-height: clamp(560px, calc(100svh - var(--header-h) - var(--proof-h)), 820px);
}
.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px var(--gutter);
  border-right: 1px solid var(--line-d);
}
.hero__title {
  margin: 0 0 26px;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(50px, 6.85vw, 104px);
  line-height: 1;
  letter-spacing: .004em;
  text-transform: uppercase;
  color: var(--cream);
}
.hero__title em { font-style: normal; color: var(--lav); }
/* padding haut : les accents des capitales (É, À) restent visibles malgré le masque */
.hero__title .line { display: block; overflow: hidden; padding: .16em 0 .02em; margin-top: -.16em; }
.hero__title .line > span { display: block; }
@media (min-width: 1100px) { .hero__title .line > span { white-space: nowrap; } }
.hero__lead { max-width: 30em; font-size: 17px; line-height: 1.65; color: var(--cream-70); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; margin-top: 36px; }

.hero__visual { position: relative; margin: 0; overflow: hidden; background: var(--forest-2); }
.hero__photo { position: absolute; inset: 0; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero__photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(9, 58, 47, 0) 45%, rgba(9, 58, 47, .55) 100%);
  pointer-events: none;
}
/* Lignes de cadrage techniques */
.hero__visual::before {
  content: "";
  position: absolute; inset: 20px;
  z-index: 1;
  border: 1px solid rgba(242, 240, 232, .35);
  pointer-events: none;
}

.datacard {
  position: absolute;
  left: 20px; bottom: 20px;
  z-index: 2;
  width: min(372px, calc(100% - 40px));
  padding: 20px 22px 22px;
  background: var(--paper);
  color: var(--ink);
}
.datacard__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.datacard__link { font-size: 12px; font-weight: 500; color: var(--green); text-decoration: none; }
.datacard__link:hover { text-decoration: underline; text-underline-offset: 3px; }
.datacard__name { font-size: 22px; font-weight: 500; letter-spacing: -.03em; line-height: 1.1; }
.datacard__meta { margin-top: 4px; font-size: 13px; color: var(--muted); }
.datacard__body { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 20px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.datacard__gain { text-align: right; }
.datacard__label { display: block; font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.datacard__num { display: block; font-family: var(--f-display); font-size: 72px; line-height: .9; color: var(--green); }
.datacard__num small { font-size: .5em; margin-left: 2px; }

/* Étiquette DPE */
.dpe { display: grid; gap: 3px; }
.dpe__bar {
  --w: 40%;
  position: relative;
  display: flex; align-items: center;
  width: var(--w);
  height: 15px;
  padding-left: 6px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  background: var(--c);
  opacity: .22;
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 50%, calc(100% - 7px) 100%, 0 100%);
  transform-origin: left;
}
.dpe__bar.is-before, .dpe__bar.is-after { opacity: 1; overflow: visible; }
.dpe__bar em { position: absolute; left: calc(100% + 10px); font-style: normal; font-size: 10px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.dpe--compact .dpe__bar { clip-path: none; }
.dpe--compact .dpe__bar::after { content: ""; position: absolute; right: -7px; top: 0; border-left: 7px solid var(--c); border-top: 7.5px solid transparent; border-bottom: 7.5px solid transparent; }
.dpe__bar[data-c="A"] { --c: #009C6D; --w: 30%; }
.dpe__bar[data-c="B"] { --c: #52B153; --w: 38%; }
.dpe__bar[data-c="C"] { --c: #78BD76; --w: 46%; }
.dpe__bar[data-c="D"] { --c: #E4D20C; --w: 54%; }
.dpe__bar[data-c="E"] { --c: #F0B50F; --w: 62%; }
.dpe__bar[data-c="F"] { --c: #EB8235; --w: 70%; }
.dpe__bar[data-c="G"] { --c: #D7221F; --w: 78%; }
.dpe--compact { width: 190px; }

/* Bandeau de preuves */
.hero__proof { border-top: 1px solid var(--line-d); }
.hero__proof-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.proof { display: flex; align-items: center; gap: 22px; min-height: var(--proof-h); padding: 16px var(--gutter); font-size: 14px; line-height: 1.45; color: var(--cream-70); }
.proof + .proof { border-left: 1px solid var(--line-d); }
.proof strong { font-weight: 500; color: var(--cream); font-size: 15px; }
.proof__logo { flex: none; display: grid; place-items: center; height: 80px; padding: 6px 12px; background: #fff; }
.proof__logo img { height: 66px; width: auto; }
.proof__logo--wide { padding-inline: 18px; }
.proof__logo--wide img { height: 30px; }

/* =========================================================
   SECTIONS
   ========================================================= */
.section { position: relative; padding-block: clamp(72px, 7.6vw, 112px); }
.sec-head { padding-bottom: clamp(40px, 4.5vw, 64px); }
.sec-head__row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: end; gap: 24px 64px; }
.sec-head__row--split { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: start; }
.sec-head__aside { font-size: 15px; line-height: 1.65; color: var(--muted); }
.sec-head__aside--long { display: grid; gap: 16px; color: var(--cream-70); }
.dark { background: var(--forest); color: var(--cream); }
.dark .h2 { color: var(--cream); }
mark { background: none; color: var(--lav); }

/* Transitions en marches (inspiration Cadvel) */
.stepper { position: absolute; left: 0; right: 0; display: flex; pointer-events: none; height: 36px; }
.stepper--top { top: 0; align-items: flex-start; }
.stepper--bottom { bottom: 0; align-items: flex-end; }
.stepper i { display: block; background: var(--step-c, var(--paper)); }
.stepper i:nth-child(1) { flex: 13; height: 20px; }
.stepper i:nth-child(2) { flex: 21; height: 0; }
.stepper i:nth-child(3) { flex: 9; height: 36px; }
.stepper i:nth-child(4) { flex: 30; height: 10px; }
.stepper i:nth-child(5) { flex: 27; height: 26px; }
.stepper--bottom i:nth-child(1) { height: 0; }
.stepper--bottom i:nth-child(2) { height: 24px; }
.stepper--bottom i:nth-child(3) { height: 8px; }
.stepper--bottom i:nth-child(4) { height: 32px; }
.stepper--bottom i:nth-child(5) { height: 0; }
.solution .stepper--top { --step-c: var(--paper); }
.solution .stepper--bottom { --step-c: var(--white); }
.contact .stepper--top { --step-c: var(--white); }

/* =========================================================
   CHIFFRES
   ========================================================= */
.figures__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  border-top: 1px solid var(--line);
}
.fig { display: flex; flex-direction: column; gap: 24px; padding: 32px var(--gutter) 34px; background: var(--white); }
.fig + .fig { border-left: 1px solid var(--line); }
.fig:last-child { border-top: 1px solid var(--line); }
.fig--main { grid-row: span 2; background: var(--forest); color: var(--cream); gap: 28px; padding-block: 36px 40px; }
.fig__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.fig__cat { font-size: 18px; font-weight: 500; letter-spacing: -.02em; }
.status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; font-size: 11px; font-weight: 500; letter-spacing: .04em; border: 1px solid var(--line); color: var(--muted); }
.status i { width: 7px; height: 7px; background: var(--lav); border-radius: 50%; box-shadow: 0 0 0 0 rgba(173, 143, 235, .6); animation: pulse 2.4s infinite; }
.fig--main .status { border-color: var(--line-d); color: var(--cream-70); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(173, 143, 235, .55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(173, 143, 235, 0); } }

.fig__value { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; }
.fig__num { font-family: var(--f-display); font-size: clamp(88px, 9vw, 132px); line-height: .82; color: var(--green); font-variant-numeric: tabular-nums; }
.fig--main .fig__num { font-size: clamp(120px, 15vw, 224px); color: var(--cream); }
.fig__unit { font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.fig--main .fig__unit { color: var(--lav); font-size: 14px; }
.fig__viz { margin-top: auto; }
.fig__legend { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 12px; color: var(--cream-50); }
.fig__legend i { width: 9px; height: 9px; background: var(--lav); }
.fig__more { margin-top: 4px; }

/* Grille unitaire : 1 carré = 1 logement */
.units {
  --s: 11px; --g: 3px; --cols: 50; --rows: 16;
  position: relative;
  width: calc(var(--cols) * (var(--s) + var(--g)));
  height: calc(var(--rows) * (var(--s) + var(--g)));
  max-width: 100%;
}
.units::before, .units::after {
  content: "";
  position: absolute; inset: 0;
  -webkit-mask: conic-gradient(at var(--s) var(--s), #0000 75%, #000 0) 0 0 / calc(var(--s) + var(--g)) calc(var(--s) + var(--g));
  mask: conic-gradient(at var(--s) var(--s), #0000 75%, #000 0) 0 0 / calc(var(--s) + var(--g)) calc(var(--s) + var(--g));
}
.units::before { background: rgba(242, 240, 232, .12); }
.units::after { background: var(--lav); clip-path: inset(0 0 0 0); }
.js .units::after { clip-path: inset(0 100% 0 0); transition: clip-path 2.2s steps(50, end) .2s; }
.js .is-in .units::after { clip-path: inset(0 0 0 0); }

.dots { display: grid; grid-template-columns: repeat(10, 16px); gap: 5px; }
.dots[data-dots="15"] { grid-template-columns: repeat(5, 16px); }
.dots i { width: 16px; height: 16px; background: var(--green); }
.js .dots i { opacity: .12; transition: opacity .4s var(--ease) calc(var(--i) * 45ms + .3s); }
.js .is-in .dots i { opacity: 1; }

/* =========================================================
   BÉNÉFICES (onglets séquentiels)
   ========================================================= */
.bnf { border-top: 1px solid var(--line); }
.bnf__tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.bnf__tab {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  min-height: 64px;
  padding: 18px 24px;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  color: var(--muted);
  transition: color .3s, background-color .3s;
}
.bnf__tab + .bnf__tab { border-left: 1px solid var(--line); }
.bnf__tab::after {
  content: "";
  position: absolute; left: 0; right: 0; top: -1px;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
}
.bnf__tab.is-active { color: var(--ink); background: var(--white); }
.bnf__tab.is-active::after { transform: scaleX(var(--p, 1)); }
.bnf__tab:hover { color: var(--ink); }
.bnf__tab-n { font-family: var(--f-display); font-size: 15px; color: var(--green); letter-spacing: .02em; }

.bnf__panels { display: grid; }
.bnf__panel {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  min-height: 540px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s var(--ease), visibility 0s .6s;
}
.bnf__panel.is-active { opacity: 1; visibility: visible; transition: opacity .6s var(--ease), visibility 0s; }
.bnf__text { display: flex; flex-direction: column; gap: 18px; padding: 40px var(--gutter) 44px; background: var(--white); border-right: 1px solid var(--line); }
.bnf__count { font-size: 13px; color: var(--muted); margin-bottom: auto; }
.bnf__count span { font-family: var(--f-display); font-size: 40px; line-height: 1; color: var(--ink); margin-right: 4px; }
.bnf__title { font-size: clamp(28px, 2.7vw, 40px); font-weight: 400; line-height: 1.08; letter-spacing: -.035em; max-width: 14em; }
.bnf__desc { font-size: 16px; line-height: 1.7; color: var(--muted); max-width: 30em; }
.bnf__media { position: relative; overflow: hidden; }
.bnf__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.6s var(--ease); }
.bnf__panel.is-active .bnf__media img { transform: scale(1); }

/* Duotone vert de marque */
.duo { background: #4E776B; }
.duo img { filter: grayscale(1) contrast(1.12) brightness(1.04); mix-blend-mode: luminosity; }
.duo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, rgba(173, 143, 235, .28), rgba(173, 143, 235, 0) 55%); mix-blend-mode: soft-light; pointer-events: none; }

/* =========================================================
   NOTRE SOLUTION
   ========================================================= */
.solution { padding-top: clamp(110px, 11vw, 150px); }
.xp {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  border-top: 1px solid var(--line-d);
  border-bottom: 1px solid var(--line-d);
}
.xp__nav { display: flex; flex-direction: column; border-right: 1px solid var(--line-d); }
.xp__tab {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  flex: 1;
  min-height: 84px;
  padding: 20px var(--gutter);
  text-align: left;
  color: var(--cream-50);
  border-bottom: 1px solid var(--line-d);
  transition: color .35s, background-color .35s;
}
.xp__tab:last-child { border-bottom: 0; }
.xp__tab::before { content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 3px; background: var(--lav); transform: scaleY(0); transform-origin: top; transition: transform .5s var(--ease); }
.xp__tab::after { content: ""; position: absolute; right: var(--gutter); width: 14px; height: 14px; background: var(--lav); -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat; opacity: 0; transform: translateX(-8px); transition: opacity .35s, transform .45s var(--ease); }
.xp__n { font-family: var(--f-display); font-size: 20px; color: inherit; transition: color .35s; }
.xp__t { font-size: 18px; font-weight: 400; letter-spacing: -.02em; line-height: 1.25; transition: transform .45s var(--ease); }
.xp__tab:hover { color: var(--cream); }
.xp__tab:hover .xp__t { transform: translateX(4px); }
.xp__tab.is-active { color: var(--cream); background: rgba(255, 255, 255, .035); }
.xp__tab.is-active::before { transform: scaleY(1); }
.xp__tab.is-active::after { opacity: 1; transform: none; }
.xp__tab.is-active .xp__n { color: var(--lav); }

.xp__panels { display: grid; }
.xp__panel { grid-area: 1 / 1; display: grid; grid-template-rows: auto 1fr; opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility 0s .5s; }
.xp__panel.is-active { opacity: 1; visibility: visible; transition: opacity .5s var(--ease), visibility 0s; }
.xp__diagram {
  padding: 28px var(--gutter);
  border-bottom: 1px solid var(--line-d);
  background-color: var(--forest-2);
  background-image:
    linear-gradient(rgba(242, 240, 232, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 240, 232, .045) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: -1px -1px;
}
.xp__diagram svg { display: block; width: 100%; max-width: 640px; height: auto; margin-inline: auto; overflow: visible; }
.xp__body { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 24px; padding: 36px var(--gutter) 44px; }
.xp__index { font-family: var(--f-display); font-size: 88px; line-height: .8; color: var(--lav); }
.xp__title { font-size: clamp(26px, 2.4vw, 34px); font-weight: 400; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 16px; }
.xp__body div p { font-size: 15.5px; line-height: 1.75; color: var(--cream-70); max-width: 64ch; }
.xp__body .keys { margin-top: 22px; }
.xp__label { display: flex; align-items: center; gap: 16px; margin-top: 22px; font-size: 13px !important; color: var(--cream) !important; }
.xp__label img { height: 40px; width: auto; padding: 8px 10px; background: #fff; }

/* Diagrammes SVG */
.dg text { font-family: var(--f-text); font-size: 13px; fill: var(--cream); }
.dg .dg-cap { font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; fill: var(--cream-50); }
.dg .dg-cap--lav { fill: var(--lav); }
.dg .dg-sub { font-size: 12px; fill: var(--cream-50); }
.dg .dg-strong { font-size: 15px; font-weight: 500; fill: var(--cream); }
.dg .dg-big { font-family: var(--f-display); font-size: 60px; fill: var(--lav); }
.dg rect { fill: rgba(242, 240, 232, .04); stroke: rgba(242, 240, 232, .28); stroke-width: 1; }
.dg-sep { stroke: rgba(242, 240, 232, .18); stroke-dasharray: 3 5; }

/* audit */
.dg-audit .bld { fill: none; stroke: rgba(242, 240, 232, .35); }
.dg-audit .cell { fill: rgba(242, 240, 232, .035); stroke: rgba(242, 240, 232, .16); }
.dg-audit .dg-sample .cell.hit { fill: rgba(242, 240, 232, .38); stroke: rgba(242, 240, 232, .5); }
.dg-audit .dg-full .cell { fill: var(--lav); stroke: var(--lav); fill-opacity: .82; }
.is-in .dg-audit .dg-full .cell { animation: cellOn .5s var(--ease) both; animation-delay: calc(var(--i) * 32ms + .2s); }
@keyframes cellOn { from { fill-opacity: .04; stroke: rgba(242, 240, 232, .16); } }
.dg-audit .roof { fill: none; stroke: rgba(242, 240, 232, .35); }

/* flux subventions */
.dg-paths path { fill: none; stroke: var(--lav); stroke-width: 1.5; }
.is-in .dg-paths path { animation: draw 1.1s var(--ease-io) both; }
.is-in .dg-paths path:nth-child(2) { animation-delay: .12s; }
.is-in .dg-paths path:nth-child(3) { animation-delay: .24s; }
.is-in .dg-paths path:nth-child(4) { animation-delay: .36s; }
@keyframes draw { from { stroke-dasharray: 260; stroke-dashoffset: 260; } to { stroke-dasharray: 260; stroke-dashoffset: 0; } }
.dg-hub rect { fill: var(--lav); stroke: var(--lav); }
.dg-hub text { fill: var(--forest) !important; }
.is-in .dg-hub, .is-in .dg-badge { animation: fadeUp .7s var(--ease) .7s both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }

/* coordination */
.dg-spokes line { stroke: rgba(173, 143, 235, .7); stroke-width: 1.2; stroke-dasharray: 3 6; }
.is-in .dg-spokes line { animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -18; } }
.dg-center circle { fill: var(--cream); stroke: none; }
.dg-center .dg-ring { fill: none; stroke: var(--lav); stroke-dasharray: 2 6; transform-origin: 280px 165px; }
.is-in .dg-center .dg-ring { animation: spin 24s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.dg-sats rect { fill: var(--forest); }
.is-in .dg-sats > * { animation: fadeUp .6s var(--ease) both; }

/* plan de financement */
.dg-arrow { fill: none; stroke: var(--lav); stroke-width: 1.5; marker-end: none; }
.dg-col--lav rect { fill: var(--lav); stroke: var(--lav); }
.dg-col--lav text { fill: var(--forest) !important; }
.dg-sheets rect { fill: rgba(242, 240, 232, .06); }
.is-in .dg-sheets .sheet { animation: fadeUp .6s var(--ease) both; }
.is-in .dg-sheets .sheet:nth-child(2) { animation-delay: .15s; }
.is-in .dg-sheets .sheet:nth-child(3) { animation-delay: .3s; }

/* courbe */
.dg-gridlines line { stroke: rgba(242, 240, 232, .07); }
.dg-axis { stroke: rgba(242, 240, 232, .35); }
.dg-before { fill: none; stroke: rgba(242, 240, 232, .55); stroke-width: 1.6; stroke-dasharray: 4 5; }
.dg-after { fill: none; stroke: var(--lav); stroke-width: 2.6; }
.is-in .dg-after { animation: draw2 1.5s var(--ease-io) .2s both; }
@keyframes draw2 { from { stroke-dasharray: 340; stroke-dashoffset: 340; } to { stroke-dasharray: 340; stroke-dashoffset: 0; } }
.dg-marks circle { fill: var(--forest-2); stroke: var(--lav); stroke-width: 2; }
.is-in .dg-marks circle { animation: fadeUp .5s var(--ease) both; animation-delay: 1.2s; }

/* réseau partenaire */
.network {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  margin-top: clamp(56px, 6vw, 88px);
  border-top: 1px solid var(--line-d);
}
.network__text { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 24px; padding-block: 36px; }
.network__text p { font-size: 20px; line-height: 1.45; letter-spacing: -.02em; max-width: 22em; }
.network__logos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-left: 1px solid var(--line-d); }
.network__logos li { padding: 14px 12px; }
.network__logos li + li { border-left: 1px solid var(--line-d); }
.network__logos a, .network__logos span { display: grid; place-items: center; height: 132px; padding: 16px; background: #fff; transition: transform .45s var(--ease); }
.network__logos a:hover { transform: translateY(-4px); }
.network__logos img { max-height: 52px; width: auto; }
.network__logos img.tall { max-height: 96px; }

/* =========================================================
   ACCOMPAGNEMENT
   ========================================================= */
.journey { background: var(--white); }
.journey__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.journey__aside { padding-inline: var(--gutter); border-right: 1px solid var(--line); }
.journey__sticky { position: sticky; top: calc(var(--header-h) + 40px); padding-bottom: 8px; }
.journey__sticky .h2 { margin-top: 0; max-width: 9em; }

.track { margin: 40px 0 36px; padding: 26px 26px 24px; background: var(--paper); border: 1px solid var(--line); }
.track__now { display: flex; align-items: baseline; gap: 8px; }
.track__big { font-family: var(--f-display); font-size: 104px; line-height: .8; color: var(--green); font-variant-numeric: tabular-nums; }
.track__of { font-family: var(--f-display); font-size: 26px; color: var(--muted); }
.track__label { min-height: 1.5em; margin: 16px 0 22px; font-size: 18px; font-weight: 500; letter-spacing: -.02em; }
.track__phases { display: grid; grid-template-columns: 4fr 2.2fr; gap: 14px; }
.track__pname { display: block; padding-top: 10px; margin-bottom: 12px; border-top: 2px solid var(--green); font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.track__phase--works .track__pname { border-color: var(--lav); color: var(--lav-ink); }
.track ol { display: flex; gap: 6px; }
.track li { display: grid; place-items: center; width: 100%; max-width: 48px; aspect-ratio: 1; font-size: 13px; font-weight: 500; background: var(--white); border: 1px solid var(--line); color: var(--muted); transition: background-color .4s, color .4s, border-color .4s; }
.track li.is-done { background: var(--green); border-color: var(--green); color: #fff; }
.track li.is-on { background: var(--lav); border-color: var(--lav); color: var(--ink); }

.journey__steps { padding-inline: var(--gutter) var(--gutter); }
.phase-title { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--green); }
.phase-title span { padding: 5px 9px; font-size: 11px; background: var(--green); color: #fff; }
.phase-title--works { margin-top: 72px; color: var(--lav-ink); }
.phase-title--works span { background: var(--lav); color: var(--ink); }
.step { position: relative; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; padding: 40px 0; border-bottom: 1px solid var(--line); }
.step::before { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 100%; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); }
.step.is-active::before { transform: scaleX(1); }
.step__n { font-family: var(--f-display); font-size: 84px; line-height: .82; color: transparent; -webkit-text-stroke: 1.4px var(--green); transition: color .5s var(--ease); }
.step.is-active .step__n { color: var(--green); }
.steps + .phase-title + .steps .step__n, .phase-title--works + .steps .step__n { -webkit-text-stroke-color: var(--lav-ink); }
.phase-title--works + .steps .step.is-active .step__n { color: var(--lav); -webkit-text-stroke-color: var(--lav); }
.phase-title--works + .steps .step::before { background: var(--lav); }
.step h4 { font-size: clamp(21px, 1.9vw, 26px); font-weight: 400; letter-spacing: -.025em; line-height: 1.2; margin-bottom: 12px; }
.step p { font-size: 15.5px; line-height: 1.7; color: var(--muted); max-width: 50ch; }
.scenarios { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.scenarios span { padding: 9px 14px; font-size: 12px; font-weight: 500; border: 1px solid var(--line); background: var(--paper); transition: border-color .3s, background-color .3s; }
.step.is-active .scenarios span { border-color: rgba(12, 105, 83, .35); background: var(--white); }
.track.is-works .track__big { color: var(--lav-ink); }

/* =========================================================
   PROJETS
   ========================================================= */
.projects { background: var(--paper); }
.cases { border-top: 1px solid var(--line); }
.cases__track {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc(100% - 2 * var(--gutter) - 96px);
  gap: 20px;
  padding: 32px var(--gutter) 0;
  scroll-padding-inline: var(--gutter);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.cases__track::-webkit-scrollbar { display: none; }
.case { scroll-snap-align: start; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: 600px; background: var(--white); }
.case__media { position: relative; overflow: hidden; background: var(--forest); }
.case__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.case:hover .case__media img { transform: scale(1.035); }
.case__body { display: flex; flex-direction: column; gap: 28px; padding: 36px 40px 40px; }
.case__name { font-size: clamp(34px, 3.4vw, 52px); font-weight: 400; line-height: 1; letter-spacing: -.045em; }
.case__facts { display: grid; grid-template-columns: repeat(3, minmax(0, auto)); justify-content: start; border-top: 1px solid var(--line); }
.case__facts > div { padding: 16px 36px 16px 0; }
.case__facts > div + div:not(.case__dpe) { padding-left: 28px; border-left: 1px solid var(--line); }
.case__facts dt { font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.case__facts dd { font-size: 18px; font-weight: 500; letter-spacing: -.01em; white-space: nowrap; }
.case__gain { font-family: var(--f-display); font-weight: 400 !important; font-size: 56px !important; line-height: .85; color: var(--green); }
.case__gain small { font-size: .5em; }
.case__dpe { grid-column: 1 / -1; border-top: 1px solid var(--line); }
.case__dpe dd { display: flex; align-items: center; gap: 20px; }
.dpe--inline { display: flex; gap: 3px; }
.dpe--inline .dpe__bar {
  isolation: isolate;
  width: 32px; height: 32px;
  justify-content: center;
  padding: 0;
  clip-path: none;
  font-size: 12px;
  color: var(--ink-2);
  background: none;
  opacity: 1;
}
.dpe--inline .dpe__bar::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--c); opacity: .16; }
.dpe--inline .is-before, .dpe--inline .is-after { color: #fff; }
.dpe--inline .is-before::before, .dpe--inline .is-after::before { opacity: 1; }
.dpe--inline .is-before { box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .12); }
.dpe__txt { font-size: 15px; font-weight: 500; }
.case__lots { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px; margin-top: auto; padding-top: 24px; border-top: 1px solid var(--line); }
.case__lots h4 { font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--green); margin-bottom: 12px; }
.case__lots li { padding: 7px 0; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.case__lots li + li { border-top: 1px solid var(--line); }

.cases__controls { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 24px 0; }
.cases__nav { display: flex; align-items: center; gap: 8px; }
.sq { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--line); background: var(--white); font-size: 18px; transition: background-color .3s, color .3s, opacity .3s; }
.sq:hover:not(:disabled) { background: var(--ink); color: #fff; }
.sq:disabled { opacity: .35; cursor: default; }
.cases__count { margin-left: 16px; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cases__count span { color: var(--ink); font-weight: 500; }
.cases__progress { flex: 1; max-width: 420px; height: 2px; background: var(--line); overflow: hidden; }
.cases__progress i { display: block; height: 100%; width: calc(100% / 3); background: var(--green); transform: translateX(calc(var(--i, 0) * 100%)); transition: transform .6s var(--ease); }

/* index des autres copropriétés */
.index { margin-top: clamp(64px, 7vw, 96px); border-top: 1px solid var(--line); }
.index__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px; padding-block: 28px 20px; }
.index__head h3 { font-size: 24px; font-weight: 400; letter-spacing: -.03em; }
.index__table { width: 100%; border-collapse: collapse; }
.index__table th, .index__table td { padding: 12px var(--gutter); text-align: left; border-top: 1px solid var(--line); font-size: 15px; vertical-align: middle; }
.index__table thead th { padding-block: 12px; font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.index__table td { color: var(--ink-2); }
.index__table tbody th { font-weight: 500; font-size: 17px; letter-spacing: -.02em; }
.index__table tbody th img { display: inline-block; vertical-align: middle; width: 48px; height: 60px; object-fit: cover; margin-right: 18px; transition: transform .5s var(--ease); }
.index__table tbody tr { transition: background-color .3s; }
.index__table tbody tr:hover { background: var(--white); }
.index__table tbody tr:hover img { transform: scale(1.08); }
.gain { display: inline-flex; align-items: center; gap: 14px; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.gain::before { content: ""; width: calc(var(--g) * 1.3px); height: 6px; background: var(--green); }

/* =========================================================
   À PROPOS / CRÉDIBILITÉ
   ========================================================= */
.about { background: var(--white); }
.about__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about__media { position: relative; min-height: 540px; overflow: hidden; }
.about__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.about__body { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; padding: 44px var(--gutter) 44px 56px; border-left: 1px solid var(--line); }
.about__title { font-size: clamp(21px, 2vw, 29px); font-weight: 400; line-height: 1.38; letter-spacing: -.025em; }
.quote { padding-left: 24px; border-left: 2px solid var(--lav); }
.quote p { font-size: 20px; font-weight: 300; font-style: italic; line-height: 1.45; color: var(--ink); }
.quote footer { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.quote footer img { width: 44px; height: 44px; object-fit: cover; }
.quote footer span { display: grid; font-size: 13px; color: var(--muted); line-height: 1.35; }
.quote footer strong { font-weight: 500; color: var(--ink); font-size: 14px; }

.creds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.creds li { display: flex; flex-direction: column; gap: 10px; padding: 32px var(--gutter) 36px; }
.creds li + li { border-left: 1px solid var(--line); }
.creds__k { font-family: var(--f-display); font-size: 16px; color: var(--lav-ink); }
.creds h3 { font-size: 18px; font-weight: 500; letter-spacing: -.02em; line-height: 1.25; }
.creds p { font-size: 14px; line-height: 1.6; color: var(--muted); }

/* =========================================================
   CONTACT
   ========================================================= */
.contact { overflow: hidden; padding-bottom: 0; text-align: center; }
.contact__main { display: flex; flex-direction: column; align-items: center; padding-top: 24px; }
.contact__title { margin: 0 0 24px; font-size: clamp(40px, 6vw, 86px); font-weight: 400; line-height: 1.02; letter-spacing: -.05em; }
.contact__lead { max-width: 36em; font-size: 17px; line-height: 1.65; color: var(--cream-70); }
.contact__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px 32px; margin-top: 36px; }
.contact__next { display: flex; justify-content: center; width: fit-content; margin: 56px auto 0; border: 1px solid var(--line-d); }
.contact__next li { display: flex; align-items: center; gap: 12px; padding: 14px 22px; font-size: 13px; color: var(--cream-70); }
.contact__next li + li { border-left: 1px solid var(--line-d); }
.contact__next span { font-family: var(--f-display); font-size: 15px; color: var(--lav); }
.contact__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 72px; border-top: 1px solid var(--line-d); text-align: left; }
.ccard { position: relative; display: grid; align-content: start; gap: 10px; padding: 30px var(--gutter) 34px; text-decoration: none; transition: background-color .35s; }
.ccard + .ccard { border-left: 1px solid var(--line-d); }
.ccard__k { font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--lav); }
.ccard__v { font-size: clamp(17px, 1.6vw, 22px); letter-spacing: -.02em; line-height: 1.35; color: var(--cream); overflow-wrap: anywhere; }
.ccard__go { position: absolute; top: 28px; right: var(--gutter); color: var(--cream-50); transition: transform .45s var(--ease), color .3s; }
a.ccard:hover { background: rgba(255, 255, 255, .04); }
a.ccard:hover .ccard__go { transform: translateX(6px); color: var(--lav); }
.contact__pattern {
  height: 150px;
  border-top: 1px solid var(--line-d);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M6 17 L14 9' stroke='%23AD8FEB' stroke-width='1.4' stroke-linecap='square'/%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 85%);
  mask-image: linear-gradient(to bottom, transparent, #000 85%);
  opacity: .55;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--paper); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 2fr) minmax(0, 2.4fr) minmax(0, 3fr); }
.footer__grid > * { padding: 56px var(--gutter) 48px; }
.footer__grid > * + * { border-left: 1px solid var(--line); }
.footer__logo { height: 54px; width: auto; margin-bottom: 24px; }
.footer__about p { font-size: 14px; line-height: 1.65; color: var(--muted); max-width: 34em; }
.footer h2 { font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.footer__col li { padding-block: 4px; font-size: 14.5px; color: var(--ink-2); }
.footer__col a { text-decoration: none; transition: color .3s; }
.footer__col a:hover { color: var(--green); }
.footer__follow { margin-top: 28px; }
.footer__social { display: flex; gap: 8px; }
.footer__social a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); transition: background-color .3s, color .3s; }
.footer__social a:hover { background: var(--green); color: #fff; }
.footer__bottom { border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 20px var(--gutter) 28px; font-size: 13px; color: var(--muted); }

/* =========================================================
   ANGLES ADOUCIS (test)
   Les blocs structurels de la grille restent à angles vifs ;
   seuls les éléments « posés » (boutons, puces, cartes) s'arrondissent.
   ========================================================= */
.no-radius { --r-xs: 0px; --r-sm: 0px; --r-md: 0px; --r-lg: 0px; }

.btn, .sq, .burger, .footer__social a, .proof__logo, .contact__next, .skip { border-radius: var(--r-md); }
.btn__icon { border-radius: max(0px, calc(var(--r-md) - 3px)); }
.tag, .phase-title span, .index__table tbody th img { border-radius: var(--r-xs); }
.keys li, .status, .scenarios span, .track li, .xp__label img, .quote footer img { border-radius: var(--r-sm); }
.datacard, .track, .network__logos a, .network__logos span { border-radius: var(--r-lg); }
.case { border-radius: var(--r-lg); overflow: hidden; }
.hero__visual::before { border-radius: var(--r-md); }
.dots i { border-radius: 3px; }
.no-radius .dots i { border-radius: 0; }
.dpe--compact .dpe__bar { border-radius: 3px 0 0 3px; }
.dpe--inline .dpe__bar { border-radius: var(--r-xs); }
.dpe--inline .dpe__bar::before { border-radius: inherit; }
.dg rect { rx: var(--r-xs); }
.dg-audit .cell { rx: 2px; }

/* Grille unitaire : carrés aux coins adoucis */
.units::before, .units::after {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Crect width='11' height='11' rx='2.4'/%3E%3C/svg%3E") 0 0 / calc(var(--s) + var(--g)) calc(var(--s) + var(--g));
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Crect width='11' height='11' rx='2.4'/%3E%3C/svg%3E") 0 0 / calc(var(--s) + var(--g)) calc(var(--s) + var(--g));
}
.no-radius .units::before, .no-radius .units::after {
  -webkit-mask: conic-gradient(at var(--s) var(--s), #0000 75%, #000 0) 0 0 / calc(var(--s) + var(--g)) calc(var(--s) + var(--g));
  mask: conic-gradient(at var(--s) var(--s), #0000 75%, #000 0) 0 0 / calc(var(--s) + var(--g)) calc(var(--s) + var(--g));
}

@media (max-width: 899px) {
  .bnf__panel { border-radius: var(--r-lg); overflow: hidden; }
}
@media (max-width: 759px) {
  .hero__photo { border-radius: var(--r-lg); overflow: hidden; }
}

/* =========================================================
   ANIMATIONS (désactivées si prefers-reduced-motion)
   ========================================================= */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .creds li[data-reveal]:nth-child(2), .js .figures__grid .fig:nth-child(2) { transition-delay: .08s; }
.js .creds li[data-reveal]:nth-child(3), .js .figures__grid .fig:nth-child(3) { transition-delay: .16s; }
.js .creds li[data-reveal]:nth-child(4) { transition-delay: .24s; }

/* Entrée du hero */
.js .hero__title .line > span { transform: translateY(125%); transition: transform 1.1s var(--ease); }
.js .hero__title .line:nth-child(2) > span { transition-delay: .08s; }
.js .hero__title .line:nth-child(3) > span { transition-delay: .16s; }
.js .hero__title .line:nth-child(4) > span { transition-delay: .24s; }
.js [data-hero-in] { opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease) .35s, transform .9s var(--ease) .35s; }
.js .hero__actions[data-hero-in] { transition-delay: .5s; }
.js .hero__photo { clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease-io) .1s; }
.js .hero__photo img { transform: scale(1.12); transition: transform 2.2s var(--ease) .1s; }
.js [data-hero-card] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease) .9s, transform .8s var(--ease) .9s; }
.js [data-hero-card] .dpe__bar { transform: scaleX(0); transition: transform .7s var(--ease) calc(1.2s + var(--d, 0) * 60ms); }
.js .dpe__bar[data-c="B"] { --d: 1; } .js .dpe__bar[data-c="C"] { --d: 2; } .js .dpe__bar[data-c="D"] { --d: 3; }
.js .dpe__bar[data-c="E"] { --d: 4; } .js .dpe__bar[data-c="F"] { --d: 5; } .js .dpe__bar[data-c="G"] { --d: 6; }
.is-loaded .hero__title .line > span, .is-loaded [data-hero-in], .is-loaded [data-hero-card], .is-loaded [data-hero-card] .dpe__bar { opacity: 1; transform: none; }
.is-loaded .hero__photo { clip-path: inset(0 0 0 0); }
.is-loaded .hero__photo img { transform: scale(1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js [data-hero-in], .js [data-hero-card], .js .hero__title .line > span, .js [data-hero-card] .dpe__bar { opacity: 1; transform: none; }
  .js .hero__photo { clip-path: none; }
  .js .units::after { clip-path: inset(0 0 0 0); }
  .js .dots i { opacity: 1; }
  .status i { animation: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1240px) {
  :root { --gutter: 32px; }
  .nav ul { gap: 22px; }
  .header__tel { display: none; }
  .case { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
}

@media (max-width: 1099px) {
  :root { --header-h: 68px; }
  .nav { display: none; }
  .burger { display: block; }
  .header__inner { grid-template-columns: 1fr auto; }
  .header__logo img { height: 38px; }

  .hero__grid { grid-template-columns: 1fr; min-height: 0; }
  .hero__title { font-size: clamp(44px, 11.5vw, 100px); }
  .hero__content { border-right: 0; padding-block: 56px 48px; }
  .hero__visual { height: min(78vw, 620px); }
  .hero__proof-grid { grid-template-columns: 1fr; }
  .proof + .proof { border-left: 0; border-top: 1px solid var(--line-d); }
  .proof { min-height: 0; padding-block: 20px; }

  .sec-head__row, .sec-head__row--split { grid-template-columns: 1fr; }

  .figures__grid { grid-template-columns: 1fr 1fr; }
  .fig--main { grid-row: auto; grid-column: 1 / -1; }
  .fig:last-child { border-top: 0; }
  .fig + .fig:nth-child(2) { border-left: 0; }
  .units { --s: 9px; --g: 3px; }

  .xp { grid-template-columns: 1fr; }
  .xp__nav { display: none; }
  .xp__panels { gap: 0; }
  .xp__panel { grid-area: auto; opacity: 1; visibility: visible; transition: none; }
  .xp__panel + .xp__panel { border-top: 1px solid var(--line-d); }

  .network { grid-template-columns: 1fr; }
  .network__logos { border-left: 0; border-top: 1px solid var(--line-d); }

  .journey__grid { grid-template-columns: 1fr; }
  .journey__aside { border-right: 0; }
  .journey__sticky { position: static; }
  .track { display: none; }
  .journey__sticky .link { margin-top: 24px; }
  .journey__steps { margin-top: 48px; }

  .case { grid-template-columns: 1fr; grid-template-rows: 360px auto; min-height: 0; }
  .cases__track { grid-auto-columns: calc(100% - 2 * var(--gutter) - 48px); }

  .about__grid { grid-template-columns: 1fr; }
  .about__media { min-height: 0; aspect-ratio: 16 / 10; }
  .about__body { border-left: 0; padding-left: var(--gutter); }
  .creds { grid-template-columns: 1fr 1fr; }
  .creds li:nth-child(3) { border-left: 0; }
  .creds li:nth-child(n+3) { border-top: 1px solid var(--line); }

  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > *:nth-child(3) { border-left: 0; }
  .footer__grid > *:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 899px) {
  .bnf__tabs { display: none; }
  .bnf { border-top: 0; display: grid; }
  .bnf__panels { gap: 16px; padding-inline: var(--gutter); }
  .bnf__panel { grid-area: auto; grid-template-columns: 1fr; grid-template-rows: 260px auto; min-height: 0; opacity: 1; visibility: visible; transition: none; }
  .bnf__panel .bnf__media { order: -1; }
  .bnf__panel .bnf__media img { transform: none; }
  .bnf__text { border-right: 0; padding: 26px 24px 30px; }
  .bnf__count { margin-bottom: 4px; }
  .bnf__count span { font-size: 28px; }
}

@media (max-width: 759px) {
  :root { --gutter: 20px; --header-h: 64px; }
  body { font-size: 15px; }
  .wrap { border-inline: 0; }
  .header__end .btn { display: none; }

  .hero__content { padding-block: 40px 36px; }
  .hero__title { font-size: clamp(44px, 13.4vw, 68px); margin-block: 0 20px; }
  .hero__lead { font-size: 16px; }
  .hero__actions { margin-top: 28px; }
  .hero__actions .btn { width: 100%; justify-content: space-between; }
  .hero__visual { height: auto; overflow: visible; background: none; padding: 0 var(--gutter) 32px; }
  .hero__visual::before { display: none; }
  .hero__photo { position: relative; height: 420px; }
  .datacard { position: relative; left: auto; bottom: auto; width: auto; margin: -64px 12px 0; }
  .datacard__num { font-size: 60px; }
  .dpe--compact { width: 150px; }
  .proof { gap: 16px; font-size: 13px; }
  .proof__logo { height: 60px; }
  .proof__logo img { height: 44px; }
  .proof__logo--wide img { height: 20px; }

  .figures__grid { grid-template-columns: 1fr; }
  .fig + .fig { border-left: 0; border-top: 1px solid var(--line); }
  .fig--main { padding-inline: var(--gutter); }
  .units { --s: 5px; --g: 2px; --cols: 40; --rows: 20; }
  .js .units::after { transition-timing-function: steps(40, end); }
  .dots { grid-template-columns: repeat(10, 14px); gap: 4px; }
  .dots[data-dots="15"] { grid-template-columns: repeat(5, 14px); }
  .dots i { width: 14px; height: 14px; }

  .xp__diagram { padding: 20px 6px; }
  /* libellés des schémas agrandis : le SVG est réduit à ~60 % sur mobile */
  .dg text { font-size: 15px; }
  .dg .dg-sub { font-size: 13.5px; }
  .dg .dg-strong { font-size: 16px; }
  .dg .dg-cap { font-size: 13px; letter-spacing: .08em; }
  .units { --s: 6px; --g: 2px; }
  .xp__body { grid-template-columns: 1fr; gap: 8px; padding-block: 28px 36px; }
  .xp__index { font-size: 56px; }
  .network__logos { grid-template-columns: 1fr 1fr; }
  .network__logos li:nth-child(3) { border-left: 0; }
  .network__logos li:nth-child(n+3) { border-top: 1px solid var(--line-d); }
  .network__logos a, .network__logos span { height: 104px; }
  .network__text p { font-size: 18px; }

  .step { grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding-block: 28px; }
  .step__n { font-size: 52px; }
  .phase-title--works { margin-top: 48px; }

  .cases__track { grid-auto-columns: calc(100% - 28px); gap: 12px; }
  .case { grid-template-rows: 300px auto; }
  .case__body { padding: 26px 22px 30px; gap: 22px; }
  .case__facts { grid-template-columns: 1fr 1fr; }
  .case__facts > div { padding-right: 12px; }
  .case__facts dd { white-space: normal; }
  .case__facts > div:first-child { grid-column: 1 / -1; }
  .case__facts > div:nth-child(2):not(.case__dpe) { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .case__facts > div:nth-child(3) { padding-left: 16px; border-top: 1px solid var(--line); }
  .case__gain { font-size: 48px !important; }
  .case__dpe dd { flex-wrap: wrap; gap: 10px 16px; }
  .dpe--inline .dpe__bar { width: 28px; height: 28px; }
  .case__lots { grid-template-columns: 1fr; }
  .cases__progress { display: none; }

  .index__table thead { display: none; }
  .index__table tbody tr { display: grid; grid-template-columns: 52px 1fr auto; grid-template-areas: "img name gain" "img meta gain" "img count gain"; column-gap: 14px; padding: 14px var(--gutter); border-top: 1px solid var(--line); }
  .index__table tbody th, .index__table tbody td { padding: 0; border: 0; }
  .index__table tbody th { display: contents; }
  .index__table tbody th img { grid-area: img; margin: 0; width: 52px; height: 72px; }
  .index__table tbody td:nth-child(2) { grid-area: meta; font-size: 13px; color: var(--muted); }
  .index__table tbody td:nth-child(3) { grid-area: count; font-size: 13px; color: var(--muted); }
  .index__table tbody td:nth-child(3)::after { content: " copropriétaires"; }
  .index__table tbody td:nth-child(4) { grid-area: gain; align-self: center; }
  .gain::before { width: calc(var(--g) * .5px); }

  .about__body { padding-block: 36px; }
  .quote p { font-size: 18px; }
  .creds { grid-template-columns: 1fr; }
  .creds li + li { border-left: 0; border-top: 1px solid var(--line); }
  .creds li { padding-block: 26px; }

  .contact__title { font-size: clamp(36px, 11vw, 52px); }
  .br-desk { display: none; }
  .contact__actions .btn { width: 100%; justify-content: space-between; }
  .contact__next { flex-direction: column; width: 100%; text-align: left; }
  .contact__next li + li { border-left: 0; border-top: 1px solid var(--line-d); }
  .contact__cards { grid-template-columns: 1fr; margin-top: 48px; }
  .ccard + .ccard { border-left: 0; border-top: 1px solid var(--line-d); }
  .contact__pattern { height: 100px; }

  .footer__grid { grid-template-columns: 1fr; }
  .footer__grid > * + * { border-left: 0; border-top: 1px solid var(--line); }
  .footer__grid > * { padding-block: 36px; }
}
