/* Robin Olivy HVAC : page d'accueil (bandeau et défilé des marques posées, entreprise, services, réalisations, méthode, pourquoi, contact, visionneuse).
   Les jetons et le socle (en-tête, pied, boutons, apparitions) sont dans commun.css. */

.btn-wa { background: var(--c-wa); color: var(--c-blanc); }
.btn-wa:hover { background: var(--c-wa-2); }
.cta-bande { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); margin-top: var(--s5); }
.cta-bande p { flex: 1 1 16rem; color: var(--c-doux); }
.cta-bande .btn { flex: none; }

/* ============================================================ BANDEAU */
.accueil { display: flex; flex-direction: column; justify-content: flex-end; min-height: min(100svh, 60rem); overflow: hidden; isolation: isolate; }
.accueil-img { position: absolute; inset: 0; z-index: -2; }
/* images d'ambiance qui bougent (refonte A ; images GPT seulement, 25/11) : empilées ; la photo is-actif est au-dessus et visible, la sortante (is-sortie)
   reste dessous le temps du fondu. Sans JS, seule la 1re (is-actif dans le HTML) se voit. */
.accueil-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 35%; }
.accueil-img img:not(.is-actif, .is-sortie) { opacity: 0; }
.accueil-img img.is-actif { z-index: 1; }
/* cadrage des images du bandeau : 1 salon, 2 pac, 3 chambre, 4 pose, 5 séjour (VMC), 6 chambre (ordre du
   <template id="bandeau-suite">), sujet vers 65-78 % de la largeur ; une image ajoutée au template prend le cadrage
   par défaut, une ligne ici l'affine */
.accueil-img img:nth-child(1) { object-position: 70% 30%; }
.accueil-img img:nth-child(2) { object-position: 75% 50%; }
.accueil-img img:nth-child(3) { object-position: 72% 25%; }
.accueil-img img:nth-child(4) { object-position: 75% 20%; }
.accueil-img img:nth-child(5) { object-position: 65% 0%; }
.accueil-img img:nth-child(6) { object-position: 70% 30%; }
.bandeau-pause { position: absolute; top: calc(var(--s6) + var(--s2)); right: max(var(--g), calc((100% - var(--max)) / 2 + var(--g))); z-index: 1; }
.accueil::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(48rem 30rem at 12% 92%, var(--c-halo), transparent 70%),
  linear-gradient(90deg, color-mix(in srgb, var(--c-voile) 92%, transparent) 0%, color-mix(in srgb, var(--c-voile) 78%, transparent) 34%, color-mix(in srgb, var(--c-voile) 35%, transparent) 62%, color-mix(in srgb, var(--c-voile) 18%, transparent) 100%),
  linear-gradient(0deg, var(--c-nuit) 0%, transparent 32%); }
/* couche futuriste : grille technique fondue sous le texte (les lignes de flux d'air ont été retirées, refonte A) */
.accueil::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: var(--grille); background-size: var(--pas-grille) var(--pas-grille);
  -webkit-mask-image: radial-gradient(ellipse 50% 55% at 6% 96%, var(--c-nuit), transparent);
  mask-image: radial-gradient(ellipse 50% 55% at 6% 96%, var(--c-nuit), transparent); }
/* marques posées : bandeau qui défile en bas du bandeau, sur l'image, comme sur mezatec.be (Wakny, 25/11 ; exception R-ANIM-7
   « .defile-marques »). Sans JS ou en mouvement réduit : les trois logos immobiles, centrés. Avec JS (accueil.js) : la liste est
   clonée (clones aria-hidden) et glisse en continu, SANS pause au survol (leçon du 24/11) ; arrêt par le bouton Pause du bandeau. */
.defile-marques { padding: 0 0 var(--s4); }
.defile-marques-t { margin-bottom: var(--s3); font-size: var(--t-xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; text-align: center; color: var(--c-clair); }
.defile-marques-vue { max-width: var(--max); margin: 0 auto; padding: 0 var(--g); }
.defile-marques-piste { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s3) var(--s5); margin: 0; padding: 0; list-style: none; }
.defile-marques-piste li { display: flex; align-items: center; }
.defile-marques.is-defile .defile-marques-vue { max-width: none; padding: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, var(--c-nuit) 10%, var(--c-nuit) 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, var(--c-nuit) 10%, var(--c-nuit) 90%, transparent); }
.defile-marques.is-defile .defile-marques-piste { flex-wrap: nowrap; justify-content: flex-start; width: max-content; gap: 0; }
.defile-marques.is-defile li { padding-right: var(--s6); }
/* logos officiels en blanc (refonte A) : hauteurs réglées à l'œil pour un poids visuel égal (mot-symbole long et fin,
   logo carré incurvé) ; width/height du HTML gardent le rapport */
.marque-logo { flex: none; width: auto; height: var(--s4); }
.logo-panasonic { height: calc(var(--s3) + var(--s1)); }
.logo-zehnder { height: calc(var(--s4) + var(--s1)); }
.logo-olimpia { height: calc(var(--s4) + var(--s1)); }
.accueil-in { width: 100%; padding-top: calc(var(--s6) + var(--s5)); padding-bottom: var(--s4); }
.accueil h1 { max-width: 20ch; font-size: var(--t-xl); }
.accueil h1 em { font-style: normal; color: var(--c-azur); }
.accueil h1 .h1-kw { display: flex; align-items: center; gap: var(--s2); max-width: 44ch; margin-bottom: var(--s3); font-size: var(--t-xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; line-height: 1.5; color: var(--c-azur); }
.accueil h1 .h1-kw::before { content: ""; flex: none; width: 2.125rem; height: 1px; background: var(--c-vif); }
.accueil-txt { max-width: 46ch; margin-top: var(--s3); font-size: var(--t-base); color: var(--c-clair); }
.accueil-cta { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }
.depuis { display: inline-flex; align-items: center; gap: var(--s1); margin-top: var(--s3); padding: var(--s1) var(--s3); border: 1px solid var(--c-ligne-forte); border-radius: var(--r3); background: color-mix(in srgb, var(--c-nuit) 45%, transparent); font-size: var(--t-xs); font-weight: 600; color: var(--c-clair); }
.atouts { display: grid; grid-template-columns: repeat(4, 1fr); margin: var(--s5) 0 0; padding: 0; background: linear-gradient(var(--c-ligne-forte), var(--c-ligne-forte)) top / 100% 1px no-repeat, var(--filet) top left / 50% 1px no-repeat; }
.atouts li { position: relative; display: flex; align-items: baseline; gap: var(--s2); padding: var(--s3) var(--s3) 0 0; list-style: none; color: var(--c-clair); }
.atouts li::before { content: ""; position: absolute; top: 0; left: 0; width: 1px; height: var(--s1); background: var(--c-azur); }
.atouts b { font-size: var(--t-xs); font-weight: 600; letter-spacing: .08em; color: var(--c-azur); font-variant-numeric: tabular-nums; }
/* rang d'entrée des éléments du bandeau (ouverture, plus bas) */
.accueil-in > :nth-child(2) { --i: 1; }
.accueil-in > :nth-child(3) { --i: 2; }
.accueil-in > :nth-child(4) { --i: 3; }
.accueil-in > :nth-child(5) { --i: 4; }

/* ============================================================ INTRO D'OUVERTURE (index.html seulement)
   N'existe qu'avec html.is-intro (amorce du <head>) ET en mouvement normal : sinon display: none, rien ne bouge.
   Déroulé (1,8 s) : pastille du vrai logo qui s'allume, anneau tracé, nom, filet ; à 1,2 s le volet remonte. */
.intro { display: none; }
.intro::before { content: ""; position: absolute; inset: 0; background-image: var(--grille); background-size: var(--pas-grille) var(--pas-grille);
  -webkit-mask-image: radial-gradient(ellipse 45% 50% at 50% 50%, var(--c-nuit), transparent);
  mask-image: radial-gradient(ellipse 45% 50% at 50% 50%, var(--c-nuit), transparent); }
.intro::after { content: ""; position: absolute; inset: auto 0 0 0; height: 1px; background: var(--filet); }
.intro-in { position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--s1); padding: 0 var(--g); text-align: center; }
.intro-logo { position: relative; display: grid; place-items: center; width: 8rem; height: 8rem; margin-bottom: var(--s3); }
.intro-anneau { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transform: rotate(-90deg); }
.intro-anneau circle { fill: none; stroke-width: 1.5; }
.intro-piste { stroke: var(--c-ligne-forte); }
.intro-trace { stroke: var(--c-azur); stroke-linecap: round; stroke-dasharray: 1; }
.intro-logo .pastille { width: 6rem; height: 6rem; }
.intro-nom { font-size: var(--t-md); font-weight: 600; letter-spacing: -.01em; }
.intro-sous { font-size: var(--t-xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--c-azur); }
.intro-filet { width: min(20rem, 70vw); height: 1px; margin-top: var(--s3); background: var(--filet); }

/* ============================================================ ENTREPRISE */
.entreprise .grille { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: var(--s5); align-items: center; }
.entreprise .lead { margin-top: var(--s4); }
.entreprise .lead + .lead { margin-top: var(--s3); }
.chiffre-cle { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s1) var(--s3); margin: var(--s4) 0 0; padding: var(--s3) 0; border-bottom: 1px solid var(--c-ligne); background: var(--filet) top left / 100% 1px no-repeat; }
.chiffre-cle b { font-size: var(--t-md); font-weight: 400; letter-spacing: -.03em; color: var(--c-azur); font-variant-numeric: tabular-nums; }
.chiffre-cle span { max-width: 34ch; color: var(--c-doux); }
.points { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s4); margin: var(--s4) 0 0; padding: 0; border-top: 1px solid var(--c-ligne); }
.points li { display: flex; align-items: center; gap: var(--s2); padding: var(--s2) 0; border-bottom: 1px solid var(--c-ligne); list-style: none; font-weight: 600; }
.points svg { flex: none; width: 1.125rem; height: 1.125rem; color: var(--c-azur); }
.cadre { position: relative; margin: 0; }
.cadre img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r1); }
.cadre::before { content: ""; position: absolute; inset: calc(var(--s3) * -1) var(--s3) var(--s3) calc(var(--s3) * -1); border: 1px solid color-mix(in srgb, var(--c-vif) 55%, transparent); border-radius: var(--r1); pointer-events: none; }
.legende { display: flex; gap: var(--s2); margin-top: var(--s2); font-size: var(--t-xs); color: var(--c-doux); }
.legende::before { content: ""; flex: none; width: 1.25rem; height: 1px; margin-top: var(--s1); background: var(--c-vif); }

/* ============================================================ SERVICES */
.services { background: var(--c-nuit-2); --grille-x: 92%; --grille-y: 0%; }
.services-tete { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s5); }
.services-grille { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s5); align-items: start; }
.srv-liste { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--c-ligne); }
.srv a { position: relative; display: grid; grid-template-columns: 4rem minmax(0, 1fr) 2.5rem; gap: var(--s3); align-items: start; padding: var(--s4) 0; border-bottom: 1px solid var(--c-ligne); text-decoration: none; }
.srv a::after { content: ""; position: absolute; inset: auto 0 -1px 0; height: 1px; background: var(--c-vif); transform: scaleX(0); transform-origin: left; }
.srv-num { padding-top: var(--s1); font-weight: 600; color: var(--c-doux); font-variant-numeric: tabular-nums; }
.srv h3 { font-size: var(--t-md); }
.srv p { max-width: 48ch; margin-top: var(--s1); color: var(--c-doux); }
.srv-fleche { display: flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; margin-top: var(--s1); border: 1px solid var(--c-ligne-forte); border-radius: 50%; }
.srv-fleche svg { width: 1rem; height: 1rem; }
.srv-vignette { display: none; color: var(--c-azur); background: var(--c-nuit-3); }
/* photos d'ambiance des cartes PAC et VMC (vignette et aperçu) : sujet à droite du centre */
.photo-pac { object-position: 62% 50%; }
.photo-vmc { object-position: 80% 50%; }
.srv a:hover::after, .srv a:focus-visible::after, .srv.is-actif a::after { transform: scaleX(1); }
.srv a:hover .srv-num, .srv.is-actif .srv-num { color: var(--c-azur); }
.srv a:hover h3, .srv.is-actif h3 { transform: translateX(var(--s1)); }
.srv a:hover .srv-fleche { border-color: var(--c-bleu); background: var(--c-bleu); }
.apercu { position: sticky; top: var(--s6); }
.apercu-cadre { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r1); background: var(--c-nuit-3); }
.apercu-cadre > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.05); }
.apercu-cadre > .visible { opacity: 1; transform: none; }
.apercu-leg { min-height: 1.6em; margin-top: var(--s2); font-size: var(--t-xs); color: var(--c-doux); }
html:not(.js) .apercu { display: none; }
html:not(.js) .services-grille { grid-template-columns: minmax(0, 1fr); }

/* ============================================================ ESTIMATION EN LIGNE (lien vers /simulateur, palier 2) */
.estim { background: var(--c-nuit-4); --grille-x: 8%; --grille-y: 100%; }
.estim-grille { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s5); align-items: center; }
.estim .lead { margin-top: var(--s3); }
.estim-boutons { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }
.estim-note { max-width: 52ch; margin-top: var(--s3); font-size: var(--t-xs); color: var(--c-doux); }
.estim-visuel { margin: 0; padding: var(--s4); border: 1px solid var(--c-ligne); border-radius: var(--r2); background-color: var(--c-nuit); background-image: var(--grille); background-size: var(--s4) var(--s4); background-position: center; }
.estim-visuel .legende { justify-content: center; margin-top: var(--s3); }

/* ============================================================ RÉALISATIONS */
.reals-tete { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); align-items: end; margin-bottom: var(--s5); }
.defile-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--s2); margin-bottom: var(--s3); }
/* galerie en lecture lente (exception R-ANIM-7 signée, .galerie-auto) : bouton Pause/Lecture, compteur, jauge du temps */
.galerie-etat { display: flex; align-items: center; gap: var(--s3); }
/* boutons Pause / Lecture (galerie et bandeau) : le libellé visible change, is-arret = en pause (posé par accueil.js) */
.galerie-pause, .bandeau-pause { display: inline-flex; align-items: center; gap: var(--s1); min-height: 2.75rem; padding: 0 var(--s3); border: 1px solid var(--c-ligne-forte); border-radius: var(--r3); background: color-mix(in srgb, var(--c-nuit) 70%, transparent); font-size: var(--t-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.galerie-pause:hover, .bandeau-pause:hover { border-color: var(--c-azur); }
.galerie-pause svg, .bandeau-pause svg { width: 1rem; height: 1rem; color: var(--c-azur); }
.is-arret .ico-pause, :is(.galerie-pause, .bandeau-pause):not(.is-arret) .ico-lecture { display: none; }
.galerie-compteur { font-size: var(--t-xs); font-weight: 600; letter-spacing: .08em; color: var(--c-doux); font-variant-numeric: tabular-nums; }
.galerie-compteur b { font-weight: 600; color: var(--c-texte); }
.galerie-jauge { position: relative; display: block; width: var(--s6); height: 1px; margin: 0 auto 0 var(--s1); overflow: hidden; background: var(--c-ligne-forte); }
.galerie-jauge span { position: absolute; inset: 0; background: var(--c-azur); transform: scaleX(0); transform-origin: left; }
.defile.is-auto { scroll-snap-type: none; }
.defile-btn { display: flex; align-items: center; justify-content: center; width: 3.25rem; height: 3.25rem; border: 1px solid var(--c-ligne-forte); border-radius: 50%; background: color-mix(in srgb, var(--c-nuit) 70%, transparent); cursor: pointer; }
.defile-btn:hover { border-color: var(--c-azur); }
.defile-btn svg { width: 1.25rem; height: 1.25rem; }
.defile { display: flex; gap: var(--s2); padding: 0 0 var(--s3); overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--c-bleu) var(--c-nuit-3); -webkit-overflow-scrolling: touch; cursor: grab; user-select: none; }
.defile.is-drag { scroll-snap-type: none; cursor: grabbing; }
.defile::-webkit-scrollbar { height: 6px; }
.defile::-webkit-scrollbar-track { border-radius: 3px; background: var(--c-nuit-3); }
.defile::-webkit-scrollbar-thumb { border-radius: 3px; background: var(--c-bleu); }
.mo { position: relative; display: block; flex: 0 0 clamp(15.625rem, 25vw, 21.875rem); aspect-ratio: 4 / 5; padding: 0; overflow: hidden; border: 0; border-radius: var(--r1); background: var(--c-nuit-3); cursor: zoom-in; text-align: left; scroll-snap-align: start; }
.mo img { width: 100%; height: 100%; object-fit: cover; object-position: var(--op, 50% 50%); }
.mo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, color-mix(in srgb, var(--c-voile) 88%, transparent) 0%, color-mix(in srgb, var(--c-voile) 40%, transparent) 26%, transparent 52%); }
/* Cadrage de chaque photo (celui de la V5), selon son rang dans le rail ; la 12e garde le centre */
.mo:nth-child(1) { --op: 50% 20%; }
.mo:nth-child(8) { --op: 50% 25%; }
.mo:nth-child(3), .mo:nth-child(13) { --op: 50% 30%; }
.mo:nth-child(5) { --op: 40% 40%; }
.mo:nth-child(7) { --op: 50% 40%; }
.mo:nth-child(6), .mo:nth-child(11) { --op: 50% 55%; }
.mo:nth-child(4) { --op: 50% 62%; }
.mo:nth-child(9), .mo:nth-child(10), .mo:nth-child(14) { --op: 50% 70%; }
.mo:nth-child(2) { --op: 50% 72%; }
.mo span { position: absolute; inset: auto var(--s2) var(--s2) var(--s2); z-index: 1; font-size: var(--t-xs); font-weight: 600; line-height: 1.35; color: var(--c-blanc); }
.reals-note { margin-top: var(--s3); font-size: var(--t-xs); color: var(--c-doux); }

/* ============================================================ MÉTHODE */
.methode { background: var(--c-nuit-2); --grille-x: 100%; --grille-y: 100%; }
/* chaque étape porte sa photo d'ambiance : 4 cartes (photo 4:5) dès 1100 px, 2 colonnes (16:11) en dessous, rail sur
   téléphone ; la pastille de l'icône chevauche le bas de la photo */
.etapes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); margin: var(--s5) 0 0; padding: 0; list-style: none; }
.etape { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--c-ligne-forte); border-radius: var(--r1); background: var(--c-nuit); }
.etape-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.etape:nth-child(2) .etape-photo { object-position: 44% 50%; }
.etape:nth-child(3) .etape-photo { object-position: 62% 50%; }
.etape > div { padding: var(--s2) var(--s3) var(--s3); }
.etape-ico { position: relative; display: flex; align-items: center; justify-content: center; width: 3.5rem; height: 3.5rem; margin: calc(var(--s4) * -1) 0 0 var(--s3); border: 1px solid color-mix(in srgb, var(--c-vif) 60%, transparent); border-radius: 50%; background: radial-gradient(circle, var(--c-halo), transparent 70%), var(--c-nuit); color: var(--c-azur); }
.etape-ico svg { width: 1.375rem; height: 1.375rem; }
.etape small { display: block; font-size: var(--t-xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--c-azur); font-variant-numeric: tabular-nums; }
.etape h3 { margin-top: var(--s1); font-size: var(--t-md); }
.etape p { max-width: 50ch; margin-top: var(--s1); color: var(--c-doux); }

/* ============================================================ POURQUOI */
.pourquoi-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5); align-items: center; }
.pourquoi-photo { position: relative; margin: 0; }
.pourquoi-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 45%; border-radius: var(--r1); }
.raisons { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); margin-top: var(--s5); }
.raison { padding-top: var(--s3); border-top: 1px solid var(--c-vif); }
.raison h3 { font-size: var(--t-sm); line-height: 1.25; }
.raison p { margin-top: var(--s2); color: var(--c-doux); }

/* ============================================================ CONTACT */
.contact { background: linear-gradient(180deg, var(--c-nuit-2), var(--c-nuit-4)); --grille-x: 0%; --grille-y: 100%; }
.contact-grille { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s5); align-items: start; }
.contact .lead { margin-top: var(--s3); }
.coord { margin: var(--s4) 0 0; padding: 0; list-style: none; border-top: 1px solid var(--c-ligne); }
.coord li { border-bottom: 1px solid var(--c-ligne); }
.coord a, .coord div { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) 0; text-decoration: none; }
.coord svg { flex: none; width: 1.25rem; height: 1.25rem; color: var(--c-azur); }
.coord small { display: block; font-size: var(--t-xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--c-doux); }
.coord strong { font-size: var(--t-sm); font-weight: 600; }
.coord a:hover strong { color: var(--c-azur); }
.contact-boutons { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }
.formulaire { position: relative; padding: var(--s4); border: 1px solid var(--c-ligne); border-radius: var(--r2); background: var(--filet) top left / 100% 1px no-repeat, var(--c-nuit); }
.formulaire::after { content: ""; position: absolute; inset: var(--s1); pointer-events: none; background: var(--reperes); }
.formulaire h3 { font-size: var(--t-md); }
.formulaire > p { margin-top: var(--s1); color: var(--c-doux); }
.champs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); margin-top: var(--s4); }
.champ { display: flex; flex-direction: column; gap: var(--s1); }
.champ.large { grid-column: 1 / -1; }
.champ label { font-size: var(--t-xs); font-weight: 600; letter-spacing: .05em; color: var(--c-clair); }
.champ .aide { font-weight: 400; letter-spacing: 0; color: var(--c-doux); }
.champ input, .champ select, .champ textarea { width: 100%; min-height: 3.25rem; padding: var(--s2) var(--s3); border: 1px solid var(--c-ligne-forte); border-radius: var(--r1); background: var(--c-nuit-2); font-family: inherit; font-size: var(--t-base); color: var(--c-texte); }
.champ select { appearance: none; padding-right: var(--s5); }
.champ select option { background: var(--c-nuit-2); color: var(--c-texte); }
.champ textarea { min-height: 8.125rem; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus { border-color: var(--c-azur); outline: 2px solid var(--c-azur); outline-offset: 2px; }
.champ input::placeholder, .champ textarea::placeholder { color: var(--c-gris); }
.champ [aria-invalid="true"] { border-color: var(--c-erreur); }
.sel { position: relative; }
.sel::after { content: ""; position: absolute; inset-block: 0; right: var(--s3); width: .5rem; height: .5rem; margin-block: auto; border: solid var(--c-azur); border-width: 0 2px 2px 0; transform: translateY(-.15rem) rotate(45deg); pointer-events: none; }
.form-bas { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); margin-top: var(--s3); }
.form-bas small { max-width: 34ch; font-size: var(--t-xs); color: var(--c-doux); }
/* Message du formulaire (zone posée dans le HTML, remplie par le script commun formulaires.be-web.be) */
.beweb-turnstile { order: 9; flex: 1 0 100%; margin-top: calc(var(--s3) * -1); }
.beweb-turnstile:not(:empty) { margin-top: 0; }
.beweb-message { margin-top: var(--s3); margin-bottom: var(--s2); padding: var(--s2) var(--s3); border: 1px solid var(--c-ligne-forte); border-radius: var(--r1); color: var(--c-texte); }
.beweb-message:empty { display: none; }
.beweb-message p + p { margin-top: var(--s1); }
.beweb-message a { font-weight: 600; text-underline-offset: 3px; white-space: nowrap; }
.beweb-ok { border-color: color-mix(in srgb, var(--c-azur) 50%, transparent); background: color-mix(in srgb, var(--c-bleu) 14%, transparent); }
.beweb-erreur { border-color: var(--c-erreur); background: color-mix(in srgb, var(--c-erreur) 10%, transparent); }

/* ============================================================ VISIONNEUSE (photo agrandie) */
.visionneuse { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: color-mix(in srgb, var(--c-ombre) 96%, transparent); color: var(--c-texte); }
.visionneuse::backdrop { background: color-mix(in srgb, var(--c-ombre) 90%, transparent); }
.vis-in { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; padding: var(--s6) var(--s6) var(--s4); }
.vis-in img { flex: 1 1 0; min-height: 0; width: auto; max-width: 100%; object-fit: contain; border-radius: var(--r1); }
.vis-leg { display: flex; align-items: baseline; gap: var(--s3); margin-top: var(--s3); color: var(--c-clair); text-align: center; }
.vis-leg b { flex: none; font-size: var(--t-xs); font-weight: 600; white-space: nowrap; color: var(--c-azur); }
.vis-btn { position: absolute; display: flex; align-items: center; justify-content: center; width: 3.25rem; height: 3.25rem; border: 1px solid var(--c-ligne-forte); border-radius: 50%; background: color-mix(in srgb, var(--c-nuit) 70%, transparent); cursor: pointer; }
.vis-btn:hover { border-color: var(--c-azur); }
.vis-btn svg { width: 1.25rem; height: 1.25rem; }
.vis-fermer { top: var(--s3); right: var(--s3); }
.vis-prec { left: var(--s3); inset-block: 0; margin-block: auto; }
.vis-suiv { right: var(--s3); inset-block: 0; margin-block: auto; }

/* ============================================================ RESPONSIVE */
@media (min-width: 961px) {
  .accueil-txt { font-size: var(--t-sm); }
}
@media (min-width: 1100px) {
  .entreprise .grille, .services-grille, .pourquoi-grille, .contact-grille, .estim-grille { gap: var(--s6); }
}
@media (max-width: 1099px) {
  .etapes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .etape-photo { aspect-ratio: 16 / 11; }
}
@media (max-width: 960px) {
  .entreprise .grille, .pourquoi-grille, .contact-grille, .reals-tete, .estim-grille { grid-template-columns: minmax(0, 1fr); }
  .services-grille { grid-template-columns: minmax(0, 1fr); }
  .atouts { grid-template-columns: 1fr 1fr; }
  .apercu { display: none; }
  .accueil-img img:nth-child(1) { object-position: 76% 25%; }
  .accueil-img img:nth-child(2) { object-position: 83% 50%; }
  .accueil-img img:nth-child(3) { object-position: 77% 20%; }
  .accueil-img img:nth-child(4) { object-position: 81% 15%; }
  .accueil-img img:nth-child(5) { object-position: 65% 25%; }
  .accueil-img img:nth-child(6) { object-position: 72% 20%; }
  .srv a { grid-template-columns: 2.5rem minmax(0, 1fr) 5.25rem; gap: var(--s3); padding: var(--s3) 0; }
  .srv-num { padding-top: 0; }
  .srv-fleche { display: none; }
  .srv-vignette { display: block; width: 5.25rem; height: 6.5rem; object-fit: cover; border-radius: var(--r1); }
  .srv a:hover h3, .srv.is-actif h3 { transform: none; }
  .pourquoi-photo { order: 2; }
  .pourquoi-photo img { aspect-ratio: 16 / 12; }
  .vis-in { padding: var(--s6) var(--s2) var(--s6); }
  .vis-prec, .vis-suiv { top: auto; bottom: var(--s3); margin-block: 0; }
  .vis-leg { padding: 0 var(--s2); }
}
@media (max-width: 600px) {
  .accueil-img { bottom: auto; height: 62%; }
  .accueil::before { background: linear-gradient(0deg, var(--c-nuit) 0%, var(--c-nuit) 40%, color-mix(in srgb, var(--c-nuit) 90%, transparent) 58%, color-mix(in srgb, var(--c-voile) 62%, transparent) 76%, color-mix(in srgb, var(--c-voile) 70%, transparent) 100%); }
  .accueil-in { padding-top: var(--s7); }
  .accueil .atouts, .accueil .depuis { display: none; }   /* place pour les trois boutons : le texte reste à l'écran, sur fond sombre */
  .accueil-cta .btn { flex: 1 1 100%; }
  .cadre::before { inset: calc(var(--s2) * -1) var(--s2) var(--s2) calc(var(--s2) * -1); }
  /* le bouton pause devient une pastille d'icône (le libellé reste lu par les lecteurs d'écran) */
  .bandeau-pause { width: 2.75rem; padding: 0; justify-content: center; }
  .bandeau-pause span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .defile-marques { padding-bottom: var(--s3); }
  .defile-marques-t { margin-bottom: var(--s2); }
  .defile-marques.is-defile li { padding-right: var(--s5); }
  .logo-panasonic { height: var(--s3); }
  .logo-zehnder { height: calc(var(--s3) + var(--s2)); }
  .logo-olimpia { height: calc(var(--s3) + var(--s1)); }
  .estim-boutons .btn { flex: 1 1 100%; }
  .coord strong { font-size: var(--t-base); }
  .contact-boutons .btn { flex: 1 1 100%; }
  .champs { grid-template-columns: 1fr; }
  /* place réservée à la bulle d'appel (3,5 rem à droite) : le bouton tient sur une ligne à 390 et s'arrête avant elle */
  .formulaire { padding: var(--s3); }
  .form-bas .btn { max-width: calc(100% - var(--s4) - var(--s1)); padding: 0 var(--s2); letter-spacing: 0; text-wrap: balance; }
  .form-bas .btn svg { display: none; }
  .mo { flex-basis: 74vw; }
  .galerie-jauge { order: 3; flex-basis: 100%; margin: var(--s1) 0 0; }

  /* R-MOB-1 : listes de cartes simples = rails horizontaux (scroll-snap) */
  .srv-liste, .etapes, .raisons, .points { display: flex; gap: var(--s2); margin-inline: calc(var(--g) * -1); padding: 0 var(--g) var(--s2); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--g); scrollbar-width: none; }
  .srv-liste { border-top: 0; }
  .etapes { margin-top: var(--s4); }
  .raisons { margin-top: var(--s4); }
  .points { border-top: 0; }
  .srv, .etape, .raison { flex: 0 0 78%; scroll-snap-align: start; }
  .srv a { display: flex; flex-direction: column; align-items: stretch; height: 100%; gap: 0; padding: 0; overflow: hidden; border: 1px solid var(--c-ligne-forte); border-radius: var(--r1); background: var(--c-nuit-3); }
  .srv a::after { display: none; }
  .srv-vignette { order: -1; width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 0; }
  .srv-num { padding: var(--s3) var(--s3) 0; }
  .srv a > div { padding: var(--s1) var(--s3) var(--s3); }
  .raison { padding: var(--s3); border: 1px solid var(--c-ligne-forte); border-radius: var(--r1); background: var(--c-nuit-2); }
  .points li { flex: 0 0 auto; padding: var(--s2) var(--s3); border: 1px solid var(--c-ligne-forte); border-radius: var(--r3); }
}

/* ============================================================ MOUVEMENT (sous no-preference seulement) */
@media (prefers-reduced-motion: no-preference) {
  /* bandeau : zoom lent de la photo affichée (et de la sortante pendant son fondu) ; fondu enchaîné de 1,2 s
     (exemption R-ANIM-1 « .accueil-img » de la charte) ; tout se fige avec is-fige (pause, hors écran, onglet caché) */
  @keyframes respire { from { transform: scale(1.06); } to { transform: scale(1); } }
  .accueil-img img { transition: opacity calc(var(--d3) * 2) var(--e2); }
  .accueil-img img:is(.is-actif, .is-sortie) { animation: respire var(--d0) var(--e1) forwards; }
  .accueil-img.is-fige img { animation-play-state: paused; }

  /* intro d'ouverture : affichée seulement sous html.is-intro ; le volet part à --intro-ouvre, le reste suit à --intro-fin */
  html.is-intro { --intro-ouvre: calc(var(--d3) * 2); --intro-fin: calc(var(--d3) * 2 + var(--d1)); }
  html.is-intro .intro { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; overflow: hidden; cursor: pointer;
    background: radial-gradient(36rem 28rem at 50% 50%, var(--c-halo), transparent 70%), var(--c-nuit);
    animation: intro-volet var(--d3) var(--e2) var(--intro-ouvre) both; }
  html.is-intro .intro .pastille { animation: intro-allume var(--d2) var(--e1) both; }
  html.is-intro .intro-trace { animation: intro-trace var(--d3) var(--e1) var(--d1) both; }
  html.is-intro .intro-nom { animation: intro-monte var(--d2) var(--e1) var(--d2) both; }
  html.is-intro .intro-sous { animation: intro-monte var(--d2) var(--e1) calc(var(--d2) + var(--d1) / 2) both; }
  html.is-intro .intro-filet { animation: intro-filet var(--d3) var(--e1) var(--d2) both; }
  html.is-intro .intro-in { animation: intro-sort var(--d3) var(--e2) var(--intro-ouvre) both; }
  html.is-intro .entete { animation: intro-descend var(--d3) var(--e1) var(--intro-fin) backwards; }
  html.is-intro .bulle-appel { animation: intro-allume var(--d2) var(--e1) calc(var(--intro-fin) + var(--d3)) backwards; }
  @keyframes intro-allume { from { opacity: 0; transform: scale(.82); } }
  @keyframes intro-trace { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
  @keyframes intro-monte { from { opacity: 0; transform: translateY(var(--s2)); } }
  @keyframes intro-filet { from { transform: scaleX(0); } }
  @keyframes intro-sort { to { opacity: 0; transform: translateY(calc(var(--s5) * -1)); } }
  @keyframes intro-volet { 70% { opacity: 1; } to { opacity: 0; transform: translateY(-100%); } }
  @keyframes intro-descend { from { opacity: 0; transform: translateY(-100%); } }

  /* ouverture du bandeau (mécanique de mezatec.be) : étiquette, titre, texte, boutons, « depuis », atouts entrent l'un
     après l'autre, à chaque arrivée sur l'accueil ; après le volet quand l'intro joue. Le h1 et la photo ne sont jamais
     masqués (R-ANIM-8) : le h1 monte sans fondu. */
  html.js .accueil-in > * { animation: monte var(--d3) var(--e1) calc(var(--intro-fin, 0s) + var(--d1) / 2 * var(--i, 0)) backwards; }
  html.js .accueil-in > h1 { animation-name: monte-seul; }
  html.js .defile-marques { animation: monte var(--d3) var(--e1) calc(var(--intro-fin, 0s) + var(--d2)) backwards; }
  @keyframes monte { from { opacity: 0; transform: translateY(var(--s4)); } }
  @keyframes monte-seul { from { transform: translateY(var(--s4)); } }
  .btn-wa { transition: background-color var(--d2) var(--e1); }
  .srv a::after { transition: transform var(--d2) var(--e1); }
  .srv-num { transition: color var(--d1) var(--e1); }
  .srv h3 { transition: transform var(--d2) var(--e1); }
  .srv-fleche { transition: background-color var(--d1) var(--e1), border-color var(--d1) var(--e1); }
  .apercu-cadre > * { transition: opacity var(--d3) var(--e1), transform var(--d3) var(--e1); }
  .mo img { transition: transform var(--d3) var(--e1); }
  .mo:hover img, .mo:focus-visible img { transform: scale(1.04); }
  .defile-btn, .vis-btn, .galerie-pause, .bandeau-pause { transition: border-color var(--d1) var(--e1); }
  .champ input, .champ select, .champ textarea { transition: border-color var(--d1) var(--e1); }
}

@media (prefers-reduced-motion: reduce) {
  .defile { scroll-behavior: auto; }
}
