/* =====================================================================
   Matrice Couvreur 1 — « Ardoise, zinc et craie » (version 3, 09/10/2026)
   Nuit d'ardoise, craie, gris zinc : aucun doré, la maquette apporte la couleur.
   Titres gravés à l'antique (Cinzel), texte en Jost.
   Composition centrée et symétrique : la maquette 3D trône au milieu, le texte
   se range de part et d'autre (triptyque) ; pendant les preuves, elle passe
   dans la marge de gauche (js/scene.js).
   ===================================================================== */

:root {
  --nuit: #121619;           /* fond de page */
  --nuit-2: #171C20;         /* sections alternées */
  --nuit-3: #1D2429;         /* cartes, champs */
  --nuit-fond: #0D1013;      /* vue éclatée, pied de page */
  --craie: #EEEBE4;          /* titres, boutons pleins */
  --texte: #CBC7BE;          /* texte courant */
  --gris: #979B9C;           /* texte secondaire */
  --zinc: #AEBAC1;           /* l'accent : surtitres, filets, icônes */
  --filet: rgba(174, 186, 193, .22);
  --filet-fort: rgba(174, 186, 193, .42);

  --titre: 'Cinzel', 'Trajan Pro', Georgia, serif;
  --police: 'Jost', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --entete-h: 5.25rem;
  --gouttiere: clamp(1.25rem, 5vw, 5.75rem);
  --volet: clamp(16rem, 23vw, 26rem);   /* colonnes de texte de part et d'autre de la maquette */
  --marge-maquette: 25vw;               /* marge réservée à la maquette pendant les preuves */
  --ecran-h: 40vh;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--entete-h) + 1rem); }
body {
  margin: 0; font-family: var(--police); font-weight: 350; font-size: 1.0625rem; line-height: 1.68;
  color: var(--texte); background: var(--nuit); -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; }
::selection { background: var(--zinc); color: var(--nuit); }
:focus-visible { outline: 2px solid var(--zinc); outline-offset: 3px; }

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

.bandeau-demo { position: relative; z-index: 60; background: var(--nuit-fond); color: #8E9294; font-size: .8125rem; line-height: 1.4; text-align: center; padding: .45rem 1rem; border-bottom: 1px solid rgba(255, 255, 255, .05); }

/* ---------------------------------------------------------- en-tête : navigation de part et d'autre du nom */
.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: rgba(18, 22, 25, .92); border-bottom-color: rgba(255, 255, 255, .06); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.entete__interieur { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; padding: 0 var(--gouttiere); }
.marque { display: flex; flex-direction: column; align-items: center; gap: .4rem; text-decoration: none; color: var(--craie); }
.marque__signe { width: 2.6rem; height: 1.5rem; fill: none; stroke: var(--zinc); stroke-width: 1.6; }
.marque__nom { font-family: var(--titre); font-weight: 600; font-size: 1.04rem; letter-spacing: .16em; text-transform: uppercase; line-height: 1; white-space: nowrap; }
.nav__liste { list-style: none; display: flex; gap: 2.1rem; }
.nav__liste a { white-space: nowrap; text-decoration: none; font-size: .95rem; font-weight: 400; color: #C2BDB3; padding: .35rem 0; border-bottom: 1px solid transparent; transition: color .2s ease, border-color .2s ease; }
.nav__liste a:hover { color: var(--craie); }
.nav__liste a[aria-current="true"] { color: var(--craie); border-bottom-color: var(--zinc); }
.entete__droite { display: flex; align-items: center; justify-content: flex-end; gap: 2rem; }
.entete__tel { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--craie); font-weight: 500; font-size: .98rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.entete__tel svg { width: 1rem; height: 1rem; fill: none; stroke: var(--zinc); stroke-width: 1.8; }
.menu-bouton { display: none; }
.menu-mobile { position: absolute; top: var(--entete-h); left: 0; right: 0; background: var(--nuit-2); border-top: 1px solid var(--filet); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .8); padding: .8rem 1.25rem 1.4rem; }
.menu-mobile ul { list-style: none; }
.menu-mobile a { display: block; padding: .85rem 0; text-decoration: none; font-family: var(--titre); font-size: 1.12rem; letter-spacing: .04em; color: var(--craie); border-bottom: 1px solid var(--filet); }

/* ---------------------------------------------------------- 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: .02em;
  padding: 1rem 1.7rem; min-height: 3.2rem; border: 1px solid transparent; border-radius: 0;
  text-decoration: none; cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.bouton--plein { background: var(--craie); color: var(--nuit); }
.bouton--plein:hover { background: #fff; }
.bouton--trait { border-color: var(--filet-fort); color: var(--craie); background: transparent; }
.bouton--trait:hover { border-color: var(--craie); }
.bouton--petit { padding: .62rem 1.15rem; min-height: 2.6rem; font-size: .92rem; }
.lien-fin { display: inline-block; color: var(--craie); text-decoration: none; padding: .3rem 0; border-bottom: 1px solid var(--filet-fort); transition: border-color .2s ease; }
.lien-fin:hover { border-bottom-color: var(--craie); }

/* ---------------------------------------------------------- la maquette (plateau fixe) et sa lueur */
.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; }
.halo {
  position: fixed; left: 0; top: 0; z-index: 0; width: 100px; height: 100px; pointer-events: none; opacity: 0; will-change: transform, opacity;
  background: radial-gradient(closest-side, rgba(190, 205, 214, .13), rgba(190, 205, 214, .04) 55%, transparent 76%);
}
.traits { position: absolute; inset: 0; overflow: visible; opacity: 0; }
.traits path { fill: none; stroke: rgba(238, 235, 228, .42); stroke-width: 1; }
.traits circle { fill: var(--craie); }
.traits .actif { stroke: var(--craie); }
.traits path.actif { stroke-width: 1.6; }
.legendes { position: absolute; left: 0; top: 0; list-style: none; opacity: 0; }
.legendes li {
  position: absolute; left: 0; top: 0; white-space: nowrap; display: flex; align-items: center; gap: .55rem;
  font-size: .8rem; font-weight: 450; letter-spacing: .09em; text-transform: uppercase; color: var(--craie);
  background: rgba(13, 16, 19, .86); border: 1px solid var(--filet-fort); padding: .32rem .7rem .32rem .55rem; line-height: 1.35;
  transition: background-color .2s ease, color .2s ease;
}
.legendes li span { font-family: var(--titre); font-size: .78rem; color: var(--zinc); min-width: 1.6rem; letter-spacing: .02em; }
.legendes li.actif { background: var(--craie); color: var(--nuit); border-color: var(--craie); }
.legendes li.actif span { color: var(--nuit); }
.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) .halo, .mouvement-reduit .halo, .sans-anim .halo, .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: .9rem; font-size: .8rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--zinc); }
.sur-titre::before { content: ""; width: 2.2rem; height: 1px; background: var(--zinc); opacity: .7; }
.tete-centree { text-align: center; }
.tete-centree .sur-titre { justify-content: center; }
.tete-centree .sur-titre::after { content: ""; width: 2.2rem; height: 1px; background: var(--zinc); opacity: .7; }
.titre-section {
  margin-top: 1rem; font-family: var(--titre); font-weight: 500; color: var(--craie);
  font-size: clamp(1.9rem, 1.1rem + 1.6vw, 2.9rem); line-height: 1.12; letter-spacing: .02em; text-wrap: balance;
}
.chapo { margin-top: 1.1rem; font-size: 1.08rem; color: var(--gris); font-weight: 300; }
.tete-centree .chapo { max-width: 38rem; margin-left: auto; margin-right: auto; }

/* ---------------------------------------------------------- sections et triptyque */
.section { position: relative; padding: clamp(5.5rem, 12vh, 9rem) 0; }
.triptyque {
  position: relative; display: grid; align-items: center; gap: 2rem;
  grid-template-columns: minmax(0, var(--volet)) minmax(0, 1fr) minmax(0, var(--volet));
  padding: 0 var(--gouttiere);
}
.volet { position: relative; z-index: 2; }
.volet--gauche { grid-column: 1; }
.volet--droite { grid-column: 3; }
.triptyque__centre { grid-column: 2; min-height: 1px; }

/* ---------------------------------------------------------- accueil */
.accueil {
  position: relative; display: flex; flex-direction: column;
  min-height: calc(100vh - var(--entete-h) - 1.9rem); padding: clamp(1.5rem, 5vh, 3.2rem) 0 4.5rem;
}
.accueil__lieu { position: relative; z-index: 2; text-align: center; font-size: .98rem; letter-spacing: .04em; color: var(--zinc); }
.accueil__titre {
  position: relative; z-index: 2; margin: .9rem auto 0; max-width: 18ch; text-align: center; text-wrap: balance;
  font-family: var(--titre); font-weight: 500; color: var(--craie); letter-spacing: .02em; line-height: 1.08;
  font-size: min(clamp(2.4rem, 1rem + 3.3vw, 4.3rem), 7.4vh);
}
.accueil__triptyque { flex: 1; margin-top: clamp(.5rem, 2vh, 1.5rem); }
.accueil__scene { grid-column: 2; justify-self: center; width: min(100%, 61vh); aspect-ratio: 1; }
.accueil__intro { font-size: 1.1rem; line-height: 1.72; color: var(--texte); font-weight: 300; }
.accueil__actions { margin-top: 2rem; display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.assurances { list-style: none; display: flex; flex-direction: column; gap: 1.6rem; }
.assurances li { border-top: 1px solid var(--filet); padding-top: .9rem; }
.assurances strong { display: block; font-family: var(--titre); font-weight: 500; font-size: 1.08rem; letter-spacing: .04em; color: var(--craie); }
.assurances span { display: block; margin-top: .2rem; font-size: .95rem; color: var(--gris); font-weight: 300; }
.accueil__suite { position: absolute; left: 50%; bottom: .6rem; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: .6rem; font-size: .82rem; color: var(--gris); letter-spacing: .03em; }
.accueil__suite i { display: block; width: 1px; height: 2.3rem; background: linear-gradient(var(--zinc), transparent); }

/* ---------------------------------------------------------- savoir-faire */
.services { background: var(--nuit-2); }
.services .triptyque { align-items: start; }
.metiers { list-style: none; margin-top: 2.2rem; display: flex; flex-direction: column; gap: 1.5rem; }
.metiers li { border-top: 1px solid var(--filet); padding-top: .95rem; }
.metiers h3 { font-family: var(--titre); font-weight: 500; font-size: 1.12rem; letter-spacing: .04em; color: var(--craie); }
.metiers p { margin-top: .3rem; font-size: .96rem; line-height: 1.6; color: var(--gris); font-weight: 300; }
.volet--droite .chapo { margin-top: 0; }
.urgence { margin-top: 2.4rem; padding: 1.3rem 1.4rem 1.4rem; border: 1px solid var(--filet-fort); }
.urgence__titre { font-family: var(--titre); font-size: 1.05rem; letter-spacing: .03em; color: var(--craie); }
.urgence p:not(.urgence__titre) { margin: .35rem 0 .8rem; font-size: .95rem; color: var(--gris); font-weight: 300; }

/* ---------------------------------------------------------- le chantier : étapes en quinconce autour de la maquette */
.chantier .tete-section { position: relative; z-index: 2; width: var(--volet); margin-left: var(--gouttiere); }
.etapes {
  list-style: none; position: relative; z-index: 2; margin-top: 1rem;
  display: grid; grid-template-columns: minmax(0, var(--volet)) minmax(0, 1fr) minmax(0, var(--volet)); column-gap: 2rem; padding: 0 var(--gouttiere);
}
.etape { grid-column: 3; min-height: 54vh; padding-top: 1.2rem; opacity: .32; transition: opacity .3s ease; }
.etape:nth-child(even) { grid-column: 1; }
/* une étape par rangée, en quinconce (sans cela, la grille en range deux côte à côte) */
.etape:nth-child(1) { grid-row: 1; } .etape:nth-child(2) { grid-row: 2; } .etape:nth-child(3) { grid-row: 3; }
.etape:nth-child(4) { grid-row: 4; } .etape:nth-child(5) { grid-row: 5; } .etape:nth-child(6) { grid-row: 6; }
.etape:nth-child(7) { grid-row: 7; }
.etape.actif { opacity: 1; }
.etape__num { display: block; font-family: var(--titre); font-size: 1rem; color: var(--zinc); letter-spacing: .1em; }
.etape__num::after { content: ""; display: block; width: 100%; height: 1px; margin-top: .7rem; background: var(--filet); }
.etape h3 { margin-top: 1rem; font-family: var(--titre); font-weight: 500; font-size: 1.6rem; letter-spacing: .03em; line-height: 1.2; color: var(--craie); }
.etape p { margin-top: .55rem; color: var(--gris); font-weight: 300; }
.etape:last-child { min-height: 40vh; }

/* ---------------------------------------------------------- sous l'ardoise (vue éclatée) */
.toit { background: var(--nuit-fond); }
.toit__texte { position: relative; z-index: 2; width: var(--volet); margin-left: var(--gouttiere); }
.couches { list-style: none; margin-top: 2.2rem; }
.couches li { display: grid; grid-template-columns: 2.3rem 1fr; gap: .4rem; min-height: 15vh; padding: 1rem 0; border-top: 1px solid var(--filet); opacity: .4; transition: opacity .3s ease; }
.couches li > span { font-family: var(--titre); font-size: .95rem; color: var(--zinc); padding-top: .12rem; }
.couches h3 { font-family: var(--titre); font-weight: 500; font-size: 1.12rem; letter-spacing: .04em; color: var(--craie); }
.couches p { margin-top: .25rem; font-size: .95rem; color: var(--gris); font-weight: 300; }
.couches li.actif { opacity: 1; }

/* ---------------------------------------------------------- preuves : colonne centrée à droite de la marge de la maquette */
.preuve__colonne { position: relative; z-index: 2; margin-left: var(--marge-maquette); margin-right: var(--gouttiere); max-width: 64rem; }
.preuve__colonne--etroite { max-width: 46rem; }
.avant-apres, .avis, .faq { background: var(--nuit-2); }

.comparateur { margin-top: 2.6rem; }
.comparateur__cadre {
  position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 3 / 2; background: var(--nuit-3);
  cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); outline: 1px solid var(--filet); outline-offset: 10px;
}
.comparateur__cadre:focus-visible { outline: 2px solid var(--zinc); outline-offset: 4px; }
.comparateur__cadre img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.comparateur__dessus { position: absolute; inset: 0; clip-path: inset(0 50% 0 0); }
.comparateur__etiquette { position: absolute; bottom: .9rem; z-index: 3; font-family: var(--titre); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; background: rgba(13, 16, 19, .8); color: var(--craie); padding: .3rem .7rem; pointer-events: none; }
.comparateur__etiquette--gauche { left: .9rem; }
.comparateur__etiquette--droite { right: .9rem; }
.comparateur__ligne { position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: var(--craie); z-index: 4; pointer-events: none; }
.comparateur__poignee {
  position: absolute; top: 50%; left: 50%; z-index: 5; width: 2.9rem; height: 2.9rem; margin: -1.45rem 0 0 -1.45rem;
  display: grid; place-items: center; border-radius: 50%; background: var(--craie); color: var(--nuit);
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, .6); pointer-events: none; transition: transform .12s ease;
}
.comparateur__poignee svg { fill: currentColor; }
.comparateur__cadre.appuye .comparateur__poignee { transform: scale(.92); }
.comparateur figcaption { margin-top: 1.4rem; text-align: center; font-size: .9rem; color: var(--gris); }

.chantiers { list-style: none; margin-top: 3rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4rem 1.6rem; }
.chantiers img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--nuit-3); }
.chantiers h3 { margin-top: .9rem; font-family: var(--titre); font-weight: 500; font-size: 1rem; letter-spacing: .04em; color: var(--craie); }
.chantiers p { margin-top: .15rem; font-size: .9rem; color: var(--gris); font-weight: 300; }

.note { margin-top: 1.4rem; display: flex; align-items: center; justify-content: center; gap: .9rem; }
.note__chiffre { font-family: var(--titre); font-size: 2.6rem; line-height: 1; color: var(--craie); }
.note__detail { font-size: .92rem; color: var(--gris); }
.etoiles { display: flex; gap: 3px; }
.etoiles svg { width: 1rem; height: 1rem; fill: var(--zinc); }
.temoignages { list-style: none; margin-top: 3rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.temoignages li { display: flex; flex-direction: column; justify-content: space-between; gap: 1.4rem; padding: 2rem 1.7rem 1.6rem; background: var(--nuit); border: 1px solid var(--filet); }
.temoignages blockquote { font-size: 1.04rem; line-height: 1.62; color: var(--texte); font-weight: 300; }
.temoignages blockquote::before { content: "«"; display: block; font-family: var(--titre); font-size: 2.2rem; line-height: 1; color: var(--zinc); margin-bottom: .6rem; }
.temoignages p { font-size: .88rem; letter-spacing: .03em; color: var(--gris); }

.communes { margin-top: 3rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; text-align: center; }
.communes h3 { font-family: var(--titre); font-weight: 500; font-size: 1.05rem; letter-spacing: .08em; color: var(--craie); padding-bottom: .8rem; border-bottom: 1px solid var(--filet); }
.communes ul { list-style: none; margin-top: .9rem; }
.communes li { padding: .28rem 0; font-size: .98rem; color: var(--texte); font-weight: 300; }

.questions { margin-top: 2.6rem; border-top: 1px solid var(--filet); }
.questions details { border-bottom: 1px solid var(--filet); }
.questions summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; padding: 1.25rem 0; font-family: var(--titre); font-weight: 500; font-size: 1.08rem; letter-spacing: .02em; color: var(--craie); }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after {
  content: ""; flex-shrink: 0; width: .85rem; height: .85rem; transition: transform .25s ease;
  background: linear-gradient(var(--zinc), var(--zinc)) center / 100% 1px no-repeat, linear-gradient(var(--zinc), var(--zinc)) center / 1px 100% no-repeat;
}
.questions details[open] summary::after { transform: rotate(45deg); }
.questions details p { padding: 0 0 1.4rem; color: var(--gris); font-weight: 300; max-width: 42rem; }

/* ---------------------------------------------------------- contact */
.contact .triptyque { align-items: start; }
.contact__tel { display: inline-block; margin-top: 2rem; font-family: var(--titre); font-size: 2rem; letter-spacing: .04em; color: var(--craie); text-decoration: none; font-variant-numeric: lining-nums; }
.contact__horaires { margin-top: .8rem; font-size: .95rem; color: var(--gris); font-weight: 300; }
.formulaire { display: flex; flex-direction: column; gap: 1rem; }
.champ { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.champ label { font-size: .88rem; letter-spacing: .04em; color: var(--craie); font-weight: 400; }
.facultatif { color: var(--gris); font-weight: 300; }
.champ input:not([type="checkbox"]), .champ select, .champ textarea {
  font: inherit; font-size: 1rem; font-weight: 400; color: var(--craie); background: var(--nuit-3);
  border: 1px solid rgba(174, 186, 193, .3); border-radius: 0; 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='%23AEBAC1' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center; background-size: .75rem;
}
.champ select option { background: var(--nuit-2); color: var(--craie); }
.champ textarea { resize: vertical; min-height: 6.5rem; }
.champ input[type="file"] { padding: .55rem; font-size: .9rem; color: var(--gris); }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--zinc); box-shadow: 0 0 0 3px rgba(174, 186, 193, .18); }
.champ [aria-invalid="true"] { border-color: #D9A39A; }
.champ__erreur { font-size: .86rem; color: #E2B1A8; }
.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(--zinc); flex-shrink: 0; }
.champ--case label { flex: 1; font-size: .88rem; color: var(--gris); letter-spacing: 0; font-weight: 300; }
.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: #A9C9B4; }
.formulaire__statut.erreur { color: #E2B1A8; }

/* ---------------------------------------------------------- pied de page */
.pied { position: relative; z-index: 3; background: var(--nuit-fond); border-top: 1px solid rgba(255, 255, 255, .05); padding: 4.5rem var(--gouttiere) 2.4rem; text-align: center; color: var(--gris); }
.pied__marque svg { width: 2.6rem; height: 1.5rem; margin: 0 auto; fill: none; stroke: var(--zinc); stroke-width: 1.6; }
.pied__nom { margin-top: .6rem; font-family: var(--titre); font-weight: 600; font-size: 1.2rem; letter-spacing: .16em; text-transform: uppercase; color: var(--craie); }
.pied__marque p:not(.pied__nom) { margin-top: .4rem; font-size: .95rem; font-weight: 300; }
.pied__tel { display: inline-block; margin-top: .9rem; font-family: var(--titre); font-size: 1.3rem; letter-spacing: .05em; color: var(--craie); 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: #B9B4AA; }
.pied__liens a:hover { color: var(--craie); }
.pied__legal { margin: 2.6rem auto 0; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .06); font-size: .8rem; color: #7E8284; max-width: 60rem; }
.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%; }
  /* sans animation : l'image fixe partage la case de grille du contenu et reste collée tant que sa section défile */
  :is(html:not(.js), .mouvement-reduit, .sans-anim) .section:has(> .repli) { display: grid; }
  :is(html:not(.js), .mouvement-reduit, .sans-anim) .section:has(> .repli) > * { grid-area: 1 / 1; }
  :is(html:not(.js), .mouvement-reduit, .sans-anim) .section > .repli { position: sticky; z-index: 1; align-self: start; margin: 0; top: calc(var(--entete-h) + 7vh); width: min(34vw, 66vh); justify-self: center; }
}
:is(html:not(.js), .mouvement-reduit, .sans-anim) .etape, :is(html:not(.js), .mouvement-reduit, .sans-anim) .couches li { min-height: 0; opacity: 1; padding-bottom: 2rem; }

/* ---------------------------------------------------------- écrans moyens */
@media (max-width: 1279px) {
  .nav__liste { gap: 1.2rem; }
  .nav__liste a { font-size: .9rem; }
  .entete__droite { gap: 1.3rem; }
  .entete__tel span { display: none; }
  .chantiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .temoignages { grid-template-columns: 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 { display: flex; justify-content: space-between; gap: 1rem; }
  .nav { display: none; }
  .marque { flex-direction: row; gap: .7rem; }
  .marque__signe { width: 2rem; height: 1.2rem; }
  .marque__nom { font-size: .95rem; letter-spacing: .12em; }
  .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(--craie); 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; }
  .triptyque { display: block; padding: 0 var(--gouttiere); }
  .triptyque__centre { display: none; }
  .volet + .volet { margin-top: 2.6rem; }
  .accueil { min-height: 0; display: block; padding: calc(var(--ecran-h) + 1.4rem) 0 3.5rem; }
  .accueil__lieu, .accueil__titre { text-align: left; margin-left: var(--gouttiere); margin-right: var(--gouttiere); }
  .accueil__titre { font-size: clamp(2.2rem, 1rem + 5.6vw, 3.3rem); max-width: none; }
  .accueil__triptyque { margin-top: 1.4rem; }
  .accueil__scene { display: none; }
  .accueil__suite { display: none; }
  .js:not(.mouvement-reduit):not(.sans-anim) .services,
  .js:not(.mouvement-reduit):not(.sans-anim) .chantier,
  .js:not(.mouvement-reduit):not(.sans-anim) .toit { padding-top: calc(var(--ecran-h) + 2rem); }
  .chantier .tete-section, .toit__texte { width: auto; margin: 0 var(--gouttiere); }
  .etapes { display: block; }
  .etape { min-height: 30vh; }
  .couches li { min-height: 0; }
  .preuve__colonne { margin-left: var(--gouttiere); margin-right: var(--gouttiere); }
  .chantiers, .temoignages, .communes { grid-template-columns: 1fr; }
  .communes { text-align: left; }
  .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; }
  .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); }
  .legendes, .traits, .halo { 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(--nuit-fond); border-top: 1px solid var(--filet);
  }
  .barre-appel a { display: grid; place-items: center; min-height: 3.5rem; font-family: var(--titre); font-size: 1rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
  .barre-appel__tel { background: var(--craie); color: var(--nuit); }
  .barre-appel__devis { color: var(--craie); }
  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 { padding-top: 1.5rem; }
  :is(html:not(.js), .mouvement-reduit, .sans-anim) .accueil__scene { display: block; width: min(100%, 26rem); margin: 0 auto 1.5rem; }
}
@media (max-width: 560px) {
  .marque__nom { font-size: .86rem; letter-spacing: .09em; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; scroll-behavior: auto !important; }
}

/* ---------------------------------------------------------- contact compact (09/10/2026)
   Le formulaire tient en entier dans l'écran, même en 1280×720 ; le numéro et le titre ne l'écrasent plus.
   Sur téléphone, les champs restent en 16 px (sinon l'iPhone zoome à la saisie). */
.contact.section { padding-top: clamp(3.5rem, 8vh, 6rem); padding-bottom: clamp(3.5rem, 8vh, 6rem); }
.contact .titre-section { font-size: clamp(1.7rem, 1rem + 1.4vw, 2.4rem); }
.contact__tel { margin-top: 1.4rem; font-size: 1.55rem; }
.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 .7rem; min-height: 2.55rem; }
.champ textarea { min-height: 4.4rem; }
.champ input[type="file"] { padding: .35rem .5rem; font-size: .82rem; }
.champ--case label { font-size: .8rem; line-height: 1.45; }
.formulaire__bas { margin-top: .2rem; }
.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"]):not([type="radio"]), .champ select, .champ textarea { font-size: 16px; }
}
@media (max-width: 359px) {
  .formulaire { grid-template-columns: minmax(0, 1fr); }
  .formulaire > * { grid-column: 1 / -1; }
}
