/* =====================================================================
   MOTION ART · direction artistique du 04/10/2026 · motion-art.css
   Charge en dernier (apres motion-polish.css). Ne modifie aucun autre fichier :
   tout passe par des surcharges ciblees (#main#main = specificite haute, car
   site.css pose des fonds en !important).
   Palette : or #d9b97c, vert tres sombre #22302a, ivoire #f6f2ea, sable #ebe2d4,
   blanc chaud #faf8f3, texte #242720. Jamais deux sections claires de suite
   sans changer de teinte : ivoire / sable en alternance, fondus de 80 a 120 px
   vers les sections sombres.
   Animations : transform et opacity, une fois, sobres. Rien ne tourne en continu.
   Mouvement reduit : tout est a l'etat final, aucune animation.
   ===================================================================== */

:root{
  --art-iv:#f6f2ea;--art-sa:#ebe2d4;--art-wh:#faf8f3;--art-tx:#242720;
  --art-iv-rgb:246,242,234;--art-sa-rgb:235,226,212;
  --art-dk:#22302a;--art-dk-rgb:34,48,42;
  --art-r:18px;
  --art-fade:112px;
  --art-pad:140px;
  --art-ease:cubic-bezier(.16,1,.3,1);
}
@media (max-width:820px){:root{--art-fade:68px;--art-pad:96px}}
@media (max-width:560px){:root{--art-fade:52px;--art-pad:84px}}

/* ---------- 1. FONDS : sept blocs, ivoire / sable en alternance ----------
   hero sombre, simulateur ivoire, galerie + avis sable, situations + methode ivoire,
   garanties sombre, territoire + questions sable, appel final sombre.
   Entre deux blocs clairs (ivoire / sable), un fondu de la hauteur --art-fade efface la couture. */
html body #main#main > section#simulateur{background:var(--art-iv)!important}
html body #main#main > section#cles{
  background:linear-gradient(180deg,rgba(var(--art-iv-rgb),1) 0,rgba(var(--art-iv-rgb),.82) 22%,rgba(var(--art-iv-rgb),.42) 52%,rgba(var(--art-iv-rgb),.1) 82%,rgba(var(--art-iv-rgb),0) 100%) 0 0/100% var(--art-fade) no-repeat,var(--art-sa)!important}
html body #main#main > section#situations{
  background:linear-gradient(180deg,rgba(var(--art-sa-rgb),1) 0,rgba(var(--art-sa-rgb),.82) 22%,rgba(var(--art-sa-rgb),.42) 52%,rgba(var(--art-sa-rgb),.1) 82%,rgba(var(--art-sa-rgb),0) 100%) 0 0/100% var(--art-fade) no-repeat,var(--art-iv)!important}
html body #main#main > section#zones{background:var(--art-sa)!important}
/* les deux moities d'un bloc fusionne n'ont pas de fond propre : celui du bloc continue */
html body #main#main #cartes,html body #main#main #temoignages,html body #main#main #faq{background:transparent!important}
html body footer{background:var(--art-sa)}
html body #main#main > section:not(.dark):not(.hero){color:var(--art-tx)}

/* ---------- 2. FONDUS vers et depuis les sections sombres ----------
   La couleur voisine est portee par --art-up / --art-down ; le fondu est un
   calque de fond de la section sombre (pas de pseudo-element : ils sont pris). */
#main#main > section.dark{
  --art-up:var(--art-iv-rgb);--art-down:var(--art-sa-rgb);
  background-repeat:no-repeat;
  background-image:
    linear-gradient(180deg,rgba(var(--art-up),1) 0,rgba(var(--art-up),.9) 12%,rgba(var(--art-up),.62) 30%,rgba(var(--art-up),.3) 52%,rgba(var(--art-up),.1) 76%,rgba(var(--art-up),0) 100%),
    linear-gradient(0deg,rgba(var(--art-down),1) 0,rgba(var(--art-down),.9) 12%,rgba(var(--art-down),.62) 30%,rgba(var(--art-down),.3) 52%,rgba(var(--art-down),.1) 76%,rgba(var(--art-down),0) 100%);
  background-size:100% var(--art-fade),100% var(--art-fade);
  background-position:0 0,0 100%;
}
#main#main > section#garanties{--art-up:var(--art-iv-rgb);--art-down:var(--art-sa-rgb)}
/* page de ville du Havre : le bloc d'ancrage local (ivoire) s'intercale entre les garanties et le territoire */
#main#main > section#garanties:has(+ section#local){--art-down:var(--art-iv-rgb)}
#main#main > section.dark.final{--art-up:var(--art-sa-rgb);--art-down:var(--art-sa-rgb)}
#main#main > section.dark.final{
  background-color:#22302a;
  background-image:
    linear-gradient(180deg,rgba(var(--art-up),1) 0,rgba(var(--art-up),.9) 12%,rgba(var(--art-up),.62) 30%,rgba(var(--art-up),.3) 52%,rgba(var(--art-up),.1) 76%,rgba(var(--art-up),0) 100%),
    linear-gradient(0deg,rgba(var(--art-down),1) 0,rgba(var(--art-down),.9) 12%,rgba(var(--art-down),.62) 30%,rgba(var(--art-down),.3) 52%,rgba(var(--art-down),.1) 76%,rgba(var(--art-down),0) 100%),
    linear-gradient(160deg,#22302a 0%,#26332c 58%,#22302a 100%);
  background-size:100% var(--art-fade),100% var(--art-fade),100% 100%;
  background-position:0 0,0 100%,0 0;
}
/* pages de service : la section du service suit directement le hero (sombre), puis la prise en charge (sable) */
#main#main > section.dark.svc-situ{--art-up:var(--art-dk-rgb);--art-down:var(--art-sa-rgb)}

/* le hero se dissout vers l'ivoire du simulateur (calque decoratif, jamais cliquable) */
html body .hero{--hero-next:var(--art-iv-rgb)}
html body .hero.svc-next-dark{--hero-next:var(--art-dk-rgb)}
html body .hero::after{content:"";position:absolute;left:0;right:0;bottom:0;height:calc(var(--art-fade) * .8);z-index:1;pointer-events:none;
  background:linear-gradient(180deg,rgba(var(--hero-next),0) 0,rgba(var(--hero-next),.1) 24%,rgba(var(--hero-next),.38) 52%,rgba(var(--hero-next),.8) 82%,rgba(var(--hero-next),1) 100%)}
html body .hero{padding-bottom:calc(52px + var(--art-fade) * .55)}

/* ---------- 3. HERO plus lumineux, titre toujours lisible ---------- */
html body .hero-bg::after{background:linear-gradient(rgba(0,0,0,.02),rgba(0,0,0,.02)),radial-gradient(38% 40% at 4% 96%,rgba(138,111,70,.16),transparent 74%)}
html body .hero-veil{background:
  radial-gradient(ellipse 72% 58% at 50% 44%,rgba(10,8,5,.45),rgba(10,8,5,0) 72%),
  radial-gradient(60% 55% at 88% -6%,rgba(217,185,124,.20),transparent 60%),
  linear-gradient(180deg,rgba(14,12,9,.34) 0,rgba(14,12,9,.08) 34%,rgba(14,12,9,.10) 62%,rgba(14,12,9,.46) 100%)!important}
html body .hero-vid,html body .hero-media{filter:brightness(1.06) saturate(.98) contrast(1.02)!important}
/* voile local derriere le texte : l'ensemble de la photo reste visible */
html body .hero-grid>div:first-child{position:relative}
html body .hero-grid>div:first-child::before{content:"";position:absolute;z-index:-1;pointer-events:none;
  left:-18%;right:-18%;top:-14%;bottom:-12%;
  background:radial-gradient(closest-side,rgba(14,12,9,.64) 0,rgba(14,12,9,.52) 46%,rgba(14,12,9,.2) 78%,rgba(14,12,9,0) 100%)}
@media (max-width:760px){
  html body .hero-vid,html body .hero-media{filter:brightness(1.0) saturate(.98) contrast(1.02)!important}
  html body .hero-veil{background:
    radial-gradient(ellipse 96% 56% at 50% 36%,rgba(10,8,5,.40),rgba(10,8,5,0) 78%),
    linear-gradient(180deg,rgba(14,12,9,.36) 0,rgba(14,12,9,.26) 38%,rgba(14,12,9,.30) 70%,rgba(14,12,9,.52) 100%)!important}
  html body .hero-grid>div:first-child::before{left:-14%;right:-14%;top:-10%;bottom:-8%;
    background:radial-gradient(closest-side,rgba(14,12,9,.66) 0,rgba(14,12,9,.54) 52%,rgba(14,12,9,.16) 82%,rgba(14,12,9,0) 100%)}
}

/* lisibilite du titre et de l'accroche sur une photo plus claire */
html body .hero h1,html body .hero-sub{text-shadow:0 1px 22px rgba(14,12,9,.55),0 0 2px rgba(14,12,9,.25)}

/* ---------- 4. TYPOGRAPHIE ---------- */
html body h1{font-size:clamp(2.75rem,1.6rem + 3.6vw,4.25rem)}
html body #main#main section h2{font-size:clamp(2.125rem,1.35rem + 3.1vw,3.125rem);line-height:1.08}
@media (max-width:560px){
  html body #main#main section h2{font-size:clamp(2.125rem,1.4rem + 2.4vw,2.25rem)}
  html body .hero h1{font-size:clamp(2.3rem,10.8vw,2.75rem)}
}
html body .eyebrow{font-size:13px;letter-spacing:.14em;font-weight:600;opacity:1}
/* corps de lecture : 17 px minimum, interligne 1,6 */
html body #main#main :is(.rev-card p,.stack-card p,#faq details p,.gb-card p,.situ p,.sit-d,.big-muted){line-height:1.6}
@media (max-width:760px){
  html body #main#main :is(.rev-card p,.stack-card p,#faq details p,.gb-card p,.situ p,.sit-d,.gb-card li,.zone-tags span,.vids-sub,.rev-card,.si-detail,.er-note){font-size:18px}
  html body #main#main :is(#faq details summary){font-size:18px}
}

/* ---------- 5. ESPACEMENTS : 120 a 160 px bureau, 80 a 96 px mobile ---------- */
html body #main#main > section:is(#simulateur,#situations,#garanties,#zones,.final){
  padding-top:var(--art-pad);padding-bottom:var(--art-pad)}
/* blocs fusionnes : sticky (galerie, etapes) = jamais de overflow cache sur le bloc */
html body #main#main > section:is(#cles,#situations,#zones){overflow:visible}
html body #main#main > section#cles{padding:0}

/* ---------- 6. CARTES : rayon unique 18 px, ombres rares, grammaire variee ---------- */
html body #main#main :is(.rev-card,.stack-card,.estim2,.estim2.est-wiz,#faq details,.gb-card,.map-wrap,.hdoc){border-radius:var(--art-r)}
@media (max-width:560px){html body #main#main :is(.estim2,.estim2.est-wiz){border-radius:var(--art-r)}}

/* avis : papier blanc chaud, un guillemet or, aucune ombre */
html body #main#main #temoignages .rev-card{background:var(--art-wh);border:1px solid rgba(36,39,32,.07);box-shadow:none;position:relative;overflow:hidden}
html body #main#main #temoignages .rev-card::before{content:"\201C";position:absolute;top:6px;right:18px;font-family:var(--serif);font-size:84px;line-height:1;
  color:rgba(184,149,90,.22);pointer-events:none}

/* estimateur : la seule vraie ombre du haut de page, douce */
html body #main#main .estim2{background:var(--art-wh);border:1px solid rgba(36,39,32,.07);
  box-shadow:0 28px 60px -40px rgba(36,39,32,.26)}

/* etapes : cartes empilees, filet or a gauche, ombre fine */
html body #main#main .stack-card{background:var(--art-wh);border:1px solid rgba(184,149,90,.38);
  box-shadow:0 22px 46px -34px rgba(36,39,32,.30)}

/* FAQ : plus de pave d'ombre, un simple papier ; la reponse ouverte se pose en douceur */
html body #main#main #faq details{background:var(--art-wh);border:1px solid rgba(36,39,32,.07);box-shadow:none;
  transition:border-color .4s ease,background-color .4s ease}
html body #main#main #faq details[open]{border-color:rgba(184,149,90,.5);background:#fffdf9}

/* garanties : fond blanc chaud (et non plus beige gris), sans ombre, se soulevent au toucher */
html body #main#main .gb-zone .gb-card{background:var(--art-wh);border:1px solid rgba(36,39,32,.07);
  transition:transform .5s var(--art-ease),border-color .4s ease}
html body #main#main .gb-zone .gb-card::after{content:"";position:absolute;left:22px;right:22px;top:0;height:2px;border-radius:2px;pointer-events:none;z-index:2;
  background:linear-gradient(90deg,rgba(184,149,90,0),#b8955a 18%,#d9b97c 50%,#b8955a 82%,rgba(184,149,90,0));
  opacity:0;transform:scaleX(.4);transition:opacity .45s ease,transform .6s var(--art-ease)}
html body #main#main .gb-zone .gb-card:is(:active,:focus-within){transform:translateY(-4px);border-color:rgba(184,149,90,.5)}
html body #main#main .gb-zone .gb-card:is(:active,:focus-within)::after{opacity:1;transform:none}
@media (hover:hover){
  html body #main#main .gb-zone .gb-card:hover{transform:translateY(-4px);border-color:rgba(184,149,90,.5)}
  html body #main#main .gb-zone .gb-card:hover::after{opacity:1;transform:none}
}

/* carte de Normandie : un seul cadre, ombre allegee */
html body #main#main .map-wrap{box-shadow:0 30px 60px -44px rgba(0,0,0,.6),0 0 0 1px rgba(217,185,124,.16)}

/* ---------- 7. MOMENTS LUDIQUES (une fois, sobres) ---------- */
/* a. etapes : le chiffre se dessine en trait or puis se remplit doucement */
html body #main#main .stack-card .bignum{
  color:rgba(184,149,90,.10);-webkit-text-stroke:1.4px rgba(184,149,90,.62);opacity:1}
@media (prefers-reduced-motion:no-preference){
  html.anim body #main#main .stack-card .bignum{
    color:rgba(184,149,90,0);opacity:1;transform:none;
    -webkit-mask-image:linear-gradient(100deg,#000 0,#000 40%,transparent 60%);mask-image:linear-gradient(100deg,#000 0,#000 40%,transparent 60%);
    -webkit-mask-size:300% 100%;mask-size:300% 100%;-webkit-mask-position:100% 0;mask-position:100% 0;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;
    transition:-webkit-mask-position 1.7s var(--art-ease),mask-position 1.7s var(--art-ease),color 1.1s ease .9s}
  html.anim body #main#main .stack-card.trace .bignum{
    -webkit-mask-position:0 0;mask-position:0 0;color:rgba(184,149,90,.10)}
}
/* b. FAQ : la reponse se pose, le plus tourne d'un quart */
@media (prefers-reduced-motion:no-preference){
  html body #main#main #faq details[open]>:not(summary){animation:artIn .55s var(--art-ease) both}
  html body #main#main #faq details .plus{transition:transform .5s var(--art-ease)}
  html body #main#main #faq details[open] .plus{transform:rotate(45deg)}
}
@keyframes artIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
/* c. territoire : les departements s'allument l'un apres l'autre */
@media (prefers-reduced-motion:no-preference){
  html.anim #zones .zone-tags span{position:relative}
  html.anim #zones .zone-tags span::after{content:"";position:absolute;inset:-1px;border-radius:inherit;border:1px solid #d9b97c;
    box-shadow:0 0 14px rgba(217,185,124,.45);pointer-events:none;opacity:0}
  html.anim #zones .map-wrap.mk-in~.zone-tags span::after,html.anim #zones .zone-tags.in span::after{animation:artGlow 2.2s ease both;animation-delay:calc(var(--i,0) * .38s + .9s)}
  html.anim #zones .zone-tags span:nth-child(1){--i:0}
  html.anim #zones .zone-tags span:nth-child(2){--i:1}
  html.anim #zones .zone-tags span:nth-child(3){--i:2}
  html.anim #zones .zone-tags span:nth-child(4){--i:3}
  html.anim #zones .zone-tags span:nth-child(5){--i:4}
  html.anim #zones .zone-tags span:nth-child(6){--i:5}
}
@keyframes artGlow{0%{opacity:0}30%{opacity:1}100%{opacity:0}}

/* ---------- 8. BARRE MOBILE plus basse (58 px au plus) ---------- */
@media (max-width:820px){
  :root{--barre:58px}
  html body .wa-fab{padding:7px 12px calc(7px + env(safe-area-inset-bottom,0px));gap:9px}
  html body .wa-fab>a{height:44px;font-size:14.5px}
  html body .wa-fab .fab-wa svg{width:18px;height:18px}
  html body .wa-fab .fab-call .fab-ic svg{width:17px;height:17px}
}

/* ---------- 8b. CORRECTIFS DU CONTROLE QUALITE (04/10/2026) ---------- */
/* section finale : le fondu du haut doit rester visible sous la photo de la piece */
/* 08/10 : la photo de fond de la derniere section s'arretait net en bas, la coupure se voyait.
   Le masque fond maintenant des DEUX cotes : elle se dissout dans le vert au lieu d'etre tranchee. */
#main#main > section.final .fin-room{-webkit-mask-image:linear-gradient(180deg,transparent 0,#000 var(--art-fade),#000 52%,transparent 100%);mask-image:linear-gradient(180deg,transparent 0,#000 var(--art-fade),#000 52%,transparent 100%)}
/* carte Urgence : un seul bloc de lecture, jamais coupe au milieu d'une phrase */
html body #main#main .gb-zone .gb-6.gb-text p{column-count:1;max-width:64ch}
/* carte Apres la visite : le texte se centre face a l'exemple de devis */
html body #main#main .gb-devis-txt{align-self:center}
/* chiffres des etapes : rentres dans la carte, texte aligne a gauche (plus de trous de justification) */
html body #main#main .stack-card .bignum{right:22px}
html body #main#main .stack-card p{text-align:left}
@media (max-width:760px){html body #main#main .stack-card .bignum{right:14px}}
/* rail de navigation : libelle lisible sur photo comme sur fond clair */
html body .sec-lbl{background:rgba(250,248,243,.9);color:#5c4a28;padding:5px 11px;border-radius:999px;box-shadow:none}
/* or sur fond clair : etoiles plus profondes, filets des cartes plus nets (retour Grok et Gemini) */
html body #main#main #temoignages .rev-stars{color:#7a5f2f}
html body #main#main .stack-card{border-color:rgba(138,111,70,.55)}
html body #main#main #faq details[open]{border-color:rgba(138,111,70,.6)}
/* mobile : tailles de lecture */
@media (max-width:760px){
  html body #main#main #temoignages .rev-card blockquote{font-size:17px;line-height:1.6}
  html body #main#main .final .er-lead-n,html body #main#main .final .er-lead-h{font-size:15px;line-height:1.5}
  html body .hero-sub{font-size:18px}
  html body #main#main .sc-cl,html body #main#main .est-cnt{font-size:13px}
  html body .wa-fab{padding-top:7px}
  /* le voile local ne depasse plus de l'ecran (plus de defilement lateral sous iOS 15) */
  html body .hero-grid>div:first-child::before{left:-20px;right:-20px}
}

/* ---------- 8c. RETOURS DE LA REUNION N°6 (04/10/2026) ---------- */
/* contours des choix du simulateur : 3 pour 1 de contraste sur le fond clair (retour Gemini, WCAG 1.4.11) */
html body #main#main .ef-opts button:not(.on){border-color:#9a8a68}
/* reglage systeme « contraste renforce » : l'or des textes sur fond clair passe au brun fonce */
@media (prefers-contrast:more){
  html body #main#main > section:not(.dark):not(.hero) :is(.eyebrow,h2 em,.rev-stars){color:#3d3017}
  html body #main#main .ef-opts button:not(.on){border-color:#5c4a28}
}

/* ---------- 8d. DECISIONS DU GERANT (04/10/2026) ---------- */
/* galerie : le filet or sous le titre croisait la phrase d'en dessous (le titre est serre dans la scene) : on le retire ici */
html.mk-gsap #cartes h2.mkp::after{display:none}
/* galerie : legende descriptive de chaque piece, jamais de lieu ni de date */
#cartes .rea-tag{position:absolute;left:14px;top:14px;z-index:4;padding:7px 13px;border-radius:999px;pointer-events:none;
  background:rgba(250,248,243,.92);color:#3d3017;font:600 12.5px/1 var(--sans,'Inter',system-ui,sans-serif);letter-spacing:.04em;
  box-shadow:0 6px 18px -8px rgba(0,0,0,.45)}
/* hero : la zone d'intervention, une commune differente a chaque chargement */
html body .hero-where{display:flex;align-items:center;justify-content:center;gap:8px;margin:14px 0 0;
  font:500 13.5px/1.3 var(--sans,'Inter',system-ui,sans-serif);color:rgba(255,255,255,.9);text-shadow:0 1px 14px rgba(14,12,9,.65)}
html body .hero-where svg{width:15px;height:15px;flex:none;color:#d9b97c}
html body .hero-where b{font-weight:700;color:#ecd7a6;transition:opacity .45s ease}

/* ---------- 8e. CORRECTIFS CONTROLE QUALITE n°2 (04/10/2026) ---------- */
/* surtitres : la hierarchie vient de la taille, pas de l'opacite (contraste 4,5 pour 1 sur le sable) */
html body .eyebrow{opacity:1}
/* texte secondaire plus profond sur le sable */
html body #main#main :is(#cles,#cartes,#situations,#zones,#faq,#temoignages){--muted:#4f5e55;--ink-3:#4f5e55}
html body #main#main :is(#situations,#zones,#faq,#cartes,#temoignages) :is(.si-sub,.si-detail,.sl-group,.big-muted,details p){color:#4f5e55}
/* hero : pastille d'avis et lien de rappel lisibles sur la photo plus claire */
html body .hero-proof{background:rgba(14,12,9,.46)}
html body .hero-tel.hero-cb b{color:#ecd7a6}
/* clavier : pastilles de navigation invisibles = hors de l'ordre de tabulation */
html body .sec-nav:not(.vu){visibility:hidden;transition:opacity .45s var(--e-trace,ease),visibility 0s linear .45s}
html body .sec-nav.vu{visibility:visible;transition-delay:0s}
/* clavier : anneau de focus des questions, dans la carte (non rogne) */
html body #faq details summary:focus-visible{outline-offset:-5px;outline-color:#6f5834}
/* clavier : un lien d'une ligne repliee n'est pas atteignable tant que la ligne est fermee */
html.js-on body .situ:not(.open) .si-detail a{visibility:hidden;transition:visibility 0s linear .45s}

/* section finale : le filet or de 1 px et le halo (site.css) tracaient une ligne nette sur les fondus du haut et du bas */
#main#main > section.dark.final:not(.sc){border:0;box-shadow:none}

/* barre mobile : retiree tant que le bouton Appeler du hero est (meme en partie) a l'ecran, pour ne jamais le recouvrir */
@media (max-width:820px){html body .wa-fab.fab-hold{transform:translateY(105%);opacity:0;pointer-events:none}}

/* ---------- 9. mouvement reduit : tout est deja a l'etat final ---------- */
@media (prefers-reduced-motion:reduce){
  html body #main#main #faq details[open]>:not(summary){animation:none}
  html body #main#main .gb-zone .gb-card,html body #main#main .gb-zone .gb-card::after{transition:none}
}

/* =====================================================================
   10. HERO FILM : l'image fixe (LCP) s'affiche seule, le film vient dessus
   Contrat : medias/hero-poster.webp (16:9) et hero-poster-m.webp (9:16) ;
   medias/hero-film(.webm|.mp4) et hero-film-m(.webm|.mp4), lecture unique, sans son.
   Duree : 15 s environ, donc bouton pause obligatoire (WCAG 2.2.2), pose par motion-film.js ; libelles des trois cas et phrase finale par animations CSS.
   Le conteneur .hero-media porte l'echelle, le filtre et la parallaxe : image et film
   bougent toujours ensemble. Sans film (ou mouvement reduit), l'image fixe reste.
   ===================================================================== */
html body .hero-bg{background-image:none}
.hero-poster,.hero-film{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.hero-poster{z-index:0}
.hero-film{z-index:1;opacity:0;pointer-events:none;background:transparent;transition:opacity .9s ease}
.hero-media.film-on .hero-film{opacity:1}
@media (prefers-reduced-motion:reduce){.hero-film{display:none}}
/* mobile : la hauteur suit la barre d'adresse (dvh), avec repli svh plus haut dans site.css */
@supports (height:100dvh){
  @media (max-width:820px){
    html body .hero{min-height:calc(100dvh - var(--barre,0px) - env(safe-area-inset-bottom,0px))}
  }
}
/* ecrans d'ordinateur courts (portables 1366 x 768 : la fenetre utile fait 620 a 700 px) : le titre tient sur deux lignes
   au lieu de trois, et les trois actions + la triade restent au premier ecran */
@media (min-width:821px) and (max-height:800px){
  html body .hero{padding-top:168px}
  html body .hero h1{font-size:clamp(2.3rem,1.3rem + 2.6vw,3.5rem);width:min(980px,calc(100vw - 52px));max-width:none;
    margin-left:calc((100% - min(980px,calc(100vw - 52px))) / 2)}
  html body .hero .hero-sub{margin-top:14px}
  html body .hero .hero-proof{margin-top:16px}
  html body .hero .hero-cta{margin-top:18px}
  html body .hero-grid>div:first-child::before{left:-34%;right:-34%;top:-36%;bottom:-8%}   /* le titre y est plus large que la colonne : l'ombre locale le suit */
}
/* la triade : une ligne sobre sous les boutons, en serif ; le dernier mot d'ordre en or */
html body .hero .hero-triade{position:relative;margin:16px auto 0;padding-top:14px;max-width:36rem;text-align:center!important;text-align-last:center!important;
  -webkit-hyphens:manual;hyphens:manual;text-wrap:balance;
  font:500 clamp(1.06rem,.98rem + .5vw,1.3rem)/1.45 var(--serif,'Playfair Display',Georgia,serif);letter-spacing:.005em;
  color:rgba(255,255,255,.95);text-shadow:0 1px 16px rgba(14,12,9,.72),0 0 2px rgba(14,12,9,.3)}
html body .hero .hero-triade::before{content:"";position:absolute;left:50%;top:0;width:46px;height:1px;margin-left:-23px;
  background:linear-gradient(90deg,rgba(217,185,124,0),#d9b97c,rgba(217,185,124,0))}
html body .hero .hero-triade span{white-space:nowrap}
html body .hero .hero-triade em{font-style:italic;color:#ecd7a6;white-space:nowrap}
/* la triade est juste sous les boutons (decision du gerant : texte du hero) ; elle n'est plus jamais retiree sur ecran court */
html body .hero .hero-triade+.dispo{margin-top:18px}
/* telephones et tablettes basses : le hero entier, rappel compris, reste au premier ecran (la triade s'est inseree sous les boutons).
   Le bandeau cookies du haut garde sa propre reserve (body.ldf-ck-open .hero, site.css). */
@media (max-width:820px) and (max-height:780px){
  html body .hero{padding-top:168px}
  html body .hero .hero-proof{margin-top:10px}
  html body .hero .hero-cta{margin-top:12px}
  html body .hero .hero-cta .btn{padding-top:13px;padding-bottom:13px}
  html body .hero .hero-triade{margin-top:12px;padding-top:11px}
  html body .hero .hero-triade+.dispo{margin-top:12px}
}

/* =====================================================================
   11. BLOCS FUSIONNES (accueil en sept blocs)
   ===================================================================== */
/* --- galerie + avis : « Ils nous ont confie leurs cles. » --- */
html body #main#main #cartes{padding:var(--art-pad) 0 0;overflow:visible}
html body #main#main #cartes.cg-scrub{padding:0}
html body #main#main #temoignages{padding:clamp(28px,4vw,56px) 0 var(--art-pad)}
html body #main#main .cg-head .big-muted{margin-bottom:0}
html body #main#main .cg-insta{margin:6px 0 0;text-align:center!important;text-align-last:center!important}
html body #main#main .cg-insta a{display:inline-flex;align-items:center;justify-content:center;gap:7px;max-width:100%;padding:6px 6px;min-height:0;
  color:#5a4a2c;font-size:.84rem;font-weight:500;letter-spacing:.01em;text-decoration:underline;text-underline-offset:4px;text-decoration-color:rgba(90,74,44,.4);
  transition:color .3s ease,text-decoration-color .3s ease}
html body #main#main .cg-insta a:hover{color:#3d3017;text-decoration-color:#3d3017}
html body #main#main .cg-insta svg{flex:none}
@media (pointer:coarse){html body #main#main .cg-insta a{padding:12px 8px}}
html body #main#main .cles-line{margin:0 auto;max-width:none;text-align:center!important;text-align-last:center!important;font-size:1rem;color:#4f5e55;letter-spacing:.01em}
html body #main#main #temoignages .featurable-wrap{margin-top:26px}
/* la barre de progression de la galerie garde l'ecart avec le titre quand le lien Instagram s'ajoute */
@media (min-width:900px) and (max-height:760px){html body #main#main .cg-insta{display:none}}

/* --- situations + methode : un seul grand titre, les etapes en sous-partie --- */
html body #main#main #situations{padding-bottom:0}
html body #main#main #situations .sm-steps{padding:clamp(64px,8vw,104px) 0 40px;background:transparent}
html body #main#main .sm-steps-head{padding-bottom:0}
html body #main#main .sm-h3{margin:0 0 14px;color:var(--art-tx);font-family:var(--serif,'Playfair Display',Georgia,serif);font-weight:500;
  font-size:clamp(1.7rem,1.25rem + 1.6vw,2.35rem);line-height:1.12;letter-spacing:-.015em}
html body #main#main .sm-h3 em{font-style:italic;color:var(--green-d,#6f5834)}
html body #main#main .sm-steps-head .big-muted{margin:0 auto}
@media (max-width:820px){html body #main#main #situations .sm-steps{padding-bottom:20px}}

/* --- territoire + questions : carte reduite en hauteur, FAQ dessous --- */
html body #main#main #zones .map-wrap{max-width:640px;margin:30px auto 20px;
  box-shadow:0 26px 50px -38px rgba(36,39,32,.5),0 0 0 1px rgba(138,111,70,.22)}
html body #main#main #zones .zone-tags{margin-top:18px}
html body #main#main .zf-anc{font-family:var(--serif,'Playfair Display',Georgia,serif);font-weight:500;font-size:1.12em;color:var(--art-tx)}
html body #main#main .zf-anc em{font-style:italic;color:var(--green-d,#6f5834)}
html body #main#main #zones #faq{margin-top:clamp(64px,8vw,104px)}
html body #main#main .zf-faq-head{margin-bottom:6px}
html body #main#main .zf-h3{margin:0 0 4px;color:var(--art-tx);font-family:var(--serif,'Playfair Display',Georgia,serif);font-weight:500;
  font-size:clamp(1.7rem,1.25rem + 1.6vw,2.35rem);line-height:1.12;letter-spacing:-.015em}
/* le bloc d'ancrage local du Havre (pages de ville) est ivoire entre les garanties et le territoire */
html body #main#main > section#local{background:var(--art-iv)!important;padding:var(--art-pad) 0}
/* pages service : le surtitre dore reste lisible sur une photo claire */
html body .hero .svc-eyebrow{text-shadow:0 1px 14px rgba(14,12,9,.85),0 0 3px rgba(14,12,9,.55)}
/* page de ville du Havre : de l'ivoire du bloc local au sable du territoire, sans couture */
html body #main#main > section#local + section#zones{
  background:linear-gradient(180deg,rgba(var(--art-iv-rgb),1) 0,rgba(var(--art-iv-rgb),.82) 22%,rgba(var(--art-iv-rgb),.42) 52%,rgba(var(--art-iv-rgb),.1) 82%,rgba(var(--art-iv-rgb),0) 100%) 0 0/100% var(--art-fade) no-repeat,var(--art-sa)!important}

/* =====================================================================
   12. CORRECTIFS DU CORRECTEUR (04/10/2026)
   ===================================================================== */

/* --- 12a. rail de sections : le libelle de la section active n'apparait que 2 s apres un changement (classe .chg posee
   par site.js) ou au survol et au clavier ; il ne reste plus en permanence sur la photo de la galerie --- */
html body .sec-nav .sec-pt.ici:not(.chg):not(:hover):not(:focus-visible) .sec-lbl{opacity:0;transform:translateX(6px)}

/* --- 12b. anneau de focus : bronze sur zones sombres = 1,3 a 2,8 pour 1 (WCAG 1.4.11 demande 3 pour 1).
   Zones sombres : or clair ; barre flottante, qui passe sur toutes les teintes : double anneau fonce + blanc --- */
html body .hero a:focus-visible,html body .hero button:focus-visible,
html body .final a:focus-visible,html body .final button:focus-visible,html body .final input:focus-visible,html body .final select:focus-visible,
html body .dark a:focus-visible,html body .dark button:focus-visible,html body .dark summary:focus-visible,html body .dark [tabindex]:focus-visible{
  outline-color:#ecd7a6;outline-offset:3px}
html body .hero a:focus-visible,html body .hero button:focus-visible{box-shadow:0 0 0 6px rgba(14,12,9,.62)}
html body .wa-fab a:focus-visible{outline:3px solid #fff;outline-offset:2px;box-shadow:0 0 0 2px #1c1610}
/* lien d'evitement : il se pose sur l'en-tete bronze */
html body .skip:focus-visible{outline:3px solid #fff;outline-offset:2px;box-shadow:0 0 0 2px #1c1610}

/* --- 12c. bloc situations --- */
/* un vrai bouton dans le titre de chaque ligne (site.js) : il reprend exactement le rendu du titre */
html body .situ .si-btn{display:block;width:100%;margin:0;padding:0;border:0;background:none;color:inherit;font:inherit;letter-spacing:inherit;
  text-align:inherit;text-transform:inherit;text-wrap:inherit;cursor:pointer;-webkit-appearance:none;appearance:none;-webkit-tap-highlight-color:transparent}
/* l'anneau de focus entoure la ligne entiere, en retrait (la ligne rogne tout ce qui deborde : un anneau exterieur serait coupe) ;
   site.js pose .kf sur la ligne quand son bouton est atteint au clavier */
html body .situ .si-btn:focus-visible{outline:none}
html body .situ.sl-row.kf{outline:3px solid #6f5834;outline-offset:-3px;border-radius:6px}
/* sans JavaScript, rien ne peut s'ouvrir : le detail de chaque ligne est affiche en entier */
html:not(.js-on) .situ .si-detail{max-height:none;overflow:visible;margin-top:16px}
html:not(.js-on) .situ .si-more{display:none}

/* --- 12d. deuxieme titre des blocs fusionnes : une sous-partie, pas un second grand titre --- */
html body #main#main .sm-h3,html body #main#main .zf-h3{font-size:clamp(1.5rem,1.2rem + .9vw,1.75rem);line-height:1.18}
/* ancres : le titre ne passe plus sous l'en-tete */
html body #faq{scroll-margin-top:96px}
html body #temoignages{scroll-margin-top:24px}

/* --- 12e. bloc d'ancrage local du Havre : tout centre, plus de justification a grands blancs --- */
html body #main#main > section#local .narrow,html body #main#main > section#local .narrow p,html body #main#main > section#local .narrow h2{
  text-align:center!important;text-align-last:center!important;-webkit-hyphens:manual;hyphens:manual}

/* --- 12f. champs de formulaire : 16 px au minimum sur mobile (en dessous, Safari iOS zoome la page au focus) --- */
@media (max-width:820px){
  html body form.er-lead input:not([type=hidden]):not([type=checkbox]),html body form.er-lead select,html body form.er-lead textarea{font-size:16px}
}

/* --- 12g. texte du bouton or : 4,5 pour 1 meme au bout le plus sombre du degrade --- */
html body a[href^="tel:"].btn-green{color:#1f2a24!important}
html body a[href^="tel:"].btn-green svg path{fill:#1f2a24!important}

/* --- 12h. cible tactile : la pastille d'avis du hero (un lien) fait au moins 44 px --- */
@media (pointer:coarse){html body .hero-proof{min-height:44px}}

/* --- 12i. mobile : plancher de 16 px pour le texte fonctionnel (etiquettes, disponibilite, notes de formulaire) ;
   les surtitres et legendes decoratives restent plus petits --- */
@media (max-width:760px){
  html body .hero .dispo{font-size:16px;text-wrap:balance}
  html body .hero-where{font-size:15px}
  html body #main#main .er-rappel-l{font-size:16px;line-height:1.4}
  html body #main#main .er-lead-n,html body #main#main .er-lead-h,
  html body #main#main .final .er-lead-n,html body #main#main .final .er-lead-h{font-size:16px;line-height:1.5}
  html body .foot-bottom,html body .foot-bottom a{font-size:14.5px}
  html body footer .sceau{font-size:12px}
  /* les liens « Tout savoir » des situations sont des liens de navigation : taille de lecture et cible tactile de 44 px */
  html body .si-links a{font-size:15.5px;min-height:44px;padding:9px 14px}
}

/* ---------- 10b. Hero mobile : voile local un peu plus fort derriere le titre et les actions pendant les plans denses du film (retour ChatGPT, revue finale) ---------- */
@media (max-width:760px){
  html body .hero-grid>div:first-child::before{
    background:radial-gradient(closest-side,rgba(14,12,9,.78) 0,rgba(14,12,9,.64) 54%,rgba(14,12,9,.22) 84%,rgba(14,12,9,0) 100%)}
}

/* Le fondu du bas de la section Garanties mangeait le bouton « Voir toutes nos
   garanties » : bord net ici, les autres sections gardent leur transition. */
#main#main > section#garanties{background-image:
  linear-gradient(180deg,rgba(var(--art-up),1) 0,rgba(var(--art-up),.9) 12%,rgba(var(--art-up),.62) 30%,rgba(var(--art-up),.3) 52%,rgba(var(--art-up),.1) 76%,rgba(var(--art-up),0) 100%);
  background-size:100% var(--art-fade);background-position:0 0}
