/* Plomberie Aquaplex : aperçu (27 nov. 2026)
   Monde (direction A) : la maison du logo vue en coupe, du toit au drain. Personnage : les 3 barres à 45° du logo.
   Polices : leur logo « AQUAPLEX » = capitales grasses étroites, police exacte non identifiée; la plus proche en libre = Passion One (titres).
             « Plomberie » = Lato (texte). Hébergées avec le site (fonts/).
   Palette (60-30-10) : blanc 60; sarcelle #007BA8 + pétrole #025066 30; bleu vif #00A9FA formes seulement; jaune #FBBC05 = seulement ce qui se clique + étoiles.
   Grilles (6j) : hero = bento dans la forme du logo; « Où ça coule? » = split; services = hiérarchique; avis = défilement; fin = 3 panneaux.
   Systèmes : 12 colonnes dans --max 1232px, espacements en multiples de 8. Forme : coins coupés à 45° (parallèles aux barres).
   Mouvement : seulement transform et opacity; coupé par prefers-reduced-motion et par l'interrupteur (.no-motion). */

@font-face { font-family: "Passion One"; src: url(fonts/passion-one-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Passion One"; src: url(fonts/passion-one-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Lato"; src: url(fonts/lato-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Lato"; src: url(fonts/lato-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Lato"; src: url(fonts/lato-900.woff2) format("woff2"); font-weight: 900; font-display: swap; }

:root {
  --sarcelle: #007BA8;
  --petrole: #025066;
  --petrole-2: #013E50;
  --vif: #00A9FA;
  --moyen: #008BB2;
  --jaune: #FBBC05;
  --encre: #0B1F27;
  --texte: #24363D;
  --gris: #5A6B72;
  --blanc: #fff;
  --pale: #EAF6FB;
  --max: 1232px;
  --g: 24px;
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s6: 48px; --s8: 64px; --s12: 96px; --s16: 128px;
  --coin: 64px;
  --titre: "Passion One", "Arial Narrow", Impact, sans-serif;
  --corps: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ressort: cubic-bezier(.34, 1.4, .5, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--corps); font-size: 18px; line-height: 1.6; color: var(--texte); background: var(--blanc); overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; color: var(--petrole); }
h1, h2 { font-family: var(--titre); font-weight: 700; line-height: .98; letter-spacing: .005em; }
h2 { font-size: clamp(40px, 4.8vw, 68px); text-transform: uppercase; }
.h3, h3 { font-family: var(--corps); font-weight: 900; font-size: clamp(26px, 2.2vw, 32px); line-height: 1.15; letter-spacing: -.005em; }
p { margin: 0 0 var(--s2); }
.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.g12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--g); }
.saut { position: absolute; left: -999px; top: 8px; background: var(--encre); color: #fff; padding: 8px 16px; z-index: 99; }
.saut:focus { left: 16px; }
:focus-visible { outline: 3px solid var(--vif); outline-offset: 3px; }

/* ---------- Boutons : le jaune = seulement ce qui se clique ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px;
  border-radius: 999px; background: var(--jaune); color: var(--encre); font-weight: 900; font-size: 17px; line-height: 1.2;
  text-decoration: none; border: 0; cursor: pointer; font-family: var(--corps);
  box-shadow: 0 2px 0 var(--petrole-2), 0 10px 24px -8px rgba(1, 30, 40, .55);
  transition: transform .14s var(--ease), box-shadow .14s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 0 var(--petrole-2), 0 14px 28px -8px rgba(1, 30, 40, .6); }
.btn:active { transform: scale(.97); }
.btn--petit { min-height: 44px; padding: 10px 20px; font-size: 16px; }
.btn--grand { min-height: 60px; padding: 16px 32px; font-size: 19px; }
.tel { font-weight: 900; text-decoration: none; white-space: nowrap; }
.lien-tel { font-weight: 900; white-space: nowrap; display: inline-block; padding: 10px 2px; margin: -10px 0; }
.lien-fort { font-weight: 900; color: var(--petrole); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; display: inline-flex; min-height: 44px; align-items: center; }

/* ---------- Le souligné à la main : un trait d'eau ---------- */
.trait { position: relative; display: inline-block; white-space: nowrap; }
.trait svg { position: absolute; left: -2%; width: 104%; bottom: -.12em; height: .2em; overflow: visible; pointer-events: none; }
.trait path { fill: none; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; visibility: hidden; }
.trait--blanc path { stroke: #fff; }
.trait--vif path { stroke: var(--vif); }
.trait .t2 { opacity: .75; }
.trait.trace path { visibility: visible; stroke-dashoffset: 0; transition: stroke-dashoffset .7s var(--ease); }
.trait.trace .t2 { transition-delay: .35s; transition-duration: .5s; }
.no-motion .trait path { visibility: visible; stroke-dashoffset: 0; transition: none; }

/* ---------- En-tête blanc ---------- */
.tete { background: var(--blanc); position: relative; z-index: 20; }
.tete-in { display: flex; align-items: center; gap: var(--s3); min-height: 88px; }
.marque { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.marque-ico { width: 64px; height: auto; }
.marque-mots { display: flex; flex-direction: column; line-height: 1; }
.marque-mots b { font-family: var(--titre); font-weight: 700; font-size: 30px; color: var(--petrole); letter-spacing: .02em; }
.marque-mots span { font-size: 15px; color: #1DA2D7; margin-top: 2px; letter-spacing: .02em; }
.marque--blanc .marque-mots b, .marque--blanc .marque-mots span { color: #fff; }
.menu { margin-left: auto; }
.menu ul { display: flex; gap: var(--s1); list-style: none; margin: 0; padding: 0; }
.menu a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px; background: var(--pale); color: var(--petrole); font-weight: 700; font-size: 16px; text-decoration: none; transition: background .12s; }
.menu a:hover { background: #D3EDF7; }
.menu a[aria-current="page"] { background: var(--petrole); color: #fff; }
.tete-action { display: flex; align-items: center; gap: var(--s2); }
.tel--tete { color: var(--petrole); font-size: 18px; min-height: 44px; display: inline-flex; align-items: center; }

/* La pilule flottante : le toit, Appeler, Soumission */
.flotte {
  position: fixed; left: 50%; bottom: 16px; z-index: 30; display: flex; align-items: center; gap: var(--s1);
  padding: 6px 6px 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .96); box-shadow: 0 10px 30px -10px rgba(1, 40, 55, .45);
  transform: translate(-50%, 160%); opacity: 0; transition: transform .25s var(--ease), opacity .2s; pointer-events: none;
}
.flotte.on { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.flotte-toit { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; }
.flotte-ico { width: 40px; }
.flotte-tel { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--pale); color: var(--petrole); font-weight: 900; text-decoration: none; }

/* ---------- Hero sarcelle ---------- */
.hero {
  position: relative; background: var(--sarcelle); color: #fff; overflow: clip;
  padding: var(--s8) 0 var(--s12);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--coin)), calc(100% - var(--coin)) 100%, 0 100%);
}
.hero-contour { position: absolute; left: max(-120px, calc(50% - 900px)); top: -40px; width: min(980px, 90vw); height: auto; opacity: .2; pointer-events: none; }
.hero-contour path, .hero-contour rect { stroke-dasharray: 1; stroke-dashoffset: 0; }
.hero-g { position: relative; align-items: center; }
.hero-txt { grid-column: 1 / span 7; }
.hero h1 { color: #fff; font-size: clamp(50px, 6.5vw, 96px); text-transform: none; }
.hero-sous { font-size: 20px; line-height: 1.5; max-width: 34em; margin: var(--s3) 0 var(--s4); color: #F2FAFD; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); margin-bottom: var(--s4); }
.tel--hero { color: #fff; font-size: 22px; min-height: 48px; display: inline-flex; align-items: center; padding: 0 4px; border-bottom: 2px solid rgba(255, 255, 255, .5); }
.hero .btn { box-shadow: 0 3px 0 var(--petrole-2), 0 16px 30px -10px rgba(0, 20, 30, .7); }
.hero-toit { grid-column: 8 / span 5; position: relative; }
.toit { width: 124%; margin: 0 -12% 0 -12%; height: auto; overflow: visible; display: block; }
.toit .b { transform-box: view-box; }
.rbq-t { font: 900 15px var(--corps); fill: var(--encre); }
.rbq-n { font: 900 15px var(--corps); fill: var(--encre); letter-spacing: .01em; }
.toit-legende { font-size: 14px; color: #E2F3FA; margin: var(--s1) 0 0; text-align: right; }

/* Le geste 1 : le toit qui se pose (les barres glissent sur leur axe à 45°, élan puis léger ressort) */
.js:not(.no-motion) .toit .b { opacity: 0; transform: translate(-56px, -56px); }
.toit.pose .b { animation: pose .6s var(--ressort) forwards; }
.toit.pose .b1 { animation-delay: .05s; }
.toit.pose .b2 { animation-delay: .17s; }
.toit.pose .b3 { animation-delay: .29s; }
@keyframes pose {
  0% { opacity: 0; transform: translate(-56px, -56px); }
  18% { opacity: 1; transform: translate(-62px, -62px); }
  100% { opacity: 1; transform: translate(0, 0); }
}

/* Badge Google */
.note-g { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 10px; border-radius: 999px; background: #fff; color: var(--encre); text-decoration: none; font-size: 16px; min-height: 44px; }
.g-logo { width: 20px; height: 20px; flex-shrink: 0; }
.etoiles { display: inline-flex; gap: 1px; }
.etoile { width: 16px; height: 16px; fill: var(--jaune); }
.note-txt b { font-weight: 900; }
.note-g--grand { font-size: 18px; padding: 10px 20px 10px 12px; box-shadow: 0 0 0 2px #D3EDF7; }

/* Les pilules des pièces, à cheval sur le bas du hero */
.pilules { position: relative; z-index: 5; margin-top: -28px; }
.pilules ul { display: flex; flex-wrap: wrap; gap: var(--s1); list-style: none; margin: 0; padding: 0; }
.pilules a {
  display: inline-flex; align-items: center; min-height: 52px; padding: 12px 24px; border-radius: 999px; background: #fff;
  color: var(--petrole); font-weight: 900; text-decoration: none; box-shadow: 0 8px 22px -10px rgba(1, 50, 66, .55), 0 0 0 2px var(--pale);
  transition: transform .14s var(--ease), background .14s;
}
.pilules a::before { content: ""; width: 10px; height: 10px; background: var(--vif); transform: rotate(45deg); margin-right: 12px; }
.pilules a:hover { transform: translateY(-2px); background: var(--pale); }

/* ---------- « Où ça coule? » ---------- */
.coupe { padding: var(--s12) 0 var(--s12); position: relative; background: var(--pale); }
.coupe-g { align-items: start; }
.coupe-gauche { grid-column: 1 / span 5; }
.coupe-droite { grid-column: 6 / span 7; }
.coupe-intro { margin: var(--s2) 0 var(--s4); color: var(--gris); max-width: 30em; }
.coupe-pan h3 { color: var(--petrole); margin-bottom: var(--s2); }
.coupe-pan p { margin-bottom: var(--s2); }
.coupe-pan .btn { margin-top: var(--s3); }
.liste { list-style: none; padding: 0; margin: 0 0 var(--s3); }
.liste li { position: relative; padding-left: 28px; margin-bottom: 6px; }
.liste li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 11px; height: 11px; background: var(--vif); transform: rotate(45deg); }
.coupe-ph { margin: 0; }
.coupe-ph img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.coupe-pan.change [data-pan], .coupe-pan.change .coupe-ph img { opacity: .2; }
.coupe-pan [data-pan], .coupe-ph img { transition: opacity .18s var(--ease); }

/* La forme : coins coupés à 45° comme les bouts des barres du logo */
.forme-45 { position: relative; margin: 0; }
.forme-45 img { clip-path: polygon(var(--coin) 0, 100% 0, 100% calc(100% - var(--coin)), calc(100% - var(--coin)) 100%, 0 100%, 0 var(--coin)); }
.forme-45::after { content: ""; position: absolute; top: calc(var(--coin) * .5 - 6px); left: -14px; width: calc(var(--coin) * 1.2); height: 12px; background: var(--vif); transform: rotate(-45deg); transform-origin: center; pointer-events: none; }
.forme-45 figcaption { position: absolute; right: calc(var(--coin) + 8px); bottom: 8px; font-size: 13px; color: #fff; background: rgba(1, 40, 52, .72); padding: 2px 10px; border-radius: 999px; }

/* La maison en coupe */
.maison { position: relative; max-width: 640px; margin-left: auto; margin-top: -200px; }
.maison-toit { width: 76%; display: block; margin: 0 auto -40px 4%; position: relative; z-index: 2; }
.mt { fill: var(--vif); }
.mt2 { fill: var(--moyen); }
.mt3 { fill: var(--petrole); }
.maison-murs { position: relative; border: 4px solid var(--petrole); border-top-width: 10px; background: #fff; padding: 12px; display: grid; gap: 12px; }
.etage { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.etage--haut { grid-template-columns: 1fr; }
.etage--bas { background: var(--pale); margin: 0 -12px; padding: 12px; }
.sol, .dalle { margin: 0 -12px; height: 0; border-top: 4px solid var(--petrole); position: relative; }
.sol span, .dalle span { position: absolute; right: 12px; top: 4px; font-size: 13px; font-weight: 700; color: var(--gris); background: #fff; padding: 0 6px; }
.dalle { border-top: 4px dashed var(--moyen); margin-bottom: -12px; }
.dalle span { top: 6px; background: transparent; }
.maison-murs { padding-bottom: 40px; }
.piece {
  position: relative; display: flex; align-items: center; gap: 16px; min-height: 112px; padding: 16px 20px;
  border: 2px solid #CFE6EF; background: #fff; color: var(--petrole); cursor: pointer; font: inherit; text-align: left;
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.piece b { font-weight: 900; font-size: 20px; line-height: 1.2; position: relative; z-index: 2; }
.picto { width: 52px; height: 52px; flex-shrink: 0; fill: none; stroke: var(--petrole); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; position: relative; z-index: 2; }
.piece-fond { position: absolute; inset: 0; overflow: hidden; z-index: 1; pointer-events: none; }
.piece-barre { position: absolute; z-index: 1; left: 50%; top: 50%; width: 180%; height: 44px; background: var(--vif); opacity: .9; transform: translate(-50%, -50%) rotate(-45deg) scaleX(0); transition: transform .2s var(--ease); }
.piece:hover { border-color: var(--vif); }
.piece[aria-pressed="true"] { border-color: var(--petrole); background: var(--pale); }
.piece[aria-pressed="true"] .piece-barre { transform: translate(-50%, -50%) rotate(-45deg) scaleX(1); }
.piece[aria-pressed="true"] b, .piece[aria-pressed="true"] .picto { color: var(--encre); }
.commercial { margin: var(--s3) 0 0 auto; font-size: 17px; color: var(--gris); max-width: 640px; }

/* ---------- Services : bande pétrole, hiérarchique ---------- */
.bande-petrole { background: var(--petrole); color: #E6F3F8; }
.bande-petrole h2, .bande-petrole h3 { color: #fff; }
.services {
  position: relative; padding: var(--s12) 0 0;
  clip-path: polygon(var(--coin) 0, 100% 0, 100% 100%, 0 100%, 0 var(--coin));
}
.serv-g { margin-top: var(--s6); align-items: start; }
.serv--grand { grid-column: 1 / span 7; }
.serv-cote { grid-column: 8 / span 5; display: grid; gap: var(--s6); }
.serv h3 { margin: var(--s3) 0 var(--s1); }
.serv p { margin: 0; max-width: 34em; }
.serv-ph img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.serv--grand .serv-ph img { aspect-ratio: 9 / 10; }
.serv-bas { padding: var(--s6) 0 var(--s8); }
.serv-bas .lien-fort { color: #fff; }

/* ---------- Avis ---------- */
.avis, .avis-page { position: relative; padding: var(--s12) 0 var(--s8); background: #fff; overflow: clip; }
.avis-carre { position: absolute; right: max(-60px, calc(50% - 760px)); top: -40px; width: 260px; height: 260px; opacity: .95; pointer-events: none; }
.avis-tete { text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--s3); position: relative; }
.avis-tete h2 { max-width: 16em; }
.avis-mots p { margin: 0 0 var(--s1); font-size: 16px; color: var(--gris); }
.avis-mots ul { display: flex; gap: var(--s1); justify-content: center; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.avis-mots li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 999px; background: var(--pale); color: var(--petrole); font-weight: 900; }
.avis-mots li svg { width: 16px; height: 16px; fill: none; stroke: var(--sarcelle); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.avis-mots li span { font-weight: 400; color: var(--gris); }
.avis-rangees { margin-top: var(--s6); display: grid; gap: var(--s3); }
.defile { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.defile-rail { display: flex; gap: var(--s3); width: max-content; animation: defile 90s linear infinite; }
.defile--inv .defile-rail { animation-direction: reverse; animation-duration: 100s; }
.defile:hover .defile-rail, .defile:focus-within .defile-rail, .defile.tenu .defile-rail { animation-play-state: paused; }
@keyframes defile { to { transform: translateX(-50%); } }
.av { margin: 0; width: 380px; flex-shrink: 0; padding: var(--s3); background: var(--pale); color: var(--texte); display: flex; flex-direction: column; gap: 12px;
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%); }
.av--fonce { background: var(--sarcelle); color: #fff; }
.av blockquote { margin: 0; flex: 1; }
.av p { margin: 0; font-size: 17px; line-height: 1.55; }
.av figcaption { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 15px; }
.av figcaption span { display: inline-flex; align-items: center; gap: 6px; color: var(--gris); }
.av--fonce figcaption span { color: #DDF0F7; }
.av figcaption .g-logo { width: 16px; height: 16px; }
.avis-bas { display: flex; flex-direction: column; align-items: center; gap: var(--s4); margin-top: var(--s6); }
.membres { text-align: center; }
.membres-t { font-weight: 900; color: var(--petrole); margin-bottom: var(--s2); }
.membres ul { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s6); list-style: none; padding: 0; margin: 0; }
.membres li { display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 260px; font-size: 14px; color: var(--gris); line-height: 1.35; }
.membres img { height: 56px; width: auto; filter: grayscale(1) contrast(1.1); mix-blend-mode: multiply; }

/* ---------- Fin : le toit qui ferme ---------- */
.fin { position: relative; background: var(--sarcelle); color: #fff; padding: var(--s16) 0 0; margin-top: var(--s8); }
.fin::before { content: ""; position: absolute; right: 0; top: 0; border-top: var(--coin) solid #fff; border-left: var(--coin) solid transparent; }
.fin-g { position: relative; z-index: 3; margin-bottom: calc(var(--s12) * -1); }
.fin + .pied, main:has(.fin:last-child) + .pied { padding-top: calc(var(--s12) + var(--s8)); }
.fin h2 { color: #fff; max-width: 14em; }
.fin-toit { position: absolute; right: max(16px, calc(50% - 600px)); top: 24px; width: 220px; fill: rgba(255, 255, 255, .16); pointer-events: none; }
.fin-g { margin-top: var(--s6); align-items: stretch; }
.fin-bloc { padding: var(--s4); clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 40px, 100% 100%, 40px 100%, 0 calc(100% - 40px)); }
.fin-appel { grid-column: 1 / span 4; background: var(--petrole); }
.fin-mini { font-weight: 900; color: #CDEBF5; margin-bottom: var(--s1); }
.tel-geant { display: inline-block; font-family: var(--titre); font-weight: 700; font-size: clamp(40px, 3.6vw, 52px); line-height: 1.05; color: #fff; text-decoration: none; white-space: nowrap; }
.arc { display: block; width: 100%; max-width: 330px; height: 26px; margin: 4px 0 var(--s3); overflow: visible; }
.arc path { fill: none; stroke: var(--vif); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.arc.trace path { stroke-dashoffset: 0; transition: stroke-dashoffset .6s var(--ease); }
.no-motion .arc path, .arc.fixe path { stroke-dashoffset: 0; transition: none; }
.fin-appel a:not(.tel-geant) { color: #fff; }
.fin-form { grid-column: 5 / span 5; background: #fff; color: var(--texte); }
.fin-form--large { grid-column: 5 / span 8; }
.fin-villes { grid-column: 10 / span 3; background: var(--vif); color: var(--encre); }
.fin-villes h3 { color: var(--encre); font-size: 24px; margin-bottom: var(--s2); }
.fin-villes ul { list-style: none; padding: 0; margin: 0 0 var(--s2); font-weight: 700; font-size: 16px; }
.fin-villes li { break-inside: avoid; margin-bottom: 4px; }
.fin-villes p { font-size: 15px; line-height: 1.45; margin: 0; }
.fin-villes-ligne { margin-top: var(--s4); color: #F2FAFD; }

/* Formulaire */
.form { display: grid; gap: var(--s2); }
.champ { display: flex; flex-direction: column; gap: 4px; }
.champ label { font-weight: 900; color: var(--petrole); font-size: 16px; }
.champ label span { font-weight: 400; color: var(--gris); }
.champ input, .champ select, .champ textarea { font: inherit; font-size: 17px; min-height: 48px; padding: 10px 14px; border: 2px solid #B9D8E4; border-radius: 8px; background: #fff; color: var(--encre); width: 100%; }
.champ input:focus, .champ select:focus, .champ textarea:focus { border-color: var(--sarcelle); outline: 3px solid rgba(0, 169, 250, .35); outline-offset: 0; }
.champ.err input { border-color: #B3261E; animation: tremble .3s var(--ease); }
.erreur { color: #B3261E; font-size: 15px; font-weight: 700; min-height: 0; }
@keyframes tremble { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.btn--plein { width: auto; }
.form .btn { justify-self: start; }
.form-note { font-size: 14px; color: var(--gris); margin: 0; }
.merci { display: flex; gap: var(--s2); align-items: flex-start; }
.merci[hidden] { display: none; }
.merci h3 { font-size: 24px; margin-bottom: var(--s1); }
.coche { width: 56px; height: 56px; flex-shrink: 0; fill: none; stroke: var(--sarcelle); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.coche circle, .coche path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: coche .16s var(--ease) forwards; }
.coche path { animation-delay: .12s; animation-duration: .16s; }
@keyframes coche { to { stroke-dashoffset: 0; } }
.no-motion .coche circle, .no-motion .coche path { animation: none; stroke-dashoffset: 0; }

/* ---------- Pied pétrole ---------- */
.pied { background: var(--petrole); color: #D8ECF3; padding: var(--s8) 0 var(--s4); font-size: 16px; }
.pied a { color: #fff; }
.pied p a, .fin-appel p a { display: inline-block; padding: 10px 0; margin: -10px 0; }
.pied-g { display: grid; grid-template-columns: 5fr 3fr 4fr; gap: var(--s4); }
.pied-t { font-family: var(--corps); font-weight: 900; font-size: 18px; color: #fff; text-transform: none; margin-bottom: var(--s2); }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li a { display: inline-flex; min-height: 40px; align-items: center; }
.marque--pied .marque-ico { width: 56px; }
.pied-tel { margin-top: var(--s3); }
.tel--pied { font-family: var(--titre); font-weight: 700; font-size: 34px; color: #fff; }
.pied-bas { border-top: 1px solid rgba(255, 255, 255, .2); margin-top: var(--s6); padding-top: var(--s3); font-size: 14px; }
.pied-fin { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--s2); }
.mvt { font: inherit; font-size: 14px; color: #fff; background: transparent; border: 1px solid rgba(255, 255, 255, .5); border-radius: 999px; padding: 8px 16px; min-height: 40px; cursor: pointer; }

/* ---------- Pages intérieures ---------- */
.tp {
  position: relative; background: var(--sarcelle); color: #fff; overflow: clip; padding: var(--s3) 0 var(--s12);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--coin)), calc(100% - var(--coin)) 100%, 0 100%);
}
.tp-contour { position: absolute; right: max(-200px, calc(50% - 900px)); top: -60px; width: min(820px, 80vw); opacity: .16; pointer-events: none; }
.fil { font-size: 15px; margin: 0 0 var(--s6); color: #E2F3FA; }
.fil a { color: #fff; display: inline-block; padding: 10px 0; margin: -10px 0; }
.tp-g { align-items: center; position: relative; }
.tp-txt { grid-column: 1 / span 8; }
.tp-g--ph .tp-txt { grid-column: 1 / span 7; }
.tp h1 { color: #fff; font-size: clamp(44px, 5.2vw, 76px); }
.tp-intro { font-size: 20px; margin: var(--s3) 0 var(--s4); max-width: 34em; }
.tp-ph { grid-column: 8 / span 5; }
.tp-ph img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tp-ph::after { background: var(--jaune); display: none; }
.tp + section { padding-top: var(--s12); }
.tp + .fin { margin-top: 0; }

.sp { padding: var(--s12) 0; position: relative; }
.sp + .sp { padding-top: 0; }
.sp--sarcelle { background: var(--pale); padding-top: var(--s12) !important; clip-path: polygon(var(--coin) 0, 100% 0, 100% calc(100% - var(--coin)), calc(100% - var(--coin)) 100%, 0 100%, 0 var(--coin)); }
.sp--sarcelle + .sp { padding-top: var(--s12); }
.sp-g { align-items: center; }
.sp-ph { grid-column: 1 / span 6; }
.sp-ph img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.sp-txt { grid-column: 8 / span 5; }
.sp--inv .sp-ph { grid-column: 7 / span 6; order: 2; }
.sp--inv .sp-txt { grid-column: 1 / span 5; order: 1; }
.sp h2 { font-size: clamp(36px, 3.6vw, 52px); margin-bottom: var(--s3); }
.sp-txt .btn { margin-top: var(--s1); }

.appel-bande { position: relative; background: var(--petrole); color: #fff; padding: var(--s12) 0; margin-top: var(--s8); clip-path: polygon(0 0, calc(100% - var(--coin)) 0, 100% var(--coin), 100% 100%, 0 100%); }
.appel-in { display: grid; grid-template-columns: 5fr 4fr 3fr; gap: var(--s4); align-items: center; }
.appel-bande h2 { color: #fff; font-size: clamp(36px, 3.6vw, 52px); }
.appel-act .arc { margin-bottom: 0; }
.appel-bande .btn { justify-self: end; }

.a-voir { padding: var(--s6) 0 var(--s8); display: flex; gap: var(--s3); align-items: center; flex-wrap: wrap; }
.a-voir p { margin: 0; font-weight: 900; color: var(--petrole); }
.a-voir ul { display: flex; gap: var(--s1); flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.a-voir a { display: inline-flex; min-height: 44px; align-items: center; padding: 8px 16px; border-radius: 999px; background: var(--pale); color: var(--petrole); font-weight: 700; text-decoration: none; }

.masonry { columns: 3 320px; column-gap: var(--s3); margin-top: var(--s6); }
.masonry .av { width: auto; break-inside: avoid; margin-bottom: var(--s3); }

.manuscrit { padding-bottom: var(--s8); }
.manu-g { max-width: 760px; }
.manu-g h2 { margin-bottom: var(--s4); }
.manu-g h3 { margin: var(--s6) 0 var(--s2); }
.manu-cite { font-family: var(--titre); font-weight: 400; font-size: clamp(28px, 2.6vw, 36px); line-height: 1.2; color: var(--sarcelle); margin-bottom: var(--s1); }
.manu-src { font-size: 15px; color: var(--gris); margin-bottom: var(--s4); }
.manu-g .membres { text-align: left; margin-top: var(--s3); }
.manu-g .membres ul { justify-content: flex-start; }
.manu-g .membres-t { display: none; }

/* ---------- Tablette et cell ---------- */
@media (max-width: 1080px) {
  .menu a { padding: 8px 12px; font-size: 15px; }
  .fin-appel { grid-column: 1 / span 6; }
  .fin-form { grid-column: 7 / span 6; }
  .fin-villes { grid-column: 1 / -1; }
  .fin-villes ul { columns: 3; }
}
@media (max-width: 900px) {
  body { font-size: 17px; }
  :root { --coin: 40px; }
  .tete-in { flex-wrap: wrap; min-height: 0; padding: 12px 0 0; gap: 12px; }
  .marque-ico { width: 52px; }
  .marque-mots b { font-size: 26px; }
  .tete-action { margin-left: auto; }
  .menu { order: 3; width: calc(100% + 32px); margin: 0 -16px; overflow-x: auto; scrollbar-width: none; padding: 4px 16px 12px; }
  .menu::-webkit-scrollbar { display: none; }
  .menu ul { width: max-content; }
  .hero { padding: var(--s6) 0 var(--s8); }
  .hero-txt, .hero-toit { grid-column: 1 / -1; }
  .hero h1 { font-size: clamp(46px, 13.4vw, 64px); }
  .hero-sous { font-size: 18px; }
  .hero-toit { max-width: 420px; margin: 0 auto; }
  .toit { width: 100%; margin: 0; }
  .toit-legende { text-align: center; }
  .hero-contour { width: 160vw; left: -30vw; top: 20px; }
  .pilules { margin-top: -26px; }
  .pilules ul { flex-wrap: nowrap; overflow-x: auto; padding: 4px 0 16px; scrollbar-width: none; }
  .pilules ul::-webkit-scrollbar { display: none; }
  .pilules a { white-space: nowrap; }
  .coupe { padding: var(--s6) 0 var(--s8); }
  .coupe-gauche { display: contents; }
  .coupe-gauche > *, .coupe-droite { grid-column: 1 / -1; }
  .coupe-gauche h2 { order: 1; }
  .coupe-intro { order: 2; margin: 0; }
  .coupe-droite { order: 3; }
  .coupe-pan { order: 4; }
  .coupe-g { gap: var(--s4); }
  .maison { margin: 0 auto; }
  .piece { min-height: 88px; padding: 12px; gap: 10px; }
  .piece b { font-size: 17px; }
  .picto { width: 40px; height: 40px; }
  .commercial { text-align: left; }
  .serv--grand, .serv-cote { grid-column: 1 / -1; }
  .avis-carre { width: 150px; height: 150px; right: -40px; top: -30px; }
  .av { width: 300px; }
  .fin { padding: var(--s12) 0 var(--s8); }
  .fin-appel, .fin-form, .fin-form--large, .fin-villes { grid-column: 1 / -1; }
  .fin-villes ul { columns: 2; }
  .fin-toit { width: 120px; }
  .pied-g { grid-template-columns: 1fr; }
  .tp-txt, .tp-g--ph .tp-txt, .tp-ph { grid-column: 1 / -1; }
  .sp-ph, .sp-txt, .sp--inv .sp-ph, .sp--inv .sp-txt { grid-column: 1 / -1; order: 0; }
  .appel-in { grid-template-columns: 1fr; }
  .appel-bande .btn { justify-self: start; }
  .h3, h3 { font-size: 26px; }
  h2 { font-size: clamp(38px, 10.4vw, 52px); }
}
@media (max-width: 420px) {
  .tete-action .btn { padding: 10px 16px; font-size: 15px; }
  .tel-geant { font-size: 40px; }
}

/* ---------- Mouvement réduit ou coupé ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .toit .b { opacity: 1 !important; transform: none !important; }
  .trait path, .arc path { visibility: visible; stroke-dashoffset: 0 !important; }
  .defile { overflow-x: auto; }
  .defile-rail { animation: none !important; }
}
.no-motion *, .no-motion *::before, .no-motion *::after { animation: none !important; transition: none !important; }
.no-motion .toit .b { opacity: 1; transform: none; }
.no-motion .defile { overflow-x: auto; }
.no-motion .coche circle, .no-motion .coche path, .no-motion .arc path { stroke-dashoffset: 0; }
.form[hidden] { display: none; }
.fin--page { padding-bottom: var(--s12); }
.fin--page .fin-g { margin-bottom: 0; }
/* Pages Avis et À propos : jamais 2 écrans blancs de suite (fond pâle tiré de la sarcelle + les barres du logo) */
.avis-page { background: var(--pale); }
.avis-page .av:not(.av--fonce) { background: #fff; }
.manuscrit { position: relative; background: var(--pale); padding-bottom: var(--s12); overflow: clip; }
.manu-barres { position: absolute; right: max(0px, calc(50% - 720px)); top: 160px; width: min(320px, 22vw); pointer-events: none; }
@media (max-width: 1100px) { .manu-barres { display: none; } }

/* ===== Tour 2 du QA ===== */
/* Le carré du hero = la note Google */
.toit-note { cursor: pointer; }
.tn-note { font: 700 34px var(--titre); fill: var(--encre); }
.tn-txt { font: 900 12.5px var(--corps); fill: var(--encre); }
.toit-note:focus-visible rect { outline: none; stroke: #fff; stroke-width: 4; }
.hero-txt .hero-actions { margin-bottom: 0; }

/* Les 3 barres dans l'en-tête des pages intérieures (camion petit) */
.tp-toit { grid-column: 9 / span 4; }
.toit--tp { width: 100%; margin: 0; }
.js:not(.no-motion) .toit--tp .b { opacity: 1; transform: none; }

/* Fin : le toit qui ferme. Carré (appel), barre moyenne (formulaire), toit avec cheminée (villes) :
   les 3 blocs montent en escalier comme les barres du logo, coin coupé à 45° du même côté, et se posent à l'arrivée */
.fin-bloc { clip-path: polygon(0 0, calc(100% - 72px) 0, 100% 72px, 100% 100%, 0 100%); }
.fin-appel { background: var(--vif); color: var(--encre); margin-top: 96px; }
.fin-appel .tel-geant { color: var(--encre); }
.fin-appel .arc path { stroke: var(--petrole); }
.fin-appel a:not(.tel-geant), .fin--page .fin-appel a:not(.tel-geant) { color: var(--encre); }
.fin-form { margin-top: 48px; border-top: 12px solid var(--moyen); }
.fin-villes { background: var(--petrole); color: #fff; }
.fin-villes h3 { color: #fff; }
.fin-villes p { color: #DCEFF6; }
.fin-g { align-items: start; }
.fin-g > .fin-bloc { position: relative; }
.cheminee { position: absolute; right: 104px; top: 0; width: 40px; height: 28px; background: var(--petrole-2); }
.fin-form--large .cheminee { background: var(--petrole); top: 0; }
.js:not(.no-motion) .fin-g .fin-bloc { transform: translate(-40px, -40px); opacity: 0; }
.js .fin-g.pose .fin-bloc, .js:not(.no-motion) .fin-g.pose .fin-bloc { transform: none; opacity: 1; transition: transform .6s var(--ressort), opacity .3s; }
.js:not(.no-motion) .fin-g.pose .fin-form { transition-delay: .12s; }
.js:not(.no-motion) .fin-g.pose .fin-villes { transition-delay: .24s; }
.fin--page .fin-appel { margin-top: 48px; }
.fin--page .fin-form--large { margin-top: 0; }
.no-motion .fin-g .fin-bloc { transform: none; opacity: 1; }

/* Bande « Membre de » */
.membres-bande { position: relative; background: var(--pale); padding: var(--s8) 0 var(--s12); overflow: clip; }
.mb-barre { position: absolute; left: max(-260px, calc(50% - 900px)); top: -120px; width: 520px; pointer-events: none; }
.fin { margin-top: 0; }
.fin::before { border-top-color: var(--pale); }
.fin--page::before { border-top-color: #fff; }

/* Services : bandes qui alternent */
.sp { padding: var(--s12) 0 !important; }
.sp:nth-of-type(5n+1) { background: var(--pale); }
.sp:nth-of-type(5n+2) { background: #fff; }
.sp:nth-of-type(5n+3) { background: var(--petrole); color: #E6F3F8; clip-path: polygon(var(--coin) 0, 100% 0, 100% 100%, 0 100%, 0 var(--coin)); }
.sp:nth-of-type(5n+3) h2 { color: #fff; }
.sp:nth-of-type(5n+4) { background: var(--pale); }
.sp:nth-of-type(5n+5) { background: var(--sarcelle); color: #fff; }
.sp:nth-of-type(5n+5) h2 { color: #fff; }
.sp--sarcelle { clip-path: none; }
.sp + .appel-bande { margin-top: 0; }

/* Bande d'appel : le toit petit, en haut, derrière le contenu */
.appel-toit { right: max(16px, calc(50% - 600px)); top: 12px; width: 120px; z-index: 0; }
.appel-in { position: relative; z-index: 1; }

/* Page Avis : le mur coupé par une bande, moins d'avis d'un coup sur cell */
.avis-plus { display: none; justify-content: center; padding-top: var(--s3); }
.bouton-lien { background: none; border: 0; font: inherit; font-weight: 900; cursor: pointer; }
.avis-bande { position: relative; background: var(--sarcelle); color: #fff; padding: var(--s12) 0; overflow: clip; }
.toit--bande { position: absolute; right: max(16px, calc(50% - 620px)); top: 50%; transform: translateY(-50%); width: min(360px, 32vw); margin: 0; }
.js:not(.no-motion) .toit--bande .b { opacity: 1; transform: none; }
.avis-bande-in { position: relative; }
.avis-bande-t { font: 700 clamp(30px, 3vw, 44px)/1.15 var(--titre); width: 62%; margin-bottom: var(--s2); }
.avis-bande-n { font-weight: 700; color: #DCEFF6; margin: 0; }
.avis-page--2 { padding-top: var(--s8); }

@media (max-width: 900px) {
  .pied { padding-bottom: 112px; }
  .hero-g { gap: var(--s2); }
  .hero-toit { order: -1; max-width: 230px; margin: 0; }
  .tp-toit { grid-column: 1 / -1; max-width: 240px; }
  .fin-appel, .fin-form, .fin--page .fin-appel { margin-top: 0; }
  .avis-plus { display: flex; }
  [data-plus-groupe]:not(.ouvert) .av:nth-child(n+7) { display: none; }
  .avis-page--2 [data-plus-groupe]:not(.ouvert) { display: none; }
  .toit--bande { position: relative; transform: none; top: auto; right: auto; width: 200px; margin: 0 0 var(--s3) 16px; }
  .avis-bande-t { width: auto; }
  .tete-in { gap: 8px; }
  .tel--tete { font-size: 17px; }
}

/* Note Google : dans le carré sur ordi; sur cell le carré est trop petit pour la lire, elle passe en pastille sous le bouton */
.note-g--cell { display: none; }
@media (max-width: 900px) {
  .note-g--cell { display: inline-flex; margin-top: var(--s3); }
  .toit-note text, .toit-note g { display: none; }
}

/* Contact : la bande du formulaire en pétrole (pas 2 sarcelles de suite); pas de trou blanc avant les bandes d appel */
.fin--page { background: var(--petrole); }
.fin--page::before { display: none; }
.manuscrit + .appel-bande, .avis-page + .appel-bande { margin-top: 0; }

/* ===== Tour 3 du QA ===== */
.pied-a .marque + p { margin-top: var(--s2); }
.forme-barres::after { display: none; }
.ph-barres { object-fit: cover; }
.coupe-ph figcaption[hidden] { display: none; }
.av figcaption span { white-space: nowrap; flex-shrink: 0; }
@media (max-width: 900px) {
  /* le dernier panneau de la fin ne se fond plus dans le pied */
  .fin { padding-bottom: var(--s6); }
  .fin-g { margin-bottom: 0; }
  main:has(.fin:last-child) + .pied { padding-top: var(--s8); }
  /* page Avis : pas de bloc vide autour du lien quand le 2e groupe est fermé */
  .avis-page--2 { padding-top: 0; }
  .avis-page--2 .masonry:not(.ouvert) { margin: 0; }
  .avis-page--2 { padding-top: var(--s4); }
  .avis-page--2 .avis-bas { margin-top: 0; }
  /* bande d'avis sur cell : on glisse au doigt, une carte entière à la fois */
  .defile { overflow-x: auto; scroll-snap-type: x mandatory; mask-image: none; -webkit-mask-image: none; scrollbar-width: none; padding: 0 16px; scroll-padding: 0 16px; }
  .defile::-webkit-scrollbar { display: none; }
  .defile-rail { animation: none !important; gap: var(--s2); }
  .defile .av { width: calc(100vw - 56px); max-width: 340px; scroll-snap-align: start; }
  .defile .av[aria-hidden="true"] { display: none; }
}

.avis-plus[hidden] { display: none !important; }

/* Lien d'attribution (CC BY-SA) dans la légende des photos */
.forme-45 figcaption a { color: #fff; display: inline-block; padding: 10px 0; margin: -10px 0; }
@media (max-width: 900px) { .forme-45 figcaption { max-width: calc(100% - var(--coin) - 24px); } }
