/* ==========================================================================
   CARREAUX DESIGN — feuille de styles
   Identité : minérale, architecturale, contemporaine.
   Principe : le "joint" (fine ligne grège) structure les contenus,
   comme les joints d'un calepinage. Couleurs issues du logo officiel :
   aubergine profond (couleur principale) et or (accents, détails).
   ========================================================================== */

/* ---------- Polices (auto-hébergées, aucune requête vers Google) ---------- */
@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/archivo-variable.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 100% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../assets/fonts/instrument-sans-variable.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Palette & variables ---------- */
:root {
  /* Palette alignée sur le logo officiel : aubergine #260B45 et or #9A7823 */
  --pierre: #F6F3EC;        /* fond principal, ivoire très léger */
  --blanc: #FCFBF8;         /* blanc cassé */
  --sable: #E5DFD3;         /* accent clair, minéral */
  --grege: #ADA69D;         /* joints, lignes */
  --mineral: #5E5966;       /* texte secondaire (contraste AA) */
  --encre: #1E1428;         /* texte : noir légèrement violacé */
  --aubergine: #260B45;     /* couleur principale (logo) : blocs sombres, boutons */
  --aubergine-2: #3A1A5E;   /* survol, surfaces sur fond sombre */
  --or: #9A7823;            /* or du logo : joints, croisillons, étoiles, décor */
  --or-fonce: #7D6118;      /* or lisible en petit texte sur fond clair */
  --or-clair: #CDA851;      /* or sur fond aubergine */
  --sur-sombre: #CFC6D8;    /* texte clair sur fond aubergine */
  --sur-sombre-doux: #B9AEC5;
  --etoile: #9A7823;

  --ligne: rgba(30, 20, 40, .15);
  --ligne-claire: rgba(252, 251, 248, .18);

  --f-titre: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-texte: "Instrument Sans", "Segoe UI", Roboto, Arial, sans-serif;

  --conteneur: 1360px;
  --gouttiere: clamp(20px, 5vw, 64px);
  --section: clamp(72px, 10vw, 148px);
  --header-h: 78px;
  --logo-h: 58px;
  --rayon: 2px;
  --ease: cubic-bezier(.65, 0, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--pierre);
  color: var(--encre);
  font-family: var(--f-texte);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (min-width: 1200px) { body { font-size: 1.125rem; } }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
strong { font-weight: 600; }

h1, h2, h3, h4 {
  font-family: var(--f-titre);
  font-stretch: 116%;
  font-weight: 520;
  line-height: 1.04;
  letter-spacing: -.018em;
  margin: 0 0 .5em;
  overflow-wrap: break-word;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 1.35rem + 3.7vw, 4.5rem); }
h2 { font-size: clamp(1.85rem, 1.2rem + 2.4vw, 3.25rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .55vw, 1.5rem); line-height: 1.18; letter-spacing: -.01em; }
h4 { font-size: 1.05rem; font-stretch: 108%; letter-spacing: 0; }

::selection { background: var(--sable); color: var(--encre); }

:focus-visible {
  outline: 2px solid var(--aubergine);
  outline-offset: 3px;
}
.section--sombre :focus-visible, .site-footer :focus-visible, .lightbox :focus-visible { outline-color: var(--or-clair); }

main:focus { outline: none; }

/* Mot composé à ne jamais couper en fin de ligne (« Bas-Rhin ») */
.sans-coupure { white-space: nowrap; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--aubergine); color: var(--pierre);
  padding: .7rem 1rem; text-decoration: none; border-radius: var(--rayon);
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: var(--conteneur);
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}

/* ---------- Typographie utilitaire ---------- */
.surtitre {
  display: block;
  font-family: var(--f-texte);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--or-fonce);
  margin-bottom: 1.4rem;
}
.section--sombre .surtitre { color: var(--or-clair); }
.chapo {
  font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem);
  line-height: 1.55;
  max-width: 38em;
  color: var(--encre);
}
.texte-doux { color: var(--mineral); }
.mesure { max-width: 36em; }

/* ---------- Boutons & liens ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px;
  padding: .85rem 1.55rem;
  border: 1px solid transparent;
  border-radius: var(--rayon);
  font-family: var(--f-texte);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primaire { background: var(--aubergine); color: var(--blanc); }
.btn--primaire:hover { background: var(--aubergine-2); box-shadow: inset 0 -2px 0 var(--or-clair); }
.section--sombre .btn--primaire, .cta-final .btn--primaire { background: var(--or-clair); color: var(--aubergine); }
.section--sombre .btn--primaire:hover, .cta-final .btn--primaire:hover { background: #DDBD6A; box-shadow: none; }
.btn--contour { border-color: var(--encre); color: var(--encre); background: transparent; }
.btn--contour:hover { background: var(--aubergine); border-color: var(--aubergine); color: var(--blanc); }
.section--sombre .btn--contour, .cta-final .btn--contour { border-color: rgba(252,251,248,.55); color: var(--pierre); }
.section--sombre .btn--contour:hover, .cta-final .btn--contour:hover { background: var(--pierre); color: var(--encre); border-color: var(--pierre); }
.btn--clair { background: var(--pierre); color: var(--encre); }
.btn--clair:hover { background: var(--blanc); }

.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

.lien {
  display: inline-block;
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 3px;
  transition: background-size .35s var(--ease), color .2s ease;
}
.lien:hover { background-size: 0% 1px; background-position: 100% 100%; }
.lien--accent { color: var(--or-fonce); }
.section--sombre .lien { color: var(--pierre); }
.section--sombre .lien--accent { color: var(--or-clair); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--pierre);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background-color .3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--ligne); background: rgba(246, 243, 236, .97); }
.site-header__inner {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex; align-items: center;
  text-decoration: none; color: var(--encre);
  margin-right: auto;
  flex: none;
}
/* Logo officiel (image détourée) : proportions d'origine, jamais déformé */
.brand__logo { display: block; height: var(--logo-h); width: auto; max-width: none; }
.site-header .brand { padding-block: 6px; }

.nav__list { list-style: none; display: flex; align-items: center; gap: .25rem; }
.nav__list > li { position: relative; }
.nav__list a, .nav__sub-toggle { color: var(--encre); }
.nav__link {
  display: inline-flex; align-items: center;
  min-height: 44px;
  padding: .5rem .75rem;
  text-decoration: none;
  font-weight: 500;
  font-size: .98rem;
  position: relative;
}
.nav__link::after {
  content: ""; position: absolute; left: .75rem; right: .75rem; bottom: 8px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"], .nav__link.est-parent { color: var(--aubergine); }
.nav__link::after { background: var(--or); }
.nav__link.est-parent::after { transform: scaleX(1); }

.nav__has-sub { display: flex; align-items: center; }
.nav__has-sub > .nav__link { padding-right: .2rem; }
.nav__has-sub > .nav__link::after { right: .2rem; }
.nav__sub-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 44px; padding: 0; border: 0; background: none;
}
.nav__sub-toggle svg { width: 12px; height: 12px; transition: transform .25s ease; }
.nav__has-sub.is-open .nav__sub-toggle svg { transform: rotate(180deg); }

.nav__sub {
  list-style: none;
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 250px;
  background: var(--blanc);
  border: 1px solid var(--ligne);
  padding: .5rem 0;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
.nav__sub::before { /* pont invisible pour le survol */
  content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px;
}
.nav__sub a {
  display: block; padding: .6rem 1.1rem; text-decoration: none; font-size: .96rem;
  border-left: 2px solid transparent;
}
.nav__sub a:hover, .nav__sub a[aria-current="page"] { border-left-color: var(--or); background: var(--pierre); }
.nav__has-sub.is-open .nav__sub {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .2s ease, transform .2s ease, visibility 0s;
}
@media (hover: hover) and (min-width: 1080px) {
  .nav__has-sub:hover .nav__sub { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease, transform .2s ease, visibility 0s; }
}

.nav__mobile-only { display: none; }

.nav-toggle {
  display: none;
  width: 48px; height: 48px; padding: 0;
  border: 1px solid var(--ligne); border-radius: var(--rayon);
  background: transparent;
  align-items: center; justify-content: center;
}
.nav-toggle__barres { position: relative; width: 20px; height: 12px; }
.nav-toggle__barres span {
  position: absolute; left: 0; width: 100%; height: 1.5px; background: var(--encre);
  transition: transform .3s var(--ease), opacity .2s ease, top .3s var(--ease);
}
.nav-toggle__barres span:nth-child(1) { top: 0; }
.nav-toggle__barres span:nth-child(2) { top: 5.25px; }
.nav-toggle__barres span:nth-child(3) { top: 10.5px; }
.site-header.is-open .nav-toggle__barres span:nth-child(1) { top: 5.25px; transform: rotate(45deg); }
.site-header.is-open .nav-toggle__barres span:nth-child(2) { opacity: 0; }
.site-header.is-open .nav-toggle__barres span:nth-child(3) { top: 5.25px; transform: rotate(-45deg); }

@media (max-width: 1079.98px) {
  .nav-toggle { display: inline-flex; }
  .site-header__cta { display: none; }
  .nav {
    position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0;
    background: var(--pierre);
    border-top: 1px solid var(--ligne);
    overflow-y: auto;
    padding: 1rem var(--gouttiere) 7rem;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s ease, transform .3s var(--ease), visibility 0s linear .3s;
  }
  .no-js .nav { position: static; opacity: 1; visibility: visible; transform: none; padding: 0 0 1rem; border: 0; }
  .no-js .site-header__inner { flex-wrap: wrap; }
  .site-header.is-open .nav { opacity: 1; visibility: visible; transform: none; transition: opacity .3s ease, transform .3s var(--ease), visibility 0s; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list > li { border-bottom: 1px solid var(--ligne); }
  .nav__link {
    width: 100%; min-height: 60px; padding: .8rem 0;
    font-family: var(--f-titre); font-stretch: 112%; font-size: 1.35rem; font-weight: 500;
  }
  .nav__link::after { display: none; }
  .nav__has-sub { flex-wrap: wrap; }
  .nav__has-sub > .nav__link { width: auto; flex: 1; }
  .nav__sub-toggle { display: none; }
  /* « inherit » et non « visible » : menu fermé, les liens du sous-menu ne doivent
     pas rester cliquables (invisibles) par-dessus la page. */
  .nav__sub, .nav__has-sub.is-open .nav__sub {
    position: static; opacity: 1; visibility: inherit; transform: none;
    min-width: 0; width: 100%; border: 0; background: none; padding: 0 0 .9rem;
    display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem;
  }
  .nav__sub::before { display: none; }
  .nav__sub a { padding: .5rem 0; border: 0; color: var(--mineral); }
  .nav__sub a:hover, .nav__sub a[aria-current="page"] { background: none; color: var(--or-fonce); }
  .nav__mobile-only { display: block; border-bottom: 0 !important; }
  .nav__mobile-only .btn { width: 100%; margin-top: 1.5rem; }
  .nav__tel { display: block; margin-top: 1rem; text-align: center; font-weight: 600; text-decoration: none; padding: .8rem; }
  html.menu-ouvert { overflow: hidden; }
}
@media (max-width: 380px) {
  .nav__sub { grid-template-columns: 1fr; }
}
@media (min-width: 1080px) {
  :root { --header-h: 92px; --logo-h: 70px; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section--blanc { background: var(--blanc); }
.section--sable { background: #EDE8DF; }
.section--sombre { background: var(--aubergine); color: var(--pierre); }
.section--sombre .texte-doux { color: var(--sur-sombre); }
.section--serree { padding-block: clamp(56px, 7vw, 96px); }

.section-tete { display: grid; gap: 1.25rem 3rem; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); align-items: end; }
@media (min-width: 900px) {
  .section-tete { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .section-tete > :last-child { justify-self: start; }
}
.section-tete h2 { margin-bottom: 0; }

/* ---------- HERO accueil : une photographie posée dans un calepinage ----------
   La photo est découpée comme un calepinage en « opus » : un grand format,
   un format vertical et deux carrés. Au chargement, les carreaux se posent
   un à un ; le dernier, aubergine, porte la note Google. */
.accueil-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "intro" "photo" "suite";
  background: var(--pierre);
}
.accueil-hero__intro { grid-area: intro; padding: clamp(1.75rem, 6vw, 2.5rem) var(--gouttiere) 1.75rem; container-type: inline-size; }
.accueil-hero__suite { grid-area: suite; padding: 1.75rem var(--gouttiere) clamp(2.5rem, 7vw, 3.5rem); }
.accueil-hero h1 {
  font-size: clamp(2.3rem, 1.1rem + 3.5vw, 4.3rem);
  font-stretch: 110%;
  line-height: .98; letter-spacing: -.03em;
  margin-bottom: .5em;
  overflow-wrap: normal;
}
/* La ligne la plus longue (« salles de bain ») mesure 6,39 fois la taille du texte :
   le titre ne dépasse jamais la largeur de sa colonne, sans couper de mot. */
@supports (container-type: inline-size) {
  .accueil-hero h1 { font-size: min(4.4rem, 14.6cqi); }
}
.accueil-hero .chapo { color: var(--mineral); max-width: 30em; }
.accueil-hero .actions { margin-top: 0; }

.hero-fiche {
  display: grid; grid-template-columns: repeat(3, minmax(0, auto)); justify-content: start;
  margin: 2rem 0 0; border-top: 1px solid var(--ligne);
}
.hero-fiche div { padding: .95rem 1.25rem 0 0; }
.hero-fiche div + div { padding-left: 1.25rem; border-left: 1px solid var(--ligne); }
.hero-fiche dt { font-size: .78rem; color: var(--mineral); margin-bottom: .2rem; }
.hero-fiche dd { margin: 0; font-family: var(--f-titre); font-stretch: 112%; font-weight: 560; font-size: clamp(.95rem, .9rem + .2vw, 1.08rem); line-height: 1.2; }

.calepinage {
  --j: 6px;
  grid-area: photo;
  position: relative; overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--sable);
}
.calepinage > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.calepinage__joint { position: absolute; z-index: 3; background: var(--pierre); }
.calepinage__joint--v1 { left: calc(66.667% - var(--j) / 2); top: 0; bottom: 0; width: var(--j); }
.calepinage__joint--v2 { left: calc(33.333% - var(--j) / 2); top: 66.667%; bottom: 0; width: var(--j); }
.calepinage__joint--h1 { top: calc(66.667% - var(--j) / 2); left: 0; width: 66.667%; height: var(--j); }
.calepinage__joint--h2 { top: calc(33.333% - var(--j) / 2); left: 66.667%; right: 0; height: var(--j); }
.calepinage__carreau { position: absolute; z-index: 2; background: var(--pierre); transform: scaleY(0); transform-origin: top; }
.calepinage__carreau--a { left: 0; top: 0; width: 66.667%; height: 66.667%; }
.calepinage__carreau--b { left: 66.667%; top: 0; width: 33.334%; height: 33.334%; }
.calepinage__carreau--c { left: 66.667%; top: 33.333%; width: 33.334%; height: 66.667%; }
.calepinage__carreau--e { left: 33.333%; top: 66.667%; width: 33.334%; height: 33.334%; }
.js .calepinage__carreau { animation: carreau-leve .85s var(--ease) both; animation-delay: calc(.2s + var(--i) * .13s); }
.js .calepinage > img { animation: pose 1.8s var(--ease) both; }
@keyframes carreau-leve { from { transform: scaleY(1); } to { transform: scaleY(0); } }

.calepinage__note {
  position: absolute; z-index: 4; left: 0; bottom: 0;
  width: calc(33.333% - var(--j) / 2); height: calc(33.333% - var(--j) / 2);
  display: flex; flex-direction: column; justify-content: flex-end; gap: .3rem;
  padding: clamp(.7rem, 2vw, 1.5rem);
  background: var(--aubergine); color: var(--pierre); text-decoration: none;
  transition: background-color .3s ease;
}
.calepinage__note:hover { background: var(--aubergine-2); }
.calepinage__note:hover .calepinage__source { text-decoration: underline; }
.calepinage__chiffre { font-family: var(--f-titre); font-stretch: 125%; font-weight: 600; font-size: clamp(1.6rem, 1rem + 2.4vw, 3.3rem); line-height: .9; letter-spacing: -.02em; }
.calepinage__note .etoiles { color: var(--or-clair); }
.calepinage__note .etoiles svg { width: clamp(10px, 1vw + 6px, 16px); height: clamp(10px, 1vw + 6px, 16px); }
.calepinage__source { font-size: clamp(.68rem, .6rem + .3vw, .86rem); color: var(--sur-sombre); line-height: 1.25; }
.js .calepinage__note { animation: monte .7s var(--ease) both; animation-delay: .9s; }
.calepinage__legende {
  position: absolute; z-index: 4; right: 0; bottom: 0;
  max-width: calc(33.333% - var(--j) / 2);
  padding: .4rem .65rem; background: var(--pierre); color: var(--mineral);
  font-size: .72rem; line-height: 1.3;
}

.note-google { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.note-google:hover .note-google__texte { text-decoration: underline; }
.note-google__texte { line-height: 1.3; }
.note-google__texte strong { font-weight: 600; }
.etoiles { display: inline-flex; gap: 2px; color: var(--etoile); }
.etoiles svg { width: 16px; height: 16px; }

@media (min-width: 960px) {
  .accueil-hero {
    --decal: max(var(--gouttiere), calc((100vw - var(--conteneur)) / 2 + var(--gouttiere)));
    --texte: clamp(400px, 33vw, 580px);
    --respiration: clamp(2rem, 3.5vw, 4rem);
    grid-template-columns: minmax(0, calc(var(--decal) + var(--texte) + var(--respiration))) minmax(0, 1fr);
    grid-template-rows: 1fr auto auto 1fr;
    grid-template-areas: ". photo" "intro photo" "suite photo" ". photo";
    height: calc(100vh - var(--header-h) - 1px);
    height: calc(100svh - var(--header-h) - 1px);
    min-height: 540px;
    max-height: 980px;
  }
  .accueil-hero__intro, .accueil-hero__suite { padding-left: var(--decal); padding-right: var(--respiration); }
  .accueil-hero__intro { padding-top: clamp(1rem, 3vh, 2.5rem); padding-bottom: clamp(1rem, 2.6vh, 2rem); }
  .accueil-hero__suite { padding-top: 0; padding-bottom: clamp(1rem, 3vh, 2.5rem); }
  .accueil-hero .surtitre { margin-bottom: clamp(.8rem, 2vh, 1.4rem); }
  .accueil-hero h1 { font-size: min(4.4rem, 14.6cqi, 7.4vh); }
  .accueil-hero .chapo { font-size: clamp(1rem, .45rem + 1.2vh, 1.25rem); }
  .hero-fiche { margin-top: clamp(1.1rem, 3vh, 2rem); }
  .calepinage { --j: 10px; aspect-ratio: auto; height: 100%; min-height: 0; }
  .accueil-hero .actions .btn { padding-inline: 1.2rem; }
  .calepinage__legende { font-size: .78rem; padding: .5rem .8rem; }
}
@media (min-width: 960px) and (max-height: 720px) {
  .accueil-hero .chapo { line-height: 1.5; }
  .hero-fiche div { padding-top: .6rem; }
  .hero-fiche dt { margin-bottom: 0; }
}
@media (min-width: 960px) and (max-width: 1180px) and (max-height: 760px) {
  .hero-fiche { display: none; }
}
@media (max-width: 420px) {
  .hero-fiche { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-fiche div { padding-right: .6rem; }
  .hero-fiche div + div { padding-left: .6rem; }
  .calepinage__legende { display: none; }
}

/* ---------- En-tête des pages intérieures ---------- */
.page-hero { padding-top: clamp(1.5rem, 3vw, 2.5rem); padding-bottom: var(--section); }
.page-hero__grille { display: grid; gap: 2.5rem; align-items: center; }
.page-hero__texte h1 { margin-bottom: .5em; font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.75rem); }
.page-hero__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sable); }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero--simple .page-hero__texte { max-width: 60rem; }
@media (min-width: 960px) {
  .page-hero__grille { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(3rem, 6vw, 6rem); }
  .page-hero__media { aspect-ratio: 5 / 6; }
  .page-hero__media--paysage { aspect-ratio: 4 / 3; }
}

.fil-ariane { margin-bottom: clamp(2rem, 5vw, 3.5rem); font-size: .9rem; color: var(--mineral); }
.fil-ariane ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem .6rem; }
.fil-ariane li { display: inline-flex; align-items: center; gap: .6rem; }
.fil-ariane li + li::before { content: ""; width: 14px; height: 1px; background: var(--grege); }
.fil-ariane a { text-decoration: none; }
.fil-ariane a:hover { text-decoration: underline; }
.fil-ariane [aria-current] { color: var(--encre); }

/* ---------- La précision se joue dans les détails : la loupe ----------
   Une vraie photo de chantier, un repère en forme de croisillon et un zoom
   sur le détail choisi. La photo est cadrée sur le point observé
   (object-position = transform-origin = point), qui reste donc immobile. */
.precision__grille { display: grid; gap: 2rem; grid-template-areas: "texte" "loupe" "liste"; }
.precision__texte { grid-area: texte; }
.loupe { grid-area: loupe; }
.loupe__liste { grid-area: liste; }
.precision h2 { font-size: clamp(2.1rem, 1.2rem + 3.1vw, 4rem); margin-bottom: .45em; }
.precision__texte .chapo { max-width: 30em; }
@media (min-width: 960px) {
  .precision__grille {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto 1fr;
    grid-template-areas: "texte loupe" "liste loupe"; gap: 0 clamp(3rem, 6vw, 6rem);
  }
  .loupe { align-self: center; }
}
.loupe__liste { list-style: none; margin: 0; border-top: 1px solid var(--ligne); align-self: start; }
@media (min-width: 960px) { .loupe__liste { margin-top: 2rem; } }
.loupe__choix { border-bottom: 1px solid var(--ligne); position: relative; }
.loupe__choix::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px;
  background: var(--or); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease);
}
.loupe__choix.is-active::before { transform: scaleX(1); }
.loupe__bouton {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: 100%; min-height: 56px; padding: 1rem 0; border: 0; background: none; text-align: left;
  font-family: var(--f-titre); font-stretch: 112%; font-weight: 520; font-size: clamp(1.08rem, 1rem + .4vw, 1.3rem); letter-spacing: -.01em;
  color: var(--encre);
}
.loupe__bouton::after {
  content: ""; flex: none; width: 10px; height: 10px; border: 1px solid var(--grege);
  transition: background-color .3s ease, border-color .3s ease, transform .5s var(--ease);
}
.loupe__bouton:hover::after { border-color: var(--or-fonce); }
.loupe__bouton[aria-pressed="true"]::after { background: var(--or); border-color: var(--or); transform: rotate(45deg); }
.loupe__texte { margin: 0; color: var(--mineral); font-size: .98rem; }
.loupe__texte > span { display: block; max-width: 34em; }
.loupe__texte > span::after { content: ""; display: block; height: 1.1rem; }
.js .loupe__texte { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.js .loupe__texte > span { overflow: hidden; min-height: 0; }
.js .loupe__choix.is-active .loupe__texte { grid-template-rows: 1fr; }

.loupe { margin: 0; }
.loupe__cadre { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--sable); }
@media (min-width: 960px) { .loupe__cadre { aspect-ratio: 1 / 1; } }
.loupe__photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(var(--zoom, 1));
  transition: opacity .6s ease, transform 1.1s var(--ease), object-position 1.1s var(--ease), transform-origin 1.1s var(--ease);
}
.loupe__photo.is-active { opacity: 1; }
.loupe__repere {
  position: absolute; z-index: 2; left: 34%; top: 31%;
  width: 60px; height: 60px; margin: -30px 0 0 -30px;
  border: 1.5px solid var(--blanc);
  box-shadow: 0 0 0 1px rgba(30, 20, 40, .28), inset 0 0 0 1px rgba(30, 20, 40, .28);
  transition: left 1.1s var(--ease), top 1.1s var(--ease);
  pointer-events: none;
}
.loupe__repere::before, .loupe__repere::after { content: ""; position: absolute; background: var(--blanc); box-shadow: 0 0 0 .5px rgba(30, 20, 40, .3); }
.loupe__repere::before { left: 50%; top: -14px; bottom: -14px; width: 1.5px; margin-left: -.75px; }
.loupe__repere::after { top: 50%; left: -14px; right: -14px; height: 1.5px; margin-top: -.75px; }
.no-js .loupe__repere, .no-js .loupe__bascule { display: none; }
.loupe__bascule {
  position: absolute; z-index: 3; right: 0; top: 0;
  min-height: 44px; padding: .6rem 1rem; border: 0; border-radius: 0;
  background: var(--pierre); color: var(--encre); font-weight: 600; font-size: .85rem;
}
.loupe__bascule:hover { background: var(--blanc); }
.loupe__legende { display: flex; justify-content: space-between; gap: 1rem; padding-top: .8rem; font-size: .88rem; color: var(--mineral); }

.diptyque {
  display: grid; gap: 1.75rem 3rem;
  margin-top: clamp(4rem, 9vw, 7.5rem); padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--ligne);
}
.diptyque h3 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.3rem); }
@media (min-width: 960px) { .diptyque { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(3rem, 6vw, 6rem); align-items: end; } }
.diptyque__photos { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.diptyque__photo { position: relative; overflow: hidden; aspect-ratio: 3 / 4; background: var(--sable); }
.diptyque__photo img { width: 100%; height: 100%; object-fit: cover; }
.diptyque__etiquette { position: absolute; left: 0; top: 0; padding: .4rem .7rem; background: var(--pierre); font-size: .8rem; font-weight: 600; }
.diptyque__photos figcaption { grid-column: 1 / -1; font-size: .88rem; color: var(--mineral); padding-top: .3rem; }

/* ---------- Prestations : le nuancier de matières ----------
   Comme des échantillons accrochés au mur d'un showroom. Sur ordinateur,
   l'échantillon survolé s'élargit ; sur mobile, on les fait défiler. */
.nuancier {
  list-style: none;
  display: flex; gap: 8px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  margin-inline: calc(var(--gouttiere) * -1); padding: 0 var(--gouttiere) .75rem;
  scrollbar-width: thin; scrollbar-color: var(--grege) transparent;
}
.nuancier__item { flex: 0 0 min(80%, 340px); scroll-snap-align: start; position: relative; }
.nuancier__lien { display: block; position: relative; height: clamp(420px, 120vw, 500px); overflow: hidden; background: var(--aubergine); color: var(--pierre); text-decoration: none; }
.nuancier__lien img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.nuancier__lien:hover img { transform: scale(1.04); }
.nuancier__plaque {
  position: absolute; left: 0; bottom: 0; right: 0; z-index: 2;
  display: grid; gap: .35rem;
  padding: 1.1rem 1.25rem 1.3rem;
  background: var(--aubergine);
}
.nuancier__usage { font-size: .78rem; color: var(--sur-sombre-doux); }
.nuancier__nom { font-family: var(--f-titre); font-stretch: 116%; font-weight: 540; font-size: clamp(1.3rem, 1.1rem + .8vw, 1.9rem); line-height: 1.05; letter-spacing: -.01em; color: var(--blanc); }
.nuancier__texte { font-size: .93rem; color: var(--sur-sombre); line-height: 1.5; }
.nuancier__plus { margin-top: .35rem; font-weight: 600; font-size: .9rem; color: var(--or-clair); }
.nuancier__lien:hover .nuancier__plus, .nuancier__lien:focus-visible .nuancier__plus { text-decoration: underline; text-underline-offset: .2em; }
.nuancier__tranche { display: none; }
.nuancier__pied { margin-top: 1.5rem; }

@media (min-width: 1000px) {
  .nuancier { overflow: visible; margin-inline: 0; padding: 0; height: clamp(540px, 44vw, 660px); scroll-snap-type: none; }
  .nuancier__item { flex: 1 1 0; min-width: 0; transition: flex-grow .9s var(--ease); }
  .nuancier__item.is-open { flex-grow: 4.4; }
  .nuancier__lien { height: 100%; }
  .nuancier__lien::after {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: rgba(22, 12, 31, .45); transition: opacity .7s ease;
  }
  .nuancier__item.is-open .nuancier__lien::after { opacity: 0; }
  .nuancier__tranche {
    display: block; position: absolute; z-index: 2; left: 50%; bottom: 1.6rem;
    writing-mode: vertical-rl; transform: translateX(-50%) rotate(180deg);
    font-family: var(--f-titre); font-stretch: 116%; font-weight: 540; font-size: 1.2rem; letter-spacing: .01em;
    color: var(--blanc); white-space: nowrap;
    transition: opacity .4s ease;
  }
  .nuancier__item.is-open .nuancier__tranche { opacity: 0; }
  .nuancier__plaque {
    right: auto; width: 25rem; max-width: calc(100% - 3rem);
    opacity: 0; transform: translateY(14px);
    transition: opacity .35s ease, transform .5s var(--ease);
  }
  .nuancier__item.is-open .nuancier__plaque { opacity: 1; transform: none; transition-delay: .35s; }
}

/* ---------- Réalisations (accueil) : rangées justifiées, comme la galerie ----------
   Sur tablette et ordinateur, chaque rangée tient sur une ligne : chaque photo
   prend une largeur proportionnelle à son format, toutes ont donc la même
   hauteur, sans recadrage. Sur mobile, les rangées se replient comme dans la
   galerie et chaque ligne reste justifiée. La légende n'apparaît qu'au survol. */
.rangs--ligne::after { display: none; }
.rangs--ligne + .rangs--ligne { margin-top: var(--joint); }
@media (max-width: 359.98px) { .rangs.rangs--ligne { --h: 150px; } }
@media (min-width: 760px) {
  .rangs.rangs--ligne { flex-wrap: nowrap; }
  .rangs--ligne .rang__item { flex: var(--r) 1 0; min-width: 0; max-height: none; }
}
.real-pied { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.5rem; border-top: 1px solid var(--ligne); }
.real-compte { margin: 0; display: flex; align-items: baseline; gap: .8rem; color: var(--mineral); max-width: 22em; line-height: 1.35; }
.real-compte span { font-family: var(--f-titre); font-stretch: 125%; font-weight: 600; font-size: clamp(2.6rem, 1.8rem + 2.6vw, 4.2rem); line-height: .9; color: var(--aubergine); letter-spacing: -.03em; }

/* ---------- Avis ---------- */
.avis { display: grid; gap: 3rem; }
@media (min-width: 1000px) { .avis { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(3rem, 7vw, 7rem); } }
.avis__note { align-self: start; }
@media (min-width: 1000px) { .avis__note { position: sticky; top: calc(var(--header-h) + 2rem); } }
.avis__note h2 { margin-bottom: 2rem; }
.avis__chiffre { display: flex; align-items: baseline; gap: .6rem; margin: 0; }
.avis__chiffre span { font-family: var(--f-titre); font-stretch: 125%; font-weight: 600; font-size: clamp(4.2rem, 2.8rem + 5vw, 7.5rem); line-height: .85; letter-spacing: -.035em; color: var(--aubergine); }
.avis__chiffre small { font-size: 1rem; color: var(--mineral); }
.avis__etoiles { margin: 1.1rem 0 .4rem; }
.avis__etoiles .etoiles svg { width: 22px; height: 22px; }
.avis__source { color: var(--mineral); margin-bottom: 1.75rem; }
.avis__temoignages { border-top: 1px solid var(--ligne); }
.avis__vedette, .avis__item { margin: 0; }
.avis__vedette { padding: clamp(1.75rem, 3vw, 2.5rem) 0 clamp(2rem, 4vw, 3rem); }
.avis__vedette blockquote { margin: 1.25rem 0 1.5rem; }
.avis__vedette blockquote p {
  font-family: var(--f-titre); font-stretch: 106%; font-weight: 440;
  font-size: clamp(1.3rem, 1.05rem + 1.1vw, 2rem); line-height: 1.34; letter-spacing: -.012em; max-width: 34em;
}
.avis__autres { display: grid; gap: 0; border-top: 1px solid var(--ligne); }
.avis__item { padding: 1.75rem 0; }
.avis__item + .avis__item { border-top: 1px solid var(--ligne); }
.avis__item blockquote { margin: 1rem 0 1.2rem; }
.avis__item blockquote p { font-size: 1rem; line-height: 1.6; color: var(--encre); }
.avis__item .etoiles svg, .avis__vedette .etoiles svg { width: 15px; height: 15px; }
@media (min-width: 760px) {
  .avis__autres { grid-template-columns: 1fr 1fr; }
  .avis__item { padding: 2rem 2rem 0 0; }
  .avis__item + .avis__item { border-top: 0; border-left: 1px solid var(--ligne); padding: 2rem 0 0 2rem; }
}
.avis-auteur { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; font-size: .92rem; }
.avis-auteur cite { font-style: normal; font-weight: 600; }
.avis-auteur__source { color: var(--mineral); }
.avis-auteur__initiale {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--sable); color: var(--encre); font-weight: 600; font-size: .85rem;
}

/* ---------- Duo (particuliers / professionnels) ---------- */
.duo { display: grid; gap: 0; border-top: 1px solid var(--ligne); }
.duo__col { padding: 2.25rem 0; border-bottom: 1px solid var(--ligne); }
.duo__col h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); }
.duo__tags { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0 0; }
/* Puces cliquables : un carreau aubergine se pose au survol, le croisillon passe à l'or */
.puce {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: .6rem;
  min-height: 44px; padding: .5rem 1rem;
  border: 1px solid var(--ligne); border-radius: var(--rayon);
  background: transparent; color: var(--encre);
  font-size: .95rem; font-weight: 500; text-decoration: none;
  transition: color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.puce::before {
  content: ""; width: 8px; height: 8px; flex: none; background: var(--grege);
  transition: background-color .35s var(--ease), transform .5s var(--ease);
}
.puce::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--aubergine);
  transform: translateY(101%);
  transition: transform .45s var(--ease);
}
.puce:hover, .puce:focus-visible { color: var(--blanc); border-color: var(--aubergine); transform: translateY(-2px); }
.puce:hover::after, .puce:focus-visible::after { transform: translateY(0); }
.puce:hover::before, .puce:focus-visible::before { background: var(--or-clair); transform: rotate(45deg); }
.puce:active { transform: translateY(0); }
@media (min-width: 860px) {
  .duo { grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--ligne); }
  .duo__col { border-bottom: 0; padding: 2.75rem 3rem 2.75rem 0; }
  .duo__col + .duo__col { padding: 2.75rem 0 2.75rem 3rem; border-left: 1px solid var(--ligne); }
}

/* ---------- Deux colonnes éditoriales ---------- */
.colonnes { display: grid; gap: 3.5rem; }
@media (min-width: 960px) { .colonnes { grid-template-columns: 1fr 1fr; gap: clamp(3rem, 7vw, 7rem); } }
.colonnes h2 { font-size: clamp(1.7rem, 1.2rem + 1.7vw, 2.6rem); }
.villes-inline { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem .5rem; margin: 1.5rem 0 1.75rem; }
.villes-inline li { font-size: .95rem; padding: .3rem .75rem; background: var(--pierre); }
.section--blanc .villes-inline li { background: var(--pierre); }

/* ---------- Listes à joints ---------- */
.liste-joints { list-style: none; border-top: 1px solid var(--ligne); }
.liste-joints > li { display: grid; gap: .35rem 2rem; padding: 1.5rem 0; border-bottom: 1px solid var(--ligne); }
.liste-joints h3 { margin: 0; font-size: clamp(1.1rem, 1rem + .45vw, 1.35rem); }
.liste-joints p { margin: 0; color: var(--mineral); }
@media (min-width: 760px) { .liste-joints > li { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: baseline; } }
.section--sombre .liste-joints, .section--sombre .liste-joints > li { border-color: var(--ligne-claire); }

.bloc-texte { display: grid; gap: 2rem 4rem; }
@media (min-width: 960px) { .bloc-texte { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.bloc-texte h2 { margin: 0; }

/* ---------- Étapes d'un projet ----------
   Des carreaux numérotés reliés par un joint. Au défilement, une ligne dorée
   avance le long du joint et chaque carreau se "pose" quand elle l'atteint (script.js). */
.etapes {
  --taille: 58px;
  --rail: 0px;
  --progression: 1;
  list-style: none; counter-reset: etape;
  position: relative;
  display: grid; gap: 2.5rem;
}
.etapes::before, .etapes::after {
  content: ""; position: absolute; z-index: 0;
  left: calc(var(--taille) / 2 - 1px); top: calc(var(--taille) / 2);
  width: 2px; height: var(--rail);
  background: var(--ligne);
}
.etapes::after { background: var(--or); transform-origin: top; transform: scaleY(var(--progression)); }
.etapes li {
  counter-increment: etape;
  position: relative;
  display: grid; grid-template-columns: var(--taille) minmax(0, 1fr); column-gap: 1.4rem; align-items: start;
}
.etapes li::before {
  content: counter(etape, decimal-leading-zero);
  grid-row: 1 / span 2;
  position: relative; z-index: 1;
  width: var(--taille); height: var(--taille);
  display: grid; place-items: center;
  background: var(--pierre); border: 1px solid var(--grege);
  font-family: var(--f-titre); font-stretch: 125%; font-weight: 600; font-size: 1rem; color: var(--mineral);
  box-shadow: 0 0 0 0 var(--sable);
  transition: background-color .5s var(--ease), border-color .5s var(--ease), color .5s var(--ease),
              transform .35s var(--ease), box-shadow .35s var(--ease);
}
.etapes h3 { margin: .95rem 0 .45rem; font-size: clamp(1.15rem, 1.05rem + .35vw, 1.35rem); transition: color .3s ease; }
.etapes p { margin: 0; color: var(--mineral); max-width: 30em; }

/* Carreau posé */
.etapes li.is-active::before,
.etapes:not(.etapes--anime) li::before {
  background: var(--aubergine); border-color: var(--aubergine); color: var(--or-clair);
}
.etapes--anime li.is-active::before { animation: carreau-pose .6s var(--ease) both; }
@keyframes carreau-pose {
  0% { transform: scale(.7) rotate(-10deg); }
  65% { transform: scale(1.08) rotate(0deg); }
  100% { transform: scale(1); }
}
/* Étapes pas encore atteintes : texte en retrait */
.etapes--anime li h3, .etapes--anime li p { opacity: .32; transform: translateY(10px); transition: opacity .6s var(--ease), transform .6s var(--ease), color .3s ease; }
.etapes--anime li.is-active h3, .etapes--anime li.is-active p { opacity: 1; transform: none; }
.etapes--anime li.is-active p { transition-delay: .08s; }
/* Survol : le carreau se soulève, comme posé de chant */
.etapes li:hover::before { transform: translate(-3px, -3px); box-shadow: 5px 5px 0 0 var(--sable); }
.etapes li:hover h3 { color: var(--or-fonce); }

@media (min-width: 1000px) {
  .etapes { grid-template-columns: repeat(var(--nb, 4), minmax(0, 1fr)); gap: 2rem; }
  .etapes::before, .etapes::after {
    left: calc(var(--taille) / 2); top: calc(var(--taille) / 2 - 1px);
    width: var(--rail); height: 2px;
  }
  .etapes::after { transform-origin: left; transform: scaleX(var(--progression)); }
  .etapes li { grid-template-columns: 1fr; }
  .etapes li::before { grid-row: auto; margin-bottom: 1.75rem; }
  .etapes h3 { margin-top: 0; }
}

.section--sombre .etapes::before { background: var(--ligne-claire); }
.section--sombre .etapes::after { background: var(--or-clair); }
.section--sombre .etapes li::before { background: var(--aubergine); border-color: rgba(252, 251, 248, .35); color: var(--sur-sombre-doux); }
.section--sombre .etapes li.is-active::before,
.section--sombre .etapes:not(.etapes--anime) li::before { background: var(--or-clair); border-color: var(--or-clair); color: var(--aubergine); }
.section--sombre .etapes li:hover::before { box-shadow: 5px 5px 0 0 var(--aubergine-2); }
.section--sombre .etapes li:hover h3 { color: var(--or-clair); }
.section--sombre .etapes p { color: var(--sur-sombre); }

.etapes-suite {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
  margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 2rem; border-top: 1px solid var(--ligne);
}
.etapes-suite p { margin: 0; font-size: 1.1rem; }

/* ---------- Rangs justifiés : galeries des pages services et réalisations ----------
   Chaque photo garde ses proportions ; les rangs ont la même hauteur et
   sont séparés par un joint régulier, comme des rangées de carreaux. */
.rangs { --h: 170px; --joint: 6px; display: flex; flex-wrap: wrap; gap: var(--joint); }
.rangs::after { content: ""; flex: 999 1 0; }
.rangs--hauts { --h: 210px; }
.rangs--tete { margin-bottom: var(--joint); }
.rangs--tete::after { display: none; }
@media (min-width: 1000px) { .rangs--tete { --h: 460px; } }
@media (min-width: 760px) { .rangs { --h: 240px; --joint: 8px; } .rangs--hauts { --h: 300px; } }
@media (min-width: 1200px) { .rangs { --h: 300px; } .rangs--hauts { --h: 360px; } }
.rang__item { flex: var(--r) 1 calc(var(--r) * var(--h)); margin: 0; position: relative; overflow: hidden; background: var(--sable); max-height: calc(var(--h) * 1.6); }
.rang__item a { display: block; height: 100%; }
.rang__item img { width: 100%; height: 100%; aspect-ratio: var(--r); object-fit: cover; transition: transform 1.2s var(--ease); }
.rang__item a:hover img { transform: scale(1.035); }
.rang__item a::after { content: ""; position: absolute; inset: 0; border: 0 solid var(--blanc); transition: border-width .35s var(--ease); pointer-events: none; }
.rang__item a:hover::after, .rang__item a:focus-visible::after { border-width: 6px; }
.rang__item figcaption {
  position: absolute; left: 6px; bottom: 6px; max-width: calc(100% - 12px);
  padding: .4rem .65rem; background: var(--blanc); font-size: .8rem; line-height: 1.35;
  opacity: 0; transform: translateY(6px); transition: opacity .3s ease, transform .4s var(--ease); pointer-events: none;
}
.rang__item:hover figcaption, .rang__item:focus-within figcaption { opacity: 1; transform: none; }
@media (hover: none) { .rang__item figcaption { display: none; } }
.note-photos { margin-top: 1.25rem; font-size: .9rem; color: var(--mineral); }

.chapitres-nav { position: sticky; top: var(--header-h); z-index: 60; background: rgba(252, 251, 248, .97); border-block: 1px solid var(--ligne); }
.chapitres-nav ul { list-style: none; display: flex; gap: .25rem; overflow-x: auto; padding: .55rem 0; scrollbar-width: none; }
.chapitres-nav ul::-webkit-scrollbar { display: none; }
.chapitres-nav a {
  display: inline-flex; align-items: baseline; gap: .45rem; min-height: 44px; align-items: center;
  padding: .45rem .9rem; white-space: nowrap; text-decoration: none; font-weight: 500; font-size: .95rem;
  border: 1px solid transparent; transition: border-color .25s ease, background-color .25s ease;
}
.chapitres-nav a small { color: var(--mineral); font-size: .8rem; font-variant-numeric: tabular-nums; }
.chapitres-nav a:hover { border-color: var(--ligne); }
.chapitres-nav a[aria-current="true"] { border-color: var(--encre); background: var(--pierre); }
.galerie-chapitres { padding-top: 0; }
.chapitre { padding-top: clamp(3rem, 6vw, 5rem); scroll-margin-top: calc(var(--header-h) + 60px); }
.chapitre__tete { display: grid; gap: .75rem 3rem; margin-bottom: 1.75rem; align-items: end; }
.chapitre__tete h2 { font-size: clamp(1.7rem, 1.2rem + 1.9vw, 2.9rem); margin-bottom: .3em; }
.chapitre__tete p { margin: 0; }
@media (min-width: 760px) { .chapitre__tete { grid-template-columns: minmax(0, 1fr) auto; } }
.chapitre__compte { display: flex; align-items: baseline; gap: .5rem; color: var(--mineral); font-size: .9rem; }
.chapitre__compte span { font-family: var(--f-titre); font-stretch: 125%; font-weight: 600; font-size: clamp(2rem, 1.5rem + 1.6vw, 3rem); line-height: 1; color: var(--grege); }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(20, 11, 28, .96); color: var(--pierre);
}
.lightbox::backdrop { background: rgba(20, 11, 28, .96); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lightbox__barre { display: flex; justify-content: space-between; align-items: center; padding: .75rem 1rem; gap: 1rem; }
.lightbox__compteur { font-size: .9rem; color: var(--sur-sombre); font-variant-numeric: tabular-nums; }
.lightbox__scene { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 clamp(0px, 5vw, 80px); touch-action: pan-y; }
.lightbox__scene img { max-width: 100%; max-height: calc(100vh - 140px); width: auto; height: auto; object-fit: contain; }
.lightbox__legende { padding: .8rem 1rem 1.2rem; text-align: center; font-size: .9rem; color: var(--sur-sombre); min-height: 3rem; }
.lightbox button {
  width: 52px; height: 52px; border: 1px solid rgba(252,251,248,.3); border-radius: var(--rayon);
  background: rgba(38,11,69,.55); color: var(--pierre);
  display: inline-flex; align-items: center; justify-content: center;
}
.lightbox button:hover { background: var(--pierre); color: var(--encre); }
.lightbox button svg { width: 22px; height: 22px; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.lightbox__nav--prec { left: clamp(8px, 1.5vw, 20px); }
.lightbox__nav--suiv { right: clamp(8px, 1.5vw, 20px); }
@media (max-width: 640px) { .lightbox__nav { top: auto; bottom: -58px; transform: none; } .lightbox__scene { margin-bottom: 58px; } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--ligne); }
.faq details { border-bottom: 1px solid var(--ligne); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.35rem 0; min-height: 44px;
  font-family: var(--f-titre); font-stretch: 108%; font-weight: 520; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background:
    linear-gradient(var(--or-fonce), var(--or-fonce)) center / 14px 1.5px no-repeat,
    linear-gradient(var(--or-fonce), var(--or-fonce)) center / 1.5px 14px no-repeat;
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 1.5rem; max-width: 46em; color: var(--mineral); }

/* ---------- Liens entre prestations ---------- */
.autres-presta { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; }

/* ---------- Prestations (page) ---------- */
.presta-bloc { display: grid; gap: 2rem; align-items: center; padding-block: clamp(2.5rem, 5vw, 4.5rem); border-top: 1px solid var(--ligne); }
.presta-bloc:first-child { border-top: 0; padding-top: 0; }
.presta-bloc__media { display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--sable); }
.presta-bloc__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.presta-bloc__media:hover img { transform: scale(1.03); }
.presta-bloc h2 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.6rem); }
@media (min-width: 900px) {
  .presta-bloc { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(3rem, 6vw, 6rem); }
  .presta-bloc:nth-child(even) .presta-bloc__media { order: 2; }
  .presta-bloc:nth-child(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
}
@media (min-width: 900px) { .presta-bloc__media--portrait { aspect-ratio: 4 / 5; } }

/* ---------- Faits (à propos) ---------- */
.faits { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--ligne); }
.faits div { padding: 1.4rem 0; border-bottom: 1px solid var(--ligne); }
.faits dt { font-size: .88rem; color: var(--mineral); margin-bottom: .3rem; }
.faits dd { margin: 0; font-family: var(--f-titre); font-stretch: 112%; font-weight: 520; font-size: 1.3rem; line-height: 1.2; }
@media (min-width: 760px) { .faits { grid-template-columns: repeat(3, 1fr); } .faits div { padding-right: 1.5rem; } .faits div + div { padding-left: 1.5rem; border-left: 1px solid var(--ligne); } }

.citation-histoire {
  font-family: var(--f-titre); font-stretch: 108%; font-weight: 440;
  font-size: clamp(1.25rem, 1.05rem + .8vw, 1.7rem); line-height: 1.4; letter-spacing: -.01em;
  margin: 0; padding-left: 1.5rem; border-left: 3px solid var(--or);
}

/* ---------- Zone ---------- */
.zones { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .zones { grid-template-columns: repeat(3, 1fr); gap: 0; } .zones > div { padding: 0 2rem; border-left: 1px solid var(--ligne); } .zones > div:first-child { padding-left: 0; border-left: 0; } }
.zones h3 { font-size: 1.15rem; margin-bottom: 1rem; }
.zones ul { list-style: none; }
.zones li {
  font-family: var(--f-titre); font-stretch: 110%; font-weight: 480;
  font-size: clamp(1.2rem, 1.05rem + .6vw, 1.55rem); line-height: 1.25;
  padding: .7rem 0; border-bottom: 1px solid var(--ligne);
}
.encart {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  display: grid; gap: 1.5rem; align-items: center;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: var(--blanc); border-left: 3px solid var(--or);
}
@media (min-width: 860px) { .encart { grid-template-columns: 1fr auto; } }
.encart p { margin: 0; font-size: 1.1rem; }

/* ---------- Contact ---------- */
.contact-grille { display: grid; gap: 3rem; }
@media (min-width: 960px) { .contact-grille { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(3rem, 7vw, 7rem); align-items: end; } }
.coordonnees { list-style: none; border-top: 1px solid var(--ligne); }
.coordonnees li { padding: 1.25rem 0; border-bottom: 1px solid var(--ligne); display: grid; gap: .15rem; }
.coordonnees .libelle { font-size: .85rem; color: var(--mineral); }
.coordonnees li > a, .coordonnees li > strong { font-family: var(--f-titre); font-stretch: 112%; font-weight: 520; font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); text-decoration: none; line-height: 1.25; overflow-wrap: anywhere; }
.coordonnees a:hover { text-decoration: underline; text-decoration-thickness: 1px; }

/* ---------- Formulaire ---------- */
.devis { display: grid; gap: 3rem; }
@media (min-width: 1000px) { .devis { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(3rem, 6vw, 6rem); } .devis__intro { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; } }
.form { display: grid; gap: 0; }
.form fieldset { border: 0; margin: 0; padding: 0 0 2.5rem; min-width: 0; }
.form fieldset + fieldset { border-top: 1px solid var(--ligne); padding-top: 2.25rem; }
.form legend {
  float: left; width: 100%; padding: 0; margin-bottom: 1.5rem;
  font-family: var(--f-titre); font-stretch: 116%; font-weight: 560; font-size: 1.3rem; letter-spacing: -.01em;
}
.form legend + * { clear: both; }
.champs { display: grid; gap: 1.25rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 640px) { .champs--2 { grid-template-columns: 1fr 1fr; } .champs--cp { grid-template-columns: 10rem 1fr; } }
.champ { display: grid; gap: .45rem; min-width: 0; }
.champ label, .groupe__titre { font-weight: 600; font-size: .95rem; }
.requis { color: var(--or-fonce); }
.champ input[type="text"], .champ input[type="tel"], .champ input[type="email"], .champ select, .champ textarea {
  width: 100%; min-height: 52px;
  padding: .8rem 1rem;
  background: var(--blanc);
  border: 1px solid #BAB3B8; border-radius: var(--rayon);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.champ textarea { min-height: 170px; resize: vertical; line-height: 1.55; }
.champ select {
  appearance: none; -webkit-appearance: none; padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231E1428' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
}
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--encre); box-shadow: 0 0 0 3px rgba(154, 120, 35, .32); }
.champ input:user-invalid, .champ select:user-invalid, .champ textarea:user-invalid { border-color: #A3362A; }
.aide { font-size: .88rem; color: var(--mineral); }

.groupe { border: 0; padding: 0; margin: 1.75rem 0 0; }
.form .groupe > legend { float: none; font-family: var(--f-texte); font-stretch: 100%; font-weight: 600; font-size: .95rem; letter-spacing: 0; margin-bottom: .75rem; }
.groupe__titre { display: block; margin-bottom: .75rem; }
.choix { display: flex; flex-wrap: wrap; gap: .5rem; }
.choix label { position: relative; display: inline-flex; }
.choix input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choix span {
  display: inline-flex; align-items: center; gap: .55rem;
  min-height: 46px; padding: .6rem 1rem;
  background: var(--blanc); border: 1px solid #BAB3B8; border-radius: var(--rayon);
  font-size: .96rem; cursor: pointer; user-select: none;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.choix span::before { content: ""; width: 12px; height: 12px; border: 1px solid var(--grege); flex: none; transition: background-color .2s ease, border-color .2s ease; }
.choix input[type="radio"] + span::before { border-radius: 50%; }
.choix input:checked + span { border-color: var(--aubergine); background: var(--aubergine); color: var(--pierre); }
.choix input:checked + span::before { background: var(--or-clair); border-color: var(--or-clair); }
.choix input:focus-visible + span { outline: 2px solid var(--aubergine); outline-offset: 2px; }
.choix label:hover span { border-color: var(--encre); }

.fichier { display: grid; gap: .5rem; margin-top: 1.5rem; }
.fichier input[type="file"] {
  width: 100%; padding: 1rem; background: var(--blanc);
  border: 1px dashed var(--grege); border-radius: var(--rayon); font-size: .95rem;
}
.fichier input[type="file"]::file-selector-button {
  margin-right: 1rem; padding: .6rem 1rem; border: 1px solid var(--encre); border-radius: var(--rayon);
  background: transparent; font-weight: 600; cursor: pointer;
}
.fichier__erreur { color: #A3362A; font-size: .9rem; font-weight: 600; }

.consentement { display: grid; grid-template-columns: auto 1fr; gap: .8rem; align-items: start; margin: .5rem 0 2rem; font-size: .96rem; }
.consentement input { width: 22px; height: 22px; margin: .1rem 0 0; accent-color: var(--aubergine); }
.honeypot { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__envoi { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.form__envoi p { margin: 0; font-size: .9rem; color: var(--mineral); }

/* ---------- Pages texte (mentions, confidentialité) ---------- */
.prose { max-width: 46rem; }
.prose h2 { font-size: clamp(1.35rem, 1.15rem + .8vw, 1.8rem); margin-top: 2.75rem; padding-top: 2rem; border-top: 1px solid var(--ligne); }
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose ul { padding-left: 1.2rem; margin-bottom: 1em; }
.prose li { margin-bottom: .35rem; }
.prose address { font-style: normal; margin-bottom: 1em; }
.prose dl { display: grid; grid-template-columns: minmax(8rem, auto) 1fr; gap: .5rem 1.5rem; margin: 0 0 1em; }
.prose dt { color: var(--mineral); }
.prose dd { margin: 0; }
@media (max-width: 520px) { .prose dl { grid-template-columns: 1fr; gap: 0; } .prose dd { margin-bottom: .75rem; } }

/* ---------- Pages message (merci, 404) ---------- */
.message { min-height: calc(100svh - var(--header-h) - 120px); display: flex; align-items: center; padding-block: var(--section); }
.message__grille { display: grid; gap: 3rem; align-items: center; width: 100%; }
@media (min-width: 900px) { .message__grille { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); } }
.message__symbole { width: min(100%, 320px); justify-self: center; }

/* ---------- CTA final ---------- */
.cta-final { background: var(--aubergine); color: var(--pierre); padding-block: clamp(64px, 9vw, 120px); position: relative; overflow: hidden; }
.cta-final__grille { display: grid; gap: 2rem 4rem; align-items: end; position: relative; z-index: 1; }
@media (min-width: 960px) { .cta-final__grille { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.cta-final h2 { font-size: clamp(2.2rem, 1.3rem + 3.4vw, 4.4rem); margin: 0; }
.cta-final p { color: var(--sur-sombre); }
.cta-final .actions { margin-top: 1.5rem; }
.cta-final__trame { position: absolute; right: -60px; top: -60px; width: 340px; height: 340px; opacity: .14; z-index: 0; color: var(--or-clair); }

/* ---------- Footer ---------- */
.site-footer { background: #160C1F; color: var(--sur-sombre); padding-top: clamp(56px, 7vw, 96px); font-size: .96rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer__grille { display: grid; gap: 2.5rem; padding-bottom: 3rem; }
@media (min-width: 760px) { .footer__grille { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1080px) { .footer__grille { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.site-footer .brand { color: var(--pierre); }
.footer__accroche { margin-top: 1.25rem; color: var(--sur-sombre-doux); max-width: 22rem; }
.footer__titre { font-family: var(--f-titre); font-stretch: 112%; font-weight: 560; font-size: 1rem; color: var(--pierre); margin-bottom: 1rem; }
.footer__liste { list-style: none; display: grid; gap: .55rem; }
.footer__contact a { color: var(--pierre); font-weight: 600; }
.footer__bas {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  padding-block: 1.5rem; border-top: 1px solid rgba(252,251,248,.12); font-size: .86rem; color: #A79DB0;
}
.footer__bas ul { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }

/* ---------- Barre mobile & retour en haut ---------- */
.barre-mobile { display: none; }
@media (max-width: 759.98px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .barre-mobile {
    display: grid; grid-template-columns: 1fr 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    background: var(--aubergine);
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid rgba(252,251,248,.1);
  }
  .barre-mobile a {
    display: flex; align-items: center; justify-content: center; gap: .55rem;
    min-height: 64px; color: var(--pierre); text-decoration: none; font-weight: 600; letter-spacing: .06em; font-size: .92rem; text-transform: uppercase;
  }
  .barre-mobile a + a { background: var(--or-clair); color: var(--aubergine); }
  .barre-mobile svg { width: 18px; height: 18px; }
  html.menu-ouvert .barre-mobile { display: none; }
}
.haut-de-page {
  position: fixed; right: 16px; bottom: 16px; z-index: 80;
  width: 48px; height: 48px; border-radius: var(--rayon);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--blanc); color: var(--encre); border: 1px solid var(--ligne);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s;
}
.haut-de-page svg { width: 18px; height: 18px; }
.haut-de-page.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity .3s ease, transform .3s ease, visibility 0s; }
@media (max-width: 759.98px) { .haut-de-page { bottom: calc(76px + env(safe-area-inset-bottom)); right: 12px; } }

/* ---------- Avant / après : la salle de bain clé en main ----------
   Deux photos superposées dans le même cadre. L'avant est dessous ; l'après,
   dessus, est masqué dynamiquement à gauche du joint vertical. La poignée
   reprend le losange de carreaux du logo. Glisser à la souris, au doigt,
   ou au clavier (flèches, Origine, Fin). */
.transformation__grille { display: grid; gap: clamp(2.5rem, 6vw, 4rem); align-items: center; }
@media (min-width: 1000px) { .transformation__grille { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(3rem, 6vw, 6rem); } }
.transformation h2 { font-size: clamp(1.9rem, 1.2rem + 1.7vw, 2.85rem); }
.transformation .chapo { color: var(--blanc); max-width: 30em; }
.transformation .fil-etapes { margin-top: 2rem; }
.transformation .actions { margin-top: 2.25rem; }

.comparateur {
  margin: 0; justify-self: center;
  width: min(100%, 640px, max(280px, calc((100svh - var(--header-h) - 48px) * .8)));
}
.comparateur__cadre {
  position: relative; overflow: hidden; aspect-ratio: 4 / 5;
  background: var(--aubergine-2);
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent; cursor: ew-resize;
}
.comparateur__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; pointer-events: none; -webkit-user-drag: none;
}
.comparateur__img--apres { clip-path: inset(0 0 0 var(--pos, 50%)); }
.comparateur__ligne {
  position: absolute; z-index: 2; top: 0; bottom: 0; left: var(--pos, 50%);
  width: 2px; margin-left: -1px; background: var(--blanc);
  box-shadow: 0 0 0 1px rgba(22, 12, 31, .16); pointer-events: none;
}
.comparateur__poignee {
  position: absolute; z-index: 3; top: 50%; left: var(--pos, 50%);
  width: 64px; height: 64px; margin: -32px 0 0 -32px;
  display: grid; place-items: center; cursor: grab; touch-action: none;
  border-radius: 50%;
}
.comparateur.is-glisse .comparateur__poignee { cursor: grabbing; }
.comparateur__poignee svg {
  width: 64px; height: 64px; overflow: visible;
  filter: drop-shadow(0 6px 14px rgba(22, 12, 31, .38));
  transition: transform .35s var(--ease);
}
.comparateur__cadre:hover .comparateur__poignee svg,
.comparateur.is-glisse .comparateur__poignee svg,
.comparateur__poignee:focus-visible svg { transform: scale(1.08); }
.comparateur__poignee:focus-visible { outline: 2px solid var(--or-clair); outline-offset: 2px; }
.comparateur__etiquette {
  position: absolute; z-index: 2; top: 12px; padding: .4rem .75rem;
  font-size: .8rem; font-weight: 600; line-height: 1.2; pointer-events: none;
  transition: opacity .3s ease;
}
.comparateur__etiquette--avant { left: 12px; background: var(--pierre); color: var(--encre); }
.comparateur__etiquette--apres { right: 12px; background: var(--or-clair); color: var(--aubergine); }
.comparateur.masque-avant .comparateur__etiquette--avant,
.comparateur.masque-apres .comparateur__etiquette--apres { opacity: 0; }
.comparateur.is-anime .comparateur__img--apres { transition: clip-path .6s var(--ease); }
.comparateur.is-anime .comparateur__ligne,
.comparateur.is-anime .comparateur__poignee { transition: left .6s var(--ease); }
.comparateur figcaption {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem;
  padding-top: .8rem; font-size: .88rem; color: var(--sur-sombre-doux);
}
.no-js .comparateur__poignee, .no-js .comparateur__aide { display: none; }
.no-js .comparateur__cadre { cursor: default; }

/* Logo dans le pied de page : posé sur une plaque ivoire, comme un échantillon */
.footer__plaque { display: inline-flex; background: var(--pierre); padding: 14px 18px; }
.site-footer .footer__plaque:hover { text-decoration: none; }
.site-footer .brand__logo { height: 76px; }

/* ---------- Signes du métier ---------- */
/* Trait de section : un joint qui se trace, marqué d'un croisillon doré */
[data-trace] { position: relative; padding-top: 1.6rem; }
[data-trace]::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--ligne); transform-origin: left; }
[data-trace]::after {
  content: ""; position: absolute; left: -6px; top: -6px; width: 13px; height: 13px;
  background:
    linear-gradient(var(--or), var(--or)) center / 13px 1.5px no-repeat,
    linear-gradient(var(--or), var(--or)) center / 1.5px 13px no-repeat;
}
.js [data-trace]::before { transform: scaleX(0); transition: transform 1.3s var(--ease); }
.js [data-trace].is-visible::before { transform: scaleX(1); }
.js [data-trace]::after { transform: rotate(-90deg) scale(.4); opacity: 0; transition: transform .8s var(--ease), opacity .4s ease; }
.js [data-trace].is-visible::after { transform: none; opacity: 1; }

/* Calepin : une rangée de formats sous les titres des pages intérieures */
.calepin { display: flex; gap: 5px; height: 12px; max-width: 460px; margin-top: clamp(1.75rem, 4vw, 2.75rem); }
.calepin span { flex: var(--f) 1 0; border: 1px solid var(--grege); }
.calepin span:nth-child(4) { background: var(--or); border-color: var(--or); }
.calepin span:nth-child(7) { background: var(--grege); }
.js .calepin span { animation: calepin-pose .7s var(--ease) both; animation-delay: calc(.25s + var(--i) * .07s); transform-origin: left; }
@keyframes calepin-pose { from { transform: scaleX(0); opacity: 0; } to { transform: none; opacity: 1; } }

/* Joints posés sur les photos d'en-tête des pages intérieures */
.joint-media { position: absolute; z-index: 2; background: var(--pierre); }
.joint-media--v { top: 0; bottom: 0; left: calc(62% - 4px); width: 8px; transform-origin: top; }
.joint-media--h { left: 62%; right: 0; top: calc(46% - 4px); height: 8px; transform-origin: right; }
.js .joint-media--v { animation: joint-v 1s .2s var(--ease) both; }
.js .joint-media--h { animation: joint-h .8s .8s var(--ease) both; }
@keyframes joint-v { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes joint-h { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes monte { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pose { from { transform: scale(1.06); } to { transform: scale(1); } }

/* Fil des étapes dans le bloc salle de bain */
.fil-etapes { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 0; margin: 1.75rem 0 .5rem; counter-reset: fil; }
.fil-etapes li {
  counter-increment: fil; position: relative; display: inline-flex; align-items: center; gap: .5rem;
  font-size: .88rem; color: var(--sur-sombre); padding-right: 1.45rem;
}
.fil-etapes li::before { content: ""; width: 9px; height: 9px; background: var(--or-clair); flex: none; }
.fil-etapes li:not(:last-child)::after { content: ""; position: absolute; right: .35rem; top: 50%; width: .75rem; height: 1px; background: rgba(252, 251, 248, .35); }

/* Année de création en grand */
.histoire__annee {
  margin: 0 0 1.25rem; font-family: var(--f-titre); font-stretch: 125%; font-weight: 600;
  font-size: clamp(3.6rem, 2.2rem + 5vw, 7rem); line-height: .85; letter-spacing: -.04em; color: var(--sable);
}

/* ---------- Révélation des photos au scroll ----------
   Un cache de la couleur du fond se retire vers le haut, comme un carreau que l'on pose. */
.section--blanc { --fond-revele: var(--blanc); }
.section--sombre { --fond-revele: var(--aubergine); }
.js [data-reveal] { position: relative; }
.js [data-reveal]::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: var(--fond-revele, var(--pierre));
  transform-origin: top; transform: scaleY(1);
  transition: transform 1.1s var(--ease);
}
.js [data-reveal] img { transform: scale(1.05); transition: transform 1.6s var(--ease); }
.js [data-reveal].is-visible::after { transform: scaleY(0); }
.js [data-reveal].is-visible img { transform: scale(1); }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; animation-delay: 0s !important; }
  .js [data-reveal]::after { display: none; }
  .js [data-reveal] img { transform: none; }
  .js [data-trace]::before { transform: none; }
  .js [data-trace]::after { transform: none; opacity: 1; }
}

/* ---------- Impression ---------- */
@media print {
  .site-header, .barre-mobile, .haut-de-page, .cta-final, .site-footer { display: none !important; }
  body { background: #fff; }
}
