/* ============================================================================
   Site MT Renovation (17/09/2026), issu de la maquette B : la page d'accueil se lit comme une
   coupe de toiture, du ciel au sol. Chaque section porte la couleur d'un materiau.
   Palette refaite sur le NOUVEAU LOGO, couleurs relevees au pixel dans le fichier du client :
   orange du T #b03717-#bd3e1e, anthracite du M #19232a, ardoise #465463, tuiles #e06c48, fond #000.
   Toutes les couleurs vivent ici, aucune dans le HTML.
   ============================================================================ */

/* Polices hebergees sur le site (pas d'appel a Google) : Archivo pour les titres, droite ET sa vraie
   italique pour les mots mis en valeur ; Manrope pour le texte. Licence SIL OFL 1.1, usage commercial libre. */
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url('../fonts/archivo-latin-wdth-normal.woff2') format('woff2-variations'), url('../fonts/archivo-latin-wdth-normal.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: italic; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url('../fonts/archivo-latin-wdth-italic.woff2') format('woff2-variations'), url('../fonts/archivo-latin-wdth-italic.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('../fonts/manrope-latin-wght-normal.woff2') format('woff2-variations'), url('../fonts/manrope-latin-wght-normal.woff2') format('woff2'); }

:root {
  --nuit: #0d1216;          /* l'anthracite du logo, pousse vers le noir */
  --noir: #000;             /* le fond exact des photos de camions */
  --four: #1a0f0b;          /* terre cuite sortie du four, section de la tuile */
  --terre: #b83a1a;         /* la SEULE couleur d'action : l'orange du T (blanc dessus : 5,9) */
  --terre-vif: #cf4520;     /* survol (blanc dessus : 4,7) */
  --terre-clair: #e8764f;   /* les tuiles du logo, pour les accents sur fond sombre */
  --ardoise: #19232a;       /* l'anthracite du M */
  --ardoise-2: #465463;     /* l'ardoise du toit du logo */
  --ardoise-3: #222e36;
  --zinc: #d3d7da;
  --zinc-encre: #3f474d;
  --tuffeau: #efece6;
  --tuffeau-encre: #56524b;
  --sol: #10161a;
  --sol-2: #1f2a31;
  --creme: #f5f3ef;
  --creme-2: #b9bfc4;
  --pied: #080b0e;
  --faux: #ff9d80;
  --affiche: 'Archivo', 'Arial Narrow', Arial, sans-serif;
  --texte: 'Manrope', 'Arial Narrow', Arial, sans-serif;
  --t-hero: clamp(38px, 5.2vw, 84px);
  --t-h2: clamp(32px, 4vw, 64px);
  --marge: clamp(20px, 5vw, 80px);
  --sortie: cubic-bezier(.22, .8, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--terre) var(--nuit); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--nuit); color: var(--creme); font-family: var(--texte); font-size: 17px; line-height: 1.6; overflow-wrap: break-word; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; overflow-wrap: anywhere; text-wrap: balance; }
p { margin: 0; }
button { font: inherit; }
::selection { background: var(--terre); color: #fff; }
:focus-visible { outline: 3px solid var(--terre-clair); outline-offset: 3px; border-radius: 4px; }
.insecable { white-space: nowrap; }
.evitement { position: absolute; top: 8px; left: 8px; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); z-index: 100; background: var(--creme); color: var(--nuit); padding: 10px 14px; }
.evitement:focus { width: auto; height: auto; clip-path: none; }
.colonne { width: 100%; max-width: calc(1320px + 2 * var(--marge)); margin-inline: auto; padding-inline: var(--marge); }
.etiquette { font: 700 13px/1.4 var(--texte); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 20px; }
/* les grands titres : Archivo droite, graisse 800 ; les mots mis en valeur en italique */
.titre, .hero__titre, .tuile__texte h2, .metiers__intro h2, .chantiers h2, .flotte h2, .avis h2, .zone h2, .faq h2, .contact h2,
.interieur h1, .dalep-produit h2, .dalep-preuve h2, .calcul h2, .appel-final h2,
.matiere-faire h2, .matiere-bloc h2, .matiere-galerie h2, .matiere-liens h2, .matiere-preuve h2 {
  font-family: var(--affiche); font-weight: 800; font-size: var(--t-h2); line-height: 1.02; letter-spacing: -.02em;
}
h1 em, h2 em { font-style: italic; font-weight: 800; }
/* le masque de ligne pose par SplitText rogne tout ce qui depasse : marge pour les accents, les jambages
   et la pente de l'italique (piege du 12/09 : « DÉPEND » affiche « DEPEND ») */
.ligne-mask { padding: .1em .2em .18em 0; margin: -.1em -.2em -.18em 0; }

/* ---------- boutons ---------- */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 700 17px/1.2 var(--texte); text-decoration: none; padding: 17px 28px; border: 0; border-radius: 999px; cursor: pointer; transition: background-color .25s var(--sortie), color .25s var(--sortie), box-shadow .25s var(--sortie), transform .2s var(--sortie); text-align: center; font-variant-numeric: tabular-nums; }
.bouton:active { transform: scale(.97); }
.bouton--action { background: var(--terre); color: #fff; }
.bouton--grand { padding: 20px 34px; font-size: 16px; letter-spacing: .06em; text-transform: uppercase; }
.bouton--petit { padding: 12px 20px; font-size: 15px; }
.bouton--clair { background: rgba(13, 18, 22, .5); color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .9); }
.bouton--contour { background: transparent; color: var(--creme); box-shadow: inset 0 0 0 2px var(--creme-2); }
.bouton--contour-clair { background: transparent; color: var(--creme); box-shadow: inset 0 0 0 2px rgba(245, 243, 239, .7); }
.bouton--contour-sombre { background: transparent; color: var(--ardoise); box-shadow: inset 0 0 0 2px var(--ardoise); }
@media (hover: hover) {
  .bouton--action:hover { background: var(--terre-vif); }
  .bouton--clair:hover { background: #fff; color: var(--ardoise); }
  .bouton--contour:hover, .bouton--contour-clair:hover { background: var(--creme); color: var(--ardoise); }
  .bouton--contour-sombre:hover { background: var(--ardoise); color: var(--creme); }
}

/* ============================================================================
   LA BARRE DU HAUT (toutes les pages) ET LE BOUTON DE DEVIS QUI SUIT LE DEFILEMENT
   ============================================================================ */
/* `visibility: hidden` quand elle est rangée : sinon la barre reste dans le parcours clavier alors
   qu'on ne la voit pas (même réflexe que le repère latéral) */
.barre { position: fixed; top: calc(12px + env(safe-area-inset-top, 0px)); left: 12px; right: 12px; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; pointer-events: none; transform: translateY(calc(-100% - 24px)); visibility: hidden; transition: transform .45s var(--sortie), visibility 0s linear .45s; }
.barre > * { pointer-events: auto; box-shadow: 0 8px 24px rgba(0, 0, 0, .28); }
.barre.est-visible { transform: none; visibility: visible; transition-delay: 0s; }
.barre__marque { display: flex; align-items: center; gap: 12px; text-decoration: none; font: 800 16px/1 var(--affiche); letter-spacing: .02em; text-transform: uppercase; background: var(--nuit); color: var(--creme); padding: 10px 20px 10px 14px; border-radius: 999px; }
.barre__marque img { width: 70px; height: auto; }
.barre__marque b { font-weight: 800; color: var(--creme); }
.barre__nav { display: flex; align-items: center; gap: 2px; background: var(--nuit); border-radius: 999px; padding: 5px; }
.barre__nav a { font-size: 15px; font-weight: 600; text-decoration: none; color: var(--creme-2); padding: 9px 16px; border-radius: 999px; transition: color .2s var(--sortie), background-color .2s var(--sortie); }
.barre__nav a:focus { color: var(--creme); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
@media (hover: hover) { .barre__nav a:hover { color: var(--creme); background: var(--ardoise-3); } }
.barre__devis { margin-left: 0; }
.devis-mobile { display: none; }

/* ---------- le menu a trois traits (18/09) ----------
   Il n'apparait QUE la ou la navigation horizontale est masquee (en dessous de 1101 px) : au-dessus,
   les quatre liens sont deja visibles et un bouton de plus ne servirait a rien. */
.barre__menu { display: none; align-items: center; gap: 10px; background: var(--nuit); color: var(--creme); border: 0; border-radius: 999px; padding: 11px 18px 11px 15px; cursor: pointer; font: 700 15px/1 var(--texte); pointer-events: auto; }
.barre__traits { position: relative; display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; }
.barre__traits::before, .barre__traits::after { content: ''; position: absolute; left: 0; width: 20px; height: 2px; background: currentColor; border-radius: 2px; }
.barre__traits::before { top: -6px; }
.barre__traits::after { top: 6px; }
@media (hover: hover) { .barre__menu:hover { background: var(--ardoise-3); } }

/* Le panneau. Il couvre tout l'ecran : sur un telephone, un menu qui ne couvre pas laisse voir la
   page defiler derriere et on ne sait plus ou l'on est. z-index 70 : AU-DESSUS du bandeau cookies
   (60) et du bouton de devis flottant (40), sinon il ouvrirait un menu qu'on ne peut pas viser
   (defaut du 18/09 : deux elements fixes au meme bord se recouvrent). */
.menu { position: fixed; inset: 0; z-index: 70; }
.menu[hidden] { display: none; }
.menu__voile { position: absolute; inset: 0; background: rgba(6, 9, 12, .72); opacity: 0; transition: opacity .3s var(--sortie); }
.menu.est-ouvert .menu__voile { opacity: 1; }
.menu__panneau { position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 86vw); background: var(--ardoise); color: var(--creme); padding: calc(24px + env(safe-area-inset-top, 0px)) 26px calc(26px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; overflow-y: auto; transform: translateX(100%); transition: transform .34s var(--sortie); box-shadow: -20px 0 60px rgba(0, 0, 0, .45); }
.menu.est-ouvert .menu__panneau { transform: none; }
.menu__fermer { align-self: flex-end; width: 44px; height: 44px; background: transparent; border: 0; border-radius: 50%; color: var(--creme); cursor: pointer; position: relative; }
.menu__fermer span, .menu__fermer span::after { position: absolute; left: 11px; top: 21px; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.menu__fermer span { transform: rotate(45deg); }
.menu__fermer span::after { content: ''; left: 0; top: 0; transform: rotate(-90deg); }
@media (hover: hover) { .menu__fermer:hover { background: var(--ardoise-3); } }
.menu__liste { list-style: none; margin: 18px 0 0; padding: 0; }
.menu__liste a { display: block; padding: 16px 0; font: 800 clamp(22px, 5.4vw, 28px)/1.1 var(--affiche); letter-spacing: -.01em; color: var(--creme); text-decoration: none; border-bottom: 1px solid #2b3942; }
@media (hover: hover) { .menu__liste a:hover { color: var(--terre-clair); } }
/* Le second groupe (les cinq matieres, 20/09) est ecrit plus petit : c'est une entree dans le
   detail, pas une rubrique de plus au meme rang. Le panneau defile deja (overflow-y: auto). */
.menu__groupe { margin: 26px 0 0; font: 700 13px/1.4 var(--texte); letter-spacing: .12em; text-transform: uppercase; color: #8f99a1; }
.menu__liste--matieres { margin-top: 4px; }
.menu__liste--matieres a { padding: 12px 0; font-size: clamp(17px, 4vw, 20px); }
.menu__joindre { margin-top: auto; padding-top: 28px; }
.menu__devis { width: 100%; }
.menu__tel { margin: 16px 0 0; text-align: center; font: 800 22px/1 var(--affiche); }
.menu__tel a { color: var(--creme); text-decoration: none; }
/* quand le menu est ouvert, la page dessous ne defile plus */
body.menu-ouvert { overflow: hidden; }

/* ---------- le repere : la coupe de toiture en petit, a droite ---------- */
.repere { position: fixed; right: 12px; top: 50%; z-index: 25; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; transform: translateY(-50%); opacity: 0; visibility: hidden; transition: opacity .4s var(--sortie), visibility 0s linear .4s; }
.repere.est-visible { opacity: 1; visibility: visible; transition-delay: 0s; }
.repere__trait { position: relative; display: block; width: 6px; height: 34px; border-radius: 4px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .3); transition: width .3s var(--sortie); }
/* la zone qu'on peut viser fait 24 x 46 px, sans changer le dessin (un trait de 6 px est trop fin
   pour le doigt comme pour la souris) */
.repere__trait::after { content: ''; position: absolute; inset: -6px -9px; }
.repere__trait span { position: absolute; right: calc(100% + 10px); top: 50%; transform: translateY(-50%); white-space: nowrap; font-size: 13px; font-weight: 700; background: var(--nuit); color: var(--creme); padding: 4px 10px; border-radius: 999px; visibility: hidden; pointer-events: none; }
.repere__trait.est-actif { width: 16px; }
.repere__trait:focus-visible span { visibility: visible; }
@media (hover: hover) { .repere__trait:hover span { visibility: visible; } .repere__trait:hover { width: 16px; } }
.repere__trait--tuile { background: var(--terre); }
.repere__trait--ardoise { background: var(--ardoise-2); }
.repere__trait--zinc { background: var(--zinc); }
.repere__trait--tuffeau { background: var(--tuffeau); }
.repere__trait--sol { background: #2e3b44; }

/* ============================================================================
   1. LE CIEL : la video drone, le nom, le metier, deux boutons en bas au centre
   ============================================================================ */
.hero { height: 100svh; min-height: 660px; padding: 12px; }
.hero__cadre { position: relative; height: 100%; border-radius: 20px; overflow: hidden; background: #1c2226 url('../video/hero-affiche.jpg') 50% 50% / cover no-repeat; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
/* voile en deux couches : leger partout, renforce la ou le texte vit (centre et bas) */
/* renforce le 17/09 : sur les images les plus claires de la boucle (etats 2 et 8 sur 10), le
   chapeau tombait a 4,45 pour 4,5 exiges. Le titre, lui, tient largement. */
/* Le voile, refait le 18/09 : « la video du hero est sombre, fais-la un peu plus claire ».
   Il ne s'agit pas d'eclaircir partout — le voile porte la lisibilite du texte, et l'eclaircir
   uniformement de 20 % faisait tomber le titre de 6,15 a 4,12, sous le seuil de 4,5.
   Les positions des textes ont donc ete MESUREES : sur ordinateur, logo 19-40 %, titre 42-59 %,
   chapeau 61-67 %, boutons 80-89 %. Au-dessus de 42 % il n'y a que le LOGO, qui n'a pas besoin du
   voile pour se lire. C'est donc la, et seulement la, que la video est rendue a sa lumiere :
   le degrade vertical tombe a .04 en haut (il etait a .64), et le halo descend a 55 % pour se
   concentrer sur le texte. Mesure apres : titre 5,28 · chapeau 7,92 (mieux qu'avant) · bouton
   14,16 · numeros 10,18, sur 6 instants de la video, temoins vus.
   ⚠️ Toute retouche de ces valeurs se remesure : node outils/mesurer-hero.js [--tel] */
.hero__voile { position: absolute; inset: 0; background:
  radial-gradient(ellipse 60% 40% at 50% 55%, rgba(6, 9, 12, .74) 0%, rgba(6, 9, 12, .44) 62%, rgba(6, 9, 12, .02) 100%),
  linear-gradient(180deg, rgba(6, 9, 12, .04) 0%, rgba(6, 9, 12, .02) 30%, rgba(6, 9, 12, .30) 44%, rgba(6, 9, 12, .36) 58%, rgba(6, 9, 12, .88) 100%); }
.hero__contenu { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; padding: clamp(28px, 5vh, 56px) var(--marge) clamp(28px, 5vh, 52px); }
.hero__logo { margin-top: auto; }
.hero__logo img { width: clamp(230px, 21vw, 330px); height: auto; filter: drop-shadow(0 8px 28px rgba(0, 0, 0, .55)); }
.hero__titre { margin-top: clamp(14px, 2.4vh, 28px); max-width: 15em; font-size: var(--t-hero); line-height: 1; color: var(--creme); text-shadow: 0 2px 30px rgba(0, 0, 0, .35); }
/* sur la video, les mots mis en valeur restent BLANCS : en terre cuite, ils tombaient a 1,6 de
   contraste sur les pelouses et les toits clairs (banc, 8 instants de la boucle, 17/09).
   C'est l'italique qui les distingue, pas la couleur. */
.hero__titre em { color: var(--creme); }
.hero__chapo { max-width: 36em; margin-top: clamp(14px, 2.2vh, 24px); font-size: 19px; line-height: 1.5; color: #eef0f1; letter-spacing: normal; text-shadow: 0 1px 16px rgba(0, 0, 0, .5); }
.hero__actions { margin-top: auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; padding-top: 28px; }
.hero__numeros { margin-top: 14px; font-size: 15px; font-weight: 600; color: #dfe3e6; font-variant-numeric: tabular-nums; }
.hero__numeros a { text-decoration: none; }
.hero__numeros a:focus { text-decoration: underline; text-underline-offset: 4px; }
@media (hover: hover) { .hero__numeros a:hover { text-decoration: underline; text-underline-offset: 4px; } }

/* ============================================================================
   2. LE SOMMAIRE : les echantillons de matiere, des cartes cliquables
      cote a cote sur ordinateur, les unes sous les autres sur telephone
   ============================================================================ */
.coupe { background: var(--nuit); padding: 44px 0 64px; }
.coupe__titre { font-size: 15px; color: var(--creme-2); margin-bottom: 18px; }
.coupe__titre { font-weight: 700; color: var(--creme); }
.coupe__titre span { font-weight: 400; color: var(--creme-2); }
.coupe__liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.coupe__bloc { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; min-height: 200px; padding: 22px 20px 20px; border-radius: 14px; overflow: hidden; text-decoration: none; cursor: pointer; transition: transform .35s var(--sortie), box-shadow .35s var(--sortie); }
.coupe__bloc::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .55; pointer-events: none; }
.coupe__matiere { font: 800 26px/1.05 var(--affiche); letter-spacing: -.01em; }
.coupe__sujet { margin-top: 6px; font-size: 15px; font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: currentColor; }
/* la fleche dans son cercle : c'est elle qui dit « on peut cliquer » */
.coupe__fleche { position: absolute; top: 16px; right: 16px; width: 46px; height: 46px; border-radius: 50%; box-shadow: inset 0 0 0 2px currentColor; transition: background-color .3s var(--sortie), box-shadow .3s var(--sortie), transform .3s var(--sortie); }
.coupe__fleche::after { content: ''; position: absolute; inset: 0; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat; }
.coupe__bloc:focus-visible { outline: none; }
.coupe__bloc:focus { box-shadow: inset 0 0 0 4px currentColor; }
.coupe__bloc:focus .coupe__sujet { text-decoration-thickness: 3px; }
.coupe__bloc:focus .coupe__fleche { background: var(--terre); box-shadow: none; color: #fff; }
@media (hover: hover) {
  .coupe__bloc:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
  .coupe__bloc:hover .coupe__sujet { text-decoration-thickness: 3px; }
  .coupe__bloc:hover .coupe__fleche { background: var(--terre); box-shadow: none; color: #fff; transform: translateX(3px); }
}
.coupe__bloc--tuile { background: var(--terre); color: var(--creme); }
.coupe__bloc--tuile::before { background: repeating-linear-gradient(180deg, transparent 0 17px, rgba(0, 0, 0, .14) 17px 19px), repeating-radial-gradient(circle at 12px 100%, transparent 0 11px, rgba(255, 255, 255, .06) 11px 12px); background-size: auto, 24px 19px; }
.coupe__bloc--tuile:focus .coupe__fleche, .coupe__bloc--tuile:hover .coupe__fleche { background: var(--nuit); }
.coupe__bloc--ardoise { background: var(--ardoise-2); color: var(--creme); }
.coupe__bloc--ardoise::before { background: repeating-linear-gradient(180deg, transparent 0 13px, rgba(0, 0, 0, .35) 13px 14px), repeating-linear-gradient(90deg, transparent 0 21px, rgba(0, 0, 0, .25) 21px 22px); }
.coupe__bloc--zinc { background: var(--zinc); color: var(--ardoise); }
.coupe__bloc--zinc::before { background: repeating-linear-gradient(90deg, transparent 0 26px, rgba(255, 255, 255, .7) 26px 27px, rgba(0, 0, 0, .12) 27px 28px); }
.coupe__bloc--tuffeau { background: var(--tuffeau); color: var(--ardoise); }
.coupe__bloc--tuffeau::before { background: repeating-linear-gradient(180deg, transparent 0 22px, rgba(93, 88, 78, .18) 22px 23px); }
.coupe__bloc--sol { background: var(--sol-2); color: var(--creme); }
.coupe__bloc--sol::before { background: radial-gradient(circle, rgba(255, 255, 255, .12) 1px, transparent 1.5px) 0 0 / 12px 12px; }

/* ============================================================================
   3. LA TUILE (3D validee, reprise telle quelle)
   ============================================================================ */
.tuile { position: relative; height: 320vh; background: linear-gradient(180deg, var(--nuit) 0, var(--four) 40vh, var(--four) calc(100% - 60vh), var(--ardoise) 100%); }
.tuile__collant { position: sticky; top: 0; height: 100svh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: clamp(24px, 4vw, 72px); max-width: calc(1320px + 2 * var(--marge)); margin-inline: auto; padding: 90px var(--marge) 40px; overflow: clip; }
.tuile__scene { position: relative; width: 100%; max-width: 740px; aspect-ratio: 1; max-height: calc(100svh - 150px); justify-self: center; }
.tuile__lueur { position: absolute; inset: -6%; z-index: 0; background: radial-gradient(closest-side, rgba(207, 69, 32, .30), rgba(207, 69, 32, .08) 55%, rgba(207, 69, 32, 0)); }
.tuile__scene canvas, .tuile__repli { position: absolute; inset: 0; width: 100%; height: 100%; }
.tuile__scene canvas { z-index: 2; cursor: grab; touch-action: pan-y; outline-offset: -2px; }
.tuile__scene.est-tenue canvas { cursor: grabbing; }
.tuile__repli { z-index: 1; object-fit: contain; transition: opacity .4s var(--sortie); }
.tuile__scene.est-vivant .tuile__repli { opacity: 0; }
.tuile__scene[data-etat="repli"] canvas { display: none; }
.tuile__astuce { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 3; font-size: 13px; font-weight: 600; color: var(--creme-2); white-space: nowrap; pointer-events: none; transition: opacity .4s var(--sortie); }
.tuile__astuce::before { content: '↔'; margin-right: 8px; }
.tuile__scene[data-etat="repli"] .tuile__astuce, .tuile__scene.a-tourne .tuile__astuce { opacity: 0; }
.tuile .etiquette { color: var(--terre-clair); }
.tuile__texte h2 { margin-bottom: 28px; }
.tuile__texte h2 em { color: var(--terre-clair); }
.etapes { list-style: none; margin: 0 0 32px; padding: 0 0 0 24px; position: relative; }
.etapes::before, .etapes::after { content: ''; position: absolute; left: 0; top: 8px; width: 2px; border-radius: 2px; }
.etapes::before { bottom: 8px; background: #4a3329; }
.etapes::after { height: calc((100% - 16px) * var(--p, 0)); background: var(--terre-clair); }
.etape { padding-block: 12px; }
.etape h3 { font-size: 19px; font-weight: 700; color: var(--creme-2); transition: color .3s var(--sortie); }
.etape__num { display: inline-block; min-width: 36px; font-family: var(--affiche); font-style: italic; font-weight: 800; font-size: 20px; color: var(--terre-clair); }
.etape p { display: grid; grid-template-rows: 0fr; color: var(--creme-2); padding-left: 36px; transition: grid-template-rows .45s var(--sortie), margin .45s var(--sortie); }
.etape p > span { overflow: hidden; min-height: 0; }
.etape.est-active h3 { color: var(--creme); }
.etape.est-active p { grid-template-rows: 1fr; margin-top: 6px; }

/* ============================================================================
   4. L'ARDOISE : les 9 prestations
   ============================================================================ */
.metiers { position: relative; background: var(--ardoise); overflow: clip; }
.metiers__piste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px 32px; padding: 140px var(--marge); }
.metiers .etiquette { color: var(--terre-clair); }
.metiers__intro { grid-column: 1 / -1; max-width: 44em; }
.metiers__intro h2 { margin-bottom: 24px; }
.metiers__intro h2 em { color: var(--terre-clair); }
.metiers__intro p { color: var(--creme-2); max-width: 36em; }
.panneau { display: grid; gap: 20px; align-content: start; }
.panneau__photo { margin: 0; overflow: hidden; border-radius: 12px; background: var(--ardoise-3); }
.panneau__photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transform: scale(1.001); }
/* Un montage avant/apres porte des mots incrustes (« AVANT », « APRES », le logo) : le recadrage
   en 4:3 les couperait. Celui du sol de terrasse est EMPILE, et j'ai mesure qu'il n'a aucune
   fenetre 4:3 lisible — sous le logo il ne reste que du sol uni (carte-etancheite.js). Il s'affiche
   donc entier, pose sur l'ardoise, plutot que recadre. */
.panneau__photo--entiere img { object-fit: contain; background: var(--ardoise-3); }
.panneau__texte h3 { font: 800 clamp(24px, 2.1vw, 34px)/1.1 var(--affiche); letter-spacing: -.01em; margin-bottom: 10px; }
.panneau__texte p { color: var(--creme-2); max-width: 32em; }
.panneau__lien { display: inline-block; margin-top: 12px; font-weight: 700; color: var(--terre-clair); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.metiers__intro .bouton { margin-top: 28px; }
/* Depuis le decoupage du 18/09, l'accueil ne montre que le NOM de chaque prestation : le detail
   vit sur prestations/. La carte entiere est un lien, avec la meme fleche dans un cercle que le
   sommaire — c'est elle qui dit « on peut cliquer » (demande du client). */
.panneau--lien { text-decoration: none; color: inherit; transition: transform .35s var(--sortie); }
.panneau--lien .panneau__texte { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.panneau--lien h3 { margin-bottom: 0; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; text-decoration-color: rgba(232, 118, 79, .55); transition: text-decoration-thickness .3s var(--sortie); }
.panneau__fleche { position: relative; flex: none; width: 46px; height: 46px; border-radius: 50%; color: var(--terre-clair); box-shadow: inset 0 0 0 2px currentColor; transition: background-color .3s var(--sortie), color .3s var(--sortie), box-shadow .3s var(--sortie), transform .3s var(--sortie); }
.panneau__fleche::after { content: ''; position: absolute; inset: 0; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat; }
.panneau--lien:focus .panneau__fleche { background: var(--terre); box-shadow: none; color: #fff; }
.panneau--lien:focus h3 { text-decoration-thickness: 3px; }
@media (hover: hover) {
  .panneau--lien:hover { transform: translateY(-6px); }
  .panneau--lien:hover h3 { text-decoration-thickness: 3px; }
  .panneau--lien:hover .panneau__fleche { background: var(--terre); box-shadow: none; color: #fff; transform: translateX(3px); }
}
/* le rail horizontal, pose par app.js sur ordinateur seulement */
.metiers--rail .metiers__piste { display: flex; flex-direction: row; align-items: center; width: max-content; height: 100svh; gap: 3.2vw; padding: 100px 8vw 40px var(--marge); }
.metiers--rail .metiers__intro { width: min(34vw, 540px); flex: none; }
.metiers--rail .panneau { flex: none; width: 29vw; }
.metiers--rail .panneau__photo img { height: 46svh; aspect-ratio: auto; }

/* ============================================================================
   5. LE ZINC : nos realisations
   ============================================================================ */
/* overflow clip : a l'ouverture, les photos sont agrandies de 12 % et la colonne de droite depassait
   de 6 px la largeur de l'ecran (mesure du 17/09, sonde-largeur.js) */
.chantiers { position: relative; background: var(--zinc); color: var(--ardoise); padding-block: 140px; overflow: clip; }
.chantiers::before { content: ''; position: absolute; inset: 0 0 auto; height: 90px; background: repeating-linear-gradient(90deg, transparent 0 58px, rgba(255, 255, 255, .55) 58px 59px, rgba(0, 0, 0, .08) 59px 60px); pointer-events: none; -webkit-mask: linear-gradient(180deg, #000, transparent); mask: linear-gradient(180deg, #000, transparent); }
.chantiers .etiquette { color: var(--zinc-encre); }
.chantiers__tete { margin-bottom: 56px; }
.chantiers h2 em { color: var(--terre); }
.avant-apres { margin: 0 0 72px; }
.avant-apres img { width: 100%; height: auto; border-radius: 12px; }
.avant-apres figcaption { margin-top: 14px; font-size: 16px; color: var(--zinc-encre); }
.avant-apres figcaption b { color: var(--ardoise); }
.planche { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: clamp(280px, 30vw, 472px) clamp(280px, 30vw, 472px) clamp(240px, 24vw, 380px); gap: 32px 20px; }
.planche figure { margin: 0; display: flex; flex-direction: column; min-height: 0; }
.planche img { flex: 1; min-height: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.planche figcaption { font-size: 15px; color: var(--zinc-encre); margin-top: 12px; }
.planche__a { grid-column: 1 / 8; grid-row: 1; }
.planche__b { grid-column: 8 / 13; grid-row: 1 / 3; }
.planche__c { grid-column: 1 / 4; grid-row: 2; }
.planche__d { grid-column: 4 / 8; grid-row: 2; }
.planche__e { grid-column: 3 / 11; grid-row: 3; }
/* la deuxieme planche (photos du 19/09) : meme grille, separee par un filet */
.planche--suite { margin-top: 56px; padding-top: 56px; border-top: 1px solid rgba(25, 35, 42, .18); }

/* Les montages AVANT/APRÈS (19/09). Ils portent du TEXTE incruste : hauteur libre, jamais de
   recadrage — sinon les mots « AVANT » et « APRÈS » se font couper. */
.chantiers__sous-titre { font: 800 clamp(22px, 2.4vw, 30px)/1.15 var(--affiche); letter-spacing: -.01em; margin: 0 0 28px; }
.planche + .chantiers__sous-titre, .avant-apres-grille + .chantiers__sous-titre { margin-top: 72px; }
.avant-apres-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; margin-bottom: 0; }
.avant-apres-grille .avant-apres { margin: 0; }
.avant-apres-grille img { width: 100%; height: auto; }
/* la photo large de fin de page */
.chantier-large { margin: 56px 0 0; }
.chantier-large img { width: 100%; height: auto; border-radius: 12px; }
.chantier-large figcaption { margin-top: 14px; font-size: 16px; color: var(--zinc-encre); }
/* sur l'accueil, il ne reste que l'avant/apres et le lien vers la page (decoupage du 18/09) :
   sans la planche, la marge basse de 72 px + les 140 px de la rubrique laissaient un grand vide */
.chantiers__suite { margin: 0; }
.page-accueil .chantiers { padding-bottom: 104px; }
.page-accueil .avant-apres { margin-bottom: 44px; }
/* sur la page realisations, la rubrique n'a pas de tete : la tete de page joue ce role */
.chantiers--page { padding-block: 80px 140px; }
.chantiers--page::before { display: none; }

/* ============================================================================
   6. NOS CAMIONS : fond noir pur, celui des photos (WhatsApp a retire leur transparence)
   ============================================================================ */
.flotte { background: var(--noir); padding-block: 140px; overflow: clip; }
.flotte .etiquette { color: var(--terre-clair); }
/* le texte au-dessus, les deux camions cote a cote POSES SUR LA MEME LIGNE DE SOL (align-items: end) :
   la 1re version mettait la nacelle a part, en colonne, et elle paraissait minuscule a cote de la benne */
.flotte__grille { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-areas: "texte texte" "benne nacelle"; gap: 56px 32px; align-items: end; }
.flotte__texte { grid-area: texte; max-width: 46em; }
.flotte h2 { margin-bottom: 24px; }
.flotte h2 em { color: var(--terre-clair); }
.flotte__texte p { color: var(--creme-2); max-width: 32em; }
.flotte__camion { margin: 0; }
.flotte__camion img { width: 100%; height: auto; }
.flotte__camion figcaption { margin-top: 4px; font-size: 15px; font-weight: 700; color: var(--creme-2); text-align: center; }
.flotte__camion--nacelle { grid-area: nacelle; justify-self: center; width: min(100%, 520px); }
.flotte__camion--benne { grid-area: benne; }

/* ============================================================================
   7. LE TUFFEAU : pourquoi nous choisir
   ============================================================================ */
.confiance { background: var(--tuffeau); color: var(--ardoise); padding-block: 140px; }
.confiance__titre { color: var(--tuffeau-encre); }
.confiance__phrase { font: 800 clamp(28px, 3.2vw, 50px)/1.14 var(--affiche); letter-spacing: -.015em; max-width: 22em; text-wrap: pretty; }
/* #7a746a : a #8a857c, les mots pas encore lus tombaient a 2,87 de contraste sur le tuffeau,
   pour 3 exiges a cette taille (mesure du 17/09) */
.confiance__phrase .mot { color: #7a746a; transition: color .2s linear; }
.confiance__phrase .mot.est-lu { color: var(--ardoise); }
.raisons { list-style: none; margin: 88px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px 24px; }
.raisons li { border-top: 3px solid var(--terre); padding-top: 20px; }
.raisons h3 { font: 800 20px/1.2 var(--affiche); margin-bottom: 8px; }
.raisons p { font-size: 16px; line-height: 1.55; color: var(--tuffeau-encre); }
.faits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 72px 0 0; }
.faits div { border-top: 1px solid rgba(25, 35, 42, .25); padding-top: 20px; }
.faits dt { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--tuffeau-encre); margin-bottom: 8px; }
.faits dd { margin: 0; font-size: 19px; font-weight: 600; line-height: 1.45; }
.faits a { text-decoration: none; color: var(--terre); font-variant-numeric: tabular-nums; }
.faits a:focus { text-decoration: underline; text-underline-offset: 4px; }
@media (hover: hover) { .faits a:hover { text-decoration: underline; text-underline-offset: 4px; } }

/* ============================================================================
   8. LES AVIS CLIENTS
   ============================================================================ */
/* cachee par defaut : elle ne s'affiche que si de VRAIS avis sont renseignes dans assets/js/avis.js
   (sans quoi le visiteur lisait une note de travail, et sans JavaScript une section vide) */
.avis { display: none; background: #f8f7f4; color: var(--ardoise); padding-block: 0 140px; }
.avis.est-remplie { display: block; }
.avis .etiquette { color: var(--tuffeau-encre); }
.avis h2 { margin-bottom: 48px; }
.avis h2 em { color: var(--terre); }
.avis__liste { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.avis__a-completer { grid-column: 1 / -1; padding: 28px; border: 3px dashed var(--terre); border-radius: 14px; background: #fff; font-size: 17px; color: var(--ardoise); }
.avis__carte { margin: 0; padding: 28px; border-radius: 14px; background: #fff; box-shadow: 0 1px 0 rgba(25, 35, 42, .08); }
.avis__note { color: var(--terre); font-size: 20px; letter-spacing: .1em; }
.avis__note span { color: #cfcac1; }
.avis__carte blockquote { margin: 14px 0 18px; }
.avis__carte figcaption { font-weight: 700; }

/* ============================================================================
   9. LE TERRAIN : la carte
   ============================================================================ */
.zone { background: var(--sol); padding-block: 140px; }
.zone .etiquette { color: var(--terre-clair); }
.zone__grille { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px 72px; align-items: center; }
.zone h2 { margin-bottom: 28px; }
.zone h2 em { color: var(--terre-clair); }
.zone__texte > p { color: var(--creme-2); max-width: 30em; }
.zone__sous-titre { margin: 72px 0 0; font: 700 15px/1.4 var(--texte); color: var(--creme); }
.zone__liste { list-style: none; margin: 16px 0 0; padding: 0; columns: 4; column-gap: 36px; font-size: 15px; color: var(--creme-2); }
.zone__liste li { display: flex; justify-content: space-between; gap: 10px; padding-block: 5px; border-bottom: 1px solid #26323a; break-inside: avoid; }
.zone__liste li span:last-child { font-variant-numeric: tabular-nums; color: #9aa4ab; white-space: nowrap; }
.carte { margin: 0; width: min(100%, 78svh); justify-self: center; }
.carte svg { width: 100%; height: auto; aspect-ratio: 1; overflow: visible; }
.carte figcaption { font-size: 13px; color: #8f99a1; margin-top: 12px; text-align: right; }
.carte__sans-js { color: var(--creme-2); }
.carte__sans-js a { color: var(--creme); font-weight: 700; white-space: nowrap; }
.carte .anneau { fill: none; stroke: #34424b; stroke-width: .12; stroke-dasharray: .6 .5; }
.carte .anneau-texte { font: 600 1.05px var(--texte); fill: #8f99a1; letter-spacing: .02px; }
.carte .point { fill: #4b5963; }
.carte .point--zone { fill: var(--creme); }
.carte .nom { font: 600 1.15px var(--texte); fill: var(--creme-2); paint-order: stroke; stroke: var(--sol); stroke-width: .35px; }
.carte .nom--fort { fill: var(--creme); font-size: 1.45px; }
.carte .centre { fill: var(--terre-clair); }
.carte .onde { fill: none; stroke: var(--terre-clair); stroke-width: .15; transform-box: fill-box; transform-origin: center; animation: onde 2.8s var(--sortie) infinite; animation-play-state: var(--jeu-anim, running); }
@keyframes onde { from { transform: scale(1); opacity: .9; } to { transform: scale(5); opacity: 0; } }

/* ============================================================================
   10. LA FAQ
   ============================================================================ */
.faq { background: var(--ardoise); padding-block: 140px; }
.faq .etiquette { color: var(--terre-clair); }
.faq__grille { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px 72px; align-items: start; }
.faq h2 { margin-bottom: 24px; }
.faq h2 em { color: var(--terre-clair); }
.faq__tete p { color: var(--creme-2); }
.faq__tete a { color: var(--creme); font-weight: 700; white-space: nowrap; }
.faq__item { border-bottom: 1px solid #34424b; }
.faq__item:first-child { border-top: 1px solid #34424b; }
.faq__item summary { position: relative; list-style: none; cursor: pointer; padding: 24px 56px 24px 0; font: 700 20px/1.3 var(--affiche); color: var(--creme); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::before, .faq__item summary::after { content: ''; position: absolute; right: 12px; top: 50%; width: 18px; height: 2px; background: var(--terre-clair); transition: transform .3s var(--sortie); }
.faq__item summary::after { transform: rotate(90deg); }
.faq__item[open] summary::after { transform: rotate(0deg); }
.faq__item summary:focus-visible { outline: none; }
.faq__item summary:focus { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
@media (hover: hover) { .faq__item summary:hover { color: var(--terre-clair); } }
/* max-width 34em : au-dela, les reponses depassaient 85 caracteres par ligne (confort de lecture) */
.faq__reponse { padding: 0 56px 26px 0; color: var(--creme-2); max-width: 34em; }
.faq__reponse a { color: var(--creme); font-weight: 700; }

/* ============================================================================
   11. LE CONTACT : le gros appel a l'action et le formulaire
   ============================================================================ */
.contact { background: linear-gradient(180deg, var(--ardoise) 0, var(--nuit) 50vh); padding-top: 24px; overflow: clip; }
.defile { overflow: hidden; padding-block: 24px 72px; }
.defile__piste { display: flex; width: max-content; animation: defile 38s linear infinite; animation-play-state: var(--jeu-anim, running); }
/* #6b7a85 et non #3a4852 : a 130 px sur l'ardoise, l'ancien gris tombait a 1,71 de contraste (banc) */
.defile__piste span { font: italic 800 clamp(56px, 9vw, 160px)/1 var(--affiche); letter-spacing: -.02em; white-space: nowrap; color: #6b7a85; padding-right: .3em; }
@keyframes defile { to { transform: translateX(-50%); } }
/* une seule colonne depuis le 18/09 : le formulaire a sa page, il a quitte l accueil */
.contact__grille { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; align-items: start; padding-bottom: 140px; max-width: calc(760px + 2 * var(--marge)); }
.contact__action { margin: 32px 0 0; }
.contact__ou { margin: 22px 0 0; color: var(--creme-2); }
.contact__autres b { color: var(--creme); font-weight: 700; }
.pied__liste b { color: var(--creme); font-weight: 700; }
.contact h2 { font-size: clamp(32px, 3.6vw, 56px); line-height: 1.06; }
.contact h2 em { display: block; margin-top: 8px; color: var(--terre-clair); }
.contact__tel { margin: 36px 0 20px; font: 800 clamp(40px, 4.6vw, 72px)/1 var(--affiche); letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.contact__tel a { text-decoration: none; color: var(--creme); background: linear-gradient(var(--terre-clair), var(--terre-clair)) 0 100% / 100% 3px no-repeat; padding-bottom: 6px; }
.contact__autres { list-style: none; margin: 0; padding: 0; color: var(--creme-2); line-height: 1.9; }
.contact__autres a { color: var(--creme); font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.contact__formulaire { background: var(--ardoise-3); border-radius: 18px; padding: clamp(24px, 3vw, 40px); }
.contact__sous-titre { font: 800 24px/1.2 var(--affiche); margin-bottom: 6px; }

/* ---------- le formulaire (accueil et page devis) ---------- */
.formulaire__intro { font-size: 15px; color: var(--creme-2); margin-bottom: 20px; }
.formulaire__grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.champ { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.champ--large { grid-column: 1 / -1; }
.champ label { font-size: 15px; font-weight: 700; color: var(--creme); }
.champ input, .champ select, .champ textarea { width: 100%; font: 500 17px/1.4 var(--texte); color: var(--creme); caret-color: var(--terre-clair); background: var(--nuit); border: 1px solid #45545e; border-radius: 10px; padding: 13px 14px; transition: border-color .2s var(--sortie), box-shadow .2s var(--sortie); }
.champ textarea { resize: vertical; min-height: 130px; }
.champ select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23b9bfc4' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 20px; padding-right: 44px; }
.champ input::placeholder, .champ textarea::placeholder { color: #8f99a1; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--terre-clair); box-shadow: 0 0 0 3px rgba(232, 118, 79, .35); }
.champ.est-faux input, .champ.est-faux textarea, .champ.est-faux select { border-color: var(--faux); box-shadow: 0 0 0 2px rgba(255, 157, 128, .35); }
.champ.est-faux label, .consentement.est-faux label { color: var(--faux); }
.champ--piege { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.formulaire { position: relative; }
.consentement { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; margin-top: 22px; }
.consentement input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--terre); cursor: pointer; }
.consentement label { font-size: 15px; line-height: 1.5; color: var(--creme); cursor: pointer; }
.formulaire__note { margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: rgba(232, 118, 79, .12); box-shadow: inset 0 0 0 1px rgba(232, 118, 79, .45); font-size: 14px; line-height: 1.5; color: var(--creme); }
.formulaire__rgpd { margin-top: 12px; font-size: 14px; color: var(--creme-2); }
.formulaire__rgpd a { color: var(--creme); }
.formulaire__envoi { margin-top: 22px; width: 100%; }
.formulaire__etat { margin-top: 14px; font-size: 16px; font-weight: 600; min-height: 1.5em; }
.formulaire__etat--erreur { color: var(--faux); }
.formulaire__etat--ok { color: #bfe3c4; }

/* ============================================================================
   LE PIED DE PAGE (toutes les pages)
   ============================================================================ */
.pied { background: var(--pied); color: var(--creme-2); padding: 80px 0 32px; font-size: 15px; }
/* 5 colonnes depuis le 20/09 : la colonne « Par matiere » s'est ajoutee aux quatre existantes */
.pied__grille { display: grid; grid-template-columns: minmax(0, 1.25fr) repeat(4, minmax(0, 1fr)); gap: 40px 32px; }
.pied__marque img { width: 220px; height: auto; }
.pied__devise { margin-top: 16px; font: italic 700 17px/1.4 var(--affiche); color: var(--creme); }
.pied__titre { font: 700 13px/1.4 var(--texte); letter-spacing: .12em; text-transform: uppercase; color: var(--creme); margin-bottom: 14px; }
.pied__liste { list-style: none; margin: 0; padding: 0; line-height: 1.9; }
.pied__liste a, .pied__cookies { color: var(--creme-2); text-decoration: none; }
.pied__liste a:focus, .pied__cookies:focus { color: var(--creme); text-decoration: underline; text-underline-offset: 4px; }
@media (hover: hover) { .pied__liste a:hover, .pied__cookies:hover { color: var(--creme); text-decoration: underline; text-underline-offset: 4px; } }
.pied__liste span { font-size: 13px; color: #7f8a92; }
.pied__cookies { background: none; border: 0; padding: 0; cursor: pointer; font-size: 15px; line-height: 1.9; }
.pied__bas { margin-top: 56px; padding-top: 24px; border-top: 1px solid #1c252b; font-size: 13px; color: #7f8a92; }

/* ============================================================================
   LE BANDEAU COOKIES
   ============================================================================ */
.cookies { position: fixed; left: 12px; bottom: 12px; z-index: 60; width: min(440px, calc(100% - 24px)); padding: 22px; border-radius: 16px; background: var(--ardoise); color: var(--creme); box-shadow: 0 20px 60px rgba(0, 0, 0, .5), inset 0 0 0 1px #34424b; }
.cookies[hidden] { display: none; }
.cookies__titre { font: 800 18px/1.3 var(--affiche); margin-bottom: 8px; }
.cookies__texte { font-size: 15px; line-height: 1.55; color: var(--creme-2); }
.cookies__texte a { color: var(--creme); }
.cookies__choix { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }

/* ============================================================================
   LES PAGES INTERIEURES (devis, traitement Dalep, mentions legales, confidentialite)
   ============================================================================ */
.interieur { padding-top: 120px; }
.interieur h1 { font-size: clamp(36px, 4.4vw, 68px); line-height: 1.02; }
.interieur h1 em { color: var(--terre-clair); }
.interieur .etiquette { color: var(--terre-clair); }

/* ---------- page devis ---------- */
.devis__grille { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px 80px; align-items: start; padding-block: 40px 120px; }
.devis__chapo { margin-top: 24px; font-size: 19px; color: var(--creme-2); max-width: 30em; }
.devis__etapes { list-style: none; counter-reset: etape; margin: 40px 0 0; padding: 0; display: grid; gap: 14px; }
.devis__etapes li { counter-increment: etape; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: baseline; color: var(--creme-2); }
.devis__etapes li::before { content: counter(etape); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--terre); color: #fff; font: 800 17px/1 var(--affiche); }
.devis__etapes b { color: var(--creme); }
.devis__joindre { margin-top: 44px; padding-top: 28px; border-top: 1px solid #26323a; color: var(--creme-2); }
.devis__tel { margin: 6px 0 10px; font: 800 clamp(34px, 3.4vw, 52px)/1.1 var(--affiche); letter-spacing: -.02em; }
.devis__tel a { color: var(--creme); text-decoration: none; }
.devis__joindre a { color: var(--creme); font-weight: 700; }
.devis__formulaire { background: var(--ardoise-3); border-radius: 18px; padding: clamp(24px, 3vw, 44px); }

/* ---------- page traitement Dalep ---------- */
.dalep-hero { padding-block: 40px 120px; }
.dalep-hero__grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px 72px; align-items: center; }
.dalep-hero__chapo { margin-top: 24px; font-size: 19px; color: var(--creme-2); max-width: 32em; }
.dalep-hero__prix { margin-top: 28px; font-size: 19px; color: var(--creme-2); }
.dalep-hero__prix b { font: 800 clamp(44px, 4.6vw, 72px)/1 var(--affiche); letter-spacing: -.02em; color: var(--terre-clair); margin-right: 8px; }
.dalep-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.dalep-hero__photo { margin: 0; }
.dalep-hero__photo img { width: 100%; height: auto; border-radius: 16px; }
.dalep-produit { background: var(--tuffeau); color: var(--ardoise); padding-block: 120px; }
.dalep-produit .etiquette { color: var(--tuffeau-encre); }
.dalep-produit__grille { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 48px 88px; align-items: center; }
.dalep-produit__bidon { margin: 0; justify-self: center; max-width: 380px; }
.dalep-produit__bidon img { width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(25, 35, 42, .22)); }
.dalep-produit h2 { margin-bottom: 20px; }
.dalep-produit h2 em { color: var(--terre); }
.dalep-produit__texte > p { color: var(--tuffeau-encre); max-width: 34em; }
.dalep-produit__liste { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.dalep-produit__liste li { position: relative; padding-left: 30px; }
.dalep-produit__liste li::before { content: ''; position: absolute; left: 0; top: .5em; width: 14px; height: 14px; border-radius: 50%; background: var(--terre); }
.dalep-preuve { padding-block: 120px; }
.dalep-preuve h2 { margin-bottom: 40px; }
.dalep-preuve h2 em { color: var(--terre-clair); }
.dalep-preuve .avant-apres { margin-bottom: 0; }
.dalep-preuve .avant-apres figcaption { color: var(--creme-2); }
.dalep-preuve .avant-apres figcaption b { color: var(--creme); }
.calcul { background: var(--zinc); color: var(--ardoise); padding-block: 120px; }
.calcul .etiquette { color: var(--zinc-encre); }
.calcul__grille { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px 80px; align-items: center; }
.calcul h2 { margin-bottom: 20px; }
.calcul h2 em { color: var(--terre); }
.calcul__tete p { color: var(--zinc-encre); max-width: 30em; }
.calcul__carte { background: #fff; border-radius: 20px; padding: clamp(24px, 3vw, 44px); box-shadow: 0 30px 60px rgba(25, 35, 42, .12); }
.calcul__label { display: block; font-weight: 700; margin-bottom: 12px; }
.calcul__curseur { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; }
.calcul__curseur output { font: 800 24px/1 var(--affiche); font-variant-numeric: tabular-nums; min-width: 4.4em; text-align: right; }
.calcul__curseur input { width: 100%; height: 28px; appearance: none; background: transparent; cursor: pointer; }
.calcul__curseur input::-webkit-slider-runnable-track { height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--terre) var(--rempli, 16%), #d7dadd var(--rempli, 16%)); }
.calcul__curseur input::-webkit-slider-thumb { appearance: none; width: 28px; height: 28px; margin-top: -10px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--terre), 0 4px 10px rgba(0, 0, 0, .2); }
.calcul__curseur input::-moz-range-track { height: 8px; border-radius: 8px; background: #d7dadd; }
.calcul__curseur input::-moz-range-progress { height: 8px; border-radius: 8px; background: var(--terre); }
.calcul__curseur input::-moz-range-thumb { width: 24px; height: 24px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--terre); }
.calcul__curseur input:focus-visible { outline: 3px solid var(--terre); outline-offset: 4px; }
.calcul__choix { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.calcul__choix button { font: 700 15px/1 var(--texte); padding: 10px 14px; border-radius: 999px; border: 0; background: #eef0f1; color: var(--ardoise); cursor: pointer; font-variant-numeric: tabular-nums; transition: background-color .2s var(--sortie), color .2s var(--sortie); }
.calcul__choix button[aria-pressed="true"] { background: var(--ardoise); color: #fff; }
.calcul__choix button:focus { box-shadow: inset 0 0 0 2px var(--terre); }
@media (hover: hover) { .calcul__choix button:hover { background: #dfe3e6; } .calcul__choix button[aria-pressed="true"]:hover { background: var(--ardoise); } }
.calcul__resultat { margin-top: 28px; padding-top: 24px; border-top: 1px solid #e3e6e8; }
.calcul__etiquette { font-size: 15px; font-weight: 700; color: var(--zinc-encre); }
.calcul__prix { margin-top: 6px; font: 800 clamp(48px, 5vw, 76px)/1 var(--affiche); letter-spacing: -.02em; color: var(--terre); font-variant-numeric: tabular-nums; }
.calcul__prix small { font-size: .38em; color: var(--zinc-encre); letter-spacing: 0; }
.calcul__detail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 22px 0 0; }
.calcul__detail dt { font-size: 13px; font-weight: 700; color: var(--zinc-encre); }
.calcul__detail dd { margin: 2px 0 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.calcul__mention { margin-top: 18px; font-size: 14px; color: var(--zinc-encre); }
.calcul__bouton { width: 100%; margin-top: 24px; }
.appel-final { background: var(--ardoise); padding-block: 110px; }
.appel-final__grille { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 64px; align-items: center; }
.appel-final h2 em { color: var(--terre-clair); }
.appel-final__actions p { margin-top: 16px; color: var(--creme-2); }
.appel-final__actions p a { color: var(--creme); font-weight: 700; white-space: nowrap; }

/* ---------- la tete des pages prestations et realisations (decoupage du 18/09) ---------- */
/* un titre lu par les lecteurs d'ecran mais pas affiche : la tete de page dit deja la meme chose,
   et une rubrique sans titre n'est pas annoncee correctement */
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* le bas de la tete respire : sur la page realisations, la rubrique qui suit a sa PROPRE couleur
   (le zinc) et le changement de fond tombait a 20 px sous le dernier mot */
.page-tete { padding-block: 40px 64px; }
.page-tete__chapo { margin-top: 24px; font-size: 19px; color: var(--creme-2); max-width: 34em; }

/* ---------- page prestations : les neuf, une par une ---------- */
.prestations { padding-block: 0; }
.presta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 72px; align-items: center; padding-block: 60px; border-top: 1px solid #22303a; }
.presta:first-child { border-top: 0; padding-top: 16px; }
.presta:last-child { padding-bottom: 110px; }
/* une prestation sur deux a sa photo a droite : la page ne se lit pas comme une liste de cases */
.presta:nth-child(even) .presta__photo { order: 2; }
.presta__photo { margin: 0; overflow: hidden; border-radius: 14px; background: var(--ardoise-3); }
.presta__photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
/* Un montage avant/apres porte du TEXTE dans ses coins : il s affiche en entier, jamais recadre
   (un object-fit: cover en 4:3 sur une image 3:2 coupe 5,5 % de chaque cote — pile les libelles) */
.presta__photo--entiere img { aspect-ratio: auto; object-fit: contain; }
.presta__num { font: 800 15px/1 var(--affiche); letter-spacing: .14em; color: var(--terre-clair); margin: 0 0 14px; }
.presta__texte h2 { font-family: var(--affiche); font-weight: 800; font-size: clamp(28px, 3vw, 46px); line-height: 1.06; letter-spacing: -.02em; margin: 0 0 14px; }
.presta__texte p { color: var(--creme-2); max-width: 34em; }
.presta__devis { display: inline-block; margin-top: 18px; font-weight: 700; color: var(--terre-clair); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.presta--dalep .bouton { margin-top: 22px; }
@media (hover: hover) { .presta__devis:hover { color: #fff; } }

/* ---------- pages legales ---------- */
.legal { max-width: calc(820px + 2 * var(--marge)); padding-block: 40px 120px; }
.legal h1 { margin-bottom: 12px; }
.legal__maj { color: var(--creme-2); font-size: 15px; }
.legal h2 { margin: 44px 0 12px; font: 800 24px/1.25 var(--affiche); color: var(--creme); }
.legal p { color: var(--creme-2); margin-top: 10px; line-height: 1.7; }
.legal a { color: var(--creme); }
.legal b { color: var(--creme); }
.a-completer { background: #ffd54a; color: #1a1a1a; padding: 1px 6px; border-radius: 4px; font-weight: 700; }

/* ============================================================================
   LES PAGES « MATIERE » (20/09/2026)
   Demande de Fethi : « quand on appuie sur Tuiles, c'est une page pour la tuile ».
   L'IDEE : la carte qu'on presse DEVIENT la page. Le bandeau de tete reprend exactement la couleur
   et la texture CSS de l'echantillon du sommaire, en pleine largeur. Les cinq pages se ressemblent
   par la structure et se distinguent par la matiere — c'est la coupe de toiture qui continue.
   Les textures sont celles de .coupe__bloc--* : elles ne sont ecrites qu'une fois, plus bas.
   ⚠️ Le texte passe SUR ces textures : chaque couleur a ete choisie pour tenir 4,5 de contraste,
   puis MESUREE sur les pixels peints par contraste-vue.js (errors §1 : un fond declare n'est pas
   un fond peint).
   ============================================================================ */
.interieur--matiere { padding-top: 0; }

/* ---------- le bandeau de tete ---------- */
.matiere-hero { position: relative; isolation: isolate; padding-block: 136px 88px; }
.matiere-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .32; pointer-events: none; }
.matiere-hero__grille { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 40px 64px; align-items: center; }
.matiere-hero__chapo { margin-top: 24px; font-size: 19px; max-width: 34em; }
.matiere-hero__rassure { margin-top: 18px; font-size: 16px; font-weight: 700; }
.matiere-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.matiere-hero__photo { margin: 0; }
/* Les cinq photos de tete n'ont pas la meme forme (p06 fait 1536x2048, p11 1024x765) : sans
   plafond, le bandeau de la zinguerie faisait 900 px de haut et celui de la tuile 700. On les
   ramene a la meme hauteur maximale. Le recadrage est sans risque ici : aucune de ces cinq photos
   ne porte de texte incruste (contrairement aux montages avant/apres, jamais recadres). */
.matiere-hero__photo img { width: 100%; height: auto; max-height: clamp(320px, 46vw, 520px); object-fit: cover; border-radius: 16px; box-shadow: 0 26px 54px rgba(0, 0, 0, .3); }
.matiere-hero__photo figcaption { margin-top: 12px; font-size: 15px; }

/* Les cinq peaux. Couleurs et textures IDENTIQUES a celles des echantillons du sommaire.
   L'accent (le mot en italique du titre, l'etiquette) change avec la matiere, parce que le
   terre-clair du reste du site ne tient pas le contraste sur l'orange ni sur l'ardoise. */
.matiere--tuile .matiere-hero { background: var(--terre); color: var(--creme); }
.matiere--tuile .matiere-hero::before { background: repeating-linear-gradient(180deg, transparent 0 17px, rgba(0, 0, 0, .14) 17px 19px), repeating-radial-gradient(circle at 12px 100%, transparent 0 11px, rgba(255, 255, 255, .06) 11px 12px); background-size: auto, 24px 19px; }
.matiere--tuile .matiere-hero h1 em, .matiere--tuile .matiere-hero .etiquette { color: #fff; }
/* 🔴 Vu sur la premiere capture : le fond de ce bandeau EST la couleur d'action du site, donc le
   bouton « Demander un devis gratuit » disparaissait dedans et c'est le bouton secondaire qui
   ressortait — la hierarchie a l'envers. Ici, et ici seulement, le bouton plein s'inverse.
   Il reste le SEUL bouton plein de la page : les autres, plus bas, sont sur fond sombre. */
.matiere--tuile .matiere-hero .bouton--action { background: var(--creme); color: var(--terre); }
.matiere--tuile .matiere-hero .bouton--clair { background: transparent; box-shadow: inset 0 0 0 2px rgba(245, 243, 239, .75); }
/* Le bouton de la BARRE tombait dans le meme piege, et il est fixe : mesure faite sur la capture,
   son pixel valait 184,58,26 — exactement le fond du bandeau. Il s'inverse donc lui aussi sur
   cette page, et il reste parfaitement visible plus bas, sur le fond sombre. */
.matiere--tuile .barre__devis { background: var(--creme); color: var(--terre); }
@media (hover: hover) {
  .matiere--tuile .matiere-hero .bouton--action:hover { background: #fff; color: #9a2f13; }
  .matiere--tuile .barre__devis:hover { background: #fff; color: #9a2f13; }
}

.matiere--ardoise .matiere-hero { background: var(--ardoise-2); color: var(--creme); }
.matiere--ardoise .matiere-hero::before { background: repeating-linear-gradient(180deg, transparent 0 13px, rgba(0, 0, 0, .35) 13px 14px), repeating-linear-gradient(90deg, transparent 0 21px, rgba(0, 0, 0, .25) 21px 22px); }
.matiere--ardoise .matiere-hero h1 em { color: #cfe0f0; }
.matiere--ardoise .matiere-hero .etiquette { color: #fff; }

.matiere--zinc .matiere-hero { background: var(--zinc); color: var(--ardoise); }
.matiere--zinc .matiere-hero::before { background: repeating-linear-gradient(90deg, transparent 0 26px, rgba(255, 255, 255, .7) 26px 27px, rgba(0, 0, 0, .12) 27px 28px); }
.matiere--zinc .matiere-hero h1 em, .matiere--zinc .matiere-hero .etiquette { color: #8c2a11; }
/* MESURE, pas calcul : la legende etait a 3,82 (seuil 4,5). Le fond declare vaut #d3d7da, mais le
   pixel reellement peint sous les lettres vaut 162,165,166 — la texture et l'ombre de la photo
   l'assombrissent. L'encre passe donc a l'anthracite : 6,4 mesure. */
.matiere--zinc .matiere-hero__photo figcaption { color: var(--ardoise); }

.matiere--tuffeau .matiere-hero { background: var(--tuffeau); color: var(--ardoise); }
.matiere--tuffeau .matiere-hero::before { background: repeating-linear-gradient(180deg, transparent 0 22px, rgba(93, 88, 78, .18) 22px 23px); }
.matiere--tuffeau .matiere-hero h1 em, .matiere--tuffeau .matiere-hero .etiquette { color: #8c2a11; }
/* meme mesure que sur le zinc : l'ombre portee de la photo assombrit le pixel sous la legende
   (190,188,183 au lieu du #efece6 declare), et l'encre tuffeau tombait a 4,09 */
.matiere--tuffeau .matiere-hero__photo figcaption { color: var(--ardoise); }

.matiere--sol .matiere-hero { background: var(--sol-2); color: var(--creme); }
.matiere--sol .matiere-hero::before { background: radial-gradient(circle, rgba(255, 255, 255, .12) 1px, transparent 1.5px) 0 0 / 12px 12px; }
.matiere--sol .matiere-hero h1 em { color: var(--terre-clair); }
/* 🔴 MESURE : l'etiquette en terre-clair sortait a 4,44 pour un seuil de 4,5. Mon calcul disait
   4,98 — il partait du fond DECLARE (#1f2a31) alors que la texture en pointillés eclaircit le pixel
   reellement peint a 40,50,57. Un fond declare n'est pas un fond peint (errors §1). Teinte eclaircie
   pour le petit texte ; le grand titre, lui, garde terre-clair (il passe, c'est du gros texte). */
.matiere--sol .matiere-hero .etiquette { color: #f5a488; }

/* ---------- « ce que nous faisons » : la liste de points ---------- */
.matiere-faire { padding-block: 104px; }
.matiere-faire h2 { margin-bottom: 40px; }
.matiere-points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 56px; max-width: 1060px; color: var(--creme-2); }
.matiere-points li { position: relative; padding-left: 34px; }
.matiere-points li b { color: var(--creme); }
.matiere-points li::before { content: ''; position: absolute; left: 0; top: .62em; width: 18px; height: 3px; border-radius: 2px; background: var(--terre-clair); }

/* ---------- blocs texte + photo ---------- */
/* 🔴 MESURE : reveler.js ouvre les photos depuis scale(1,12). Tant que le visiteur n'est pas
   arrive dessus, l'image est donc 12 % plus large que sa colonne et elargit la page de 2 px
   sur telephone (412 -> 414). La rubrique « chantiers » ne le montrait pas : elle porte
   « overflow: clip » depuis le debut. Les rubriques matiere le portent maintenant aussi. */
.matiere-bloc { padding-bottom: 104px; overflow: clip; }
.matiere-bloc__grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 72px; align-items: center; }
.matiere-bloc--inverse .matiere-bloc__texte { order: 2; }
.matiere-bloc h2 { margin-bottom: 24px; }
.matiere-bloc h2 em { color: var(--terre-clair); }
.matiere-bloc__texte > p { color: var(--creme-2); max-width: 34em; }
.matiere-bloc__texte > p + p { margin-top: 18px; }
.matiere-bloc__action { margin-top: 30px; }
/* Aucune contrainte de forme sur ces photos : pas d'aspect-ratio, pas d'object-fit. Un recadrage
   en 4:3 couperait les montages avant/apres, qui portent des mots incrustes (piege du 19/09). */
.matiere-bloc__photo { margin: 0; }
.matiere-bloc__photo img { width: 100%; height: auto; border-radius: 14px; }
.matiere-bloc__photo figcaption { margin-top: 12px; font-size: 15px; color: #8f99a1; }

/* ---------- la galerie de detail ---------- */
.matiere-galerie { padding-bottom: 104px; overflow: clip; }
.matiere-galerie h2 { margin-bottom: 40px; }
.matiere-galerie__grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 28px; }
.matiere-galerie__grille--deux { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.matiere-galerie figure { margin: 0; }
/* Ici le recadrage est volontaire et sans risque : ce sont des plans rapproches, sans texte. */
.matiere-galerie img { width: 100%; height: clamp(240px, 26vw, 360px); object-fit: cover; border-radius: 12px; }
.matiere-galerie figcaption { margin-top: 12px; font-size: 15px; color: #8f99a1; }

/* ---------- la preuve : les avant/apres (page façade) ---------- */
.matiere-preuve { padding-bottom: 104px; overflow: clip; }
.matiere-preuve h2 { margin-bottom: 40px; }
/* 🔴 MESURE : .avant-apres est nee dans la rubrique « chantiers », qui a un fond CLAIR ; sa legende
   est donc ecrite en zinc-encre. Reprise ici sur le fond sombre de la page, elle tombait a 1,99 sur
   les cinq montages (seuil 4,5). Meme correction que .dalep-preuve, qui avait le meme probleme. */
.matiere-preuve .avant-apres figcaption { color: #8f99a1; }
.matiere-preuve .avant-apres figcaption b { color: var(--creme); }

/* ---------- les prestations liees ---------- */
.matiere-liens { padding-bottom: 104px; }
.matiere-liens h2 { margin-bottom: 36px; }
.matiere-liens__liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.matiere-liens__liste a { display: flex; flex-direction: column; gap: 5px; text-decoration: none; padding: 22px 26px; border-radius: 12px; background: var(--ardoise-3); transition: background-color .25s var(--sortie), transform .25s var(--sortie); }
.matiere-liens__liste b { font: 800 19px/1.2 var(--affiche); color: var(--creme); }
.matiere-liens__liste span { font-size: 15px; color: var(--creme-2); }
/* Le focus doit changer des pixels DANS la boite du lien, et repondre a :focus et pas seulement a
   :focus-visible — un focus pose par script (ce que fait la mesure) ne declenche pas le second
   (piege du 16/09). */
.matiere-liens__liste a:focus { background: #2e3d48; }
.matiere-liens__liste a:focus b { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; }
@media (hover: hover) { .matiere-liens__liste a:hover { background: #2e3d48; transform: translateY(-3px); } .matiere-liens__liste a:hover b { color: var(--terre-clair); } }

/* ---------- les autres matieres, en bas de page ---------- */
/* Le partiel ecrit les CINQ ; la page courante cache la sienne, et la grille passe a quatre.
   C'est ce qui permet a ce morceau de n'exister qu'a un seul endroit pour cinq pages. */
.matiere--tuile .matiere-suite__item--tuile,
.matiere--ardoise .matiere-suite__item--ardoise,
.matiere--zinc .matiere-suite__item--zinc,
.matiere--tuffeau .matiere-suite__item--tuffeau,
.matiere--sol .matiere-suite__item--sol { display: none; }
@media (min-width: 761px) { .matiere-suite__liste { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ============================================================================
   ECRANS MOYENS
   ============================================================================ */
@media (max-width: 1100px) {
  /* La navigation horizontale disparait ici : c'est donc ici que le menu a trois traits prend le
     relais. Sans lui, telephone et tablette n'avaient aucun menu (corrige le 18/09).
     Et la barre est visible DES LE PREMIER ECRAN : sur l'accueil elle n'apparaissait qu'une fois la
     video passee, donc le menu non plus — un menu qu'il faut chercher n'est pas un menu.
     Sur ordinateur, rien ne change : les quatre liens s'y affichent toujours apres le haut de page. */
  .barre { transform: none; visibility: visible; transition: none; }
  .barre__nav { display: none; }
  .barre__devis { display: none; }   /* l'action « devis » vit dans le menu et, sur telephone, dans le bouton flottant */
  .barre__menu { display: inline-flex; }
  .repere { display: none; }
  .coupe__matiere { font-size: 22px; }
  .coupe__bloc { min-height: 170px; padding: 18px 16px; }
  .coupe__fleche { width: 40px; height: 40px; top: 12px; right: 12px; }
  .zone__liste { columns: 2; }
  .planche { grid-template-rows: clamp(240px, 36vw, 400px) clamp(240px, 36vw, 400px) clamp(200px, 30vw, 340px); }
  .raisons { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pied__grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .avis__liste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .presta { gap: 28px 44px; padding-block: 48px; }
  /* pages matiere : la photo de tete passe sous le texte, les listes en une colonne */
  .matiere-hero__grille { grid-template-columns: 1fr; gap: 36px; }
  .matiere-points { grid-template-columns: 1fr; gap: 18px; }
  .matiere-liens__liste { grid-template-columns: 1fr; }
  .matiere-galerie__grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* en dessous de 860 px, une prestation passe en colonne : a 44 % de largeur, les titres longs
   (« Traitement et renovation de facade ») se coupaient en quatre lignes */
@media (max-width: 860px) {
  .presta { grid-template-columns: 1fr; gap: 22px; }
  .presta:nth-child(even) .presta__photo { order: 0; }
  /* pages matiere : texte puis photo, dans l'ordre du document — l'inversion visuelle des blocs
     pairs n'a plus de sens sur une colonne, et elle ferait lire la photo avant son texte */
  .matiere-bloc__grille { grid-template-columns: 1fr; gap: 26px; }
  .matiere-bloc--inverse .matiere-bloc__texte { order: 0; }
  .matiere-galerie__grille, .matiere-galerie__grille--deux { grid-template-columns: 1fr; }
  .matiere-galerie img { height: clamp(220px, 52vw, 330px); }
}

/* ============================================================================
   TELEPHONE
   ============================================================================ */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .etiquette { margin-bottom: 14px; }

  /* la barre : la marque seule en haut, le bouton de devis flotte en bas */
  .barre__devis { display: none; }
  .barre__marque { padding: 8px 16px 8px 10px; font-size: 14px; }
  .barre__marque img { width: 56px; }
  .devis-mobile { display: block; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 40; background: var(--terre); color: #fff; font-weight: 700; font-size: 16px; letter-spacing: .04em; text-transform: uppercase; text-align: center; text-decoration: none; padding: 16px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); transition: transform .45s var(--sortie); }
  .devis-mobile[hidden] { display: none; }
  /* meme inversion que la barre : sur la page tuile, le fond du bandeau est la couleur d'action,
     et ce bouton flotte par-dessus des le premier ecran */
  .matiere--tuile .devis-mobile { background: var(--creme); color: var(--terre); }
  .page-accueil .devis-mobile { transform: translateY(calc(100% + 40px)); }
  .page-accueil.hero-passe .devis-mobile { transform: none; }
  .pied { padding-bottom: 100px; }
  /* 🔴 le bandeau se pose AU-DESSUS du bouton de devis flottant : posés tous les deux en bas, le
     bandeau (z-index 60) recouvrait le bouton (z-index 40) et le doigt tombait sur « Tout refuser »
     (mesuré le 18/09 sur 3 pages et 3 largeurs). Sur la page devis, le bouton n'existe pas. */
  .cookies { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
  .page-devis .cookies { bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }

  .hero { padding: 8px; height: 100svh; min-height: 620px; }
  .hero__cadre { border-radius: 14px; background-image: url('../video/hero-affiche-tel.jpg'); }
  /* Meme principe que sur ordinateur, avec les positions MESUREES du telephone : logo 17-32 %,
     titre 35-49 %, chapeau 51-63 %, boutons 76-92 %. Au-dessus de 35 %, rien que le logo — le haut
     est donc rendu a la video (.04 au lieu de .70), et le halo, lui, est GARDE dense : c'est encore
     sur telephone que le texte est le plus exposé (le 17/09 le chapeau y tombait a 2,93 sans voile).
     Mesure apres : titre 6,04 · chapeau 9,02 · bouton 15,16 · numeros 11,82, temoins vus. */
  .hero__voile { background:
    radial-gradient(ellipse 78% 40% at 50% 56%, rgba(6, 9, 12, .78) 0%, rgba(6, 9, 12, .48) 62%, rgba(6, 9, 12, .04) 100%),
    linear-gradient(180deg, rgba(6, 9, 12, .04) 0%, rgba(6, 9, 12, .02) 26%, rgba(6, 9, 12, .40) 38%, rgba(6, 9, 12, .50) 56%, rgba(6, 9, 12, .90) 100%); }
  .hero__contenu { padding: 24px 18px 22px; }
  .hero__logo img { width: min(210px, 56vw); }
  .hero__titre { font-size: min(40px, 10.4vw); }
  .hero__chapo { font-size: 16px; }
  .hero__actions { width: 100%; flex-direction: column; gap: 10px; padding-top: 20px; }
  .hero__actions .bouton { width: 100%; padding: 17px 20px; }

  .coupe { padding: 32px 0 48px; }
  .coupe__liste { grid-template-columns: 1fr; gap: 10px; }
  .coupe__bloc { min-height: 88px; justify-content: center; padding: 16px 78px 16px 18px; }
  .coupe__matiere { font-size: 22px; }
  .coupe__sujet { font-size: 15px; margin-top: 4px; }
  .coupe__fleche { top: 50%; right: 18px; margin-top: -22px; width: 44px; height: 44px; }
  @media (hover: hover) { .coupe__bloc:hover { transform: none; } }

  .tuile { height: 290vh; }
  .tuile__collant { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-items: start; gap: 4px; padding: 56px var(--marge) 90px; }
  .tuile__scene { max-width: min(100%, 42svh); max-height: none; }
  .tuile .etiquette { display: none; }
  .tuile__texte h2 { font-size: min(34px, 9vw); margin-bottom: 12px; }
  .tuile__texte h2 br { display: none; }
  .etapes { margin-bottom: 16px; }
  .etape { padding-block: 6px; }
  .etape h3 { font-size: 17px; }
  .etape__num { min-width: 28px; font-size: 17px; }
  .etape p { font-size: 15px; line-height: 1.5; padding-left: 28px; }
  .tuile__texte .bouton { width: 100%; padding: 14px 18px; font-size: 15px; }

  .metiers__piste { grid-template-columns: 1fr; padding: 96px var(--marge); gap: 48px; }

  .chantiers { padding-block: 96px; }
  .chantiers__tete { margin-bottom: 36px; }
  .avant-apres { margin-bottom: 48px; }
  .planche { grid-template-columns: 1fr 1fr; grid-template-rows: none; gap: 22px 12px; }
  .planche img { flex: none; height: auto; }
  .planche__a, .planche__d, .planche__e { grid-column: 1 / -1; grid-row: auto; }
  .planche__b, .planche__c { grid-column: auto; grid-row: auto; }
  .planche__a img, .planche__d img, .planche__e img { aspect-ratio: 4 / 3; }
  .planche__b img, .planche__c img { aspect-ratio: 3 / 4; }
  .planche figcaption { font-size: 13px; }
  .avant-apres-grille { grid-template-columns: 1fr; gap: 32px; }
  .chantiers__sous-titre { font-size: 21px; margin-bottom: 20px; }
  .planche + .chantiers__sous-titre, .avant-apres-grille + .chantiers__sous-titre { margin-top: 52px; }
  .chantier-large { margin-top: 40px; }

  .flotte { padding-block: 96px; }
  .flotte__grille { grid-template-columns: 1fr; grid-template-areas: "texte" "nacelle" "benne"; gap: 32px; }
  .flotte__camion--nacelle { max-width: 82%; }

  .confiance { padding-block: 96px; }
  .raisons { grid-template-columns: 1fr; margin-top: 56px; gap: 24px; }
  .faits { grid-template-columns: 1fr; margin-top: 48px; }

  .avis { padding-bottom: 96px; }
  .avis__liste { grid-template-columns: 1fr; }

  .zone { padding-block: 96px; }
  .zone__grille { grid-template-columns: 1fr; }
  .zone__sous-titre { margin-top: 48px; }
  .zone__liste { columns: 1; }
  .carte .nom { font-size: 1.9px; stroke-width: .5px; }
  .carte .nom--fort { font-size: 2.2px; }
  .carte .nom--secondaire { display: none; }
  .carte .anneau-texte { font-size: 1.7px; }

  .faq { padding-block: 96px; }
  .faq__grille { grid-template-columns: 1fr; gap: 32px; }
  .faq__item summary { font-size: 18px; padding-right: 44px; }
  .faq__reponse { padding-right: 0; }

  .contact__grille { grid-template-columns: 1fr; padding-bottom: 72px; gap: 40px; }
  .contact__tel { font-size: min(44px, 11.4vw); }
  .formulaire__grille { grid-template-columns: 1fr; }

  .pied__grille { grid-template-columns: 1fr; gap: 32px; }

  .interieur { padding-top: 96px; }
  .devis__grille, .dalep-hero__grille, .dalep-produit__grille, .calcul__grille, .appel-final__grille { grid-template-columns: 1fr; }
  .devis__grille { padding-block: 16px 72px; gap: 40px; }
  .devis__formulaire { padding: 20px; }
  .dalep-hero { padding-block: 16px 72px; }
  .dalep-hero__actions .bouton { width: 100%; }
  .dalep-produit, .dalep-preuve, .calcul { padding-block: 80px; }
  .dalep-produit__bidon { max-width: 240px; }
  .calcul__detail { grid-template-columns: 1fr 1fr; }
  .appel-final { padding-block: 80px; }
  .appel-final__actions .bouton { width: 100%; }
  .legal { padding-block: 16px 80px; }

  /* les pages nees du decoupage du 18/09 */
  .page-tete { padding-block: 16px 44px; }
  .page-tete__chapo { font-size: 17px; margin-top: 18px; }
  .presta { padding-block: 36px; }
  .presta:last-child { padding-bottom: 72px; }
  .presta__num { font-size: 13px; margin-bottom: 10px; }
  .presta--dalep .bouton { width: 100%; }
  .chantiers--page { padding-block: 48px 96px; }
  .chantiers__suite .bouton { width: 100%; }
  .metiers__intro .bouton { width: 100%; margin-top: 22px; }
  .panneau--lien .panneau__texte { gap: 12px; }
  .panneau__fleche { width: 40px; height: 40px; }
  /* pages matiere sur telephone : la barre flotte au-dessus du bandeau, d'ou le retrait du haut ;
     les boutons prennent toute la largeur, comme partout ailleurs sur le site */
  .matiere-hero { padding-block: 104px 56px; }
  .matiere-hero__chapo { font-size: 17px; }
  .matiere-hero__actions .bouton { width: 100%; }
  .matiere-faire { padding-block: 64px; }
  .matiere-bloc, .matiere-galerie, .matiere-liens, .matiere-preuve { padding-bottom: 64px; }
  .matiere-bloc__action .bouton { width: 100%; }
  .matiere-liens__liste a { padding: 18px 20px; }
}
