/* ═════════════════════════════════════════════════════════════════
   ALP Ponçage — « Du grain au lustre »  ·  proposition de refonte (Claude)
   La page se lit comme un ponçage : chaque section porte un grain,
   la texture du fond s'affine de haut en bas, jusqu'au lustre final.
   ═════════════════════════════════════════════════════════════════ */

/* ---------- 1. Jetons ---------- */
:root {
  --platre: #f2ede4;
  --papier: #fbf8f3;
  --encre: #1e1b18;
  --encre-2: #4a433c;
  --poussiere: #7f776d;
  --noyer: #2a211b;
  --noyer-2: #3b2f26;
  --noyer-3: #54432f;
  --miel: #c2843a;
  --miel-fonce: #8a561b;
  --veine: #d4ac55;
  --veine-fonce: #9c7727;
  --sanguine: #b0432a;
  --sanguine-clair: #ec8a67;
  --trait: rgba(30, 27, 24, .14);
  --trait-clair: rgba(242, 237, 228, .16);

  --f-display: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --f-texte: 'Archivo', 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;

  --marge: clamp(1.15rem, 4.2vw, 3.5rem);
  --max: 1240px;
  --header-h: 72px;
  --r: 16px;
  --ease: cubic-bezier(.2, .7, .15, 1);
  --ease-ressort: cubic-bezier(.34, 1.4, .5, 1);
  --ombre: 0 1px 2px rgba(40, 25, 10, .08), 0 18px 40px -18px rgba(40, 25, 10, .38);
  --bruit: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .12 0 0 0 0 .09 0 0 0 0 .06 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
html.calme { scroll-behavior: auto; }
body {
  margin: 0; min-height: 100vh;
  background: var(--platre); color: var(--encre);
  font: 400 1.0625rem/1.6 var(--f-texte);
  font-variation-settings: 'wdth' 100;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }
::selection { background: var(--veine); color: var(--encre); }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.no-js .js-seul { display: none !important; }

:focus-visible { outline: 3px solid var(--sanguine); outline-offset: 3px; border-radius: 4px; }
.hero :focus-visible, .maison :focus-visible, .site-header :focus-visible, .site-footer :focus-visible,
.visionneuse :focus-visible, .dock :focus-visible { outline-color: var(--sanguine-clair); }

.skip {
  position: fixed; left: 1rem; top: -4rem; z-index: 200;
  background: var(--veine); color: var(--encre); padding: .75rem 1.1rem; border-radius: 10px; font-weight: 600;
  transition: top .2s;
}
.skip:focus { top: 1rem; transition: none; }

@media (hover: none) { .si-souris { display: none; } }
@media (hover: hover) { .si-tactile { display: none; } }

/* ---------- 3. Typographie ---------- */
.h-display {
  font-family: var(--f-display);
  font-weight: 380;
  font-size: clamp(2.2rem, 5.2vw, 4.6rem);
  line-height: 1;
  letter-spacing: -.025em;
  font-variation-settings: 'opsz' 144, 'SOFT' 0;
  text-wrap: balance;
  transition: font-variation-settings 1.6s var(--ease);
}
.h-display.est-poli { font-variation-settings: 'opsz' 144, 'SOFT' 100; }
.h-display em { font-style: italic; }

.grain { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.1rem; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; }
.grain-num {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 650; font-variation-settings: 'wdth' 75; color: var(--sanguine);
}
.grain-num::before {
  content: ''; width: 1.9rem; height: .7rem; border-radius: 2px;
  background: var(--bruit), linear-gradient(90deg, #b48d57, #9a7445);
  background-size: var(--grain-taille, 90px), auto;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12);
}
.grain-nom { color: var(--encre-2); font-weight: 500; }
.chapeau { font-size: clamp(1.05rem, 1.35vw, 1.22rem); line-height: 1.55; color: var(--encre-2); max-width: 38em; text-wrap: pretty; }

/* ---------- 4. Boutons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .8em 1.45em; border-radius: 999px; border: 0;
  font-weight: 620; font-size: .98rem; letter-spacing: .005em; text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s;
}
.btn-lustre {
  color: #1e1710; overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, #ecc977 0%, #d2a24a 42%, #b98530 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -1px 0 rgba(90, 55, 10, .25), 0 10px 24px -12px rgba(150, 100, 25, .75);
}
.btn-lustre::after { /* reflet qui passe, comme sur un sol vitrifié */
  content: ''; position: absolute; inset: -20% auto -20% -60%; width: 45%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-18deg); transition: left .7s var(--ease);
}
.btn-lustre:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 16px 30px -14px rgba(150, 100, 25, .85); }
.btn-lustre:hover::after { left: 120%; }
.btn-ligne { color: inherit; background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-ligne:hover { background: rgba(255, 255, 255, .08); transform: translateY(-1px); }

/* ---------- 5. En-tête ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  display: flex; align-items: center; gap: 1.6rem; padding-inline: var(--marge);
  color: var(--platre);
  transition: background-color .35s, box-shadow .35s, transform .35s var(--ease);
}
.site-header::before { /* voile qui apparaît quand on quitte l'entrée */
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: rgba(34, 27, 22, .84); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 1px 0 var(--trait-clair); transition: opacity .35s;
}
.site-header.est-defile::before { opacity: 1; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; margin-right: auto; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-text { display: grid; line-height: 1.05; }
.brand-name { font-family: var(--f-display); font-weight: 600; font-size: 1.18rem; letter-spacing: .01em; font-variation-settings: 'opsz' 24, 'SOFT' 100; }
.brand-sub { font-size: .64rem; letter-spacing: .22em; text-transform: uppercase; opacity: .72; font-variation-settings: 'wdth' 80; }
.nav-list { display: flex; gap: 1.7rem; }
.nav-list a {
  text-decoration: none; font-size: .95rem; font-weight: 500; padding: .35rem 0;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .3s var(--ease);
}
.nav-list a:hover, .nav-list a[aria-current='true'] { background-size: 100% 1.5px; }
.nav-list-cta { display: none; }
.header-tel { text-decoration: none; font-weight: 600; font-size: .95rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.header-cta { min-height: 42px; padding: .6em 1.15em; font-size: .92rem; }
.menu-btn {
  display: none; align-items: center; gap: .6rem; min-height: 44px; padding: .5rem .9rem;
  border: 1px solid var(--trait-clair); border-radius: 999px; background: rgba(0, 0, 0, .18); font-weight: 600; font-size: .92rem;
}
.menu-btn-trait { width: 16px; height: 10px; position: relative; border-block: 1.5px solid currentColor; }
.menu-btn[aria-expanded='true'] .menu-btn-trait { border-color: transparent; }
.menu-btn[aria-expanded='true'] .menu-btn-trait::before,
.menu-btn[aria-expanded='true'] .menu-btn-trait::after { content: ''; position: absolute; left: 0; right: 0; top: 3px; border-top: 1.5px solid currentColor; transform: rotate(45deg); }
.menu-btn[aria-expanded='true'] .menu-btn-trait::after { transform: rotate(-45deg); }

@media (max-width: 1000px) {
  .header-tel { display: none; }
}
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .menu-btn { display: inline-flex; }
  .header-cta { display: none; }
  .nav { position: static; }
  .nav-list {
    position: fixed; inset: var(--header-h) 0 auto; display: grid; gap: 0; padding: .5rem var(--marge) 1.5rem;
    background: rgba(34, 27, 22, .97); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s;
  }
  .site-header.menu-ouvert .nav-list { transform: none; opacity: 1; visibility: visible; transition: opacity .25s, transform .25s var(--ease); }
  .site-header.menu-ouvert::before { opacity: 1; }
  .nav-list a { display: block; padding: .9rem 0; font-family: var(--f-display); font-size: 1.5rem; font-weight: 400; border-bottom: 1px solid var(--trait-clair); background: none; }
  .nav-list-cta { display: block; }
  .nav-list-cta a { color: var(--veine); border: 0; }
  .no-js .nav-list { position: static; display: flex; flex-wrap: wrap; gap: .2rem 1rem; opacity: 1; visibility: visible; transform: none; background: none; box-shadow: none; padding: 0; }
  .no-js .nav-list a { font-family: var(--f-texte); font-size: .9rem; border: 0; padding: .2rem 0; }
  .no-js .menu-btn { display: none; }
  .no-js .site-header { position: absolute; height: auto; min-height: var(--header-h); flex-wrap: wrap; padding-block: .6rem; }
}

/* ---------- 6. Entrée : le sol à poncer ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: center;
  color: var(--platre); background: #3a2618; overflow: hidden; isolation: isolate;
}
.surface { position: absolute; inset: 0; z-index: 0; touch-action: pan-y; }
.surface-repli, .surface-repli img { width: 100%; height: 100%; }
.surface-repli img { object-fit: cover; filter: saturate(.95) brightness(.78); }
.surface-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .8s var(--ease); }
.surface.est-pret .surface-canvas { opacity: 1; }
.surface.est-pret .surface-repli { visibility: hidden; transition: visibility 0s .8s; }
.surface-curseur { /* empreinte de la machine : accompagne le pointeur, ne le remplace pas */
  position: absolute; left: 0; top: 0; width: var(--diam, 150px); height: var(--diam, 150px); margin: calc(var(--diam, 150px) / -2) 0 0 calc(var(--diam, 150px) / -2);
  pointer-events: none; opacity: 0; transition: opacity .25s; will-change: transform;
}
.surface-curseur span { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(255, 244, 222, .7); box-shadow: 0 0 0 1px rgba(0, 0, 0, .15), inset 0 0 30px rgba(255, 240, 210, .12); }
.surface[data-materiau='parquet'] .surface-curseur span { border-radius: 14px; transform: rotate(var(--angle, 0deg)) scaleY(.36); }
.surface.pointe .surface-curseur { opacity: 1; }
.hero-voile {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(24, 16, 10, .82) 0%, rgba(24, 16, 10, .55) 34%, rgba(24, 16, 10, 0) 64%),
    linear-gradient(0deg, rgba(24, 16, 10, .55) 0%, rgba(24, 16, 10, 0) 30%),
    linear-gradient(180deg, rgba(24, 16, 10, .5) 0%, rgba(24, 16, 10, 0) 18%);
}
.hero-contenu {
  position: relative; z-index: 2; pointer-events: none;
  width: 100%; max-width: calc(var(--max) + 2 * var(--marge));
  margin-inline: auto; padding: calc(var(--header-h) + 5vh) var(--marge) 12vh;
}
.hero-contenu a, .hero-contenu .btn { pointer-events: auto; }
.hero-titre { display: grid; gap: 1.1rem; max-width: 46rem; }
.kicker {
  font-family: var(--f-texte); font-size: .8rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--veine); font-variation-settings: 'wdth' 85;
}
.display {
  font-family: var(--f-display); font-weight: 350; font-size: clamp(3.3rem, 9.6vw, 8.6rem); line-height: .88; letter-spacing: -.04em;
  font-variation-settings: 'opsz' 144, 'SOFT' 0; text-shadow: 0 2px 40px rgba(0, 0, 0, .35);
  transition: font-variation-settings 2.4s var(--ease) .3s;
}
.hero.est-poli .display { font-variation-settings: 'opsz' 144, 'SOFT' 100; }
.display em { font-style: italic; font-weight: 330; color: #efd18e; }
.display-au { font-style: italic; font-weight: 300; font-size: .62em; letter-spacing: 0; vertical-align: .12em; }
.hero-texte { max-width: 31rem; margin-top: 1.6rem; font-size: clamp(1.05rem, 1.3vw, 1.2rem); line-height: 1.55; color: rgba(247, 240, 228, .92); text-shadow: 0 1px 12px rgba(0, 0, 0, .4); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero-note { margin-top: 1.25rem; font-size: .92rem; color: rgba(247, 240, 228, .8); }
.hero-note a { font-weight: 600; white-space: nowrap; }
.hero-suite {
  position: absolute; z-index: 2; left: 50%; bottom: 1.1rem; translate: -50% 0;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--trait-clair); text-decoration: none; background: rgba(0, 0, 0, .2);
  animation: descendre 2.6s var(--ease) infinite;
}
@keyframes descendre { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* Panneau « À vous de poncer » : n'apparaît que si la surface calculée fonctionne */
.atelier {
  display: none; position: absolute; z-index: 3; right: var(--marge); bottom: max(5vh, 1.5rem);
  width: min(21.5rem, calc(100% - 2 * var(--marge)));
  padding: 1.05rem 1.1rem 1rem; border-radius: 18px; color: var(--platre);
  background: rgba(33, 25, 19, .66); -webkit-backdrop-filter: blur(16px) saturate(1.25); backdrop-filter: blur(16px) saturate(1.25);
  border: 1px solid rgba(242, 237, 228, .15); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .7);
}
.fx-ok .atelier { display: grid; gap: .85rem; }
.atelier-titre { font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--veine); font-variation-settings: 'wdth' 80; }
.atelier-consigne { font-family: var(--f-display); font-style: italic; font-size: 1.12rem; line-height: 1.25; margin-top: .25rem; font-variation-settings: 'opsz' 30, 'SOFT' 100; }
.atelier-materiau { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.atelier-materiau button {
  display: grid; text-align: left; gap: .05rem; padding: .5rem .7rem; min-height: 48px; border-radius: 11px;
  border: 1px solid rgba(242, 237, 228, .2); background: rgba(255, 255, 255, .03); font-weight: 620; font-size: .95rem;
  transition: background-color .2s, border-color .2s;
}
.atelier-materiau small { font-size: .72rem; font-weight: 450; opacity: .75; }
.atelier-materiau [aria-checked='true'] { background: rgba(212, 172, 85, .2); border-color: var(--veine); }
.regle { display: grid; grid-template-columns: repeat(4, 1fr); gap: .3rem; }
.regle li { display: grid; gap: .35rem; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; font-variation-settings: 'wdth' 78; font-weight: 600; color: rgba(242, 237, 228, .55); transition: color .3s; }
.regle-trait { height: 5px; border-radius: 3px; background: rgba(242, 237, 228, .15); overflow: hidden; position: relative; }
.regle-trait::after { content: ''; position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--rempli, 0)); background: linear-gradient(90deg, #c7a96f, #efd18e); transition: transform .35s var(--ease); }
.regle li.est-actif { color: var(--platre); }
.regle li.est-fait { color: #efd18e; }
.regle li:last-child .regle-trait::after { background: linear-gradient(90deg, #efd18e, #fff3cf, #efd18e); }
.atelier-actions { display: flex; flex-wrap: wrap; gap: .45rem; }
.btn-atelier {
  min-height: 40px; padding: .45rem 1rem; border-radius: 999px; border: 0; font-weight: 640; font-size: .88rem;
  background: var(--platre); color: var(--encre); transition: transform .2s var(--ease), background-color .2s;
}
.btn-atelier:hover { transform: translateY(-1px); background: #fff; }
.btn-atelier-discret { background: transparent; color: var(--platre); box-shadow: inset 0 0 0 1px rgba(242, 237, 228, .35); }
.btn-atelier-discret:hover { background: rgba(255, 255, 255, .08); }
.atelier-legende { font-size: .76rem; line-height: 1.4; color: rgba(242, 237, 228, .72); }
.atelier-legende a { color: #efd18e; }

@media (max-width: 760px) {
  .hero { align-items: start; }
  .hero-voile {
    background:
      linear-gradient(180deg, rgba(24, 16, 10, .86) 0%, rgba(24, 16, 10, .6) 36%, rgba(24, 16, 10, .05) 58%, rgba(24, 16, 10, .2) 72%, rgba(24, 16, 10, .78) 100%);
  }
  .hero-contenu { padding: calc(var(--header-h) + 1.4rem) var(--marge) 0; }
  .hero-titre { max-width: none; gap: .8rem; }
  .kicker { font-size: .7rem; letter-spacing: .16em; }
  .display { font-size: clamp(3rem, 16.5vw, 5rem); }
  .hero-texte { margin-top: 1rem; font-size: 1rem; max-width: 28rem; }
  .hero-actions { margin-top: 1.25rem; }
  .hero-actions .btn { min-height: 46px; padding: .7em 1.15em; font-size: .95rem; }
  .hero-note { display: none; }
  .hero-suite { display: none; }
  .atelier { left: var(--marge); right: var(--marge); width: auto; bottom: max(.9rem, env(safe-area-inset-bottom)); padding: .8rem .85rem .75rem; gap: .6rem; border-radius: 16px; }
  .fx-ok .atelier { grid-template-columns: 1fr auto; align-items: center; }
  .atelier-tete { grid-column: 1 / -1; grid-row: 1; }
  .atelier-materiau { grid-column: 1; grid-row: 2; grid-template-columns: auto auto; justify-content: start; }
  .atelier-actions { grid-column: 2; grid-row: 2; }
  .regle { grid-column: 1 / -1; grid-row: 3; }
  .atelier-legende { grid-column: 1 / -1; grid-row: 4; }
  .atelier-titre { display: none; }
  .atelier-consigne { font-size: 1rem; margin-top: 0; }
  .atelier-materiau button { min-height: 44px; padding: .4rem .65rem; font-size: .88rem; }
  .atelier-materiau small { display: none; }
  .atelier-actions { justify-content: flex-end; }
  .btn-atelier-discret { display: none; }
  .atelier-legende { font-size: .72rem; }
}
@media (max-width: 760px) and (max-height: 700px) {
  .hero-texte { display: none; }
  .atelier-legende { display: none; }
}

/* ---------- 7. Sections : le fond s'affine de grain en grain ---------- */
.section { position: relative; padding: clamp(4.5rem, 10vw, 8.5rem) var(--marge); isolation: isolate; }
.section::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--bruit); background-size: var(--grain-taille, 180px); opacity: var(--grain-o, .3); mix-blend-mode: multiply;
}
.section > * { max-width: var(--max); margin-inline: auto; }
.section-tete { display: grid; gap: 1.15rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-tete .h-display { max-width: 16ch; }
.metier { --grain-o: .5; --grain-taille: 110px; }
.galerie { --grain-o: .34; --grain-taille: 150px; background: #ebe3d6; }
.maison { --grain-o: .16; --grain-taille: 190px; background: var(--noyer); color: var(--platre); }
.maison::before { mix-blend-mode: soft-light; }
.zones { --grain-o: .14; --grain-taille: 240px; }
.contact { --grain-o: .04; --grain-taille: 300px; background: linear-gradient(180deg, var(--platre) 0%, #f8f2e7 100%); }

/* ---------- 8. Grain 40 — le métier ---------- */
.matieres { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); }
.matiere {
  position: relative; display: grid; gap: 1rem; align-content: start; overflow: hidden;
  padding: clamp(1.6rem, 3vw, 2.6rem); padding-top: calc(clamp(1.6rem, 3vw, 2.6rem) + 10px);
  border-radius: var(--r); background: var(--papier); box-shadow: var(--ombre);
}
.matiere::before { content: ''; position: absolute; inset: 0 0 auto; height: 10px; }
.matiere-bois::before { background: repeating-linear-gradient(90deg, #cf9a5e 0 46px, #a8743f 46px 48px, #dcae74 48px 88px, #a8743f 88px 90px, #c68c50 90px 128px, #a8743f 128px 130px); }
.matiere-pierre::before { background: linear-gradient(97deg, #f1ece3 0 22%, #d5ad58 23%, #f1ece3 24.5% 61%, #b8afa3 61.6%, #f1ece3 62.3% 84%, #d5ad58 84.8%, #f1ece3 86%); }
.matiere-tag { font-size: .76rem; font-weight: 680; letter-spacing: .18em; text-transform: uppercase; color: var(--miel-fonce); font-variation-settings: 'wdth' 75; }
.matiere-pierre .matiere-tag { color: #7d5e1b; }
.matiere h3 { font-family: var(--f-display); font-weight: 420; font-size: clamp(1.5rem, 2.4vw, 2.05rem); line-height: 1.08; letter-spacing: -.01em; font-variation-settings: 'opsz' 72, 'SOFT' 50; }
.matiere > p { color: var(--encre-2); }
.matiere-liste { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem 1.2rem; font-size: .96rem; }
.matiere-liste li { position: relative; padding-left: 1.15rem; }
.matiere-liste li::before { content: ''; position: absolute; left: 0; top: .62em; width: .55rem; height: .32rem; border: solid var(--miel); border-width: 1.5px 1.5px 0 0; transform: rotate(-45deg) skew(10deg); }
.matiere-pierre .matiere-liste li::before { border-color: var(--veine); }
.matiere-liens { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: .3rem; }
.matiere-liens a { font-weight: 640; color: var(--miel-fonce); text-decoration-thickness: 1.5px; }
.matiere-pierre .matiere-liens a { color: #7d5e1b; }

.passes { margin-top: clamp(3rem, 7vw, 5.5rem); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.passes-intro { position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; gap: 1.1rem; }
.passes-titre { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.9rem, 3.2vw, 2.7rem); line-height: 1.02; letter-spacing: -.02em; font-variation-settings: 'opsz' 110, 'SOFT' 70; }
.passes-intro > p { color: var(--encre-2); }
.onglets { display: inline-flex; width: max-content; padding: 4px; border-radius: 999px; background: rgba(30, 27, 24, .08); }
.onglets button { min-height: 42px; padding: .5rem 1.15rem; border: 0; border-radius: 999px; background: none; font-weight: 640; font-size: .93rem; transition: background-color .2s, color .2s; }
.onglets [aria-selected='true'] { background: var(--encre); color: var(--platre); }
.no-js .onglets { display: none; }
.echantillon { display: none; position: relative; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: #9c7a52; box-shadow: var(--ombre); }
.fx-ok .echantillon { display: block; }
.echantillon-canvas { width: 100%; height: 100%; }
.echantillon-legende { position: absolute; inset: auto .8rem .8rem; display: flex; justify-content: space-between; align-items: end; gap: .5rem; }
.echantillon-grain { padding: .35rem .75rem; border-radius: 999px; background: rgba(30, 24, 19, .8); color: var(--platre); font-weight: 650; font-size: .86rem; }
.echantillon-note { font-size: .72rem; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.passes-liste { display: grid; gap: .6rem; }
.passe {
  width: 100%; display: grid; grid-template-columns: 8.6rem 1fr; gap: .25rem 1.2rem; text-align: left;
  padding: 1.1rem 1.25rem; border-radius: 13px; border: 1px solid var(--trait); background: rgba(251, 248, 243, .55);
  transition: background-color .25s, border-color .25s, box-shadow .25s, transform .25s var(--ease);
}
.passe:hover { border-color: rgba(30, 27, 24, .32); }
.passe[aria-pressed='true'] { background: var(--papier); border-color: rgba(176, 67, 42, .5); box-shadow: var(--ombre); }
.passe-grain { grid-row: span 2; padding-top: .25rem; font-size: .8rem; font-weight: 680; letter-spacing: .1em; text-transform: uppercase; color: var(--sanguine); font-variation-settings: 'wdth' 75; }
.passe-titre { font-family: var(--f-display); font-size: 1.3rem; font-weight: 450; line-height: 1.2; font-variation-settings: 'opsz' 36, 'SOFT' 50; }
.passe-texte { color: var(--encre-2); font-size: .98rem; }
.no-js .passe { cursor: default; }
@media (max-width: 900px) {
  .passes { grid-template-columns: 1fr; }
  .passes-intro { position: static; }
}
@media (max-width: 620px) {
  .matieres { grid-template-columns: 1fr; }
  .matiere-liste { grid-template-columns: 1fr; }
  .passe { grid-template-columns: 1fr; padding: 1rem; }
  .passe-grain { grid-row: auto; }
}

/* ---------- 9. Grain 80 — l'échantillonnier ---------- */
.filtres { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: clamp(1.8rem, 3vw, 2.6rem); }
.filtres button { min-height: 44px; padding: .45rem 1.05rem; border-radius: 999px; border: 1px solid var(--trait); background: var(--papier); font-weight: 620; font-size: .94rem; transition: background-color .2s, color .2s, border-color .2s; }
.filtres button span { margin-left: .2rem; font-weight: 500; color: var(--poussiere); font-variant-numeric: tabular-nums; }
.filtres [aria-pressed='true'] { background: var(--encre); border-color: var(--encre); color: var(--platre); }
.filtres [aria-pressed='true'] span { color: rgba(242, 237, 228, .7); }
.no-js .filtres { display: none; }
.echantillons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.6rem, 3vw, 2.6rem) clamp(1rem, 2.2vw, 2rem); }
.chantier.est-masque { display: none; }
.chantier-carte { position: relative; display: grid; gap: 1.15rem; }
.tirages { position: relative; aspect-ratio: 3 / 4; }
.tirage {
  position: absolute; inset: 0; margin: 0; padding: 7px 7px 28px; border-radius: 4px; background: var(--papier);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .08), 0 16px 28px -16px rgba(40, 25, 10, .55);
  transition: transform .55s var(--ease), box-shadow .55s var(--ease);
}
.tirage picture, .tirage img, .tirage video { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; background: #d9cdb9; }
.tirage figcaption { position: absolute; left: 11px; bottom: 6px; font-size: .66rem; font-weight: 680; letter-spacing: .18em; text-transform: uppercase; color: var(--encre-2); font-variation-settings: 'wdth' 78; }
.tirage-avant { transform: rotate(-6.5deg) translate(-9%, 3%) scale(.92); filter: saturate(.9); }
.tirage-apres { transform: rotate(1.6deg) translate(3%, 0); }
.chantier-carte:hover .tirage-avant, .chantier-carte:focus-within .tirage-avant { transform: rotate(-11deg) translate(-18%, 4%) scale(.92); }
.chantier-carte:hover .tirage-apres, .chantier-carte:focus-within .tirage-apres { transform: rotate(3deg) translate(5%, -2%); box-shadow: 0 1px 1px rgba(0, 0, 0, .08), 0 26px 40px -18px rgba(40, 25, 10, .6); }
.chantier-texte { display: grid; gap: .25rem; padding-inline: .15rem; }
.chantier-num { font-size: .74rem; font-weight: 680; letter-spacing: .14em; text-transform: uppercase; color: var(--sanguine); font-variation-settings: 'wdth' 78; }
.chantier-num span { color: var(--encre-2); }
.chantier-titre { font-family: var(--f-display); font-weight: 450; font-size: 1.3rem; line-height: 1.15; font-variation-settings: 'opsz' 36, 'SOFT' 60; }
.chantier-meta { font-size: .9rem; color: var(--encre-2); }
.chantier-ouvrir { justify-self: start; margin-top: .3rem; font-weight: 660; font-size: .94rem; text-decoration: none; color: var(--miel-fonce); }
.chantier-ouvrir::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.chantier-ouvrir:hover { text-decoration: underline; }
.galerie-note { margin-top: clamp(2rem, 4vw, 3rem); font-size: .9rem; color: var(--encre-2); max-width: 46em; }
@media (max-width: 1100px) { .echantillons { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .echantillons { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem .9rem; }
  .tirage { padding: 5px 5px 22px; }
  .tirage figcaption { left: 8px; bottom: 4px; font-size: .6rem; }
  .chantier-titre { font-size: 1.08rem; }
  .chantier-meta { font-size: .82rem; }
}
.no-js .echantillons { grid-template-columns: 1fr; gap: 3rem; }
.no-js .chantier-carte { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: center; gap: 2rem; }
.no-js .tirages { aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.no-js .tirage { position: relative; transform: none; aspect-ratio: 3 / 4; }
.no-js .chantier-ouvrir { display: none; }
@media (max-width: 700px) { .no-js .chantier-carte { grid-template-columns: 1fr; } }
.js .tirages .tirage-avant figcaption { opacity: 0; transition: opacity .3s; }
.js .chantier-carte:hover .tirage-avant figcaption, .js .chantier-carte:focus-within .tirage-avant figcaption { opacity: 1; }
.no-js .site-header { position: absolute; }

/* ---------- 10. La visionneuse : deux tirages sur la table ---------- */
body.vis-ouverte { overflow: hidden; }
.visionneuse {
  position: fixed; inset: 0; z-index: 100; display: grid; grid-template-columns: minmax(0, 1fr) 23rem;
  color: var(--platre); background: radial-gradient(120% 90% at 35% 45%, #45352a 0%, #251c16 62%, #1b1410 100%);
  opacity: 0; transition: opacity .35s var(--ease);
}
.visionneuse.est-ouverte { opacity: 1; }
.visionneuse::before { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: var(--bruit); background-size: 160px; opacity: .22; mix-blend-mode: soft-light; }
.vis-table { position: relative; display: grid; grid-template-rows: minmax(0, 1fr) auto auto; justify-items: center; gap: .9rem; padding: clamp(1rem, 3vw, 2.5rem); min-height: 0; }
.vis-tirages { position: relative; width: 100%; height: 100%; min-height: 0; }
.vis-tirage {
  position: absolute; left: 50%; top: 50%; margin: 0;
  width: var(--w, 300px); height: var(--h, 400px); margin-left: calc(var(--w, 300px) / -2); margin-top: calc(var(--h, 400px) / -2);
  padding: 10px 10px 36px; border-radius: 4px; background: var(--papier); color: var(--encre);
  transform: translate(var(--x, 0px), var(--y, 0px)) rotate(var(--rot, 0deg));
  box-shadow: 0 2px 3px rgba(0, 0, 0, .25), 0 40px 70px -30px rgba(0, 0, 0, .85);
  transition: transform .65s var(--ease-ressort), box-shadow .35s; touch-action: none; user-select: none; -webkit-user-select: none;
}
.vis-tirage.est-dessus { cursor: grab; z-index: 2; }
.vis-tirage.est-saisi { transition: none; cursor: grabbing; box-shadow: 0 2px 3px rgba(0, 0, 0, .25), 0 60px 90px -30px rgba(0, 0, 0, .9); }
.vis-tirage img, .vis-tirage video { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; pointer-events: none; background: #cfc2ad; }
.vis-tirage figcaption { position: absolute; left: 14px; bottom: 9px; font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; font-variation-settings: 'wdth' 78; color: var(--encre-2); }
.vis-tirage-apres figcaption { color: var(--miel-fonce); }
.vis-aide { font-size: .88rem; color: rgba(242, 237, 228, .7); text-align: center; }
.vis-modes { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; }
.vis-modes button { min-height: 42px; padding: .45rem 1rem; border-radius: 999px; border: 1px solid var(--trait-clair); background: rgba(255, 255, 255, .04); font-weight: 620; font-size: .9rem; }
.vis-modes [aria-pressed='true'] { background: var(--platre); color: var(--encre); border-color: var(--platre); }
.vis-fiche { position: relative; display: flex; flex-direction: column; gap: 1.1rem; padding: 5rem 2rem 2rem; overflow: auto; background: rgba(0, 0, 0, .2); border-left: 1px solid var(--trait-clair); }
.vis-num { font-size: .78rem; font-weight: 680; letter-spacing: .16em; text-transform: uppercase; color: var(--sanguine-clair); font-variation-settings: 'wdth' 78; }
.vis-titre { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.8rem, 2.6vw, 2.4rem); line-height: 1.05; letter-spacing: -.015em; font-variation-settings: 'opsz' 96, 'SOFT' 100; }
.vis-infos { display: grid; gap: .8rem; padding-block: .4rem; border-block: 1px solid var(--trait-clair); }
.vis-infos div { display: grid; gap: .1rem; }
.vis-infos dt { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(242, 237, 228, .6); font-variation-settings: 'wdth' 80; }
.vis-source { font-size: .86rem; color: rgba(242, 237, 228, .7); }
.vis-fiche { overflow-x: hidden; overflow-y: auto; }
.vis-fiche .btn { align-self: flex-start; max-width: 100%; white-space: normal; text-align: center; }
.vis-nav { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1rem; }
.vis-nav button, .vis-fermer { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--trait-clair); background: rgba(255, 255, 255, .05); font-size: 1.25rem; }
.vis-nav button:hover, .vis-fermer:hover { background: rgba(255, 255, 255, .14); }
#visCompteur { font-variant-numeric: tabular-nums; color: rgba(242, 237, 228, .75); }
.vis-fermer { position: absolute; top: 1rem; right: 1rem; z-index: 3; font-size: 1.6rem; line-height: 1; }
.vis-clone { position: fixed; z-index: 120; margin: 0; object-fit: cover; pointer-events: none; border-radius: 3px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); }
@media (max-width: 860px) {
  .visionneuse { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .vis-table { padding: 3.6rem .8rem .5rem; gap: .6rem; }
  .vis-fiche { padding: .9rem 1rem calc(.9rem + env(safe-area-inset-bottom)); gap: .6rem; border-left: 0; border-top: 1px solid var(--trait-clair); overflow: visible; }
  .vis-titre { font-size: 1.45rem; }
  .vis-infos, .vis-source { display: none; }
  .vis-fiche .btn { align-self: stretch; }
  .vis-nav { margin-top: 0; padding-top: 0; }
  .vis-fermer { top: .6rem; right: .6rem; }
  .vis-modes button { min-height: 40px; padding: .4rem .8rem; font-size: .85rem; }
  .vis-aide { font-size: .8rem; }
}

/* ---------- 11. Grain 120 — la maison ---------- */
.maison-grille { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); grid-template-rows: auto auto; gap: clamp(2rem, 5vw, 4.5rem) clamp(2rem, 6vw, 6rem); align-items: center; }
.maison-texte { grid-row: span 2; display: grid; gap: 1.2rem; }
.maison-texte > p { color: rgba(242, 237, 228, .86); max-width: 34em; }
.maison .grain-num { color: var(--sanguine-clair); }
.maison .grain-nom { color: rgba(242, 237, 228, .72); }
.maison .h-display { max-width: 13ch; }
.faits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: .8rem; padding-top: 1.4rem; border-top: 1px solid var(--trait-clair); }
.faits strong { display: block; font-family: var(--f-display); font-weight: 400; font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1; color: #efd18e; font-variation-settings: 'opsz' 144, 'SOFT' 100; margin-bottom: .35rem; }
.faits span { font-size: .88rem; color: rgba(242, 237, 228, .72); }
.cernes { position: relative; width: min(100%, 340px); justify-self: center; aspect-ratio: 1; }
.cernes-svg { width: 100%; height: 100%; overflow: visible; }
.cerne { fill: none; stroke: #c99a4a; stroke-width: 1.6; stroke-linecap: round; opacity: .75; stroke-dasharray: 1300; stroke-dashoffset: 1300; transition: stroke-dashoffset 2.4s var(--ease); }
.cerne-2 { transition-delay: .35s; opacity: .6; } .cerne-1 { transition-delay: .7s; opacity: .5; }
.cernes.est-visible .cerne, .no-js .cerne { stroke-dashoffset: 0; }
.hermine { position: absolute; left: 50%; top: 50%; width: 15%; aspect-ratio: .8; translate: -50% -50%; background: #efd18e; -webkit-mask: url(../img/hermine-masque.png) center / contain no-repeat; mask: url(../img/hermine-masque.png) center / contain no-repeat; }
.cernes-legende { position: absolute; left: 0; right: 0; bottom: -1.8rem; text-align: center; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(242, 237, 228, .6); font-variation-settings: 'wdth' 80; }
.camion { display: grid; gap: .7rem; }
.camion img { border-radius: 12px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.camion figcaption { font-size: .9rem; color: rgba(242, 237, 228, .75); }
.avis { margin-top: clamp(3rem, 6vw, 5rem); padding: 1.5rem clamp(1.2rem, 3vw, 2rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; border-radius: var(--r); border: 1px solid var(--trait-clair); background: rgba(0, 0, 0, .15); }
.avis-titre { font-family: var(--f-display); font-weight: 420; font-size: 1.5rem; }
.avis p { color: rgba(242, 237, 228, .8); flex: 1 1 18rem; }
@media (max-width: 900px) {
  .maison-grille { grid-template-columns: 1fr; }
  .maison-texte { grid-row: auto; }
  .cernes { width: min(62vw, 250px); margin-bottom: 1.6rem; }
}
@media (max-width: 520px) { .faits { grid-template-columns: 1fr; } .faits li { display: flex; align-items: baseline; gap: .8rem; } }

/* ---------- 12. Grain 180 — zones ---------- */
.zones-outil { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.zones-recherche { position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; gap: 1rem; }
.champ { position: relative; display: grid; gap: .4rem; }
.champ > label, .champ > span { font-weight: 620; font-size: .96rem; }
.champ small { font-weight: 400; color: var(--poussiere); }
.champ input, .champ textarea {
  width: 100%; min-height: 52px; padding: .8rem 1rem; border-radius: 12px; border: 1.5px solid rgba(30, 27, 24, .24);
  background: #fff; font-size: 1.02rem; transition: border-color .2s, box-shadow .2s;
}
.champ textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.champ input:focus, .champ textarea:focus { outline: none; border-color: var(--miel); box-shadow: 0 0 0 4px rgba(194, 132, 58, .2); }
.champ input[aria-invalid='true'] { border-color: var(--sanguine); box-shadow: 0 0 0 4px rgba(176, 67, 42, .12); }
.combo-liste { position: absolute; top: 100%; left: 0; right: 0; z-index: 20; margin-top: 6px; max-height: 17rem; overflow: auto; padding: 6px; border-radius: 12px; background: var(--papier); box-shadow: 0 22px 44px -18px rgba(40, 25, 10, .5), 0 0 0 1px var(--trait); }
.combo-liste li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .6rem .75rem; border-radius: 8px; cursor: pointer; }
.combo-liste li small { color: var(--poussiere); font-size: .8rem; white-space: nowrap; }
.combo-liste li[aria-selected='true'], .combo-liste li:hover { background: #efe5d4; }
.combo-liste mark { background: none; color: inherit; font-weight: 720; }
.combo-vide { color: var(--encre-2); cursor: default !important; }
.zm { display: grid; gap: .6rem; padding: 1rem 1.1rem; border-radius: 12px; background: var(--papier); box-shadow: var(--ombre); }
.zm-titre { font-family: var(--f-display); font-weight: 450; font-size: 1.22rem; line-height: 1.2; font-variation-settings: 'opsz' 36, 'SOFT' 60; }
.zm p { color: var(--encre-2); font-size: .95rem; }
.zm-liens { display: flex; flex-wrap: wrap; gap: .35rem .9rem; font-size: .92rem; }
.zm-liens a { color: var(--miel-fonce); font-weight: 620; }
.zm .btn { justify-self: start; min-height: 44px; font-size: .92rem; }
.carte { position: relative; overflow: hidden; border-radius: var(--r); background: #e8dfd0; box-shadow: inset 0 0 0 1px var(--trait); }
.carte-canvas { width: 100%; aspect-ratio: 1.5; touch-action: pan-y; }
.carte-canvas.sur-point { cursor: pointer; }
.carte-infobulle { position: absolute; z-index: 2; left: 0; top: 0; pointer-events: none; transform: translate(-50%, calc(-100% - 12px)); padding: .35rem .65rem; border-radius: 8px; background: var(--encre); color: var(--platre); font-size: .84rem; white-space: nowrap; }
.carte-legende { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; padding: .7rem 1rem; font-size: .8rem; color: var(--encre-2); border-top: 1px solid var(--trait); background: rgba(251, 248, 243, .6); }
.pt { display: inline-block; width: 9px; height: 9px; margin-right: .4rem; border-radius: 50%; vertical-align: -1px; }
.pt-page { background: #c3902f; box-shadow: 0 0 0 2px rgba(195, 144, 47, .25); }
.pt-29 { background: #5d534a; } .pt-bzh { background: #bcb1a2; } .pt-atelier { background: var(--sanguine); }
.zones-listes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem clamp(1.5rem, 3vw, 3rem); }
.zones-col h3, .zones-col h4 { margin-bottom: .8rem; padding-bottom: .7rem; border-bottom: 1px solid var(--trait); font-size: .8rem; font-weight: 680; letter-spacing: .16em; text-transform: uppercase; color: var(--miel-fonce); font-variation-settings: 'wdth' 80; }
.zones-col a { display: block; padding: .3rem 0; font-size: .95rem; color: var(--encre-2); text-decoration: none; }
.zones-col a:hover { color: var(--encre); text-decoration: underline; }
.services-villes { margin-top: clamp(2.5rem, 5vw, 4rem); }
.services-villes-titre { margin-bottom: 1.5rem; font-family: var(--f-display); font-weight: 420; font-size: clamp(1.4rem, 2.2vw, 1.8rem); font-variation-settings: 'opsz' 60, 'SOFT' 60; }
.toutes-communes { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--trait); }
.toutes-communes summary, .pourquoi summary { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; cursor: pointer; font-weight: 640; list-style: none; }
.toutes-communes summary::-webkit-details-marker, .pourquoi summary::-webkit-details-marker { display: none; }
.toutes-communes summary::before, .pourquoi summary::before { content: '+'; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid currentColor; font-weight: 500; line-height: 1; }
.toutes-communes[open] summary::before, .pourquoi[open] summary::before { content: '–'; }
.toutes-communes summary span { color: var(--poussiere); font-weight: 500; }
.toutes-communes ul { columns: 11rem 5; column-gap: 2rem; margin-top: 1rem; font-size: .9rem; }
.toutes-communes a { display: block; padding: .18rem 0; color: var(--encre-2); text-decoration: none; }
.toutes-communes a:hover { text-decoration: underline; color: var(--encre); }
@media (max-width: 900px) {
  .zones-outil { grid-template-columns: 1fr; }
  .zones-recherche { position: static; }
  .zones-listes { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .zones-listes { grid-template-columns: 1fr; gap: 1.6rem; }
  .zones-col ul { display: flex; flex-wrap: wrap; gap: .4rem; }
  .zones-col a { padding: .4rem .75rem; border-radius: 999px; border: 1px solid var(--trait); background: var(--papier); font-size: .88rem; }
  .prefixe { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .carte-canvas { aspect-ratio: 1.25; }
}

/* ---------- 13. Lustre — parlons de votre sol ---------- */
.contact-grille { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.contact-intro { position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; gap: 1.3rem; }
.contact-direct { display: grid; gap: .15rem; padding: 1.2rem 1.35rem; border-radius: var(--r); background: var(--papier); box-shadow: var(--ombre); }
.contact-direct-titre { font-size: .76rem; font-weight: 680; letter-spacing: .14em; text-transform: uppercase; color: var(--miel-fonce); font-variation-settings: 'wdth' 80; }
.tel-grand { font-family: var(--f-display); font-weight: 420; font-size: clamp(1.9rem, 3.2vw, 2.5rem); letter-spacing: -.01em; text-decoration: none; font-variant-numeric: lining-nums tabular-nums; font-variation-settings: 'opsz' 72, 'SOFT' 100; }
.contact-direct p { font-size: .95rem; color: var(--encre-2); }
.contact-direct .mail { font-weight: 620; font-size: .95rem; color: var(--miel-fonce); }
.pourquoi p { margin-top: .7rem; font-size: .97rem; color: var(--encre-2); }
.devis {
  position: relative; display: grid; gap: 1.4rem; padding: clamp(1.25rem, 3vw, 2.4rem); border-radius: 22px; background: var(--papier);
  box-shadow: 0 1px 2px rgba(40, 25, 10, .06), 0 34px 70px -34px rgba(40, 25, 10, .45);
}
.devis-bande { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.devis-bande li { position: relative; display: flex; align-items: flex-end; height: 30px; padding: 0 .45rem .28rem; overflow: hidden; border-radius: 6px; background: #e9e0d1; font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--encre-2); font-variation-settings: 'wdth' 75; transition: background-color .4s; }
.devis-bande li::before { content: ''; position: absolute; inset: 0; background-image: var(--bruit); background-size: var(--t, 100px); opacity: .95; mix-blend-mode: multiply; }
.devis-bande li span { position: relative; }
.devis-bande li:nth-child(1) { --t: 50px; } .devis-bande li:nth-child(2) { --t: 90px; } .devis-bande li:nth-child(3) { --t: 140px; } .devis-bande li:nth-child(4) { --t: 220px; }
.devis-bande li:nth-child(5)::before { display: none; }
.devis-bande li.est-fait { background: #d7c09a; }
.devis-bande li.est-actif { background: #c89f60; color: var(--encre); }
.devis-bande li:nth-child(5).est-actif, .devis-bande li:nth-child(5).est-fait { background: linear-gradient(120deg, #e7c77e, #fff2cf 45%, #d7ad55); }
.no-js .devis-bande { display: none; }
.etape { display: grid; gap: 1.2rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.js .etape:not(.est-active) { display: none; }
.js .etape.est-active { animation: etape-entree .5s var(--ease) both; }
@keyframes etape-entree { from { opacity: 0; transform: translateY(10px); } }
.no-js .recap { display: none; }
.etape > legend, .recap-titre { padding: 0; margin-bottom: .2rem; font-family: var(--f-display); font-weight: 420; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.1; font-variation-settings: 'opsz' 72, 'SOFT' 60; }
.etape-num { display: block; margin-bottom: .5rem; font-family: var(--f-texte); font-size: .74rem; font-weight: 680; letter-spacing: .16em; text-transform: uppercase; color: var(--sanguine); font-variation-settings: 'wdth' 78; }
.etape-aide { margin-top: -.5rem; color: var(--encre-2); }
.choix-matiere { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; }
.carte-choix { position: relative; display: grid; align-content: start; gap: .15rem; padding: .55rem .55rem .8rem; border-radius: 14px; border: 1.5px solid var(--trait); background: #fff; cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); }
.carte-choix:hover { transform: translateY(-2px); border-color: rgba(30, 27, 24, .32); }
.carte-choix input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.carte-choix.est-coche, .carte-choix:has(input:checked) { border-color: var(--miel); box-shadow: 0 0 0 3px rgba(194, 132, 58, .24); }
.carte-choix:has(input:focus-visible) { outline: 3px solid var(--sanguine); outline-offset: 2px; }
.carte-visuel { aspect-ratio: 1; margin-bottom: .4rem; overflow: hidden; border-radius: 9px; background: #eee6d9; }
.carte-visuel img { width: 100%; height: 100%; object-fit: cover; }
.carte-visuel-autre { display: grid; place-items: center; font-family: var(--f-display); font-size: 2.2rem; color: var(--poussiere); background: repeating-linear-gradient(45deg, #efe8dc 0 10px, #e6ddcf 10px 20px); }
.carte-nom { font-weight: 660; }
.carte-detail { font-size: .8rem; line-height: 1.3; color: var(--encre-2); }
.sous-groupe { display: grid; gap: .6rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.sous-groupe > legend { padding: 0; margin-bottom: .55rem; font-weight: 620; font-size: .96rem; }
.puces { display: flex; flex-wrap: wrap; gap: .5rem; }
.puce { position: relative; display: inline-flex; }
.puce input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.puce span { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .5rem .95rem; border-radius: 999px; border: 1.5px solid var(--trait); background: #fff; font-size: .95rem; transition: background-color .2s, border-color .2s, color .2s; }
.puce:hover span { border-color: rgba(30, 27, 24, .4); }
.puce input:checked + span { background: var(--encre); border-color: var(--encre); color: var(--platre); }
.puce input:checked + span::before { content: '✓'; font-size: .8em; }
.puce input:focus-visible + span { outline: 3px solid var(--sanguine); outline-offset: 2px; }
.groupe-etat { display: grid; gap: .6rem; }
.groupe-titre { font-weight: 620; font-size: .96rem; }
.champs-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.rgpd { font-size: .86rem; color: var(--encre-2); }
.etape-erreur { font-weight: 620; font-size: .95rem; color: var(--sanguine); }
.etape-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .3rem; }
.etape-actions .btn:only-child { margin-left: auto; }
.btn-retour { min-height: 44px; padding: .5rem .2rem; border: 0; background: none; font-weight: 620; color: var(--encre-2); text-decoration: underline; text-underline-offset: .2em; }
.no-js .etape-actions { display: none; }
.envoi-sans-js { justify-self: start; }
.js .envoi-sans-js { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.recap { display: grid; gap: 1.2rem; }
.bon { display: grid; padding: .3rem 1.1rem; border: 1.5px dashed rgba(30, 27, 24, .3); border-radius: 14px; background: #fffdf8; }
.bon > div { display: grid; grid-template-columns: 8.5rem 1fr auto; gap: .8rem; align-items: baseline; padding: .75rem 0; border-bottom: 1px solid var(--trait); }
.bon > div:last-child { border-bottom: 0; }
.bon dt { font-size: .74rem; font-weight: 680; letter-spacing: .14em; text-transform: uppercase; color: var(--poussiere); font-variation-settings: 'wdth' 78; }
.bon dd { font-weight: 500; overflow-wrap: anywhere; }
.bon-modifier { min-height: 32px; border: 0; background: none; font-size: .85rem; font-weight: 620; color: var(--miel-fonce); text-decoration: underline; }
.recap-rassure { color: var(--encre-2); }
.apercu-note { font-size: .8rem; color: var(--poussiere); }
.apercu-note::before { content: '●'; margin-right: .45rem; color: var(--sanguine); }
.devis-merci { display: grid; gap: .9rem; padding: .5rem 0; }
.devis-merci:focus { outline: none; }
.merci-titre { font-family: var(--f-display); font-weight: 400; font-size: clamp(2rem, 3.5vw, 2.8rem); line-height: 1; font-variation-settings: 'opsz' 144, 'SOFT' 100; }
.merci-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.devis .btn-ligne { color: var(--encre); }
@media (max-width: 900px) {
  .contact-grille { grid-template-columns: 1fr; }
  .contact-intro { position: static; }
}
@media (max-width: 560px) {
  .choix-matiere { grid-template-columns: 1fr 1fr; }
  .champs-2 { grid-template-columns: 1fr; }
  .bon > div { grid-template-columns: 1fr auto; }
  .bon dt { grid-column: 1 / -1; }
  .devis { padding: 1.1rem; border-radius: 18px; }
  .devis-bande li { font-size: .56rem; padding-inline: .3rem; }
}

/* ---------- 14. Pied de page et dock mobile ---------- */
.site-footer { padding: clamp(3rem, 6vw, 4.5rem) var(--marge) calc(1.5rem + var(--dock-h, 0px)); background: #1c1510; color: rgba(242, 237, 228, .82); }
.pied-grille { display: grid; grid-template-columns: 2fr 1.2fr 1.2fr 1fr; gap: 2rem; max-width: var(--max); margin: 0 auto; }
.pied-nom { margin-bottom: .6rem; font-family: var(--f-display); font-weight: 500; font-size: 1.6rem; color: var(--platre); font-variation-settings: 'opsz' 48, 'SOFT' 100; }
.pied-titre { margin-bottom: .8rem; font-size: .74rem; font-weight: 680; letter-spacing: .16em; text-transform: uppercase; color: var(--veine); font-variation-settings: 'wdth' 80; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer li { padding: .2rem 0; }
.pied-bas { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.6rem; max-width: var(--max); margin: 2.5rem auto 0; padding-top: 1.2rem; border-top: 1px solid var(--trait-clair); font-size: .86rem; }
.pied-liens { display: flex; gap: 1.2rem; }
.calme-bouton { min-height: 40px; padding: .4rem .95rem; border-radius: 999px; border: 1px solid var(--trait-clair); background: none; font-weight: 620; font-size: .86rem; }
.calme-bouton[aria-pressed='true'] { background: var(--platre); color: var(--encre); }
.apercu { max-width: var(--max); margin: 1rem auto 0; font-size: .78rem; color: rgba(242, 237, 228, .5); }
@media (max-width: 800px) { .pied-grille { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .pied-grille { grid-template-columns: 1fr; } }
.dock {
  position: fixed; z-index: 45; left: .7rem; right: .7rem; bottom: max(.7rem, env(safe-area-inset-bottom));
  display: none; grid-template-columns: auto 1fr; gap: .45rem; padding: .45rem; border-radius: 999px;
  background: rgba(33, 25, 19, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .7); transform: translateY(160%); transition: transform .45s var(--ease);
}
.dock.est-visible { transform: none; }
.dock a { display: flex; align-items: center; justify-content: center; gap: .45rem; min-height: 48px; border-radius: 999px; font-weight: 660; text-decoration: none; }
.dock svg { width: 18px; height: 18px; }
.dock-tel { padding: 0 1.1rem; color: var(--platre); box-shadow: inset 0 0 0 1px var(--trait-clair); }
.dock-devis { color: #1e1710; background: linear-gradient(135deg, #ecc977, #c99a3e); }
@media (max-width: 900px) { .js .dock { display: grid; } .js { --dock-h: 76px; } }
@media (max-width: 400px) { .dock a { font-size: .9rem; } .dock svg { display: none; } .dock-tel { padding: 0 .85rem; } }

/* ---------- 15. Version calme (réduction des animations) ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}
.calme *, .calme *::before, .calme *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
.calme .display, .calme .h-display { font-variation-settings: 'opsz' 144, 'SOFT' 100; }
.calme .cerne { stroke-dashoffset: 0; }
.calme .hero-suite { animation: none; }

/* ---------- 16. Impression ---------- */
@media print {
  .site-header, .atelier, .dock, .visionneuse, .hero-suite, .filtres, .zones-outil, .devis { display: none !important; }
  .hero { min-height: auto; color: var(--encre); background: none; }
  .hero-voile, .surface { display: none; }
}
