/* Pages ville (/renovation-<commune>) — styles propres, préfixe tv-. Chargé avant commun.css.
   Contrastes calculés le 13/10/2026 : blanc / ardoise #223D4D = 11,4:1 ; #FFB765 / #223D4D = 6,63:1 ;
   #162A35 / #E58D32 = 5,78:1 ; #162A35 / #FFB765 = 8,62:1 ; #9A4D00 / blanc = 6,11:1 ; #9A4D00 / #eef4f9 = 5,5:1 ;
   --texte-doux #4a5767 / #eef4f9 = 6,65:1. Blanc sur orange #E58D32 = 2,56:1 : JAMAIS, texte sur orange = var(--sur-accent).
   Piège du thème (site.css l. 321-326) : « section>div>p:not([style]) » impose gris, 820 px et marges (0,1,3) ;
   on le bat avec deux classes (.tv-sec .tv-xxx). */

.tv-page{overflow-x:clip}
.tv-wrap{max-width:1240px;margin:0 auto;padding:0 24px}
.tv-kicker{display:block;margin:0 0 12px;color:var(--accent-texte);font-size:13px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
.tv-process .tv-kicker,.tv-hero .tv-kicker,.tv-cta .tv-kicker{color:var(--accent-sur-sombre)}

/* ---- boutons ---- */
.tv-btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:48px;padding:13px 24px;border-radius:40px;border:1px solid transparent;font-size:15px;font-weight:750;line-height:1.2;cursor:pointer;transition:background .25s,color .25s,border-color .25s,transform .25s}
.tv-btn svg{width:18px;height:18px;flex:none}
.tv-btn-plein{background:var(--accent);color:var(--sur-accent)}
.tv-btn-plein:hover{background:var(--accent-sur-sombre);color:var(--sur-accent);transform:translateY(-1px)}
.tv-btn-ligne{border-color:rgba(255,255,255,.55);color:#fff;background:transparent}
.tv-btn-ligne:hover{background:#fff;border-color:#fff;color:#223D4D}
.tv-btn-contour{border-color:var(--accent-texte);color:var(--accent-texte);background:transparent}
.tv-btn-contour:hover{background:var(--accent);border-color:var(--accent);color:var(--sur-accent)}
.tv-btn:focus-visible,.tv-chip:focus-visible,.tv-lien:focus-visible,.tv-carte-service a:focus-visible,.tv-faq summary:focus-visible{outline:3px solid var(--accent-texte);outline-offset:3px}
.tv-hero .tv-btn:focus-visible,.tv-cta .tv-btn:focus-visible{outline-color:#fff}

/* ---- héros ---- */
.tv-hero{position:relative;overflow:hidden;background:#223D4D;color:#fff}
.tv-hero-bg{position:absolute;inset:-3%;background:var(--hero) var(--hero-pos,50% 55%)/cover;transform:scale(1.06);animation:tvZoom 2.4s cubic-bezier(.2,.7,.2,1) forwards}
.tv-hero:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(34,61,77,.95) 0%,rgba(34,61,77,.82) 52%,rgba(34,61,77,.55) 100%)}
.tv-hero-in{position:relative;z-index:1;max-width:1240px;margin:0 auto;padding:64px 24px 76px}
.tv-hero-txt{max-width:760px}
.tv-fil{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:0 0 26px;padding:0;list-style:none;font-size:13.5px;color:rgba(255,255,255,.8)}
.tv-fil a{color:rgba(255,255,255,.88);text-decoration:underline;text-underline-offset:3px}
.tv-fil a:hover{color:#fff}
.tv-fil li+li:before{content:"›";margin-right:10px;color:rgba(255,255,255,.6)}
.tv-fil [aria-current]{color:#fff;font-weight:700}
.tv-hero h1{margin:0 0 22px;color:#fff;font-size:clamp(34px,5.2vw,62px);line-height:1.04;letter-spacing:-.02em}
.tv-hero .tv-lede{margin:0 0 30px;max-width:680px;color:rgba(255,255,255,.92);font-size:clamp(16px,1.5vw,18px);line-height:1.7}
.tv-hero .tv-lede strong{color:#fff}
.tv-actions{display:flex;flex-wrap:wrap;gap:12px}
.tv-hero-entree>*{opacity:0;animation:tvEntree .8s cubic-bezier(.2,.8,.2,1) forwards}
.tv-hero-entree>*:nth-child(2){animation-delay:.1s}.tv-hero-entree>*:nth-child(3){animation-delay:.2s}.tv-hero-entree>*:nth-child(4){animation-delay:.3s}.tv-hero-entree>*:nth-child(5){animation-delay:.4s}
@keyframes tvEntree{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:none}}
@keyframes tvZoom{to{transform:scale(1)}}

/* ---- sections ---- */
.tv-sec{padding:88px 0}
.tv-sec-alt{background:var(--fond-2)}
.tv-tete{max-width:820px;margin:0 0 40px}
.tv-sec .tv-tete h2,.tv-sec h2.tv-h2{margin:0 0 18px;font-size:clamp(28px,3.6vw,42px);line-height:1.1;letter-spacing:-.015em;color:var(--titre)}
.tv-sec .tv-rep{max-width:820px;margin:0;padding:2px 0 2px 20px;border-left:4px solid var(--accent);font-size:17px;line-height:1.75;color:var(--texte)}
.tv-sec .tv-rep strong{color:var(--titre)}
.tv-sec .tv-note{max-width:820px;margin:22px 0 0;font-size:14px;line-height:1.6;color:var(--texte-doux)}
.tv-sec .tv-texte{max-width:820px;margin:28px 0 0;font-size:16px;line-height:1.75;color:var(--texte-doux)}

/* ---- cartes services ---- */
.tv-grille-services{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px}
.tv-carte-service{display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--bord);border-radius:24px;background:var(--carte);box-shadow:0 14px 40px rgba(25,47,58,.07);transition:transform .45s cubic-bezier(.2,.8,.2,1),box-shadow .45s}
.tv-carte-service:hover{transform:translateY(-5px);box-shadow:0 26px 54px rgba(25,47,58,.15)}
.tv-carte-img{display:block;overflow:hidden;aspect-ratio:16/10;background:var(--fond-2)}
.tv-carte-img img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .8s cubic-bezier(.2,.8,.2,1)}
.tv-carte-service:hover .tv-carte-img img{transform:scale(1.05)}
.tv-carte-corps{display:flex;flex:1;flex-direction:column;padding:24px 24px 26px}
.tv-sec .tv-carte-corps h3{margin:0 0 14px;font-size:22px;line-height:1.15;color:var(--titre)}
.tv-carte-corps h3 a{color:inherit}
.tv-carte-corps h3 a:hover{color:var(--accent-texte-fonce)}
.tv-sec .tv-carte-corps ul{margin:0 0 20px;padding:0;list-style:none;display:grid;gap:7px;font-size:14.5px;line-height:1.5;color:var(--texte-doux)}
.tv-carte-corps li{position:relative;padding-left:19px}
.tv-carte-corps li:before{content:"";position:absolute;left:0;top:.52em;width:7px;height:7px;border-radius:50%;background:var(--accent)}
.tv-lien{margin-top:auto;align-self:flex-start;color:var(--accent-texte);font-weight:750;text-decoration:underline;text-underline-offset:4px}
.tv-lien:hover{color:var(--accent-texte-fonce)}

/* ---- sections de la commune ---- */
.tv-sec .tv-communes{max-width:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:34px 0 0;padding:0;list-style:none}
.tv-commune{display:flex;align-items:center;gap:14px;padding:18px 18px;border:1px solid var(--bord);border-radius:18px;background:var(--carte);transition:transform .35s,border-color .35s,box-shadow .35s}
.tv-commune:hover{transform:translateY(-3px);border-color:var(--accent);box-shadow:0 14px 30px rgba(25,47,58,.1)}
.tv-pin{flex:none;display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:var(--accent);color:var(--sur-accent)}
.tv-pin svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.tv-commune b{display:block;font-size:16px;line-height:1.2;color:var(--titre)}
.tv-commune div span{display:block;margin-top:3px;font-size:13px;line-height:1.35;color:var(--texte-doux)}

/* ---- étapes (ardoise) ---- */
.tv-sec.tv-process{padding:88px 0;background:#223D4D;color:#fff}
.tv-process .tv-tete h2{color:#fff}
.tv-process .tv-rep{border-left-color:var(--accent-sur-sombre);color:#fff}
.tv-process .tv-rep strong{color:#fff}
.tv-sec .tv-steps{display:grid;max-width:none;grid-template-columns:repeat(4,1fr);margin:48px 0 0;padding:0;list-style:none}
.tv-step{position:relative;padding:0 28px 0 0}
.tv-step:not(:last-child):after{content:"";position:absolute;top:31px;left:72px;right:14px;height:2px;background:var(--accent);transform-origin:left;transition:transform .8s calc(var(--i)*.14s)}
.tv-steps.is-hidden .tv-step:after{transform:scaleX(0)}
.tv-step-ico{position:relative;z-index:1;display:grid;place-items:center;width:62px;height:62px;border-radius:50%;background:var(--accent);color:var(--sur-accent)}
.tv-step-ico svg{width:28px;height:28px;stroke-linecap:round;stroke-linejoin:round}
.tv-process .tv-step h3{margin:22px 0 10px;font-size:20px;line-height:1.2;color:#fff}
.tv-process .tv-step p{margin:0;font-size:14.5px;line-height:1.65;color:rgba(255,255,255,.82)}

/* ---- « Nos chantiers » : encart en carte ---- */
.tv-chantiers{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);overflow:hidden;border:1px solid var(--bord);border-radius:32px;background:var(--carte);box-shadow:0 22px 60px rgba(25,47,58,.1)}
.tv-chantiers-txt{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:clamp(30px,5vw,60px)}
.tv-sec .tv-chantiers-txt h2{margin:0 0 18px;font-size:clamp(26px,3.2vw,38px);line-height:1.12;color:var(--titre)}
.tv-chantiers-txt .tv-rep{margin:0 0 28px}
.tv-photos{position:relative;min-height:100%;aspect-ratio:1/1;overflow:hidden;background:#223D4D;touch-action:pan-y}
.tv-photos-piste{display:flex;height:100%;transition:transform .55s cubic-bezier(.65,0,.35,1)}
.tv-photos-piste img{flex:0 0 100%;width:100%;height:100%;object-fit:cover;cursor:zoom-in}
.tv-photos [data-tv-prev],.tv-photos [data-tv-next]{position:absolute;top:50%;z-index:2;display:grid;place-items:center;width:44px;height:44px;margin-top:-22px;padding:0;border:1px solid rgba(255,255,255,.55);border-radius:50%;background:rgba(22,42,53,.78);color:#fff;cursor:pointer;transition:background .25s}
.tv-photos [data-tv-prev]{left:12px}.tv-photos [data-tv-next]{right:12px}
.tv-photos [data-tv-prev]:hover,.tv-photos [data-tv-next]:hover{background:rgba(22,42,53,.95)}
.tv-photos button svg{width:22px;height:22px;display:block}
.tv-photos button:focus-visible{outline:3px solid #fff;outline-offset:2px}
.tv-points{position:absolute;left:0;right:0;bottom:14px;z-index:2;display:flex;justify-content:center;gap:6px}
.tv-point{position:relative;width:8px;height:8px;padding:0;border:0;border-radius:5px;background:rgba(255,255,255,.75);cursor:pointer;transition:width .3s,background .3s}
.tv-point:after{content:"";position:absolute;inset:-10px -4px}
.tv-point.actif{width:20px;background:var(--accent)}

/* ---- pourquoi nous ---- */
.tv-sec .tv-pourquoi{display:grid;max-width:none;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin:0;padding:0;list-style:none}
.tv-pourquoi li{padding:26px 22px;border:1px solid var(--bord);border-radius:22px;background:var(--carte);transition:transform .4s,box-shadow .4s}
.tv-pourquoi li:hover{transform:translateY(-4px);box-shadow:0 20px 44px rgba(25,47,58,.12)}
.tv-pourquoi .tv-ico{display:grid;place-items:center;width:52px;height:52px;margin:0 0 18px;border-radius:50%;background:var(--accent);color:var(--sur-accent)}
.tv-pourquoi .tv-ico svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.tv-sec .tv-pourquoi h3{margin:0 0 8px;font-size:19px;line-height:1.2;color:var(--titre)}
.tv-pourquoi p{margin:0;font-size:14.5px;line-height:1.6;color:var(--texte-doux)}
.tv-pourquoi p strong{color:var(--titre)}

/* ---- on intervient aussi ---- */
.tv-sec .tv-chips{display:flex;max-width:none;flex-wrap:wrap;gap:10px;margin:28px 0 0;padding:0;list-style:none}
.tv-chip{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:10px 18px;border:1px solid var(--bord);border-radius:40px;background:var(--carte);color:var(--titre);font-size:14.5px;font-weight:650;transition:border-color .25s,background .25s,transform .25s}
.tv-chip:hover{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 14%,#fff);color:var(--titre);transform:translateY(-2px)}
.tv-chip svg{width:16px;height:16px;flex:none;fill:none;stroke:var(--accent-texte);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;transition:transform .25s}
.tv-chip:hover svg{transform:translateX(3px)}

/* ---- FAQ ---- */
.tv-faq{max-width:900px}
.tv-faq details{border-bottom:1px solid var(--bord)}
.tv-faq details:first-of-type{border-top:1px solid var(--bord)}
.tv-faq summary{position:relative;display:block;padding:22px 46px 22px 0;cursor:pointer;list-style:none;font-size:17.5px;font-weight:800;line-height:1.35;color:var(--titre)}
.tv-faq summary::-webkit-details-marker{display:none}
.tv-faq summary:after{content:"+";position:absolute;right:6px;top:50%;margin-top:-16px;width:32px;height:32px;display:grid;place-items:center;border-radius:50%;color:var(--accent-texte);font-size:26px;font-weight:600;line-height:1;transition:background .25s,transform .3s}
.tv-faq summary:hover:after{background:color-mix(in srgb,var(--accent) 20%,transparent)}
.tv-faq details[open] summary:after{content:"−"}
.tv-faq details>div{padding:0 46px 24px 0}
.tv-sec .tv-faq p{max-width:none;margin:0;font-size:16px;line-height:1.75;color:var(--texte)}

/* ---- bandeau d'appel : même rendu que À propos / Services (photo dans sa colonne, ardoise unie) ---- */
.tv-cta-shell{max-width:1240px;margin:0 auto;padding:26px 24px 76px}
.tv-cta{position:relative;display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);min-height:410px;overflow:hidden;border-radius:32px;background:#223D4D}
.tv-cta-photo{position:relative;min-height:100%;overflow:hidden}
.tv-cta-photo img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:32% 50%}
.tv-cta-photo:after{content:"";position:absolute;top:0;right:0;bottom:0;width:90px;background:linear-gradient(90deg,transparent,#223D4D)}
.tv-cta-copy{position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:48px 52px 48px 30px;color:#fff;overflow-wrap:anywhere}
.tv-cta .tv-cta-copy h2{margin:12px 0 18px;color:#fff;font-size:clamp(29px,3.6vw,42px);line-height:1.06}
.tv-cta .tv-cta-copy>p{margin:0 0 14px;color:#fff;font-size:16px;line-height:1.7}
.tv-cta .tv-cta-copy>ul{display:grid;gap:9px;margin:0 0 26px;padding:0;list-style:none;color:#fff;font-size:16px;line-height:1.6}
.tv-cta .tv-cta-copy>ul li{display:flex;align-items:flex-start;gap:11px}
.tv-cta .tv-cta-copy>ul svg{flex:none;width:22px;height:22px;margin-top:2px;fill:none;stroke:var(--accent-sur-sombre);stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round}
.tv-cta .tv-cta-copy strong{color:var(--accent-sur-sombre);font-weight:800}

/* ---- tablette ---- */
@media(max-width:1060px){
  .tv-grille-services{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tv-sec .tv-communes{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tv-sec .tv-pourquoi{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tv-chantiers{grid-template-columns:1fr}
  .tv-photos{aspect-ratio:4/3;order:-1;min-height:0}
}
@media(max-width:860px){
  .tv-cta{grid-template-columns:1fr;min-height:0}
  .tv-cta-photo{min-height:0;aspect-ratio:4/3}
  .tv-cta-photo:after{top:auto;left:0;width:auto;height:70px;background:linear-gradient(180deg,transparent,#223D4D)}
  .tv-cta-copy{padding:8px 28px 38px}
  .tv-sec .tv-steps{grid-template-columns:1fr 1fr;gap:36px 20px}
  .tv-step:nth-child(2):after{display:none}
}
/* ---- mobile (390 px) ---- */
@media(max-width:599px){
  .tv-wrap{padding:0 16px}
  .tv-hero-in{padding:40px 16px 52px}
  .tv-fil{margin-bottom:20px}
  .tv-actions .tv-btn{width:100%}
  .tv-sec{padding:60px 0}
  .tv-sec.tv-process{padding:62px 0}
  .tv-tete{margin-bottom:30px}
  .tv-sec .tv-rep{font-size:16px;padding-left:16px}
  .tv-grille-services,.tv-sec .tv-pourquoi{grid-template-columns:1fr}
  .tv-sec .tv-communes{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .tv-commune{flex-direction:column;align-items:flex-start;gap:10px;padding:14px}
  .tv-pin{width:36px;height:36px}.tv-pin svg{width:18px;height:18px}
  .tv-commune b{font-size:15px;overflow-wrap:anywhere}
  .tv-pourquoi li{display:grid;grid-template-columns:48px minmax(0,1fr);column-gap:16px;padding:18px}
  .tv-pourquoi .tv-ico{grid-row:1/3;width:48px;height:48px;margin:0}
  .tv-sec .tv-pourquoi h3{align-self:end;margin-bottom:4px}
  .tv-carte-corps{padding:22px 20px 24px}
  .tv-chantiers{border-radius:24px}
  .tv-chantiers-txt{padding:26px 20px 30px}
  .tv-photos{aspect-ratio:4/5}
  .tv-sec .tv-steps{grid-template-columns:1fr;gap:34px}
  .tv-step{padding:0 0 0 76px}
  .tv-step-ico{position:absolute;left:0;top:0}
  .tv-step:not(:last-child):after{left:30px;top:66px;bottom:-26px;right:auto;width:2px;height:auto;transform-origin:top}
  .tv-step:nth-child(2):after{display:block}
  .tv-faq summary{padding:20px 42px 20px 0;font-size:16.5px}
  .tv-faq details>div{padding-right:0}
  .tv-cta-shell{padding:18px 16px 60px}
  .tv-cta-copy{padding:6px 22px 32px}
  .tv-cta-copy .tv-actions .tv-btn{width:100%}
  .tv-cta{border-radius:24px}
}
@media(prefers-reduced-motion:reduce){
  .tv-hero-bg{animation:none;transform:none}
  .tv-hero-entree>*{opacity:1;animation:none}
  .tv-carte-service,.tv-carte-img img,.tv-commune,.tv-pourquoi li,.tv-chip,.tv-chip svg,.tv-btn,.tv-photos-piste,.tv-point,.tv-step:after{transition:none!important}
  .tv-carte-service:hover,.tv-commune:hover,.tv-pourquoi li:hover,.tv-chip:hover,.tv-btn-plein:hover{transform:none}
  .tv-carte-service:hover .tv-carte-img img{transform:none}
}
