/* =========================================================
   WELGAR — REFONTE
   Direction : diagnostiquer, trier, transformer, fiabiliser.
   Dépend de assets/css/style.css pour le header/footer commun.
   Desktop 1920×1080 prioritaire.
   ========================================================= */

.page-refonte {
    --r-ink: #171817;
    --r-dark: #101212;
    --r-dark-soft: #181b1a;
    --r-ivory: #ede8dc;
    --r-paper: #f6f1e7;
    --r-paper-deep: #e5dfd2;
    --r-muted: #686b67;
    --r-orange: #e89a64;
    --r-green: #68786f;
    --r-rule: rgba(23,24,23,.17);
    --r-rule-soft: rgba(23,24,23,.08);
    --r-max: 1460px;
    margin: 0;
    color: var(--r-ink);
    background: var(--r-ivory);
}

.page-refonte *, .page-refonte *::before, .page-refonte *::after { box-sizing: border-box; }

.refonte-skip {
    position: fixed; z-index: 10000; top: 12px; left: 12px;
    transform: translateY(-160%); padding: 10px 14px;
    color: var(--r-dark); background: var(--r-paper); text-decoration: none;
}
.refonte-skip:focus { transform: none; }

.refonte-container { width: min(calc(100% - 11vw), var(--r-max)); margin-inline: auto; }
.refonte-kicker { margin: 0 0 18px; color: var(--r-orange); font-size: .75rem; font-weight: 650; letter-spacing: .22em; }
.refonte-link { display: inline-flex; align-items: center; gap: 18px; color: inherit; font-weight: 550; text-decoration: none; }
.refonte-link span { color: var(--r-orange); transition: transform .25s ease; }
.refonte-link:hover span, .refonte-link:focus-visible span { transform: translateY(5px); }

/* =========================================================
   HERO — un site existe déjà : on l'observe avant d'agir.
   ========================================================= */
.refonte-hero {
    min-height: 100svh; display: flex; align-items: center; overflow: hidden;
    padding: clamp(120px,12vh,160px) 0 76px; background: var(--r-ivory);
}
.refonte-hero__inner { display: grid; grid-template-columns: .84fr 1.16fr; gap: clamp(70px,9vw,160px); align-items: center; }
.refonte-hero__copy { max-width: 650px; }
.refonte-hero h1 { max-width: 10ch; margin: 0; font-size: clamp(4rem,5.8vw,7rem); font-weight: 420; line-height: .93; letter-spacing: -.06em; }
.refonte-hero__lead { margin: 32px 0 38px; color: var(--r-muted); font-size: clamp(1.2rem,1.5vw,1.5rem); line-height: 1.5; }

.refonte-existing { position: relative; justify-self: end; width: min(100%,700px); aspect-ratio: 1.18/1; }
.refonte-existing__browser { position: absolute; inset: 8% 4% 5% 4%; overflow: hidden; border: 1px solid rgba(23,24,23,.16); background: #ded8cc; box-shadow: 0 34px 80px rgba(23,24,23,.10); }
.refonte-existing__browser::before { content:""; position:absolute; inset:0 0 auto; height:9%; border-bottom:1px solid rgba(23,24,23,.12); background:rgba(255,255,255,.24); }
.refonte-existing__browser::after { content:"•••"; position:absolute; top:1.7%; left:3%; color:rgba(23,24,23,.30); font-size:.8rem; letter-spacing:.18em; }
.refonte-existing__nav,.refonte-existing__title,.refonte-existing__copy,.refonte-existing__button,.refonte-existing__visual { position:absolute; display:block; background:rgba(23,24,23,.22); }
.refonte-existing__nav { top:15%; left:8%; width:84%; height:5%; }
.refonte-existing__title { top:29%; left:8%; width:43%; height:12%; }
.refonte-existing__copy--a { top:47%; left:8%; width:36%; height:2%; }
.refonte-existing__copy--b { top:53%; left:8%; width:28%; height:2%; }
.refonte-existing__button { top:64%; left:8%; width:18%; height:8%; background:rgba(23,24,23,.34); }
.refonte-existing__visual { top:28%; right:7%; width:38%; height:50%; background:rgba(23,24,23,.12); }
.refonte-existing__marker { position:absolute; z-index:2; padding:9px 12px; font-size:.62rem; font-weight:700; letter-spacing:.15em; background:var(--r-paper); box-shadow:0 8px 24px rgba(23,24,23,.08); }
.refonte-existing__marker::after { content:""; position:absolute; width:58px; height:1px; background:currentColor; opacity:.4; }
.refonte-existing__marker--a { top:22%; right:-2%; color:var(--r-green); transform:rotate(2deg); }
.refonte-existing__marker--a::after { right:100%; top:50%; }
.refonte-existing__marker--b { bottom:13%; left:-2%; color:#9c6041; transform:rotate(-2deg); }
.refonte-existing__marker--b::after { left:100%; top:50%; }

/* =========================================================
   DIAGNOSTIC — grille d'audit, rationnelle et éditoriale.
   ========================================================= */
.refonte-diagnostic { position:relative; padding:176px 0; background:var(--r-paper); }
.refonte-diagnostic::before { content:""; position:absolute; top:0; left:50%; width:1px; height:100%; background:var(--r-rule-soft); }
.refonte-diagnostic__heading { position:relative; z-index:1; display:grid; grid-template-columns:.75fr 1.1fr 1fr; column-gap:32px; align-items:start; margin-bottom:90px; }
.refonte-diagnostic__heading h2 { margin:0; font-size:clamp(3rem,4.5vw,5.4rem); font-weight:430; line-height:.96; letter-spacing:-.055em; }
.refonte-diagnostic__heading > p:last-child { margin:4px 0 0; color:var(--r-muted); font-size:1.08rem; line-height:1.75; }
.refonte-diagnostic__grid { position:relative; z-index:1; display:grid; grid-template-columns:repeat(4,1fr); border-top:1px solid var(--r-rule); border-bottom:1px solid var(--r-rule); }
.refonte-diagnostic__grid article { min-height:250px; padding:32px 30px 36px; border-right:1px solid var(--r-rule); }
.refonte-diagnostic__grid article:last-child { border-right:0; }
.refonte-diagnostic__grid span { display:block; margin-bottom:62px; color:var(--r-orange); font-size:.7rem; letter-spacing:.18em; }
.refonte-diagnostic__grid h3 { margin:0 0 14px; font-size:1.35rem; font-weight:550; }
.refonte-diagnostic__grid p { margin:0; color:var(--r-muted); line-height:1.65; }

/* =========================================================
   TRI — ce qui reste / ce qui est repensé.
   ========================================================= */
.refonte-keep { overflow:hidden; padding:176px 0; background:var(--r-ivory); }
.refonte-keep__inner { display:grid; grid-template-columns:.9fr 1.1fr; gap:clamp(80px,10vw,170px); align-items:center; }
.refonte-keep__copy { max-width:650px; }
.refonte-keep__copy h2 { margin:0 0 34px; font-size:clamp(3.2rem,4.7vw,5.7rem); font-weight:430; line-height:.96; letter-spacing:-.055em; }
.refonte-keep__copy > p:not(.refonte-kicker) { margin:0 0 20px; color:var(--r-muted); font-size:1.08rem; line-height:1.75; }
.refonte-keep__sorting { position:relative; min-height:540px; border-top:1px solid var(--r-rule); border-bottom:1px solid var(--r-rule); }
.refonte-keep__sorting::before { content:""; position:absolute; top:0; bottom:0; left:50%; width:1px; background:var(--r-rule); }
.refonte-keep__piece { position:absolute; display:flex; align-items:center; justify-content:center; width:34%; height:21%; border:1px solid rgba(23,24,23,.18); background:var(--r-paper); box-shadow:0 16px 38px rgba(23,24,23,.05); transition:transform .35s ease; }
.refonte-keep__piece span { font-size:.67rem; font-weight:650; letter-spacing:.17em; }
.refonte-keep__piece--keep { border-color:rgba(104,120,111,.48); }
.refonte-keep__piece--review { border-style:dashed; border-color:rgba(232,154,100,.65); }
.refonte-keep__piece:nth-of-type(1) { top:15%; left:6%; transform:rotate(-2deg); }
.refonte-keep__piece:nth-of-type(2) { top:12%; right:6%; transform:rotate(3deg); }
.refonte-keep__piece:nth-of-type(3) { bottom:16%; left:9%; transform:rotate(2deg); }
.refonte-keep__piece:nth-of-type(4) { bottom:13%; right:9%; transform:rotate(-3deg); }
.refonte-keep__legend { position:absolute; bottom:-31px; font-size:.6rem; letter-spacing:.17em; }
.refonte-keep__legend--keep { left:8%; color:var(--r-green); }
.refonte-keep__legend--review { right:8%; color:#9c6041; }

/* =========================================================
   AMÉLIORATIONS — section sombre, quatre freins concrets.
   ========================================================= */
.refonte-improve { padding:clamp(140px,12vw,210px) 0; color:var(--r-paper); background:var(--r-dark); }
.refonte-improve__heading { display:grid; grid-template-columns:.7fr 1.35fr .95fr; gap:clamp(40px,6vw,100px); align-items:start; margin-bottom:90px; }
.refonte-improve__heading h2 { max-width:13ch; margin:0; font-size:clamp(3.1rem,4.7vw,5.7rem); font-weight:420; line-height:.96; letter-spacing:-.055em; }
.refonte-improve__heading > p:last-child { align-self:end; margin:0 0 .08em; color:rgba(246,241,231,.58); font-size:1.08rem; line-height:1.75; }
.refonte-improve__list { border-top:1px solid rgba(246,241,231,.18); }
.refonte-improve__list article { display:grid; grid-template-columns:.72fr 1.1fr 1.18fr; gap:clamp(35px,5vw,80px); align-items:start; padding:36px 0; border-bottom:1px solid rgba(246,241,231,.14); }
.refonte-improve__list article > span { color:var(--r-orange); font-size:.68rem; font-weight:650; letter-spacing:.17em; }
.refonte-improve__list h3 { margin:0; font-size:clamp(1.45rem,1.8vw,2rem); font-weight:480; line-height:1.15; }
.refonte-improve__list p { margin:0; color:rgba(246,241,231,.62); line-height:1.7; }
.refonte-improve__list strong { color:var(--r-paper); font-weight:560; }

/* =========================================================
   TRANSFORMATION — l'ancien se désassemble et se réordonne.
   ========================================================= */
.refonte-transform { overflow:hidden; padding:176px 0; background:var(--r-paper); }
.refonte-transform__inner { display:grid; grid-template-columns:1.18fr .82fr; gap:clamp(80px,10vw,170px); align-items:center; }
.refonte-transform__stage { position:relative; min-height:560px; }
.refonte-transform__axis { position:absolute; top:50%; left:50%; width:1px; height:76%; background:var(--r-rule); transform:translate(-50%,-50%); }
.refonte-transform__axis::before { content:""; position:absolute; top:50%; left:50%; width:9px; height:9px; background:var(--r-orange); transform:translate(-50%,-50%) rotate(45deg); }
.refonte-transform__before,.refonte-transform__after { position:absolute; top:12%; width:42%; height:76%; }
.refonte-transform__before { left:0; }
.refonte-transform__after { right:0; }
.refonte-transform__before span,.refonte-transform__after span { position:absolute; display:block; border:1px solid rgba(23,24,23,.16); background:var(--r-paper-deep); }
.refonte-transform__before span:nth-child(1) { top:5%; left:7%; width:84%; height:12%; transform:rotate(-1deg); }
.refonte-transform__before span:nth-child(2) { top:25%; left:3%; width:42%; height:30%; transform:rotate(3deg); }
.refonte-transform__before span:nth-child(3) { top:23%; right:2%; width:44%; height:43%; transform:rotate(-4deg); }
.refonte-transform__before span:nth-child(4) { bottom:9%; left:10%; width:55%; height:11%; transform:rotate(2deg); }
.refonte-transform__before span:nth-child(5) { bottom:3%; right:5%; width:24%; height:16%; transform:rotate(-3deg); }
.refonte-transform__after { border:1px solid rgba(23,24,23,.18); background:#eee8dc; box-shadow:0 24px 60px rgba(23,24,23,.07); }
.refonte-transform__after span:nth-child(1) { top:7%; left:7%; width:86%; height:8%; background:rgba(23,24,23,.22); }
.refonte-transform__after span:nth-child(2) { top:25%; left:7%; width:48%; height:17%; background:rgba(23,24,23,.30); }
.refonte-transform__after span:nth-child(3) { top:48%; left:7%; width:38%; height:2%; background:rgba(23,24,23,.20); }
.refonte-transform__after span:nth-child(4) { top:55%; left:7%; width:31%; height:2%; background:rgba(23,24,23,.16); }
.refonte-transform__after span:nth-child(5) { top:24%; right:7%; width:31%; height:48%; background:rgba(104,120,111,.24); }
.refonte-transform__label { position:absolute; bottom:3%; font-size:.62rem; font-weight:650; letter-spacing:.17em; }
.refonte-transform__label--before { left:6%; color:var(--r-muted); }
.refonte-transform__label--after { right:6%; color:var(--r-green); }
.refonte-transform__copy h2 { margin:0 0 32px; font-size:clamp(3.1rem,4.5vw,5.4rem); font-weight:430; line-height:.96; letter-spacing:-.055em; }
.refonte-transform__copy > p:last-child { margin:0; color:var(--r-muted); font-size:1.08rem; line-height:1.75; }

/* =========================================================
   SOUS LE CAPOT — technique expliquée sans transformer la page en doc.
   ========================================================= */
.refonte-underhood { padding:clamp(145px,12vw,215px) 0; color:var(--r-paper); background:var(--r-dark-soft); }
.refonte-underhood__heading { max-width:1000px; margin-bottom:92px; }
.refonte-underhood__heading h2 { margin:0 0 30px; font-size:clamp(3.2rem,4.8vw,5.8rem); font-weight:420; line-height:.96; letter-spacing:-.055em; }
.refonte-underhood__heading > p:last-child { max-width:720px; margin:0; color:rgba(246,241,231,.58); font-size:1.08rem; line-height:1.75; }
.refonte-underhood__system { display:grid; grid-template-columns:repeat(2,1fr); border-top:1px solid rgba(246,241,231,.18); border-left:1px solid rgba(246,241,231,.18); }
.refonte-underhood__system article { min-height:300px; padding:42px 44px; border-right:1px solid rgba(246,241,231,.18); border-bottom:1px solid rgba(246,241,231,.18); }
.refonte-underhood__system span { display:block; margin-bottom:56px; color:var(--r-orange); font-size:.68rem; font-weight:650; letter-spacing:.17em; }
.refonte-underhood__system h3 { max-width:19ch; margin:0 0 18px; font-size:clamp(1.5rem,2vw,2.15rem); font-weight:470; line-height:1.15; }
.refonte-underhood__system p { max-width:62ch; margin:0; color:rgba(246,241,231,.60); line-height:1.7; }
.refonte-underhood__system strong { color:var(--r-paper); font-weight:560; }

/* =========================================================
   VALIDATION — ancien et nouveau coexistent avant la bascule.
   ========================================================= */
.refonte-review { overflow:hidden; padding:176px 0; background:var(--r-ivory); }
.refonte-review__inner { display:grid; grid-template-columns:.82fr 1.18fr; gap:clamp(80px,10vw,170px); align-items:center; }
.refonte-review__copy { max-width:620px; }
.refonte-review__copy h2 { margin:0 0 32px; font-size:clamp(3.2rem,4.6vw,5.5rem); font-weight:430; line-height:.96; letter-spacing:-.055em; }
.refonte-review__copy > p:not(.refonte-kicker) { margin:0 0 20px; color:var(--r-muted); font-size:1.08rem; line-height:1.75; }
.refonte-review__compare { position:relative; min-height:520px; }
.refonte-review__screen { position:absolute; width:55%; aspect-ratio:1.25/1; border:1px solid rgba(23,24,23,.18); box-shadow:0 22px 55px rgba(23,24,23,.07); }
.refonte-review__screen::before,.refonte-review__screen::after { content:""; position:absolute; left:9%; right:9%; background:rgba(23,24,23,.14); }
.refonte-review__screen::before { top:18%; height:10%; }
.refonte-review__screen::after { top:36%; height:45%; }
.refonte-review__screen > span { position:absolute; top:-28px; left:0; font-size:.6rem; font-weight:650; letter-spacing:.17em; }
.refonte-review__screen--old { top:8%; left:2%; background:#ddd6c9; transform:rotate(-2deg); }
.refonte-review__screen--old > span { color:var(--r-muted); }
.refonte-review__screen--new { right:1%; bottom:7%; z-index:2; background:var(--r-paper); transform:rotate(1deg); }
.refonte-review__screen--new::after { background:rgba(104,120,111,.22); }
.refonte-review__screen--new > span { color:var(--r-green); }
.refonte-review__check { position:absolute; z-index:3; padding:9px 12px; color:var(--r-ink); background:var(--r-paper); border:1px solid var(--r-rule); font-size:.58rem; font-weight:650; letter-spacing:.15em; }
.refonte-review__check::before { content:"✓"; margin-right:8px; color:var(--r-green); }
.refonte-review__check--a { top:14%; right:0; }
.refonte-review__check--b { bottom:10%; left:15%; }
.refonte-review__check--c { top:49%; left:43%; }

/* =========================================================
   FINAL — résultat stabilisé.
   ========================================================= */
.refonte-final { overflow:hidden; padding:clamp(150px,13vw,230px) 0; color:var(--r-paper); background:var(--r-dark); }
.refonte-final__inner { display:grid; grid-template-columns:1fr .85fr; gap:clamp(80px,10vw,170px); align-items:center; }
.refonte-final__copy h2 { max-width:13ch; margin:0 0 30px; font-size:clamp(3.2rem,4.9vw,5.9rem); font-weight:420; line-height:.96; letter-spacing:-.055em; }
.refonte-final__copy > p:not(.refonte-kicker) { max-width:650px; margin:0 0 38px; color:rgba(246,241,231,.60); font-size:1.08rem; line-height:1.75; }
.refonte-btn { display:inline-flex; align-items:center; gap:20px; padding:16px 0; color:var(--r-paper); border-bottom:1px solid rgba(246,241,231,.42); text-decoration:none; font-weight:560; }
.refonte-btn span { color:var(--r-orange); transition:transform .25s ease; }
.refonte-btn:hover span,.refonte-btn:focus-visible span { transform:translateX(6px); }
.refonte-final__device { justify-self:end; width:min(100%,570px); padding:16px; border:1px solid rgba(246,241,231,.18); background:#171918; box-shadow:0 36px 90px rgba(0,0,0,.24); }
.refonte-final__screen { position:relative; aspect-ratio:1.12/1; overflow:hidden; background:#eee8dc; }
.refonte-final__nav,.refonte-final__hero,.refonte-final__title,.refonte-final__copyline,.refonte-final__button,.refonte-final__media { position:absolute; display:block; }
.refonte-final__nav { top:7%; left:7%; width:86%; height:6%; background:rgba(23,24,23,.18); }
.refonte-final__hero { top:21%; left:7%; width:86%; height:23%; background:rgba(104,120,111,.24); }
.refonte-final__title { top:54%; left:7%; width:45%; height:8%; background:rgba(23,24,23,.30); }
.refonte-final__copyline--a { top:68%; left:7%; width:37%; height:2%; background:rgba(23,24,23,.18); }
.refonte-final__copyline--b { top:74%; left:7%; width:29%; height:2%; background:rgba(23,24,23,.14); }
.refonte-final__button { bottom:10%; left:7%; width:18%; height:7%; background:var(--r-orange); }
.refonte-final__media { top:54%; right:7%; width:34%; height:30%; background:rgba(23,24,23,.10); }

/* =========================================================
   TABLETTE / MOBILE
   ========================================================= */
@media (max-width: 1199px) {
    .refonte-container { width:min(calc(100% - 64px), var(--r-max)); }
    .refonte-hero { min-height:auto; padding:150px 0 110px; }
    .refonte-hero__inner,.refonte-keep__inner,.refonte-transform__inner,.refonte-review__inner,.refonte-final__inner { gap:70px; }
    .refonte-diagnostic,.refonte-keep,.refonte-transform,.refonte-review { padding:120px 0; }
    .refonte-diagnostic__heading,.refonte-improve__heading { grid-template-columns:1fr 1.25fr; }
    .refonte-diagnostic__heading > p:last-child,.refonte-improve__heading > p:last-child { grid-column:2; }
    .refonte-diagnostic__grid { grid-template-columns:repeat(2,1fr); }
    .refonte-diagnostic__grid article:nth-child(2) { border-right:0; }
    .refonte-diagnostic__grid article:nth-child(-n+2) { border-bottom:1px solid var(--r-rule); }
    .refonte-improve__list article { grid-template-columns:.75fr 1fr 1.25fr; }
}

@media (max-width: 900px) {
    .refonte-container { width:min(calc(100% - 44px), var(--r-max)); }
    .refonte-hero__inner,.refonte-keep__inner,.refonte-transform__inner,.refonte-review__inner,.refonte-final__inner { grid-template-columns:1fr; }
    .refonte-hero h1,.refonte-keep__copy h2,.refonte-transform__copy h2,.refonte-review__copy h2,.refonte-final__copy h2 { max-width:12ch; }
    .refonte-existing { justify-self:center; width:min(100%,650px); }
    .refonte-diagnostic__heading,.refonte-improve__heading { grid-template-columns:1fr; gap:26px; }
    .refonte-diagnostic__heading > p:last-child,.refonte-improve__heading > p:last-child { grid-column:auto; max-width:700px; }
    .refonte-improve__list article { grid-template-columns:1fr; gap:14px; padding:32px 0; }
    .refonte-transform__stage { order:2; }
    .refonte-transform__copy { order:1; }
    .refonte-review__compare { min-height:500px; }
    .refonte-final__device { justify-self:start; width:min(100%,620px); }
}

@media (max-width: 600px) {
    .refonte-container { width:calc(100% - 32px); }
    .refonte-hero { padding:118px 0 82px; }
    .refonte-hero h1 { font-size:clamp(3rem,14vw,4.4rem); }
    .refonte-hero__lead { margin:26px 0 32px; font-size:1.08rem; }
    .refonte-existing { aspect-ratio:1/1; }
    .refonte-existing__marker { font-size:.52rem; }
    .refonte-diagnostic,.refonte-keep,.refonte-transform,.refonte-review { padding:88px 0; }
    .refonte-improve,.refonte-underhood,.refonte-final { padding:96px 0; }
    .refonte-diagnostic__heading,.refonte-improve__heading,.refonte-underhood__heading { margin-bottom:58px; }
    .refonte-diagnostic__heading h2,.refonte-keep__copy h2,.refonte-improve__heading h2,.refonte-transform__copy h2,.refonte-underhood__heading h2,.refonte-review__copy h2,.refonte-final__copy h2 { font-size:clamp(2.7rem,12vw,4rem); }
    .refonte-diagnostic__grid { grid-template-columns:1fr; }
    .refonte-diagnostic__grid article { min-height:0; border-right:0; border-bottom:1px solid var(--r-rule); }
    .refonte-diagnostic__grid article:last-child { border-bottom:0; }
    .refonte-diagnostic__grid span { margin-bottom:34px; }
    .refonte-keep__sorting { min-height:420px; }
    .refonte-keep__piece { width:39%; height:20%; }
    .refonte-transform__stage { min-height:420px; }
    .refonte-underhood__system { grid-template-columns:1fr; }
    .refonte-underhood__system article { min-height:0; padding:34px 28px; }
    .refonte-underhood__system span { margin-bottom:34px; }
    .refonte-review__compare { min-height:390px; }
    .refonte-review__screen { width:62%; }
    .refonte-review__check { font-size:.5rem; padding:7px 9px; }
    .refonte-final__copy h2 { max-width:11ch; }
}

/* =========================================================
   ACCESSIBILITÉ / MOUVEMENT
   ========================================================= */
.page-refonte a:focus-visible,.page-refonte button:focus-visible { outline:2px solid var(--r-orange); outline-offset:5px; }
@media (prefers-reduced-motion: reduce) {
    .page-refonte *, .page-refonte *::before, .page-refonte *::after { scroll-behavior:auto !important; transition-duration:.01ms !important; animation-duration:.01ms !important; animation-iteration-count:1 !important; }
}

/* =========================================================
   FOOTER — textes clairs sur fond sombre
   ========================================================= */
.page-refonte .site-footer,
.page-refonte .site-footer a,
.page-refonte .site-footer__copyright,
.page-refonte .site-footer__brand,
.page-refonte .site-footer__links,
.page-refonte .site-footer__links a {
    color: #ffffff;
}

/* La section finale conserve son fond derrière le footer transparent. */
.page-refonte .refonte-final {
    padding-bottom: calc(clamp(150px, 13vw, 230px) + var(--footer-svg-h));
}
.page-refonte .site-footer { background: transparent !important; }
@media (max-width: 600px) {
    .page-refonte .refonte-final {
        padding-bottom: calc(96px + var(--footer-svg-h));
    }
}



/* =========================================================
   DIAGNOSTIC — alignement éditorial
   Audit + titre à gauche / texte d'introduction en face
   ========================================================= */
@media (min-width: 1200px) {
    .refonte-diagnostic__heading {
        grid-template-columns: 1fr 1fr;
        column-gap: clamp(70px, 8vw, 140px);
        align-items: end;
    }

    .refonte-diagnostic__heading .refonte-kicker {
        grid-column: 1;
        grid-row: 1;
        margin-bottom: 18px;
        align-self: end;
    }

    .refonte-diagnostic__heading h2 {
        grid-column: 1;
        grid-row: 2;
    }

    .refonte-diagnostic__heading > p:last-child {
        grid-column: 2;
        grid-row: 2;
        align-self: end;
        margin: 0 0 .08em;
        max-width: 520px;
    }
}


/* =========================================================
   AMÉLIORATIONS — 2 lignes forcées visuellement
   Position horizontale inchangée.
   ========================================================= */
@media (min-width: 1200px) {
    .refonte-improve {
        padding-top: 118px;
        padding-bottom: 118px;
    }

    .refonte-improve__heading {
        margin-bottom: 54px;
    }

    .refonte-improve__heading h2 {
        width: 18ch !important;
        max-width: none !important;
        line-height: .94;
    }
}

/* Mobile : illustrations à demi-échelle, sans réserve de hauteur inutile. */
@media (max-width: 900px) {
    .refonte-diagnostic::before { display: none; }
    .refonte-final__device { display: none; }
    .refonte-final__inner { gap: 0; }

    .refonte-existing,
    .refonte-keep__sorting,
    .refonte-transform__stage,
    .refonte-review__compare {
        width: 100%;
        justify-self: center;
        zoom: .5;
    }
    .refonte-existing { max-width: 650px; }
}
