/* =====================================================================
   Matrice Plombier v3 — « La salle de bain en maquette » (19/10/2026)
   Porcelaine et bleu canard : la page est le plan de travail sur lequel la maquette
   (socle bleu canard, cuivre, laiton, chêne) est posée. Encre bleu canard, un seul
   accent, le cuivre (#9C4F27), utilisé avec parcimonie. Système tiré d'UI/UX Pro Max
   (« luxury bathroom », exaggerated minimalism) ; le bleu + orange proposé d'abord est écarté.
   Titres Cormorant Garamond, texte DM Sans.
   ===================================================================== */

:root {
  --fond: #F3F1EC;           /* porcelaine : fond de page */
  --encre: #12393F;          /* bleu canard : titres, boutons pleins, socle de la maquette */
  --texte: #34403F;          /* texte courant */
  --gris: #5D6968;           /* texte secondaire */
  --cuivre: #9C4F27;         /* l'accent : le cuivre (mots en italique, numéros, traits de rappel) */
  --eau: #2F7C85;            /* la goutte du logo quand l'eau coule */
  --nuit: #0F2F34;           /* pied de page */
  --filet: rgba(18, 57, 63, .14);
  --filet-fort: rgba(18, 57, 63, .32);
  --voile: rgba(18, 57, 63, .045);   /* cartes, champs */

  --titre: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --police: 'DM Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --entete-h: 5rem;
  --gouttiere: clamp(1.25rem, 5vw, 6rem);
  --colonne: min(40vw, 36rem);          /* texte à gauche de la maquette */
  --volet: clamp(15rem, 21vw, 22rem);   /* colonnes de part et d'autre de la maquette centrée */
  --ecran-h: 40vh;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-padding-top: calc(var(--entete-h) + 1rem); background: var(--fond); }
body {
  margin: 0; font-family: var(--police); font-weight: 400; font-size: 1.0625rem; line-height: 1.66;
  color: var(--texte); background-color: var(--fond); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, blockquote, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; }
em { font-style: italic; }
::selection { background: var(--encre); color: var(--fond); }
:focus-visible { outline: 2px solid var(--cuivre); outline-offset: 3px; }
a, button, summary, [role="tab"] { touch-action: manipulation; }
button, summary, .bouton, [role="tab"], .barre-appel a { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }

.evitement { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--encre); color: var(--fond); padding: .7rem 1rem; text-decoration: none; }
.evitement:focus { top: 1rem; }

.bandeau-demo { position: relative; z-index: 60; background: var(--encre); color: #C9D6D5; font-size: .8125rem; line-height: 1.4; text-align: center; padding: .45rem 1rem; }

/* ---------------------------------------------------------- en-tête */
.entete { position: sticky; top: 0; z-index: 50; height: var(--entete-h); border-bottom: 1px solid transparent; transition: background-color .3s ease, border-color .3s ease; }
.entete--defile { background: color-mix(in srgb, var(--fond) 88%, transparent); border-bottom-color: var(--filet); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.entete__interieur { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 0 var(--gouttiere); }
.marque { display: flex; align-items: center; gap: .85rem; text-decoration: none; color: var(--encre); }
.marque__signe { width: 2.4rem; height: 1.95rem; flex-shrink: 0; overflow: visible; }
.marque__tube, .marque__robinet { fill: none; stroke: var(--encre); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.marque__tube { stroke: var(--cuivre); stroke-width: 2.2; }
.marque__goutte { fill: transparent; stroke: var(--encre); stroke-width: 1.2; transition: fill .5s ease, stroke .5s ease; }
.en-eau .marque__goutte { fill: var(--eau); stroke: var(--eau); }
.marque__nom { display: flex; flex-direction: column; font-family: var(--titre); font-weight: 600; font-size: 1.6rem; line-height: 1; letter-spacing: .005em; white-space: nowrap; }
.marque__nom small { margin-top: .32rem; font-family: var(--police); font-weight: 500; font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gris); }
.nav__liste { list-style: none; display: flex; gap: 2.2rem; }
.nav__liste a { white-space: nowrap; text-decoration: none; font-size: .94rem; font-weight: 500; color: var(--gris); padding: .35rem 0; border-bottom: 1px solid transparent; transition: color .2s ease, border-color .2s ease; }
.nav__liste a[aria-current="true"] { color: var(--encre); border-bottom-color: var(--cuivre); }
.entete__droite { display: flex; align-items: center; justify-content: flex-end; gap: 1.8rem; }
.entete__tel { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--encre); font-weight: 500; font-size: .95rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.entete__tel svg { width: 1rem; height: 1rem; fill: none; stroke: var(--cuivre); stroke-width: 1.8; }
.menu-bouton { display: none; }
.menu-mobile { position: absolute; top: var(--entete-h); left: 0; right: 0; background: var(--fond); border-top: 1px solid var(--filet); box-shadow: 0 24px 40px -24px rgba(15, 47, 52, .35); padding: .8rem 1.25rem 1.4rem; }
.menu-mobile ul { list-style: none; }
.menu-mobile a { display: block; padding: .8rem 0; text-decoration: none; font-family: var(--titre); font-weight: 500; font-size: 1.6rem; color: var(--encre); border-bottom: 1px solid var(--filet); }
@media (hover: hover) and (pointer: fine) {
  .nav__liste a:hover { color: var(--encre); }
}

/* ---------------------------------------------------------- boutons et liens */
.bouton {
  white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font: inherit; font-weight: 500; font-size: 1rem; line-height: 1.2; letter-spacing: .01em;
  padding: 1rem 1.6rem; min-height: 3.2rem; border: 1px solid transparent; border-radius: 999px;
  text-decoration: none; cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .16s var(--ease-out);
}
.bouton:active { transform: scale(.97); }
.bouton--plein { background: var(--encre); color: var(--fond); }
.bouton--trait { border-color: var(--filet-fort); color: var(--encre); background: transparent; }
.bouton--petit { padding: .6rem 1.15rem; min-height: 2.6rem; font-size: .9rem; }
.lien-fin { display: inline-block; color: var(--encre); font-weight: 500; text-decoration: none; padding: .3rem 0; border-bottom: 1px solid var(--filet-fort); transition: border-color .2s ease; }
@media (hover: hover) and (pointer: fine) {
  .bouton--plein:hover { background: #0B2A2F; }
  .bouton--trait:hover { border-color: var(--encre); }
  .lien-fin:hover { border-bottom-color: var(--cuivre); }
}

/* ---------------------------------------------------------- la maquette (plateau fixe) et ses traits de rappel */
.plateau { position: fixed; left: 0; top: 0; z-index: 1; width: 720px; height: 720px; transform-origin: 50% 50%; pointer-events: none; will-change: transform, opacity; }
.plateau canvas { width: 100%; height: 100%; display: block; }
.rappels { position: fixed; left: 0; top: 0; width: 100vw; height: 100vh; z-index: 2; pointer-events: none; opacity: 0; overflow: visible; }
.rappels path { fill: none; stroke: rgba(156, 79, 39, .55); stroke-width: 1; }
.rappels circle { fill: var(--cuivre); }
.rappels path.actif { stroke: var(--encre); stroke-width: 1.6; }
.rappels circle.actif { fill: var(--encre); }
.ecran { display: none; }

/* images de secours : mouvement réduit, sans JavaScript, ou si l'animation ne démarre pas */
.repli { display: none; }
html:not(.js) .plateau, .mouvement-reduit .plateau, .sans-anim .plateau,
html:not(.js) .rappels, .mouvement-reduit .rappels, .sans-anim .rappels, .mouvement-reduit .ecran, .sans-anim .ecran { display: none; }
html:not(.js) .repli, .mouvement-reduit .repli, .sans-anim .repli { display: block; height: auto; }

/* ---------------------------------------------------------- typographie commune */
.sur-titre { display: flex; align-items: center; gap: .85rem; font-size: .74rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--gris); }
.sur-titre::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; border: 1px solid var(--cuivre); flex-shrink: 0; transition: background-color .5s ease; }
.en-eau .sur-titre::before { background: var(--cuivre); }
.titre-section {
  margin-top: 1.1rem; font-family: var(--titre); font-weight: 500; color: var(--encre);
  font-size: clamp(2.6rem, 1.4rem + 2.5vw, 4.3rem); line-height: 1.02; letter-spacing: -.005em; text-wrap: balance;
  font-variant-numeric: lining-nums;
}
.titre-section em, .accueil__titre em { color: var(--cuivre); font-weight: 500; }
.chapo { margin-top: 1.2rem; font-size: 1.1rem; color: var(--gris); max-width: 34rem; }

/* ---------------------------------------------------------- sections */
.section { position: relative; padding: clamp(6rem, 14vh, 10rem) 0; }
.colonne { position: relative; z-index: 2; width: var(--colonne); margin-left: var(--gouttiere); }
/* le dernier repère (étape, point) doit finir avant la fin de section, sinon le moteur l'ignore (fin = bas − 75 % de l'écran) */
.chantier, .piece { padding-bottom: 22vh; }

/* ---------------------------------------------------------- accueil */
.accueil { position: relative; min-height: calc(100vh - var(--entete-h) - 1.9rem); display: flex; flex-direction: column; }
.accueil__grille { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 2rem; padding: clamp(1rem, 4vh, 3rem) var(--gouttiere) 4.5rem; }
.accueil__texte { position: relative; z-index: 2; max-width: 38rem; }
.accueil__titre {
  margin-top: 1.3rem; font-family: var(--titre); font-weight: 500; color: var(--encre); text-wrap: balance;
  font-size: min(clamp(3.3rem, 1.3rem + 4.3vw, 6.2rem), 10.5vh); line-height: .96; letter-spacing: -.012em;
}
.accueil__titre > span { display: block; }
.accueil__intro { margin-top: 1.5rem; font-size: 1.12rem; line-height: 1.7; color: var(--texte); max-width: 33rem; }
.accueil__actions { margin-top: 2.1rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem 1.8rem; }
.accueil__scene { justify-self: center; width: min(100%, 72vh); aspect-ratio: 1; }
.garanties { list-style: none; margin-top: 2.8rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; max-width: 36rem; }
.garanties li { border-top: 1px solid var(--filet-fort); padding-top: .8rem; }
.garanties strong { display: block; font-weight: 600; font-size: .92rem; color: var(--encre); }
.garanties span { display: block; margin-top: .2rem; font-size: .84rem; line-height: 1.45; color: var(--gris); }
.accueil__suite { position: absolute; left: var(--gouttiere); bottom: .8rem; z-index: 2; display: flex; align-items: center; gap: .8rem; font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--gris); }
.accueil__suite i { order: -1; display: block; width: 2.4rem; height: 1px; background: linear-gradient(90deg, transparent, var(--cuivre)); }

/* ---------------------------------------------------------- savoir-faire */
.metiers { list-style: none; margin-top: 2.6rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.9rem 2rem; }
.metiers li { border-top: 1px solid var(--filet-fort); padding-top: 1rem; }
.metiers h3 { font-family: var(--titre); font-weight: 600; font-size: 1.65rem; line-height: 1.1; color: var(--encre); }
.metiers p { margin-top: .4rem; font-size: .95rem; line-height: 1.58; color: var(--gris); }
.alerte { margin-top: 2.8rem; padding: 1.3rem 1.5rem 1.4rem; border: 1px solid var(--filet-fort); border-radius: 1rem; background: var(--voile); }
.alerte__titre { font-family: var(--titre); font-weight: 600; font-size: 1.5rem; line-height: 1.2; color: var(--encre); }
.alerte p:not(.alerte__titre) { margin: .45rem 0 .8rem; font-size: .96rem; color: var(--gris); }

/* ---------------------------------------------------------- le chantier : une étape à la fois sur la ligne de lecture */
.etapes { list-style: none; margin-top: 3rem; }
.etape { min-height: var(--h, 60vh); padding-top: 1.2rem; opacity: .34; transition: opacity .35s ease; }
.etape.actif { opacity: 1; }
.etape__num { display: flex; align-items: center; gap: 1rem; font-size: .8rem; font-weight: 600; letter-spacing: .14em; color: var(--cuivre); font-variant-numeric: tabular-nums; }
.etape__num::after { content: ""; flex: 1; height: 1px; background: var(--filet-fort); }
.etape h3 { margin-top: .9rem; font-family: var(--titre); font-weight: 500; font-size: clamp(2.2rem, 1.5rem + 1.3vw, 3rem); line-height: 1.04; color: var(--encre); }
.etape p { margin-top: .7rem; color: var(--texte); max-width: 32rem; }
.etape__meta { display: inline-block; margin-top: 1rem; font-size: .72rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--gris); border: 1px solid var(--filet-fort); border-radius: 999px; padding: .3rem .75rem; }
.etape:last-child { min-height: 46vh; }

/* ---------------------------------------------------------- la pièce finie : la liste à gauche, fixe pendant que des repères
   invisibles défilent à droite ; le moteur trace un trait de chaque point vers la maquette */
.piece__corps { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, min(30rem, 34vw)) minmax(0, 1fr); column-gap: 2rem; padding: 0 var(--gouttiere); }
.piece__tete .chapo { font-size: 1.02rem; }
.piece__marqueurs { padding-top: 30vh; }
.piece__marqueurs > div { height: 34vh; }
.points { list-style: none; position: sticky; top: calc(var(--entete-h) + 6vh); margin-top: 2.4rem; }
.points li { display: grid; grid-template-columns: minmax(0, 1fr) 2.6rem; align-items: center; gap: .9rem; min-height: 4.4rem; padding: .5rem 0; border-bottom: 1px solid var(--filet); }
.points li:first-child { border-top: 1px solid var(--filet); }
.points b {
  justify-self: end; display: grid; place-items: center; width: 2.3rem; height: 1.5rem; border: 1px solid var(--filet-fort); border-radius: .3rem;
  font-size: .72rem; font-weight: 600; letter-spacing: .06em; color: var(--cuivre); font-variant-numeric: tabular-nums;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.points h3 { font-family: var(--titre); font-weight: 600; font-size: 1.5rem; line-height: 1.08; color: var(--encre); }
.points p { margin-top: .12rem; font-size: .88rem; line-height: 1.42; color: var(--gris); }
.points li.actif b { background: var(--encre); border-color: var(--encre); color: var(--fond); }
.points li.actif p { color: var(--texte); }

/* ---------------------------------------------------------- preuves : colonne à gauche, la maquette dans la marge de droite */
.preuve__colonne { position: relative; z-index: 2; margin-left: var(--gouttiere); width: min(62rem, 66vw); }
.preuve__colonne--etroite { width: min(46rem, 62vw); }

/* en attendant le plombier : six situations, la réponse à côté */
.guide { margin-top: 2.8rem; display: grid; grid-template-columns: minmax(0, 19rem) minmax(0, 1fr); gap: 2.6rem; align-items: start; }
.guide__choix { display: flex; flex-direction: column; gap: .55rem; }
.guide__choix button {
  font: inherit; font-size: 1rem; font-weight: 500; text-align: left; color: var(--encre); cursor: pointer;
  padding: .85rem 1.1rem; min-height: 3.2rem; border: 1px solid var(--filet-fort); border-radius: .8rem; background: transparent;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .16s var(--ease-out);
}
.guide__choix button:active { transform: scale(.98); }
.guide__choix button[aria-selected="true"] { background: var(--encre); border-color: var(--encre); color: var(--fond); }
.guide__reponses { padding: 1.8rem 2rem 1.9rem; border-radius: 1.1rem; background: var(--voile); border: 1px solid var(--filet); }
.reponse h3 { font-family: var(--titre); font-weight: 600; font-size: 2rem; line-height: 1.1; color: var(--encre); }
.reponse p { margin-top: .75rem; color: var(--texte); }
.reponse strong { color: var(--encre); font-weight: 600; }
.reponse { transition: opacity .22s ease, transform .22s var(--ease-out); }
@starting-style { .reponse { opacity: 0; transform: translateY(6px); } }
.guide.clavier .reponse { transition: none; }
.guide__actions { margin-top: 1.6rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; }
.guide__note { margin-top: 1.2rem; font-size: .86rem; color: var(--gris); }
@media (hover: hover) and (pointer: fine) {
  .guide__choix button[aria-selected="false"]:hover { background: var(--voile); border-color: var(--encre); }
}

.chantiers { list-style: none; margin-top: 3rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.4rem 1.8rem; }
.chantiers img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #E8EBE7; border-radius: .9rem; }
.chantiers h3 { margin-top: .95rem; font-family: var(--titre); font-weight: 600; font-size: 1.5rem; line-height: 1.15; color: var(--encre); }
.chantiers p { margin-top: .1rem; font-size: .74rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--gris); }

.communes { margin-top: 3rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.communes h3 { font-family: var(--titre); font-weight: 600; font-size: 1.55rem; color: var(--encre); padding-bottom: .7rem; border-bottom: 1px solid var(--filet-fort); }
.communes ul { list-style: none; margin-top: .8rem; }
.communes li { padding: .26rem 0; font-size: .98rem; color: var(--texte); }
.qualites { margin-top: 2.4rem; padding-top: 1.2rem; border-top: 1px solid var(--filet); font-size: .92rem; color: var(--gris); }
.qualites strong { color: var(--encre); font-weight: 600; }

.questions { margin-top: 2.6rem; border-top: 1px solid var(--filet-fort); }
.questions details { border-bottom: 1px solid var(--filet-fort); }
.questions summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; padding: 1.2rem 0; font-family: var(--titre); font-weight: 600; font-size: 1.55rem; line-height: 1.2; color: var(--encre); }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after {
  content: ""; flex-shrink: 0; width: .85rem; height: .85rem; transition: transform .25s var(--ease-out);
  background: linear-gradient(var(--cuivre), var(--cuivre)) center / 100% 1.5px no-repeat, linear-gradient(var(--cuivre), var(--cuivre)) center / 1.5px 100% no-repeat;
}
.questions details[open] summary::after { transform: rotate(45deg); }
.questions details p { padding: 0 0 1.4rem; color: var(--texte); max-width: 42rem; }

/* ---------------------------------------------------------- contact : coordonnées, la salle de bain finie au centre, formulaire */
.contact__grille { position: relative; display: grid; grid-template-columns: minmax(0, var(--volet)) minmax(0, 1fr) minmax(0, var(--volet)); align-items: start; gap: 2rem; padding: 0 var(--gouttiere); }
.contact__gauche, .contact__droite { position: relative; z-index: 2; }
.contact__gauche { grid-column: 1; }
.contact__droite { grid-column: 3; }
.contact__tel { display: inline-block; margin-top: 2rem; font-size: 1.5rem; font-weight: 500; letter-spacing: .02em; color: var(--encre); text-decoration: none; font-variant-numeric: tabular-nums; }
.contact__horaires { margin-top: .8rem; font-size: .95rem; color: var(--gris); }
.contact__mail { margin-top: .8rem; font-size: .95rem; color: var(--texte); }
.formulaire { display: flex; flex-direction: column; gap: 1rem; }
.champ { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.champ label { font-size: .88rem; color: var(--encre); font-weight: 500; }
.facultatif { color: var(--gris); font-weight: 400; }
.champ input:not([type="checkbox"]), .champ select, .champ textarea {
  font: inherit; font-size: 1rem; font-weight: 400; color: var(--encre); background: #FBFAF7;
  border: 1px solid var(--filet-fort); border-radius: .6rem; padding: .75rem .85rem; min-height: 3rem; width: 100%;
}
.champ select {
  appearance: none; -webkit-appearance: none; padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%239C4F27' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center; background-size: .75rem;
}
.champ textarea { resize: vertical; min-height: 6.5rem; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--encre); box-shadow: 0 0 0 3px rgba(18, 57, 63, .12); }
.champ [aria-invalid="true"] { border-color: #B4472F; }
.champ__erreur { font-size: .86rem; color: #A3402A; }
.champ--case { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: .7rem; }
.champ--case input { width: 1.2rem; height: 1.2rem; margin-top: .2rem; accent-color: var(--encre); flex-shrink: 0; }
.champ--case label { flex: 1; font-size: .86rem; color: var(--gris); font-weight: 400; }
.champ--case .champ__erreur { width: 100%; }
.formulaire__bas { display: flex; flex-direction: column; align-items: flex-start; gap: .8rem; margin-top: .4rem; }
.formulaire__statut { font-size: .95rem; }
.formulaire__statut.ok { color: #2E6B4A; }
.formulaire__statut.erreur { color: #A3402A; }

/* ---------------------------------------------------------- pied de page */
.pied { position: relative; z-index: 3; background: var(--nuit); padding: 4.5rem var(--gouttiere) 2.4rem; text-align: center; color: #A9BDBD; }
.pied__nom { font-family: var(--titre); font-weight: 600; font-size: 2.2rem; color: var(--fond); }
.pied__marque p:not(.pied__nom) { margin: .4rem auto 0; max-width: 34rem; font-size: .95rem; }
.pied__tel { display: inline-block; margin-top: .9rem; font-size: 1.1rem; font-weight: 500; color: var(--fond); text-decoration: none; }
.pied__liens { margin: 2.4rem auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 2rem; }
.pied__liens a { text-decoration: none; font-size: .92rem; color: #C9D6D5; }
.pied__legal { margin: 2.6rem auto 0; padding-top: 1.4rem; border-top: 1px solid rgba(243, 241, 236, .1); font-size: .8rem; color: #8FA4A4; max-width: 60rem; }
@media (hover: hover) and (pointer: fine) { .pied__liens a:hover { color: var(--fond); } }
.barre-appel { display: none; }

/* ---------------------------------------------------------- sans animation : images fixes posées dans la page */
@media (min-width: 1024px) and (min-aspect-ratio: 21/20) {
  :is(html:not(.js), .mouvement-reduit, .sans-anim) .accueil__scene .repli { width: 100%; }
  :is(html:not(.js), .mouvement-reduit, .sans-anim) .section:has(> .repli) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  :is(html:not(.js), .mouvement-reduit, .sans-anim) .section:has(> .repli) > :not(.repli) { grid-column: 1; grid-row: 1; }
  :is(html:not(.js), .mouvement-reduit, .sans-anim) .section > .repli { grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--entete-h) + 6vh); width: min(40vw, 70vh); justify-self: center; }
  :is(html:not(.js), .mouvement-reduit, .sans-anim) .colonne { width: auto; margin-right: 2rem; }
}
:is(html:not(.js), .mouvement-reduit, .sans-anim) .etape { min-height: 0; opacity: 1; padding-bottom: 2.2rem; }
:is(html:not(.js), .mouvement-reduit, .sans-anim) .piece__marqueurs { display: none; }
:is(html:not(.js), .mouvement-reduit, .sans-anim) .piece__corps { display: block; padding: 0 var(--gouttiere); }
:is(html:not(.js), .mouvement-reduit, .sans-anim) .points { position: static; }

/* ---------------------------------------------------------- écrans moyens */
@media (max-width: 1279px) {
  .nav__liste { gap: 1.3rem; }
  .nav__liste a { font-size: .9rem; }
  .entete__droite { gap: 1.2rem; }
  .entete__tel span { display: none; }
  .garanties { grid-template-columns: 1fr; gap: .9rem; }
  .guide { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
  .guide__choix { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------------------------------------------------------- téléphone et tablette (même règle que js/scene.js) */
@media (max-width: 1023px), (max-aspect-ratio: 21/20) {
  :root { --entete-h: 4.25rem; --gouttiere: 1.25rem; }
  .entete__interieur { gap: 1rem; }
  .nav { display: none; }
  .marque__signe { width: 2rem; height: 1.65rem; }
  .marque__nom { font-size: 1.4rem; }
  .marque__nom small { font-size: .52rem; }
  .entete__droite { gap: .6rem; }
  .entete__droite > .bouton { display: none; }
  .entete__tel { width: 2.75rem; height: 2.75rem; justify-content: center; border: 1px solid var(--filet-fort); border-radius: 50%; }
  .menu-bouton { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 1px solid var(--filet-fort); border-radius: 50%; background: transparent; color: var(--encre); cursor: pointer; }
  .menu-bouton svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.6; }
  .menu-bouton .i-fermer { display: none; }
  .menu-bouton[aria-expanded="true"] .i-ouvrir { display: none; }
  .menu-bouton[aria-expanded="true"] .i-fermer { display: block; }

  .section { padding: 4.5rem 0; }
  .colonne { width: auto; margin: 0 var(--gouttiere); }
  .accueil { min-height: 0; display: block; }
  .accueil__grille { display: block; padding: calc(var(--ecran-h) + 1.4rem) var(--gouttiere) 3.5rem; }
  .accueil__titre { font-size: clamp(2.8rem, 1.3rem + 6.6vw, 4.4rem); }
  .accueil__scene, .accueil__suite { display: none; }
  .garanties { grid-template-columns: 1fr; }
  .js:not(.mouvement-reduit):not(.sans-anim) :is(.services, .chantier, .piece) { padding-top: calc(var(--ecran-h) + 2rem); }
  .metiers { grid-template-columns: 1fr; gap: 1.4rem; }
  .etape { min-height: 32vh; }
  .etape:last-child { min-height: 24vh; }
  .piece__corps { display: block; }
  .piece__marqueurs { display: none; }
  .points { position: static; margin-top: 1.8rem; }
  .preuve__colonne, .preuve__colonne--etroite { width: auto; margin: 0 var(--gouttiere); }
  .guide__choix { grid-template-columns: minmax(0, 1fr); }
  .guide__reponses { padding: 1.4rem 1.25rem 1.5rem; }
  .chantiers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 1rem; }
  .chantiers h3 { font-size: 1.25rem; }
  .communes { grid-template-columns: 1fr; }
  .contact__grille { display: block; }
  .contact__centre { display: none; }
  .contact__droite { margin-top: 2.6rem; }
  .ecran { display: block; position: fixed; left: 0; right: 0; top: var(--entete-h); height: var(--ecran-h); z-index: 3; pointer-events: none; opacity: 0; background: var(--fond); }
  .ecran::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1.5rem; height: 1.5rem; background: inherit; -webkit-mask: linear-gradient(#000, transparent); mask: linear-gradient(#000, transparent); }
  .rappels { display: none; }
  .barre-appel {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
    padding-bottom: env(safe-area-inset-bottom); background: var(--fond); border-top: 1px solid var(--filet);
  }
  .barre-appel a { display: grid; place-items: center; min-height: 3.5rem; font-weight: 600; font-size: 1rem; text-decoration: none; transition: opacity .12s var(--ease-out); }
  .barre-appel a:active { opacity: .75; }
  .barre-appel__tel { background: var(--encre); color: var(--fond); }
  .barre-appel__devis { color: var(--encre); }
  body { padding-bottom: calc(3.5rem + env(safe-area-inset-bottom)); }
  html:not(.js) .repli, .mouvement-reduit .repli, .sans-anim .repli { width: min(100%, 26rem); margin: 0 auto 1.5rem; }
  :is(html:not(.js), .mouvement-reduit, .sans-anim) .accueil__grille { padding-top: 1.5rem; }
  :is(html:not(.js), .mouvement-reduit, .sans-anim) .accueil__scene { display: block; width: min(100%, 26rem); margin: 2rem auto 0; }
}
@media (max-width: 560px) {
  .marque__nom { font-size: 1.25rem; }
  .chantiers { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; scroll-behavior: auto !important; }
}

/* ---------------------------------------------------------- contact compact
   Le formulaire tient en entier dans l'écran, même en 1280×720. Sur téléphone, champs en 16 px (pas de zoom iPhone). */
.contact.section { padding-top: clamp(3.5rem, 8vh, 6rem); padding-bottom: clamp(3.5rem, 8vh, 6rem); }
.contact .titre-section { font-size: clamp(2.2rem, 1.3rem + 1.7vw, 3.1rem); }
.contact .chapo { font-size: 1rem; }
.contact__tel { margin-top: 1.4rem; font-size: 1.3rem; }
.formulaire { gap: .7rem; }
.champ { gap: .28rem; }
.champ label { font-size: .8rem; }
.champ input:not([type="checkbox"]), .champ select, .champ textarea { font-size: .95rem; padding: .5rem .75rem; min-height: 2.55rem; }
.champ textarea { min-height: 4.4rem; }
.champ--case label { font-size: .8rem; line-height: 1.45; }
.formulaire__bas { margin-top: .1rem; }
.formulaire { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem .8rem; }
.formulaire > :nth-child(n+5) { grid-column: 1 / -1; }
@media (max-width: 1023px), (max-aspect-ratio: 21/20) {
  .champ input:not([type="checkbox"]), .champ select, .champ textarea { font-size: 16px; }
}
@media (max-width: 359px) {
  .formulaire { grid-template-columns: minmax(0, 1fr); }
  .formulaire > * { grid-column: 1 / -1; }
}
