/* Les Jardins de Grandval, version « terrasses en bois » (piste 2) : la base commune à toutes les pages.
 * L'accueil (../terrasses-bois.html) y ajoute seulement son ouverture en six étapes ; chaque page intérieure n'y ajoute rien.
 * Client FICTIF. Maquette du 30/11/2026, trame du site client § 8. */

/* =========================================================================
   1. Jetons : un brun noyer (#5B3A24), presque noir pour les fonds, et un miel (#E2B67E) en aplats.
      Les noms des jetons (sapin, sable) restent ceux de la piste 2 pour garder le même code.
   ========================================================================= */
:root {
  --nuit: #211812;
  --nuit-2: #17110C;
  --sapin: #5B3A24;
  --sapin-clair: #6B4630;
  --sable: #E2B67E;
  --sable-pale: #F3E4CF;
  --papier: #F7F2EB;
  --encre: #241A13;
  --encre-2: #5C4F45;            /* 7,1:1 sur le papier */
  --sur-sable-2: #4A3524;        /* 6,2:1 sur le miel */
  --clair: #F7F2EB;
  --clair-2: #E3D3C2;            /* 6,9:1 sur le noyer, 11,9:1 sur la nuit */
  --filet: rgba(36, 26, 19, .16);
  --filet-clair: rgba(247, 242, 235, .2);

  --police: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --large: 118%;                 /* largeur des titres */

  --bord: clamp(20px, 4vw, 48px);
  --largeur: 1280px;
  --entete: 72px;
  --sortie: cubic-bezier(.16, 1, .3, 1);
  --section: clamp(80px, 10vw, 136px);
}
@media (max-width: 719px) { :root { --entete: 60px; --large: 108%; --section: 64px; } html { scroll-padding-bottom: 84px; } }

/* =========================================================================
   2. Base
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--entete) + 12px); }
body { margin: 0; background: var(--papier); color: var(--encre); font: 400 1.0625rem/1.55 var(--police); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
svg { flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--largeur); margin-inline: auto; padding-inline: var(--bord); }
:focus-visible { outline: 2px solid var(--sable); outline-offset: 3px; }
.sur-clair :focus-visible, .sur-clair:focus-visible { outline-color: var(--sapin); }
.evitement { position: absolute; left: 12px; top: -60px; z-index: 60; padding: 10px 16px; background: var(--clair); color: var(--encre); border-radius: 4px; }
.evitement:focus { top: 12px; }

.titre-section { font-weight: 750; font-stretch: var(--large); font-size: clamp(2rem, 4.4vw, 3.5rem); line-height: 1; letter-spacing: -.02em; }
.lien-fleche { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; text-decoration: none; }
.lien-fleche svg { width: 18px; height: 18px; transition: transform .25s var(--sortie); }
.lien-fleche:hover svg { transform: translateX(4px); }
.lien-fleche span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s var(--sortie); }
.lien-fleche:hover span { background-size: 100% 1px; }

.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px;
  border-radius: 4px; background: var(--sable); color: var(--nuit); font-weight: 650; text-decoration: none;
  transition: transform .2s var(--sortie), background-color .2s;
}
.bouton:hover { transform: translateY(-2px); background: #EAC594; }
.bouton:active { transform: translateY(0) scale(.98); }
.bouton svg { width: 18px; height: 18px; }
.bouton--sapin { background: var(--sapin); color: var(--clair); }
.bouton--sapin:hover { background: var(--sapin-clair); }
.tel { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; }
.tel svg { width: 18px; height: 18px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }

/* Entrées (Motion) : le titre monte mot par mot, puis le reste apparaît */
.mot { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.mot > span { display: inline-block; }
.anim .titre-entree .mot > span { transform: translateY(105%); }
.anim .entree { opacity: 0; }
.anim .revele { opacity: 0; transform: translateY(24px); }
.anim.sans-entree .titre-entree .mot > span, .anim.sans-entree .revele { transform: none; }
.anim.sans-entree .entree, .anim.sans-entree .revele { opacity: 1; }

/* =========================================================================
   3. Barre de la maquette et en-tête
   ========================================================================= */
.maquette { background: var(--nuit-2); color: #DAD3C4; font-size: .8125rem; line-height: 1.4; }
.maquette-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; padding-block: 8px; }
.maquette strong { color: var(--sable); font-weight: 650; }
.maquette nav { display: flex; gap: 4px; }
.maquette nav a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid rgba(218, 211, 196, .3); border-radius: 4px; text-decoration: none; }
.maquette nav a[aria-current] { background: var(--sable); border-color: var(--sable); color: var(--nuit); font-weight: 650; }

.entete {
  position: sticky; top: 0; z-index: 40; height: var(--entete); margin-bottom: calc(-1 * var(--entete));
  background: var(--papier); color: var(--encre); box-shadow: 0 1px 0 var(--filet);
  transition: background-color .35s, color .35s, box-shadow .35s;
}
.js .entete:not(.est-plein) { background: transparent; color: var(--clair); box-shadow: none; }
.entete-in { display: flex; align-items: center; gap: 28px; height: var(--entete); }
html:not(.js) .entete { position: relative; height: auto; margin-bottom: 0; }
.entete .tel, .bouton--petit { white-space: nowrap; }
.marque { display: inline-flex; align-items: center; min-height: 44px; margin-right: auto; font-weight: 750; font-stretch: 112%; font-size: 1.125rem; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; }
.menu { display: flex; gap: 26px; }
.menu a { display: inline-flex; align-items: center; min-height: 44px; font-size: .9375rem; font-weight: 500; text-decoration: none; }
.menu a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.entete .tel { font-size: .9375rem; }
.bouton--petit { min-height: 44px; padding: 0 18px; font-size: .9375rem; }
.entete.est-plein .bouton--petit, html:not(.js) .entete .bouton--petit { background: var(--sapin); color: var(--clair); }
.menu-bouton { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid currentColor; border-radius: 4px; background: none; color: inherit; font: 600 .9375rem var(--police); cursor: pointer; }
.menu-bouton svg { width: 20px; height: 20px; }
.menu-mobile { background: var(--papier); color: var(--encre); border-bottom: 1px solid var(--filet); }
.menu-mobile a { display: flex; align-items: center; gap: 10px; min-height: 52px; border-top: 1px solid var(--filet); font-weight: 600; text-decoration: none; }
.menu-mobile svg { width: 18px; height: 18px; }
@media (max-width: 1179px) { .entete .tel { display: none; } }
@media (max-width: 899px) {
  .entete-in { gap: 12px; }
  .nav-ordi { display: none; }
  .js .menu-bouton { display: inline-flex; }
  html:not(.js) .menu-mobile { display: block !important; }
}
@media (max-width: 599px) { .entete .bouton--petit { display: none; } }
@media (max-width: 380px) { .marque { font-size: 1rem; font-stretch: 100%; } }

/* =========================================================================
   5. Sections
   ========================================================================= */
.section { padding-block: var(--section); }
.tete { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 32px; }

/* L'entreprise en chiffres, sur le sable */
.chiffres { background: var(--sable); color: var(--nuit); }
.chiffres .tete p { max-width: 30rem; color: var(--sur-sable-2); }
.chiffres-liste { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid rgba(33, 24, 18, .3); }
.chiffre { padding: 24px 20px 0 0; }
.chiffre + .chiffre { padding-left: 20px; border-left: 1px solid rgba(33, 24, 18, .3); }
.chiffre .n { display: block; font-weight: 800; font-stretch: 118%; font-size: clamp(2.75rem, 5.8vw, 5.75rem); line-height: .9; letter-spacing: -.04em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chiffre .l { display: block; margin-top: 10px; font-weight: 550; }
.chiffres .liens { display: flex; flex-wrap: wrap; gap: 0 28px; margin-top: 40px; }
@media (max-width: 899px) {
  .chiffres-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chiffre:nth-child(3) { padding-left: 0; border-left: 0; }
  .chiffre:nth-child(n+3) { margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(33, 24, 18, .3); }
}

/* Les prestations, en tableau sur le vert sapin */
.prestations { background: var(--sapin); color: var(--clair); }
.prestations .tete .lien-fleche { color: var(--clair); }
.tableau { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(36px, 5vw, 64px); border-top: 1px solid var(--filet-clair); border-left: 1px solid var(--filet-clair); }
.case { border-right: 1px solid var(--filet-clair); border-bottom: 1px solid var(--filet-clair); }
.case a { display: flex; flex-direction: column; gap: 10px; height: 100%; min-height: 220px; padding: 28px 28px 30px; text-decoration: none; transition: background-color .25s; }
.case a:hover { background: var(--sapin-clair); }
.case .num { color: var(--sable); font-weight: 650; font-size: .875rem; font-variant-numeric: tabular-nums; }
.case h3 { font-weight: 750; font-stretch: 112%; font-size: clamp(1.375rem, 2.2vw, 1.875rem); line-height: 1.05; letter-spacing: -.01em; }
.case p { color: var(--clair-2); }
.case svg { width: 22px; height: 22px; margin-top: auto; color: var(--sable); transition: transform .25s var(--sortie); }
.case a:hover svg { transform: translateX(6px); }
.pour-qui { display: flex; flex-wrap: wrap; align-items: center; gap: 0 28px; margin-top: 32px; color: var(--clair-2); }
.pour-qui a { color: var(--clair); }
@media (max-width: 899px) { .tableau { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .tableau { grid-template-columns: 1fr; } .case a { min-height: 0; gap: 6px; padding: 18px 18px 20px; } .case .num { display: none; } .case h3 { font-size: 1.3125rem; } .case svg { display: none; } }

/* Les réalisations, en index avec la photo qui suit */
.index { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; margin-top: clamp(36px, 5vw, 64px); }
.index-liste { border-bottom: 1px solid var(--filet); }
.ligne { display: flex; flex-direction: column; border-top: 1px solid var(--filet); }
.ligne-lien { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 20px; padding: 22px 0; text-decoration: none; }
.ligne-commune { font-weight: 750; font-stretch: 115%; font-size: clamp(1.5rem, 2.6vw, 2.25rem); line-height: 1.05; letter-spacing: -.015em; transition: color .25s; }
.ligne-annee { grid-row: 1; grid-column: 2; align-self: center; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--encre-2); }
.ligne-titre { grid-column: 1 / -1; color: var(--encre-2); }
.ligne-client { grid-column: 1 / -1; font-size: .875rem; font-weight: 600; color: var(--sapin); }
.ligne.est-actif .ligne-commune, .ligne-lien:hover .ligne-commune { color: var(--sapin); }
.ligne-photo { position: absolute; top: 0; right: 0; width: calc((100% - 56px) / 2.1); aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; opacity: 0; transition: opacity .5s ease; pointer-events: none; }
.ligne.est-actif .ligne-photo { opacity: 1; }
.index-pied { margin-top: 28px; }
@media (max-width: 899px) {
  .index { grid-template-columns: 1fr; }
  .ligne { display: grid; grid-template-columns: 116px minmax(0, 1fr); align-items: center; gap: 16px; padding-block: 16px; }
  .ligne-photo { position: static; grid-row: 1; grid-column: 1; width: 116px; aspect-ratio: 4 / 3; opacity: 1; }
  .ligne-lien { grid-row: 1; grid-column: 2; display: flex; flex-direction: column; gap: 2px; padding: 0; }
  .ligne-commune { font-size: 1.25rem; font-stretch: 108%; }
  .ligne-titre { font-size: .9375rem; line-height: 1.4; }
  .ligne-annee { order: 3; align-self: start; font-size: .8125rem; }
  .ligne-client { display: none; }
}

/* La façon de travailler */
.facon { background: var(--sable-pale); }
.etapes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: clamp(36px, 5vw, 64px); }
.etape { border-top: 2px solid var(--sapin); padding-top: 20px; }
.etape .num { display: block; color: var(--sapin); font-weight: 800; font-stretch: 125%; font-size: 2.75rem; line-height: 1; }
.etape h3 { margin-top: 18px; font-weight: 700; font-stretch: 105%; font-size: 1.25rem; line-height: 1.2; }
.etape p { margin-top: 8px; color: var(--encre-2); }
@media (max-width: 899px) { .etapes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559px) { .etapes { grid-template-columns: 1fr; gap: 24px; } }

/* La fin : un seul appel, et la zone sur une carte */
.fin { background: var(--nuit); color: var(--clair); }
.fin-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); align-items: center; gap: clamp(40px, 6vw, 96px); }
.fin h2 { font-weight: 800; font-stretch: var(--large); font-size: clamp(2.375rem, 5.4vw, 4.75rem); line-height: .95; letter-spacing: -.025em; max-width: 12ch; }
.fin-texte { max-width: 30rem; margin-top: 22px; font-size: 1.125rem; color: var(--clair-2); }
.fin .actions { margin-top: 30px; }
.fin .zone { margin-top: 28px; color: var(--clair-2); }
.fin .zone .lien-fleche { color: var(--clair); }
.carte { width: 100%; height: auto; }
.gmap-actions { display: grid; justify-items: start; gap: 8px; margin-top: 18px; }
html:not(.js) .gmap-actions { display: none; }
.gmap-charger { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; border: 1px solid rgba(247, 242, 235, .45); border-radius: 4px; background: transparent; color: var(--clair); font: 600 .9375rem var(--police); cursor: pointer; transition: background-color .2s, border-color .2s; }
.gmap-charger:hover { background: rgba(247, 242, 235, .08); border-color: var(--clair); }
.gmap-charger svg { width: 18px; height: 18px; flex: none; }
.gmap-note { max-width: 40ch; font-size: .8125rem; line-height: 1.45; color: var(--clair-2); }
.carte-gmap { display: block; width: 100%; aspect-ratio: 1; border: 0; border-radius: 6px; background: var(--nuit-2); }
.carte .anneau { fill: none; stroke: var(--sable); stroke-width: 1.5; stroke-dasharray: 4 6; transform-box: fill-box; transform-origin: center; }
.carte .anneau-2 { fill: none; stroke: rgba(244, 241, 234, .18); stroke-width: 1; }
.carte .point { fill: var(--sable); }
.carte .point-vide { fill: var(--nuit); stroke: var(--clair-2); stroke-width: 1.5; }
.carte .depot { fill: var(--clair); }
.carte text { fill: var(--clair); font: 500 13px var(--police); }
.carte .petit { fill: var(--clair-2); font-size: 12px; }
.carte .gros { font-weight: 700; font-size: 14px; }
@media (max-width: 899px) { .fin-grille { grid-template-columns: 1fr; } .carte-bloc { max-width: 440px; } }
@media (max-width: 599px) { .carte text { font-size: 17px; } .carte .petit { font-size: 15px; } .carte .gros { font-size: 18px; } }
@media (max-width: 419px) { .carte text { font-size: 19px; } .carte .petit { font-size: 17px; } .carte .gros { font-size: 20px; } }

/* Pied de page et barre d'appel du téléphone */
.pied { background: var(--nuit-2); color: var(--clair-2); padding: 64px 0 calc(32px + env(safe-area-inset-bottom)); font-size: .9375rem; }
.pied-grille { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.pied .marque { color: var(--clair); margin-bottom: 8px; }
.pied h2 { margin-bottom: 8px; color: var(--clair); font-size: .9375rem; font-weight: 650; }
.pied a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.pied a:hover { color: var(--clair); text-decoration: underline; text-underline-offset: 4px; }
.pied-bas { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--filet-clair); font-size: .8125rem; }
.pied-bas ul { display: flex; gap: 20px; }
@media (max-width: 719px) { .pied-grille { grid-template-columns: 1fr; } .pied { padding-bottom: calc(96px + env(safe-area-inset-bottom)); } }

.barre-appel { display: none; }
@media (max-width: 719px) {
  .js .barre-appel {
    position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px;
    padding: 10px var(--bord) calc(10px + env(safe-area-inset-bottom)); background: var(--papier); box-shadow: 0 -1px 0 var(--filet);
    transform: translateY(110%); transition: transform .35s var(--sortie);
  }
  .barre-appel.est-visible { transform: none; }
  .barre-appel .tel { justify-content: center; padding: 0 16px; border: 1px solid var(--filet); border-radius: 4px; }
  .barre-appel .bouton { white-space: nowrap; }
}
@media (max-width: 359px) { .barre-appel .tel-texte { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

/* =========================================================================
   6. Pages intérieures
   ========================================================================= */
.menu a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; text-decoration-color: var(--sable); }
.menu-mobile a[aria-current="page"] { color: var(--sapin); }

/* Le haut de page : un bandeau sombre et le titre en grand */
.page-tete { position: relative; overflow: hidden; background: var(--nuit); color: var(--clair); padding: calc(var(--entete) + clamp(48px, 8vw, 112px)) 0 clamp(48px, 7vw, 96px); }
html:not(.js) .page-tete { padding-top: clamp(48px, 8vw, 112px); }
.page-tete .wrap { position: relative; }
.fil { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: .875rem; color: var(--clair-2); }
.fil a { display: inline-flex; align-items: center; min-height: 32px; text-decoration: none; }
.fil a:hover { color: var(--clair); text-decoration: underline; text-underline-offset: 4px; }
.page-tete h1 { margin-top: 16px; font-weight: 800; font-stretch: var(--large); font-size: clamp(2.625rem, 7.6vw, 7rem); line-height: .92; letter-spacing: -.03em; max-width: 13ch; text-wrap: balance; }
.page-tete .chapeau { max-width: 36rem; margin-top: 24px; font-size: 1.125rem; color: var(--clair-2); }
.page-tete .actions { margin-top: 28px; }

/* Le haut de page en photo, en plein écran (fiche d'un chantier) */
.page-tete--photo { display: flex; align-items: flex-end; min-height: 100vh; min-height: 100svh; max-height: 1100px; padding-bottom: clamp(32px, 7vh, 80px); }
.page-tete--photo .fond { position: absolute; inset: 0; }
.page-tete--photo .fond img { width: 100%; height: 100%; object-fit: cover; }
.page-tete--photo .voile {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(23, 17, 12, .78) 0, rgba(23, 17, 12, .45) 90px, rgba(23, 17, 12, 0) 190px),
    linear-gradient(to top, rgba(23, 17, 12, .94) 0%, rgba(23, 17, 12, .78) 42%, rgba(23, 17, 12, .35) 68%, rgba(23, 17, 12, 0) 86%);
}
@media (min-width: 900px) {
  .page-tete--photo .voile { background:
    linear-gradient(to bottom, rgba(23, 17, 12, .78) 0, rgba(23, 17, 12, .45) 90px, rgba(23, 17, 12, 0) 190px),
    linear-gradient(to right, rgba(23, 17, 12, .86) 0%, rgba(23, 17, 12, .6) 38%, rgba(23, 17, 12, .2) 60%, rgba(23, 17, 12, 0) 76%),
    linear-gradient(to top, rgba(23, 17, 12, .72) 0%, rgba(23, 17, 12, 0) 50%); }
}
.page-tete--photo h1 { font-size: clamp(2.625rem, 7vw, 6.25rem); text-shadow: 0 1px 28px rgba(23, 17, 12, .45); }
.page-tete--photo .chapeau { color: var(--clair); }
.faits { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 30px; }
.faits div { display: grid; gap: 2px; }
.faits dt { font-size: .8125rem; color: var(--clair-2); }
.faits dd { font-weight: 650; font-size: 1.0625rem; }

/* Une section courte de texte, sur deux colonnes */
.recit-chantier { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 24px clamp(40px, 7vw, 112px); }
.recit-chantier .texte { display: grid; gap: 16px; max-width: 40rem; font-size: 1.125rem; color: var(--encre-2); }
.recit-chantier .texte strong { color: var(--encre); font-weight: 650; }
@media (max-width: 899px) { .recit-chantier { grid-template-columns: 1fr; } }

/* Avant, après : on fait glisser la séparation (la souris, le doigt ou les flèches du clavier) */
.comparateur { position: relative; overflow: hidden; margin-top: clamp(28px, 4vw, 48px); border-radius: 4px; background: var(--nuit); aspect-ratio: 16 / 9; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize; }
.comparateur picture, .comparateur img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.comparateur .avant { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.comparateur .poignee { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; margin-left: -1px; background: var(--clair); box-shadow: 0 0 12px rgba(23, 17, 12, .35); pointer-events: none; }
.comparateur .poignee span { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: var(--clair); color: var(--nuit); box-shadow: 0 4px 18px rgba(23, 17, 12, .3); transition: transform .2s var(--sortie); }
.comparateur .poignee svg { width: 24px; height: 24px; }
.comparateur.est-tenu .poignee span { transform: scale(1.08); }
.comparateur input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.comparateur input:focus-visible ~ .poignee span { outline: 2px solid var(--sable); outline-offset: 3px; }
.etiquette { position: absolute; top: 14px; padding: 6px 12px; border-radius: 4px; background: rgba(23, 17, 12, .8); color: var(--clair); font-size: .8125rem; font-weight: 650; pointer-events: none; }
.etiquette--avant { left: 14px; }
.etiquette--apres { right: 14px; }
.comparateur-aide { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: .875rem; color: var(--encre-2); }
.comparateur-aide svg { width: 18px; height: 18px; }
@media (max-width: 719px) { .comparateur--haut { aspect-ratio: 700 / 1061; max-height: 76svh; margin-inline: auto; } }
/* Sans JavaScript : les deux photos côte à côte */
html:not(.js) .comparateur { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; aspect-ratio: auto; cursor: auto; }
html:not(.js) .comparateur picture, html:not(.js) .comparateur > img { position: relative; height: auto; aspect-ratio: 4 / 3; }
html:not(.js) .comparateur .avant { clip-path: none; }
html:not(.js) .comparateur .poignee, html:not(.js) .comparateur input, html:not(.js) .comparateur-aide { display: none; }

/* Les étapes d'un chantier, en vignettes */
.etapes-chantier { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; margin-top: clamp(36px, 5vw, 56px); }
.etapes-chantier img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.etapes-chantier .num { display: block; margin-top: 14px; color: var(--sable); font-weight: 800; font-stretch: 125%; font-size: 1.5rem; }
.etapes-chantier h3 { margin-top: 2px; font-weight: 700; font-stretch: 108%; font-size: 1.25rem; }
.etapes-chantier p { margin-top: 4px; color: var(--clair-2); }
@media (max-width: 899px) { .etapes-chantier { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; } }
.sur-nuit { background: var(--nuit); color: var(--clair); }
.sur-pale { background: var(--sable-pale); }

/* Les réalisations, une par écran : la photo et le texte en alternance */
.chantiers { display: grid; gap: clamp(64px, 9vw, 136px); }
.chantier-carte { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center; gap: 28px clamp(32px, 5vw, 80px); text-decoration: none; }
.chantiers > li:nth-child(even) .chantier-photo { order: 2; }
.chantier-photo { position: relative; overflow: hidden; aspect-ratio: 3 / 2; border-radius: 4px; background: var(--sable-pale); }
.chantier-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--sortie); }
.chantier-carte:hover .chantier-photo img { transform: scale(1.03); }
.chantier-photo .etiquette { top: auto; bottom: 14px; left: 14px; }
.chantier-texte .meta { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: .875rem; font-weight: 650; color: var(--sapin); font-variant-numeric: tabular-nums; }
.chantier-texte h2 { margin-top: 10px; font-weight: 800; font-stretch: 118%; font-size: clamp(2.125rem, 4.4vw, 3.75rem); line-height: .95; letter-spacing: -.025em; transition: color .25s; }
.chantier-carte:hover h2 { color: var(--sapin); }
.chantier-texte p { max-width: 28rem; margin-top: 14px; font-size: 1.125rem; color: var(--encre-2); }
.chantier-texte .lien-fleche { margin-top: 14px; color: var(--sapin); }
.chantier-carte:hover .lien-fleche svg { transform: translateX(4px); }
.chantier-carte:hover .lien-fleche span { background-size: 100% 1px; }
@media (max-width: 799px) {
  .chantier-carte { grid-template-columns: 1fr; gap: 18px; }
  .chantiers > li:nth-child(even) .chantier-photo { order: 0; }
  .chantier-photo { aspect-ratio: 4 / 3; }
}

/* Le chantier suivant, en grand */
.suivant { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 24px clamp(32px, 5vw, 80px); text-decoration: none; }
.suivant .petit-titre { font-size: .875rem; font-weight: 650; color: var(--sable); }
.suivant .commune { display: block; margin-top: 8px; font-weight: 800; font-stretch: 118%; font-size: clamp(2.25rem, 5.4vw, 4.5rem); line-height: .95; letter-spacing: -.025em; }
.suivant .titre { display: block; margin-top: 12px; color: var(--clair-2); }
.suivant .lien-fleche { margin-top: 16px; }
.suivant:hover .lien-fleche svg { transform: translateX(4px); }
.suivant:hover .lien-fleche span { background-size: 100% 1px; }
.suivant-photo { overflow: hidden; aspect-ratio: 16 / 10; border-radius: 4px; }
.suivant-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--sortie); }
.suivant:hover .suivant-photo img { transform: scale(1.03); }
@media (max-width: 799px) { .suivant { grid-template-columns: 1fr; } .suivant-photo { order: -1; } }

/* Un appel court, en bas des pages intérieures */
.appel { background: var(--sable); color: var(--nuit); }
.appel-in { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px 48px; }
.appel h2 { font-weight: 800; font-stretch: var(--large); font-size: clamp(2.125rem, 4.8vw, 4rem); line-height: .95; letter-spacing: -.025em; max-width: 14ch; }
.appel p { max-width: 30rem; margin-top: 16px; font-size: 1.125rem; color: var(--sur-sable-2); }
.appel :focus-visible { outline-color: var(--nuit); }

/* Les liens d'une page vers ses voisines (l'atelier, l'équipe, nos moyens), sous le titre */
.sous-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.sous-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--filet-clair); border-radius: 4px; font-size: .9375rem; font-weight: 600; text-decoration: none; transition: background-color .2s, border-color .2s; }
.sous-nav a:hover { background: rgba(247, 242, 235, .08); border-color: var(--clair-2); }
.sous-nav a[aria-current="page"] { background: var(--sable); border-color: var(--sable); color: var(--nuit); }

/* Une prestation par écran : la photo et le détail */
.presta { scroll-margin-top: calc(var(--entete) + 8px); }
.presta-grille { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: 32px clamp(32px, 5vw, 80px); }
.presta:nth-of-type(even) .presta-photo { order: 2; }
.presta-photo { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 4px; }
.presta-photo img { width: 100%; height: 100%; object-fit: cover; }
.presta-photo .image-attente { height: 100%; aspect-ratio: auto; }
.presta .num { display: block; color: var(--sapin); font-weight: 800; font-stretch: 125%; font-size: 1.125rem; font-variant-numeric: tabular-nums; }
.presta h2 { margin-top: 8px; font-weight: 800; font-stretch: 118%; font-size: clamp(2rem, 4vw, 3.5rem); line-height: .95; letter-spacing: -.025em; }
.presta .intro { max-width: 30rem; margin-top: 16px; font-size: 1.125rem; color: var(--encre-2); }
.coches { display: grid; gap: 10px; margin-top: 22px; }
.coches li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; }
.coches svg { width: 20px; height: 20px; margin-top: 3px; color: var(--sapin); }
.presta .lien-fleche { margin-top: 18px; color: var(--sapin); }
.sur-nuit .coches svg { color: var(--sable); }
@media (max-width: 799px) { .presta-grille { grid-template-columns: 1fr; } .presta:nth-of-type(even) .presta-photo { order: 0; } }

/* Nos bois, en tableau */
.bois { width: 100%; margin-top: clamp(32px, 5vw, 56px); border-collapse: collapse; text-align: left; }
.bois th, .bois td { padding: 18px 16px 18px 0; border-top: 1px solid var(--filet-clair); vertical-align: top; }
.bois thead th { padding-block: 0 12px; border-top: 0; font-size: .8125rem; font-weight: 650; color: var(--sable); }
.bois tbody th { font-weight: 750; font-stretch: 112%; font-size: 1.25rem; }
.bois td { color: var(--clair-2); }
@media (max-width: 719px) {
  .bois thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .bois, .bois tbody, .bois tr, .bois th, .bois td { display: block; }
  .bois tr { padding: 16px 0; border-top: 1px solid var(--filet-clair); }
  .bois th, .bois td { padding: 0; border: 0; }
  .bois td { margin-top: 4px; }
  .bois td::before { content: attr(data-titre) " : "; color: var(--sable); font-weight: 600; }
}

/* Des blocs de texte côte à côte (garanties, moyens, raisons) */
.blocs { display: grid; grid-template-columns: repeat(var(--colonnes, 3), minmax(0, 1fr)); gap: 32px clamp(24px, 3vw, 40px); margin-top: clamp(36px, 5vw, 64px); }
.bloc { padding-top: 20px; border-top: 2px solid currentColor; }
.bloc .grand { display: block; font-weight: 800; font-stretch: 118%; font-size: clamp(2.5rem, 4.6vw, 4rem); line-height: .9; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.bloc h3 { margin-top: 14px; font-weight: 700; font-stretch: 105%; font-size: 1.25rem; line-height: 1.2; }
.bloc p, .bloc li { margin-top: 8px; color: var(--encre-2); }
.bloc ul { margin-top: 10px; }
.bloc li { margin-top: 6px; padding-left: 16px; position: relative; }
.bloc li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 2px; background: currentColor; }
.sur-nuit .bloc p, .sur-nuit .bloc li { color: var(--clair-2); }
.sur-nuit .bloc { border-top-color: var(--sable); }
@media (max-width: 899px) { .blocs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559px) { .blocs { grid-template-columns: 1fr; } }

/* Une grande photo pleine largeur, sous le haut de page */
.grande-photo { overflow: hidden; aspect-ratio: 21 / 9; border-radius: 4px; }
.grande-photo img { width: 100%; height: 100%; object-fit: cover; }
.grande-photo.image-attente, .grande-photo .image-attente { aspect-ratio: 21 / 9; }
@media (max-width: 719px) { .grande-photo, .grande-photo.image-attente { aspect-ratio: 4 / 3; } }
.recul { margin-top: calc(-1 * clamp(32px, 5vw, 64px)); position: relative; }

/* Des liens en grand vers les pages voisines */
.cartes-liens { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: clamp(32px, 4vw, 48px); }
.carte-lien { display: flex; flex-direction: column; gap: 10px; min-height: 200px; padding: 28px; border-radius: 4px; background: var(--sapin); color: var(--clair); text-decoration: none; transition: background-color .25s; }
.carte-lien:hover { background: var(--sapin-clair); }
.carte-lien .t { font-weight: 800; font-stretch: 118%; font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1; letter-spacing: -.02em; }
.carte-lien .d { color: var(--clair-2); }
.carte-lien svg { width: 24px; height: 24px; margin-top: auto; color: var(--sable); transition: transform .25s var(--sortie); }
.carte-lien:hover svg { transform: translateX(6px); }
@media (max-width: 599px) { .cartes-liens { grid-template-columns: 1fr; } .carte-lien { min-height: 0; } }

/* L'organigramme : des noms et des rôles, sans photo de visage */
.organi { display: grid; justify-items: center; gap: 0; margin-top: clamp(36px, 5vw, 64px); }
.organi-niveau { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.organi-lien { width: 2px; height: 32px; background: var(--filet); }
.personne { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; gap: 4px 16px; width: min(100%, 360px); padding: 18px 20px; border: 1px solid var(--filet); border-radius: 4px; background: var(--papier); }
.personne .initiales { grid-row: span 2; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--sable); color: var(--nuit); font-weight: 800; font-stretch: 112%; }
.personne .nom { font-weight: 750; font-stretch: 108%; font-size: 1.125rem; }
.personne .role { color: var(--encre-2); font-size: .9375rem; }
.personne p { grid-column: 1 / -1; margin-top: 10px; color: var(--encre-2); font-size: .9375rem; }
.equipes { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); justify-content: center; gap: 16px; }
.equipe-pose { padding: 20px; border-radius: 4px; background: var(--sapin); color: var(--clair); }
.equipe-pose h3 { font-weight: 750; font-stretch: 108%; font-size: 1.125rem; }
.equipe-pose p { margin-top: 6px; color: var(--clair-2); font-size: .9375rem; }
.equipe-pose .poseurs { display: flex; gap: 8px; margin-top: 14px; }
.equipe-pose .poseurs span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--filet-clair); font-size: .8125rem; font-weight: 650; }
@media (max-width: 599px) { .equipes { grid-template-columns: 1fr; width: 100%; } .organi-niveau { width: 100%; } .personne { width: 100%; } }

/* La liste des communes de la zone */
.communes { columns: 3 12rem; column-gap: 32px; margin-top: 28px; }
.communes li { break-inside: avoid; padding: 8px 0; border-top: 1px solid var(--filet-clair); color: var(--clair-2); }
.communes li strong { color: var(--clair); font-weight: 650; }

/* Le formulaire de demande de devis */
.contact-grille { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px clamp(40px, 6vw, 96px); align-items: start; }
@media (max-width: 899px) { .contact-grille { grid-template-columns: 1fr; } }
.formulaire { display: grid; gap: 20px; }
.champs-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 599px) { .champs-2 { grid-template-columns: 1fr; } }
.champ { display: grid; gap: 6px; }
.champ label, .champ legend { font-weight: 650; }
.champ .aide { font-size: .875rem; color: var(--encre-2); }
.champ input, .champ select, .champ textarea { width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid rgba(36, 26, 19, .35); border-radius: 4px; background: #fff; color: var(--encre); font: 400 1rem/1.4 var(--police); }
.champ textarea { min-height: 140px; resize: vertical; }
.champ input:focus-visible, .champ select:focus-visible, .champ textarea:focus-visible { outline: 2px solid var(--sapin); outline-offset: 1px; border-color: var(--sapin); }
.champ-piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formulaire .mention { font-size: .875rem; color: var(--encre-2); }
/* Site d'exemple : le formulaire dit qu'il n'envoie rien, juste au-dessus du bouton */
.formulaire-demo { margin: 0; padding: 10px 14px; border-left: 3px solid var(--sable); background: var(--sable-pale); font-size: .9375rem; font-weight: 600; color: var(--encre); }
.formulaire .bouton { justify-self: start; }
.coordonnees { display: grid; gap: 28px; padding: 28px; border-radius: 4px; background: var(--nuit); color: var(--clair); }
.coordonnees h2 { font-size: .875rem; font-weight: 650; color: var(--sable); }
.coordonnees .gros-tel { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; margin-top: 6px; font-weight: 800; font-stretch: 112%; font-size: clamp(1.75rem, 3vw, 2.25rem); text-decoration: none; font-variant-numeric: tabular-nums; }
.coordonnees .gros-tel svg { width: 26px; height: 26px; }
.coordonnees p { margin-top: 6px; color: var(--clair-2); }
.coordonnees a:not(.gros-tel) { color: var(--clair); }

/* Questions fréquentes */
.faq { margin-top: clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--filet); }
.faq details { border-top: 1px solid var(--filet); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 14px 0; font-weight: 700; font-stretch: 105%; font-size: 1.1875rem; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 22px; height: 22px; flex: none; color: var(--sapin); transition: transform .25s var(--sortie); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { max-width: 44rem; padding-bottom: 20px; color: var(--encre-2); }

.bloc .lien-fleche { margin-top: 10px; color: var(--sapin); }
.prestations .tete p { max-width: 30rem; color: var(--clair-2); }

.section.suite { padding-top: clamp(8px, 2vw, 24px); }
.note-communes { margin-top: 20px; color: var(--clair-2); }

/* Une image encore à venir (maquette seulement) */
.image-attente { display: grid; place-items: center; padding: 24px; aspect-ratio: 3 / 2; border: 1px dashed rgba(36, 26, 19, .3); border-radius: 4px; text-align: center; font-size: .9375rem; font-weight: 600; color: var(--encre-2);
  background: repeating-linear-gradient(135deg, var(--sable-pale) 0 14px, #EFDFC8 14px 28px); }

/* Une photo qui se dévoile au défilement : le script ajoute .est-devoile quand elle arrive à l'écran */
.anim .devoile { transition: clip-path 1.1s var(--sortie); }
.anim .devoile img { transition: transform 1.2s var(--sortie); }
.anim:not(.sans-entree) .devoile:not(.est-devoile) { clip-path: inset(10% 8% 10% 8%); }
.anim:not(.sans-entree) .devoile:not(.est-devoile) img { transform: scale(1.12); }
