/* Montserrat hébergée sur le site (aucune connexion à Google Fonts). Fichier variable, graisses 300 à 500. */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url(assets/polices/montserrat-latin.woff2) format('woff2');
}
/* SD Surfaces — alternance de bandes sombres (pierre noire) et claires (sable), accents bronze.
   Palette et typographie tirées du brandbook (Montserrat, titres en capitales à interlettrage large). */
:root {
  --noir: #0f0f0f;
  --charbon: #1b1a19;
  --charbon-2: #2e2e2e;
  --taupe: #7a6a5a;
  --taupe-texte: #6b5c4d; /* taupe un peu plus foncé pour le petit texte sur fond clair (5,2:1 sur crème) */
  --sable: #c9bbae;
  --creme: #ece6de;
  --creme-2: #f4f0ea;
  --bronze: #b89b7f;
  --bronze-clair: #d9bfa3;
  --encre: #1c1a18;
  --encre-douce: #4a433c;
  --pierre-clair: #e7e1d9;

  --f-sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --track-titre: 0.28em;
  --track-label: 0.2em;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--noir);
  color: var(--creme);
  font-family: var(--f-sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
:focus-visible { outline: 1px solid var(--bronze); outline-offset: 4px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Typographie ---------- */
.eyebrow {
  margin: 0;
  font-size: 11px; font-weight: 500; letter-spacing: var(--track-label); text-transform: uppercase;
}
.titre {
  margin: 0;
  font-weight: 300; text-transform: uppercase; letter-spacing: var(--track-titre);
  font-size: clamp(24px, 3.2vw, 38px); line-height: 1.35; text-wrap: balance;
}
.trait { width: 40px; height: 1px; background: currentColor; opacity: .55; border: 0; margin: 0; }
.trait--bronze { background: var(--bronze); opacity: 1; }

.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 15px 22px; border: 1px solid currentColor;
  font: 500 11px/1 var(--f-sans); letter-spacing: var(--track-label); text-transform: uppercase;
  text-decoration: none; color: inherit; background: transparent; cursor: pointer;
  transition: background .3s, color .3s, border-color .3s;
}
.btn svg { width: 14px; height: 14px; transition: transform .3s; }
.btn:hover svg { transform: translateX(4px); }
.btn--clair:hover { background: var(--creme); color: var(--noir); border-color: var(--creme); }
.btn--sombre:hover { background: var(--encre); color: var(--creme); border-color: var(--encre); }
.btn--plein { background: var(--sable); color: var(--encre); border-color: var(--sable); }
.btn--plein:hover { background: var(--bronze-clair); border-color: var(--bronze-clair); }

/* Marbre noir veiné partagé par les bandes sombres : vraie texture tirée du « Livre noir » de la marque
   (assets/img/marbre-noir.jpg, une seule image en « cover » : aucune répétition, donc aucune couture),
   assombrie par un voile pour garder le texte lisible (AA). */
.pierre {
  background-color: var(--charbon);
  background-image:
    linear-gradient(rgba(22,21,20,.66), rgba(22,21,20,.66)),
    radial-gradient(120% 90% at 15% 20%, rgba(255,255,255,.03), transparent 60%),
    url("assets/img/marbre-noir.jpg");
  background-size: cover;
  background-position: var(--marbre-pos, 50% 50%);
  background-repeat: no-repeat;
}

/* ---------- En-tête ---------- */
.entete {
  position: absolute; inset: 0 0 auto 0; z-index: 20;
  padding-top: env(safe-area-inset-top, 0px);
}
.entete.colle { position: fixed; border-bottom: 1px solid rgba(201,187,174,.12); }
/* Le fond flouté est sur un pseudo-élément : un backdrop-filter sur .entete créerait un bloc conteneur
   et emprisonnerait le menu mobile (position: fixed) dans l'en-tête. */
.entete.colle::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: rgba(15,15,15,.92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.entete__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 22px; }
.entete.colle .entete__in { padding-block: 10px; }
/* Logo : la signature « Pose de céramiques » s'aligne sur le S de « SURFACES » (36,9 % de la largeur du logo) */
.marque { --logo: 190px; display: inline-flex; flex-direction: column; align-items: flex-start; text-decoration: none; line-height: 1; }
.marque img { width: var(--logo); height: auto; transition: width .3s; }
.entete.colle .marque { --logo: 124px; }
.marque small {
  margin-top: 3px; padding-left: calc(var(--logo) * .369); white-space: nowrap;
  font-size: 8px; letter-spacing: .15em; text-transform: uppercase; color: var(--sable);
}
.entete.colle .marque small { display: none; }

.nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 34px); }
.nav ul { list-style: none; display: flex; gap: clamp(14px, 2vw, 30px); margin: 0; padding: 0; }
.nav a:not(.btn) {
  font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  padding-block: 6px; border-bottom: 1px solid transparent; transition: border-color .3s, color .3s;
}
.nav a:not(.btn):hover, .nav a.actif { border-color: var(--creme); }
.nav .btn { padding: 13px 18px; }
.nav .menu__plus { display: none; }
.burger {
  display: none; position: relative; z-index: 2; width: 48px; height: 48px; margin-right: -11px;
  align-items: center; justify-content: center; background: none; border: 0; color: var(--creme); padding: 0; cursor: pointer;
}
.burger svg { width: 26px; height: 26px; }

/* ---------- Héros ---------- */
.heros { position: relative; display: grid; grid-template-columns: 42% 58%; min-height: clamp(560px, 50vw, 720px); }
.heros__texte {
  position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; gap: 28px;
  padding: 190px var(--gutter) clamp(56px, 7vw, 96px) max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
}
.heros h1 { font-size: clamp(22px, 2.3vw, 36px); letter-spacing: .22em; line-height: 1.45; white-space: nowrap; }
.heros__mots { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 11px; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--sable); margin: 0; }
.heros__mots span { white-space: nowrap; }
.heros__mots span + span::before { content: "|"; margin-right: 16px; opacity: .6; }
.heros__sous { margin: 0; max-width: 42ch; font-size: 15px; line-height: 1.65; color: rgba(236,230,222,.84); }
.heros__actions { display: grid; align-self: flex-start; justify-items: stretch; gap: 12px; }
.heros__actions .btn { white-space: nowrap; justify-content: space-between; }
/* La photo se fond dans le marbre (masque) : plus de couture verticale entre la photo et la colonne de texte */
.heros__photo {
  position: relative; z-index: 0; overflow: hidden; /* z-index 0 : le voile ::after reste sous le texte du héros */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 32%); mask-image: linear-gradient(90deg, transparent 0, #000 32%);
}
.heros__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
/* Voile : léger assombrissement en haut (lisibilité du logo et du menu) et en bas */
.heros__photo::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(15,15,15,.62) 0, rgba(15,15,15,.28) 14%, transparent 30%), linear-gradient(0deg, rgba(15,15,15,.45), transparent 30%);
}

/* ---------- Services ---------- */
.services { background: var(--creme); color: var(--encre); padding-block: clamp(48px, 6vw, 72px); }
/* Colonnes égales + filets dessinés dans l'espacement : mêmes largeurs d'image, titres alignés */
.services__grille { --col-gap: clamp(28px, 4vw, 52px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--col-gap); }
.service { position: relative; display: flex; flex-direction: column; gap: 18px; }
.service + .service::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--col-gap) / -2); border-left: 1px solid rgba(28,26,24,.16);
}
.service figure { margin: 0; aspect-ratio: 1 / .82; overflow: hidden; background: var(--pierre-clair); max-width: 100%; }
.service img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.service:hover img { transform: scale(1.04); }
.service h3 { margin: 4px 0 0; font-size: 12px; font-weight: 500; letter-spacing: var(--track-titre); text-transform: uppercase; }
.service p { margin: 0; color: var(--encre-douce); font-size: 14px; line-height: 1.6; max-width: 26ch; }

/* ---------- À propos ---------- */
.apropos { display: grid; grid-template-columns: 42% 58%; }
.apropos__texte {
  display: flex; flex-direction: column; gap: 26px; justify-content: center;
  padding: clamp(56px, 7vw, 100px) clamp(24px, 4vw, 64px) clamp(56px, 7vw, 100px) max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
}
.apropos__texte p:not(.eyebrow) { margin: 0; max-width: 46ch; color: rgba(236,230,222,.86); }
.apropos .titre { font-size: clamp(22px, 2.3vw, 32px); }
.insec { white-space: nowrap; }
.apropos__texte .eyebrow { color: var(--sable); }
.apropos__photo { position: relative; min-height: 420px; overflow: hidden; }
.apropos__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 45% 30%; }
.valeurs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding-top: 8px; border-top: 1px solid rgba(201,187,174,.18); max-width: 46ch; }
.valeurs div { display: flex; flex-direction: column; gap: 2px; padding-top: 16px; }
.valeurs strong { font-weight: 400; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--bronze-clair); }
.valeurs span { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--sable); line-height: 1.4; }

/* ---------- Réalisations ---------- */
.realisations { background: var(--creme); color: var(--encre); padding-block: clamp(48px, 6vw, 80px); }
.tete-section { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }
.lien-fleche {
  display: inline-flex; align-items: center; gap: 12px; font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
}
.lien-fleche span { border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.lien-fleche svg { width: 14px; height: 14px; }
.filtres { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.filtres button {
  font: 500 11px/1 var(--f-sans); letter-spacing: .16em; text-transform: uppercase;
  padding: 12px 15px; background: transparent; color: var(--encre-douce); border: 1px solid rgba(28,26,24,.2); cursor: pointer;
}
.filtres button[aria-pressed="true"] { background: var(--encre); color: var(--creme); border-color: var(--encre); }
.galerie { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 18px); }
.projet { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.projet-lien { display: block; min-width: 0; color: inherit; text-decoration: none; }
.projet .cadre { aspect-ratio: 1 / .92; overflow: hidden; max-width: 100%; }
.projet img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.projet:hover img { transform: scale(1.04); }
.projet figcaption { display: flex; align-items: center; gap: 16px; font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.projet figcaption::before { content: ""; width: 36px; height: 1px; background: currentColor; opacity: .6; }

/* ---------- Matières ---------- */
.matieres { background: var(--pierre-clair); color: var(--encre); padding-block: clamp(48px, 6vw, 80px); }
/* Accueil : Réalisations et Matières partagent le même ton, séparés par un filet (au lieu de deux beiges presque identiques) */
.realisations + .matieres { background: var(--creme); padding-top: 0; }
.realisations + .matieres > .wrap { position: relative; padding-top: clamp(48px, 6vw, 80px); }
.realisations + .matieres > .wrap::before {
  content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: rgba(28,26,24,.14);
}
.matieres__grille { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.matieres__texte { display: flex; flex-direction: column; gap: 24px; }
.matieres__texte p:not(.eyebrow) { margin: 0; max-width: 42ch; color: var(--encre-douce); }
.carrousel { position: relative; min-width: 0; }
.echantillons {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 8px) / 5); gap: 8px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
}
.echantillons::-webkit-scrollbar { display: none; }
.echantillon { margin: 0; scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px; }
.echantillon .plaque { aspect-ratio: 1 / 2.6; overflow: hidden; max-width: 100%; box-shadow: 0 1px 0 rgba(0,0,0,.05); }
.echantillon img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.echantillon:hover img { transform: scale(1.06); }
.echantillon figcaption { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--encre-douce); line-height: 1.45; }
/* Progression du carrousel (utile au doigt, quand les flèches sont masquées) */
.carrousel__prog { display: none; position: relative; height: 1px; margin-top: 18px; background: rgba(28,26,24,.16); overflow: hidden; }
.carrousel__prog i { position: absolute; top: 0; bottom: 0; left: var(--g, 0%); width: var(--vu, 40%); background: var(--encre); }
.fleche {
  position: absolute; top: calc(50% - 30px); width: 36px; height: 36px; display: grid; place-items: center;
  background: var(--creme-2); color: var(--encre); border: 0; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.12); z-index: 2;
}
.fleche svg { width: 14px; height: 14px; }
.fleche--g { left: -14px; }
.fleche--d { right: -14px; }
.fleche:disabled { opacity: .35; cursor: default; }

/* ---------- Processus ---------- */
.processus { background: var(--creme); color: var(--encre); padding-block: clamp(48px, 6vw, 80px); border-top: 1px solid rgba(28,26,24,.08); }
.etapes { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px); counter-reset: etape; }
.etapes li { counter-increment: etape; display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 1px solid rgba(28,26,24,.22); }
.etapes li::before { content: counter(etape, decimal-leading-zero); font-size: 12px; font-weight: 500; letter-spacing: .2em; color: var(--taupe-texte); }
.etapes h3 { margin: 0; font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.etapes p { margin: 0; font-size: 14px; color: var(--encre-douce); line-height: 1.6; }

/* ---------- CTA ---------- */
.cta { padding-block: clamp(44px, 5vw, 64px); }
.cta__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta .eyebrow { color: var(--sable); font-weight: 400; letter-spacing: .26em; font-size: 12px; }
.cta h2 { display: flex; align-items: center; gap: 20px; margin-top: 8px; }
.cta h2::after { content: ""; width: 34px; height: 1px; background: var(--creme); opacity: .7; }

/* ---------- Contact ---------- */
.contact { background: var(--creme); color: var(--encre); padding-block: clamp(48px, 6vw, 88px); }
.contact__grille { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); }
.contact__infos { display: flex; flex-direction: column; gap: 24px; }
.contact__infos > p { margin: 0; color: var(--encre-douce); max-width: 40ch; }
.coord { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.coord li { display: flex; align-items: center; gap: 14px; font-size: 14px; user-select: all; }
.coord li span { user-select: text; }
.coord svg { width: 16px; height: 16px; color: var(--taupe); flex: none; }
.zone { font-size: 13px; color: var(--encre-douce); padding-top: 18px; border-top: 1px solid rgba(28,26,24,.16); }

.formulaire { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; }
.champ { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.champ--plein { grid-column: 1 / -1; }
.champ label { font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--encre-douce); }
/* 16 px minimum : sous 16 px, iOS zoome la page quand on touche un champ */
.champ input, .champ select, .champ textarea {
  font: 400 16px/1.5 var(--f-sans); color: var(--encre); background: transparent;
  border: 0; border-bottom: 1px solid rgba(28,26,24,.3); padding: 8px 0; border-radius: 0; width: 100%;
  color-scheme: light;
}
.champ textarea { resize: vertical; min-height: 96px; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-bottom-color: var(--taupe); }
.formulaire { align-content: start; align-self: start; }
.formulaire .btn { justify-self: start; align-self: start; }
.merci { grid-column: 1 / -1; margin: 0; padding: 14px 16px; background: var(--pierre-clair); font-size: 14px; }

/* ---------- Pied de page ---------- */
.pied { background: var(--noir); color: var(--creme); padding-block: clamp(48px, 6vw, 72px) 28px; }
.pied__grille { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr 1fr; gap: clamp(24px, 4vw, 56px); padding-bottom: 40px; border-bottom: 1px solid rgba(201,187,174,.18); }
.pied__grille > div { min-width: 0; }
.pied__grille > div + div { border-left: 1px solid rgba(201,187,174,.14); padding-left: clamp(16px, 3vw, 40px); }
.pied__grille > div:nth-child(2) { border-left: 0; padding-left: 0; }
.pied .marque { --logo: 210px; }
.pied .marque small { font-size: 9px; letter-spacing: .18em; }
.pied h4 { margin: 0 0 12px; font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--sable); }
.pied ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; font-size: 13px; }
.pied ul a { display: inline-block; padding-block: 5px; text-decoration: none; }
.pied ul a:hover { color: var(--bronze-clair); }
.pied .coord li { font-size: 13px; }
.pied .coord svg { color: var(--sable); }
.reseaux { display: flex; gap: 14px; margin-bottom: 24px; }
.reseaux a { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(201,187,174,.3); border-radius: 50%; transition: border-color .3s; }
.reseaux a:hover { border-color: var(--bronze); }
.reseaux svg { width: 16px; height: 16px; }
.devise { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; line-height: 1.8; color: var(--creme); margin: 0; max-width: 24ch; text-wrap: balance; }
.pied__bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; font-size: 11.5px; color: rgba(236,230,222,.7); }
.pied__bas nav { display: flex; gap: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .marque { --logo: 150px; }
  .nav ul { display: none; }
  .burger { display: inline-flex; }
  /* Menu plein écran : couvre tout l'écran (fixe par rapport à la fenêtre), défile si l'écran est court.
     Le logo et le bouton de fermeture restent au-dessus (z-index 2 dans l'en-tête). */
  .entete .marque { position: relative; z-index: 2; }
  html.menu-ouvert { overflow: hidden; }
  html.menu-ouvert .entete { z-index: 50; }
  .nav.ouvert ul {
    display: flex; flex-direction: column; gap: 0;
    position: fixed; inset: 0; z-index: 1; height: 100vh; height: 100dvh;
    overflow-y: auto; overscroll-behavior: contain;
    padding: calc(var(--entete-h, 150px) + 16px) max(var(--gutter), env(safe-area-inset-right, 0px)) calc(40px + env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px));
    background: linear-gradient(rgba(12,12,12,.9), rgba(12,12,12,.95)), url("assets/img/marbre-noir.jpg") 30% 50% / cover no-repeat, var(--noir);
  }
  .nav.ouvert ul > li { animation: menu-entre .55s cubic-bezier(.2,.7,.1,1) both; }
  .nav.ouvert ul > li:nth-child(2) { animation-delay: .04s; }
  .nav.ouvert ul > li:nth-child(3) { animation-delay: .08s; }
  .nav.ouvert ul > li:nth-child(4) { animation-delay: .12s; }
  .nav.ouvert ul > li:nth-child(5) { animation-delay: .16s; }
  .nav.ouvert ul > li:nth-child(n+6) { animation-delay: .22s; }
  .nav.ouvert ul a:not(.btn) {
    display: block; padding-block: 16px; border-bottom: 1px solid rgba(201,187,174,.16);
    font-size: clamp(19px, 4.4vw, 26px); font-weight: 300; letter-spacing: .2em; line-height: 1.3;
  }
  .nav.ouvert ul a.actif { color: var(--bronze-clair); border-bottom-color: rgba(184,155,127,.6); }
  .nav.ouvert .menu__plus { display: block; }
  .nav.ouvert .menu__plus .btn { display: inline-flex; margin-top: 32px; padding: 17px 22px; white-space: nowrap; }
  .nav.ouvert .menu__coord { display: flex; flex-direction: column; margin-top: 18px; }
  .nav.ouvert .menu__coord a:not(.btn) {
    display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding-block: 4px; border: 0;
    font-size: 15px; font-weight: 400; letter-spacing: .04em; text-transform: none; color: var(--sable);
  }
  .menu__coord svg { width: 16px; height: 16px; flex: none; color: var(--bronze); }
  .services__grille { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .service:nth-child(odd)::before { display: none; }
  .galerie { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .etapes { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .pied__grille { grid-template-columns: 1fr 1fr; }
  .pied__grille > div:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 960px) {
  .heros h1 { white-space: normal; font-size: clamp(24px, 6.4vw, 34px); }
  .heros { grid-template-columns: 1fr; min-height: 0; }
  .heros__photo { position: absolute; inset: 0; -webkit-mask-image: none; mask-image: none; }
  /* Mobile : la photo reste visible dans le haut (diaporama et pose des carreaux), le texte est lisible sur un dégradé limité au bas */
  .heros__photo::after {
    background:
      linear-gradient(180deg, rgba(15,15,15,.55) 0, rgba(15,15,15,0) 20%),
      linear-gradient(0deg, var(--charbon) 3%, rgba(27,26,25,.86) 34%, rgba(27,26,25,.42) 56%, rgba(27,26,25,.08) 74%, rgba(27,26,25,0) 86%);
  }
  .heros__texte { padding: 200px var(--gutter) 56px; }
  .apropos { grid-template-columns: 1fr; }
  .apropos__photo { min-height: 0; aspect-ratio: 16 / 10; max-width: 100%; }
  .apropos__texte { padding-inline: var(--gutter); }
  .matieres__grille, .contact__grille { grid-template-columns: 1fr; }
  .echantillons { grid-auto-columns: calc((100% - 2 * 8px) / 3.3); }
  .fleche--g { left: 4px; } .fleche--d { right: 4px; }
}
/* Au doigt : on glisse le carrousel (pas de flèches qui couvrent les plaques), une ligne indique la position */
@media (pointer: coarse), (max-width: 640px) {
  .carrousel .fleche { display: none; }
  .carrousel__prog { display: block; }
}
@media (max-width: 640px) {
  .echantillons { grid-auto-columns: calc((100% - 8px) / 2.25); gap: 8px; }
  .echantillon .plaque { aspect-ratio: 1 / 1.75; }
}
@media (max-width: 520px) {
  .marque { --logo: 118px; }
  .entete .marque small { display: none; }
  .nav > .btn { display: none; }
  .services__grille { grid-template-columns: 1fr; }
  .service::before { display: none; }
  .service figure { aspect-ratio: 16 / 10; }
  .service p { max-width: none; }
  .galerie { grid-template-columns: 1fr 1fr; gap: 10px; row-gap: 22px; }
  .projet figcaption { gap: 10px; letter-spacing: .12em; font-size: 11px; }
  .projet figcaption::before { width: 14px; }
  .etapes { grid-template-columns: 1fr; }
  .formulaire { grid-template-columns: 1fr; }
  .formulaire .btn { justify-self: stretch; justify-content: center; }
  .pied__grille { grid-template-columns: 1fr; }
  .pied__grille > div + div { border-left: 0; padding-left: 0; }
  .pied .marque { --logo: 180px; }
  .pied .marque small { font-size: 10px; letter-spacing: .14em; }
  .valeurs { grid-template-columns: 1fr; gap: 0; }
  /* Mots-clés du héros sur une ligne, séparés par de petits losanges bronze (plus de « | » orphelin) */
  .heros__mots { gap: 6px 10px; letter-spacing: .12em; }
  .heros__mots span + span::before {
    content: ""; display: inline-block; width: 4px; height: 4px; margin: 0 10px 2px 0; border: 1px solid var(--bronze); transform: rotate(45deg); opacity: 1; vertical-align: middle;
  }
}
/* Cibles tactiles du pied de page (au moins 44 px de haut) */
@media (pointer: coarse), (max-width: 960px) {
  .pied ul a { padding-block: 10px; }
  .pied .coord li a { display: inline-flex; align-items: center; min-height: 44px; }
  .reseaux a { width: 44px; height: 44px; }
  .pied__bas nav { gap: 22px; }
  .pied__bas a { display: inline-block; padding-block: 10px; }
  .lien-fleche { padding-block: 10px; }
}

/* =========================================================
   Effets
   ========================================================= */

/* Barre de progression bronze */
.progression {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 40;
  background: linear-gradient(90deg, var(--taupe), var(--bronze-clair), var(--bronze));
  transform-origin: 0 50%; transform: scaleX(var(--p, 0));
}

/* Héros : affiché tout de suite, sans séquence d'ouverture (demande de la propriétaire).
   Seuls le diaporama « posé » carreau par carreau, la respiration lente et le reflet restent animés. */
.heros h1 .ligne { display: block; padding-bottom: .06em; }
.heros__photo img { transform: translate3d(0, var(--py, 0px), 0) scale(1.14); will-change: transform; }

@keyframes fondu { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes menu-entre { from { opacity: 0; transform: translateY(14px); } }

/* Apparitions au défilement (seulement pour ce qui est hors écran au chargement) */
.rv { transition: opacity 1s ease, transform 1s cubic-bezier(.2,.7,.1,1); transition-delay: var(--d, 0s); }
.rv.cache { opacity: 0; transform: translateY(28px); }
.rv-img { transition: clip-path 1.3s cubic-bezier(.7,0,.2,1); transition-delay: var(--d, 0s); }
.rv-img.cache { clip-path: inset(100% 0 0 0); }
.trait.rv { transform-origin: 0 50%; }
.trait.rv.cache { opacity: 1; transform: scaleX(0); }

/* Parallaxe douce */
.apropos__photo img { transform: translate3d(0, var(--py, 0px), 0) scale(1.12); will-change: transform; }

/* Survol des services : filet bronze qui s'étire */
.service figure { position: relative; }
.service figure::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--bronze);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s cubic-bezier(.6,0,.2,1);
}
.service:hover figure::after { transform: scaleX(1); }
.service .trait { transition: width .5s ease, background .5s; }
.service:hover .trait { width: 70px; background: var(--bronze); opacity: 1; }

/* Survol des réalisations : voile + légende */
.projet .cadre { position: relative; }
/* Le libellé suit l'action réelle : « Voir les réalisations » (accueil, lien) ou « Agrandir » (visionneuse) */
.projet .cadre[data-label]::after {
  content: attr(data-label); position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; text-align: center; padding: 12px;
  font-size: 11px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--creme);
  background: rgba(15,15,15,.45); opacity: 0; transition: opacity .5s;
}
.projet:hover .cadre::after, .projet-lien:focus-visible .cadre::after { opacity: 1; }
.projet figcaption::before { transition: width .5s ease, background .5s; }
.projet:hover figcaption::before { width: 60px; background: var(--bronze); opacity: 1; }

/* Échantillons : légère élévation */
.echantillon .plaque { transition: transform .6s cubic-bezier(.2,.7,.1,1), box-shadow .6s; }
.echantillon:hover .plaque { transform: translateY(-8px); box-shadow: 0 18px 30px -18px rgba(0,0,0,.45); }

/* Reflet bronze sur les boutons pleins */
.btn--plein { position: relative; overflow: hidden; }
.btn--plein::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-20deg);
}
@keyframes reflet { 0%, 70% { left: -60%; } 100% { left: 130%; } }

/* Bandeau défilant */
.bandeau { background: var(--noir); color: var(--bronze); overflow: hidden; padding-block: 22px; border-block: 1px solid rgba(184,155,127,.18); }
.bandeau__piste { display: flex; align-items: center; gap: 36px; width: max-content; animation: defile 38s linear infinite; }
.bandeau span { font-size: clamp(15px, 1.6vw, 20px); font-weight: 300; letter-spacing: .32em; text-transform: uppercase; white-space: nowrap; }
.bandeau i { width: 7px; height: 7px; border: 1px solid currentColor; transform: rotate(45deg); flex: none; }
.bandeau:hover .bandeau__piste { animation-play-state: paused; }
@keyframes defile { to { transform: translateX(calc(-50% - 18px)); } }

/* Lien souligné animé */
.lien-fleche span { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; border-bottom: 0; transition: background-size .5s; }
.lien-fleche:hover span { background-size: 0 1px; background-position: 100% 100%; }
.lien-fleche svg { transition: transform .3s; }
.lien-fleche:hover svg { transform: translateX(4px); }

@media (prefers-reduced-motion: reduce) {
  .rv.cache, .rv-img.cache { opacity: 1; transform: none; clip-path: none; }
  .heros__photo img, .apropos__photo img { transform: none; }
  .bandeau__piste { animation: none; }
}

/* =========================================================
   Pages intérieures
   ========================================================= */
.eyebrow--taupe { color: var(--taupe-texte); }
a.service { text-decoration: none; color: inherit; }

/* Bannière de page : hauteur compacte et identique d'une page à l'autre (le texte la fixe, la photo la remplit),
   pour que le titre et l'intro soient visibles sans défiler sur un portable (1366 x 768). */
.heros--page { min-height: 0; }
.heros--page .heros__texte { justify-content: flex-end; gap: 20px; padding-top: 214px; padding-bottom: clamp(44px, 4.4vw, 60px); }
.heros--page .heros__photo img { position: absolute; inset: 0; transform: translate3d(0, var(--py, 0px), 0) scale(1.08); }
.heros--page h1 { font-size: clamp(24px, 2.4vw, 36px); white-space: normal; }
.heros--sans-photo { grid-template-columns: minmax(0, 1fr); }
.heros--sans-photo .heros__texte { padding-right: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); }
.heros--sans-photo .heros__intro { max-width: 52ch; }
.heros__eyebrow { color: var(--sable); }
.heros__intro { margin: 0; max-width: 40ch; color: rgba(236,230,222,.84); }
.fil { display: flex; flex-wrap: wrap; gap: 10px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: rgba(236,230,222,.66); }
.fil a { text-decoration: none; }
.fil a:hover { color: var(--bronze-clair); }
.fil [aria-current] { color: var(--creme); }

/* Texte + image (À propos) */
.texte-image { background: var(--creme); color: var(--encre); padding-block: clamp(56px, 7vw, 104px); }
.texte-image__grille { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.texte-image__texte { display: flex; flex-direction: column; gap: 22px; }
.texte-image__texte p:not(.eyebrow) { margin: 0; max-width: 56ch; color: var(--encre-douce); }
.texte-image__photo { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; max-width: 100%; }
.texte-image__photo img { width: 100%; height: 100%; object-fit: cover; }

/* Valeurs / finis (bandes sombres) */
.valeurs-bloc, .finis { padding-block: clamp(56px, 7vw, 96px); }
.valeurs-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 4vw, 56px); margin-top: 40px; }
.valeurs-grille > div { display: flex; flex-direction: column; gap: 12px; padding-top: 22px; border-top: 1px solid rgba(201,187,174,.25); }
.valeurs-grille__mot { font-size: clamp(18px, 1.8vw, 24px); font-weight: 300; letter-spacing: .24em; text-transform: uppercase; color: var(--bronze-clair); }
.valeurs-grille p { margin: 0; font-size: 14px; color: rgba(236,230,222,.78); max-width: 34ch; }

/* Services détaillés */
.services-detail { background: var(--creme); color: var(--encre); padding-block: clamp(40px, 5vw, 72px) clamp(56px, 7vw, 104px); }
.sommaire { list-style: none; margin: 0 0 clamp(40px, 5vw, 72px); padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sommaire a {
  display: inline-block; padding: 12px 15px; border: 1px solid rgba(28,26,24,.2); text-decoration: none;
  font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; transition: background .3s, color .3s;
}
.sommaire a:hover { background: var(--encre); color: var(--creme); }
.rang { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 96px); align-items: center; scroll-margin-top: 100px; }
.rang + .rang { margin-top: clamp(56px, 8vw, 120px); }
.rang--inverse .rang__photo { order: 2; }
.rang__photo { margin: 0; aspect-ratio: 5 / 4; overflow: hidden; max-width: 100%; }
.rang__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.rang:hover .rang__photo img { transform: scale(1.04); }
.rang__texte { display: flex; flex-direction: column; gap: 20px; }
.rang__texte > p:not(.eyebrow) { margin: 0; color: var(--encre-douce); max-width: 48ch; }
.puces { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
.puces li { position: relative; padding-left: 20px; font-size: 14px; line-height: 1.5; }
.puces li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border: 1px solid var(--bronze); transform: rotate(45deg); }

/* Galerie complète + visionneuse */
.galerie--grande { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: clamp(24px, 3vw, 40px); }
.galerie--grande .projet .cadre { aspect-ratio: 4 / 3; cursor: zoom-in; }
.note--galerie { margin-top: clamp(28px, 3vw, 40px); padding-top: 16px; border-top: 1px solid rgba(28,26,24,.14); font-size: 13px; color: var(--encre-douce); }
.galerie--grande .projet { transition: opacity .4s; }
.visionneuse {
  position: fixed; inset: 0; z-index: 60; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: calc(56px + env(safe-area-inset-top, 0px)) var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px));
  background: rgba(10,10,10,.94); animation: fondu .35s ease both;
}
.visionneuse figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; min-width: 0; max-height: 100%; }
.visionneuse img { max-height: 76vh; width: auto; max-width: 100%; object-fit: contain; }
.visionneuse figcaption { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--sable); }
.visionneuse button { background: none; border: 1px solid rgba(201,187,174,.3); color: var(--creme); width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; }
.visionneuse button:hover { border-color: var(--bronze); }
.visionneuse button svg { width: 18px; height: 18px; }
.visionneuse__fermer { position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); right: var(--gutter); }

/* Matières (page) */
.matieres--page .tete-section { margin-bottom: 36px; }
.matieres-grille { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); }
.matiere { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.matiere .plaque { aspect-ratio: 1 / 2.2; overflow: hidden; max-width: 100%; transition: transform .6s cubic-bezier(.2,.7,.1,1), box-shadow .6s; }
.matiere img { width: 100%; height: 100%; object-fit: cover; }
.matiere:hover .plaque { transform: translateY(-8px); box-shadow: 0 18px 30px -18px rgba(0,0,0,.45); }
.matiere figcaption { display: flex; flex-direction: column; gap: 4px; }
.matiere strong { font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }
.matiere span { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--taupe-texte); }
.matiere p { margin: 6px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--encre-douce); }
.note { margin: 36px 0 0; font-size: 13px; color: var(--encre-douce); max-width: 70ch; }

.etapes--simples { counter-reset: none; }
.etapes--simples li::before { content: ""; width: 9px; height: 9px; border: 1px solid var(--bronze); transform: rotate(45deg); margin-bottom: 4px; }
.etapes--trois { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 1080px) {
  .galerie--grande { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* nombre impair de visuels sur deux colonnes : le dernier prend toute la largeur (pas de case orpheline) */
  .galerie--grande .projet:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .galerie--grande .projet:last-child:nth-child(odd) .cadre { aspect-ratio: 16 / 7; }
  .matieres-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 36px; }
  .heros--page .heros__texte { padding-top: 190px; }
}
@media (max-width: 820px) {
  .texte-image__grille, .rang { grid-template-columns: 1fr; }
  .rang--inverse .rang__photo { order: 0; }
  .texte-image__photo { aspect-ratio: 16 / 11; }
  .valeurs-grille, .etapes--trois { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .heros--page .heros__texte { padding-top: 180px; padding-bottom: 40px; }
  .heros--sans-photo .heros__texte { padding-right: var(--gutter); }
}
@media (max-width: 520px) {
  .heros--page .heros__texte { padding-top: 140px; gap: 16px; }
  .puces { grid-template-columns: 1fr; }
  .matieres-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .galerie--grande { grid-template-columns: 1fr 1fr; }
  .visionneuse { grid-template-columns: minmax(0, 1fr); }
  .visionneuse__nav { display: none !important; }
}

/* =========================================================
   Visite virtuelle 3D (accueil)
   ========================================================= */
.visite { padding-block: clamp(56px, 7vw, 96px) 0; color: var(--creme); }
.visite__tete { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 48px; margin-bottom: clamp(28px, 4vw, 44px); }
.visite__tete .titre { margin-top: 10px; }
.visite__intro { margin: 0; max-width: 48ch; color: rgba(236,230,222,.8); }
.visite__cadre { position: relative; height: clamp(440px, 74vh, 760px); overflow: hidden; background: var(--noir); border-top: 1px solid rgba(184,155,127,.25); }
.visite__scene { position: absolute; inset: 0; outline: none; touch-action: none; cursor: grab; }
.visite__scene:active { cursor: grabbing; }
.visite__scene canvas { display: block; width: 100% !important; height: 100% !important; }

.visite__voile {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; padding: 24px;
  background: radial-gradient(60% 60% at 50% 55%, rgba(15,15,15,.25), rgba(15,15,15,.7));
  transition: opacity .8s ease, visibility .8s;
}
.visite__aide-voile { margin: 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--sable); }
.visite--active .visite__voile { opacity: 0; visibility: hidden; }

.visite__aide {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); margin: 0; padding: 9px 16px; white-space: nowrap;
  background: rgba(15,15,15,.6); backdrop-filter: blur(6px); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--sable);
  opacity: 0; transition: opacity .6s;
}
.visite--active .visite__aide { opacity: 1; }
.visite__aide.discret { opacity: 0 !important; }
.visite__tactile { display: none; }

.visite__pad {
  position: absolute; right: 18px; bottom: 18px; display: grid; grid-template-columns: repeat(3, 44px); grid-template-rows: repeat(2, 44px); gap: 6px;
  opacity: 0; transition: opacity .6s; pointer-events: none;
}
.visite--active .visite__pad { opacity: 1; pointer-events: auto; }
.visite__pad button, .visite__plein {
  display: grid; place-items: center; background: rgba(15,15,15,.55); color: var(--creme); border: 1px solid rgba(201,187,174,.35);
  backdrop-filter: blur(6px); cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none;
}
.visite__pad button:active, .visite__pad button:hover { border-color: var(--bronze); color: var(--bronze-clair); }
.visite__pad svg { width: 16px; height: 16px; }
.visite__pad [data-d="av"] { grid-column: 2; grid-row: 1; }
.visite__pad [data-d="tg"] { grid-column: 1; grid-row: 2; }
.visite__pad [data-d="re"] { grid-column: 2; grid-row: 2; }
.visite__pad [data-d="td"] { grid-column: 3; grid-row: 2; }
.visite__plein { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; }
.visite__plein svg { width: 18px; height: 18px; }
.visite:fullscreen .visite__cadre { height: 100%; }
.visite:fullscreen { padding: 0; }
.visite:fullscreen .visite__tete { display: none; }

.visite__etiquettes { position: absolute; inset: 0; pointer-events: none; }
.visite__point {
  position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none; color: var(--creme);
  pointer-events: auto; cursor: pointer; transition: opacity .3s; margin: -9px 0 0 -9px; font: inherit; text-align: left;
}
.visite__point i {
  width: 18px; height: 18px; flex: none; border: 1px solid var(--bronze-clair); transform: rotate(45deg); background: rgba(15,15,15,.45);
  box-shadow: 0 0 0 0 rgba(217,191,163,.6); animation: pouls 2.4s ease-out infinite;
}
.visite__point i::after { content: ""; display: block; width: 6px; height: 6px; margin: 5px; background: var(--bronze-clair); }
.visite__point span {
  display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; background: rgba(15,15,15,.72); backdrop-filter: blur(6px);
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--sable); white-space: nowrap;
  opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .3s; pointer-events: none;
}
.visite__point strong { font-weight: 500; color: var(--creme); font-size: 11px; letter-spacing: .18em; }
.visite__point:hover span, .visite__point:focus-visible span, .visite__point.ouvert span { opacity: 1; transform: none; }
@keyframes pouls { 0% { box-shadow: 0 0 0 0 rgba(217,191,163,.55); } 100% { box-shadow: 0 0 0 14px rgba(217,191,163,0); } }

.visite__secours { position: absolute; inset: 0; display: none; }
.visite__secours img { width: 100%; height: 100%; object-fit: cover; opacity: .6; }
.visite__secours p { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; padding: 14px 20px; background: rgba(15,15,15,.75); text-align: center; max-width: 90%; }
.visite--secours .visite__secours { display: block; }
.visite--secours .visite__voile, .visite--secours .visite__plein { display: none; }

@media (hover: none), (pointer: coarse) {
  .visite__clavier { display: none; }
  .visite__tactile { display: inline; }
}
@media (max-width: 520px) {
  .visite__cadre { height: 70vh; min-height: 420px; }
  .visite__aide { bottom: auto; top: 16px; left: 16px; transform: none; font-size: 11px; letter-spacing: .1em; white-space: normal; max-width: calc(100% - 80px); }
  .visite__pad { right: 50%; transform: translateX(50%); bottom: 16px; }
}
.visite__secours small { display: block; margin-top: 8px; font-size: 11px; color: var(--sable); }
.coord li a { user-select: text; transition: color .3s; }
.coord li a:hover { color: var(--bronze); }

/* =========================================================
   Effets « wow » (effets.js)
   ========================================================= */
/* Carreaux qui s'effacent en vague : révélation des photos */
.tuiles { position: absolute; inset: 0; display: grid; z-index: 2; pointer-events: none; }
.tuiles i { background: currentColor; box-shadow: 0 0 0 1px currentColor; transition: transform .6s cubic-bezier(.7,0,.2,1), opacity .6s ease; transition-delay: calc(var(--decale, 0s) + var(--td, 0s)); }
.a-tuiles { position: relative; }
.tuiles--go > .tuiles i { transform: scale(0) rotate(45deg); opacity: 0; }

/* Titres lettre par lettre */
.lettres .mot { display: inline-block; white-space: nowrap; }
.lettres .lettre { display: inline-block; opacity: 0; transform: translateY(.7em) rotate(6deg); transition: opacity .7s ease, transform .9s cubic-bezier(.2,.7,.1,1); transition-delay: calc(var(--i) * 22ms); }
.lettres--go .lettre { opacity: 1; transform: none; }

/* Boutons magnétiques */
.btn, .reseaux a, .fleche { transition: translate .35s cubic-bezier(.2,.7,.1,1), background .3s, color .3s, border-color .3s; }

/* Plaques et photos inclinables, reflet qui suit la souris */
.inclinable { position: relative; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s cubic-bezier(.2,.7,.1,1), box-shadow .6s; }
.inclinable:hover { transition: transform .15s linear, box-shadow .6s; }
.echantillon:hover .plaque.inclinable { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-8px); }
.reflet { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .5s; background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,250,240,.38), transparent 55%); mix-blend-mode: soft-light; }
.inclinable:hover .reflet { opacity: 1; }

/* Lueur bronze du héros */
.heros__texte::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(460px circle at var(--lx, -600px) var(--ly, -600px), rgba(184,155,127,.13), transparent 70%); }

/* Héros de l'accueil : plein écran, diaporama posé carreau par carreau, reflet de porcelaine polie */
#haut { min-height: max(clamp(560px, 50vw, 720px), 100svh); }
#haut .heros__texte { gap: 24px; }
.heros__diapos { position: absolute; inset: 0; overflow: hidden; }
.anim .heros__diapos { animation: respire 20s ease-in-out infinite alternate; }
@keyframes respire { from { transform: scale(1); } to { transform: scale(1.07); } }
.heros__diapos .diapo { position: absolute; inset: 0; object-position: var(--pos, 40% 50%); }
.diapo--suivante { animation: none !important; }
.pose { position: absolute; inset: 0; z-index: 1; display: grid; pointer-events: none; }
.pose i {
  background-repeat: no-repeat; opacity: 0; transform-origin: 50% 0;
  transform: perspective(700px) rotateX(-82deg) translateY(-6%);
  box-shadow: inset 0 0 0 1px rgba(15,15,15,.55), 0 10px 18px -8px rgba(0,0,0,.6);
  transition: transform 1s cubic-bezier(.2,.75,.15,1) var(--td), opacity .45s ease var(--td), box-shadow .9s ease calc(var(--td) + .8s);
}
.pose--go i { opacity: 1; transform: none; box-shadow: inset 0 0 0 1px rgba(15,15,15,0), 0 0 0 0 rgba(0,0,0,0); }
.heros__diapos::after {
  content: ""; position: absolute; inset: -10% -30%; z-index: 2; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(105deg, transparent 42%, rgba(255,240,222,.0) 44%, rgba(255,240,222,.2) 50%, rgba(255,240,222,0) 56%, transparent 58%);
  transform: translateX(-70%);
}
.anim .heros__diapos::after { animation: lustre 8s 3.2s cubic-bezier(.6,0,.3,1) infinite; }
@keyframes lustre { 0% { transform: translateX(-70%); } 30%, 100% { transform: translateX(70%); } }
.heros__legende {
  position: absolute; right: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); bottom: clamp(26px, 4vw, 44px); z-index: 3;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px; color: var(--creme);
}
.heros__legende-txt { font-size: 11px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; transition: opacity .4s ease, transform .4s ease; }
/* Visuels d'ambiance (concepts), pas des chantiers réels : libellé honnête */
.heros__legende-txt::before { content: "Inspiration · "; color: var(--sable); }
.heros__legende-txt.change { opacity: 0; transform: translateY(6px); }
.heros__barres { display: flex; gap: 8px; }
.heros__barres i { position: relative; width: 38px; height: 2px; background: rgba(236,230,222,.25); overflow: hidden; }
.heros__barres i::after { content: ""; position: absolute; inset: 0; background: var(--bronze-clair); transform: scaleX(0); transform-origin: 0 50%; }
.heros__barres i.actif::after { animation: barre 6.5s linear both; }
@keyframes barre { to { transform: scaleX(1); } }
.heros__defiler {
  position: absolute; left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); bottom: clamp(22px, 3.5vw, 40px); z-index: 3;
  display: flex; align-items: center; gap: 14px; color: var(--sable); text-decoration: none; font-size: 10px; letter-spacing: .3em; text-transform: uppercase;
}
.heros__defiler i { position: relative; width: 1px; height: 46px; background: rgba(201,187,174,.25); overflow: hidden; }
.heros__defiler i::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 40%; background: var(--bronze-clair); animation: goutte 2.2s cubic-bezier(.6,0,.3,1) infinite; }
@keyframes goutte { from { transform: translateY(-100%); } to { transform: translateY(260%); } }
@media (max-width: 960px) {
  #haut { min-height: 100vh; min-height: 100svh; }
  #haut .heros__texte { justify-content: flex-end; gap: 20px; padding-top: 150px; padding-bottom: 92px; }
  .heros__diapos .diapo { object-position: var(--pos-m, var(--pos, 50% 50%)); }
  .heros__legende { left: var(--gutter); right: auto; align-items: flex-start; bottom: 26px; }
  .heros__defiler { display: none; }
}
@media (max-width: 520px) {
  #haut .heros__texte { gap: 18px; padding-top: 130px; }
  .heros__sous { font-size: 14.5px; }
  .heros__actions { align-self: stretch; gap: 10px; }
  .heros__actions .btn { justify-content: center; padding-block: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .heros__diapos::after, .heros__defiler i::after { animation: none; }
}

/* Téléphone à l'horizontale : en-tête compact (le logo ne mange plus la moitié de l'écran), menu plus serré */
@media (orientation: landscape) and (max-height: 500px) {
  .marque { --logo: 110px; }
  .entete .marque small { display: none; }
  .entete__in { padding-block: 10px; }
  .nav.ouvert ul a:not(.btn) { padding-block: 10px; font-size: 18px; }
  .nav.ouvert .menu__plus .btn { margin-top: 18px; }
  #haut .heros__texte, .heros--page .heros__texte { padding-top: 110px; }
}


/* =========================================================
   Composant : atelier
   ========================================================= */
/* =========================================================
   Atelier de calepinage (accueil, après « Toutes sortes de matières »)
   Composant autonome : toutes les classes commencent par « atl- ».
   Réutilise les jetons de styles.css (--charbon, --sable, --bronze…) et .pierre / .wrap / .titre / .eyebrow / .btn.
   ========================================================= */
.atl {
  --atl-trait: rgba(201,187,174,.16);
  --atl-trait-fort: rgba(201,187,174,.28);
  --atl-texte-2: rgba(236,230,222,.78);
  --atl-texte-3: rgba(236,230,222,.64);
  --atl-haut: 72px;            /* hauteur de l'en-tête collant, mise à jour par atelier.js */
  position: relative;
  color: var(--creme);
  padding-block: clamp(64px, 8vw, 112px) clamp(56px, 7vw, 96px);
  /* fond « salle d'exposition » : charbon calme, éclairé en douceur, pour que le mur composé soit la vedette */
  background-color: var(--charbon);
  background-image:
    radial-gradient(60% 50% at 28% 46%, rgba(255,240,222,.05), transparent 70%),
    linear-gradient(180deg, #151413 0, rgba(27,26,25,0) 240px);
  border-bottom: 1px solid rgba(184,155,127,.2);
}
.atl-sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ---------- En-tête de section ---------- */
.atl-tete { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 56px; margin-bottom: clamp(32px, 4.5vw, 60px); }
.atl-eyebrow { color: var(--sable); }
.atl-tete .titre { margin-top: 10px; }
.atl-intro { margin: 0; max-width: 50ch; color: var(--atl-texte-2); }

/* ---------- Composition : aperçu + étapes ---------- */
.atl-compo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.atl-scene { min-width: 0; }
.atl-apercu { margin: 0; }
.atl-cadre { position: relative; }
.atl-mur {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden; isolation: isolate;
  background: #131211 radial-gradient(90% 70% at 50% 0%, rgba(255,240,222,.05), transparent 70%);
  box-shadow: 0 36px 70px -38px rgba(0,0,0,.85);
}
.atl-toile { display: block; width: 100%; height: 100%; }

/* Reflets : un spot qui suit la souris (ou dérive lentement) et une bande de « fenêtre », selon le fini */
.atl-lumiere { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.atl-spot, .atl-bande { position: absolute; left: 0; top: 0; opacity: 0; mix-blend-mode: screen; transition: opacity .7s ease; will-change: transform; }
.atl-spot {
  aspect-ratio: 1; border-radius: 50%;
  transform: translate3d(calc(var(--lx, 220px) - 50%), calc(var(--ly, 120px) - 50%), 0);
}
.atl-spot--poli { width: 58%; background: radial-gradient(closest-side, rgba(255,247,235,.62), rgba(255,247,235,.26) 16%, rgba(255,247,235,.08) 46%, rgba(255,247,235,0)); }
.atl-spot--satine { width: 115%; background: radial-gradient(closest-side, rgba(255,247,235,.2), rgba(255,247,235,.08) 40%, rgba(255,247,235,0)); }
.atl-bande {
  top: -35%; height: 170%; width: 46%;
  transform: translate3d(calc(var(--lx, 220px) * .5 - 10%), 0, 0) rotate(17deg);
}
.atl-bande--poli { background: linear-gradient(90deg, transparent 28%, rgba(255,250,242,.05) 40%, rgba(255,250,242,.17) 46%, rgba(255,250,242,.04) 50%, transparent 54%, rgba(255,250,242,.07) 60%, transparent 64%); }
.atl-bande--satine { background: linear-gradient(90deg, transparent 18%, rgba(255,250,242,.05) 45%, rgba(255,250,242,.05) 55%, transparent 82%); }
.atl-mur[data-fini="poli"] .atl-spot--poli,
.atl-mur[data-fini="poli"] .atl-bande--poli,
.atl-mur[data-fini="satine"] .atl-spot--satine,
.atl-mur[data-fini="satine"] .atl-bande--satine { opacity: 1; }
.atl-mur[data-fini="mat"] .atl-spot--satine { opacity: .22; }
.atl--attente .atl-lumiere { visibility: hidden; }

/* Loupe sur le joint */
.atl-detail {
  position: absolute; right: 3.2%; bottom: 6%; width: clamp(78px, 20%, 150px);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  opacity: 0; transform: translateY(8px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.1,1);
}
.atl-detail.est-pret { opacity: 1; transform: none; }
.atl-loupe {
  width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #131211;
  box-shadow: 0 0 0 1px rgba(217,191,163,.9), 0 0 0 5px rgba(15,15,15,.45), 0 20px 34px -12px rgba(0,0,0,.75);
}
.atl-loupe canvas { display: block; width: 100%; height: 100%; }
.atl-detail__etiq {
  padding: 5px 9px; background: rgba(15,15,15,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-size: 8.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; color: var(--sable);
}

.atl-repli { display: none; }
.atl--sans-js .atl-repli {
  display: grid; place-items: center; position: absolute; inset: 0; margin: 0; padding: 24px; text-align: center;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--sable);
}
.atl--sans-js .atl-detail, .atl--sans-js .atl-lumiere { display: none; }

/* Cotes (dimensions du mur) et coins de cadre bronze */
.atl-cote { position: absolute; display: none; align-items: center; gap: 12px; color: rgba(201,187,174,.85); pointer-events: none; }
.atl-cote::before, .atl-cote::after { content: ""; flex: 1; background: rgba(201,187,174,.38); }
.atl-cote > span { font-size: 9.5px; font-weight: 500; letter-spacing: .22em; white-space: nowrap; }
.atl-cote--l { left: 0; right: 0; top: calc(100% + 14px); height: 9px; border-inline: 1px solid rgba(201,187,174,.55); }
.atl-cote--l::before, .atl-cote--l::after { height: 1px; }
.atl-cote--h { top: 0; bottom: 0; left: calc(100% + 14px); width: 9px; flex-direction: column; border-block: 1px solid rgba(201,187,174,.55); }
.atl-cote--h::before, .atl-cote--h::after { width: 1px; }
.atl-cote--h > span { writing-mode: vertical-rl; transform: rotate(180deg); }

/* Légende sous l'aperçu */
.atl-legende {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 20px; margin-top: 14px;
  font-size: 9.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
}
.atl-indicatif { color: rgba(201,187,174,.8); }
.atl-resume { color: var(--creme); letter-spacing: .12em; }

/* ---------- Étapes ---------- */
.atl-etapes { min-width: 0; display: flex; flex-direction: column; }
.atl-etape { margin: 0; padding: 20px 0 24px; border: 0; border-top: 1px solid var(--atl-trait); min-width: 0; }
.atl-etape:first-child { border-top: 0; }
.atl-etape > legend, .atl-sous > legend { float: left; width: 100%; padding: 0; }
.atl-etape > legend + *, .atl-sous > legend + * { clear: both; }
.atl-etape > legend { display: flex; align-items: baseline; gap: 14px; margin-bottom: 16px; }
.atl-num {
  flex: none; display: inline-block; font-size: 11px; font-weight: 500; letter-spacing: .12em; line-height: 1;
  color: var(--bronze-clair); padding-bottom: 4px; border-bottom: 1px solid currentColor;
}
.atl-etiq { font-size: 11px; font-weight: 500; letter-spacing: var(--track-label); text-transform: uppercase; }
.atl-val {
  margin-left: auto; min-width: 0; text-align: right; font-size: 10px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--bronze-clair); transition: opacity .3s;
}
.atl-sous { margin: 18px 0 0; padding: 0; border: 0; min-width: 0; }
.atl-sous--premier { margin-top: 0; }
.atl-sous > legend { margin-bottom: 10px; font-size: 9.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: rgba(201,187,174,.85); }

/* Entrées radio : invisibles mais cliquables et atteignables au clavier (flèches dans chaque groupe) */
.atl-mat, .atl-puce, .atl-teinte, .atl-unite label { position: relative; display: block; -webkit-tap-highlight-color: transparent; }
.atl-mat input, .atl-puce input, .atl-teinte input, .atl-unite input {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1;
}
.atl-puce input:disabled, .atl-mat input:disabled { cursor: not-allowed; }

/* 01 · Matières */
.atl-matieres { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 10px; }
.atl-mat { display: flex; flex-direction: column; gap: 9px; }
.atl-mat__plaque {
  position: relative; display: block; aspect-ratio: 1 / 1.18; overflow: hidden; background-color: #2a2826;
  box-shadow: 0 0 0 1px rgba(255,255,255,.05); transition: transform .5s cubic-bezier(.2,.7,.1,1), box-shadow .35s ease;
}
.atl-mat__plaque img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s ease; }
.atl-mat__plaque--uni { background-image: linear-gradient(135deg, rgba(255,255,255,.14), transparent 45%, rgba(0,0,0,.12)); }
.atl-mat__nom { font-size: 9.5px; font-weight: 500; letter-spacing: .13em; text-transform: uppercase; line-height: 1.35; color: var(--atl-texte-3); transition: color .3s; overflow-wrap: anywhere; }
.atl-mat__nom small { display: block; margin-top: 2px; font-size: 8.5px; font-weight: 400; letter-spacing: .14em; color: rgba(201,187,174,.7); }
.atl-mat:hover .atl-mat__plaque { transform: translateY(-3px); }
.atl-mat:hover .atl-mat__plaque img { transform: scale(1.06); }
.atl-mat input:checked ~ .atl-mat__plaque { box-shadow: 0 0 0 3px var(--charbon), 0 0 0 4px var(--bronze-clair); }
.atl-mat input:checked ~ .atl-mat__nom { color: var(--creme); }
.atl-mat input:focus-visible ~ .atl-mat__plaque { outline: 1px solid var(--bronze); outline-offset: 7px; }

/* 02 · 05 · Puces (formats, motifs, sens, largeurs, finis) */
.atl-puces { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.atl-puces--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.atl-puce > span {
  display: flex; align-items: center; gap: 10px; min-height: 48px; height: 100%; padding: 9px 10px;
  border: 1px solid rgba(201,187,174,.2); color: rgba(236,230,222,.82);
  font-size: 10px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; line-height: 1.3;
  transition: border-color .3s ease, background-color .3s ease, color .3s ease, opacity .3s ease;
}
.atl-txt { min-width: 0; overflow-wrap: anywhere; }
.atl-txt small { display: block; margin-top: 3px; font-size: 8.5px; font-weight: 400; letter-spacing: .14em; color: rgba(201,187,174,.78); }
.atl-pic-box { flex: none; width: 28px; height: 20px; display: grid; place-items: center; color: var(--sable); transition: color .3s; }
.atl-pic { width: 28px; height: 20px; overflow: hidden; fill: none; stroke: currentColor; stroke-width: 1; vector-effect: non-scaling-stroke; opacity: .9; }
.atl-pic path { vector-effect: non-scaling-stroke; }
.atl-ico-f { display: block; border: 1px solid currentColor; }
.atl-ico-j { display: flex; }
.atl-ico-j b { width: 10px; height: 12px; background: currentColor; opacity: .75; }
.atl-ico-fini { width: 18px; height: 18px; display: block; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.atl-ico-fini--poli { background: linear-gradient(135deg, #2c2926 34%, #f5eee4 48%, #8d8379 52%, #2c2926 66%); }
.atl-ico-fini--satine { background: linear-gradient(135deg, #2c2926 12%, #7c736a 50%, #2c2926 88%); }
.atl-ico-fini--mat { background: #3d3935; }
.atl-puce:hover > span { border-color: rgba(217,191,163,.55); }
.atl-puce input:checked + span { border-color: var(--bronze-clair); background-color: rgba(184,155,127,.14); color: var(--creme); }
.atl-puce input:checked + span .atl-pic-box { color: var(--bronze-clair); }
.atl-puce input:focus-visible + span { outline: 1px solid var(--bronze); outline-offset: 3px; }
.atl-puce input:disabled + span { opacity: .3; border-style: dashed; }
.atl-puce:hover input:disabled + span { border-color: rgba(201,187,174,.2); }

/* 04 · Couleur du coulis : losanges */
.atl-teintes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.atl-teinte { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 12px 2px 8px; text-align: center; border: 1px solid transparent; transition: border-color .3s; }
.atl-teinte i { width: 17px; height: 17px; transform: rotate(45deg); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); transition: box-shadow .3s; }
.atl-teinte span { font-size: 8.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; line-height: 1.3; color: var(--atl-texte-3); transition: color .3s; }
.atl-teinte:hover { border-color: rgba(201,187,174,.18); }
.atl-teinte input:checked ~ i { box-shadow: 0 0 0 3px var(--charbon), 0 0 0 4px var(--bronze-clair); }
.atl-teinte input:checked ~ span { color: var(--creme); }
.atl-teinte input:focus-visible ~ i { outline: 1px solid var(--bronze); outline-offset: 7px; }

/* Notes (combinaisons ajustées ou non offertes) */
.atl-note { display: flex; gap: 10px; margin: 12px 0 0; font-size: 12px; line-height: 1.5; color: var(--atl-texte-2); }
.atl-note:empty { display: none; }
.atl-note::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: .55em; border: 1px solid var(--bronze); transform: rotate(45deg); }
.atl-note.est-neuve { animation: atl-note .6s ease both; }
@keyframes atl-note { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- 06 · Combien de carreaux ? ---------- */
.atl-calcul {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px;
  margin-top: clamp(24px, 4vw, 56px); padding-top: clamp(28px, 3.4vw, 44px); border-top: 1px solid var(--atl-trait-fort);
}
.atl-calcul__tete { display: flex; flex-direction: column; align-items: flex-start; }
.atl-calcul__titre { margin: 14px 0 10px; font-size: clamp(17px, 1.6vw, 21px); font-weight: 300; letter-spacing: .22em; text-transform: uppercase; line-height: 1.35; }
.atl-calcul__texte { margin: 0; max-width: 40ch; font-size: 14px; color: var(--atl-texte-2); }
.atl-champ__etiq { display: block; margin-bottom: 4px; font-size: 10px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--sable); }
.atl-champ { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid rgba(201,187,174,.45); transition: border-color .3s, box-shadow .3s; }
.atl-champ:focus-within { border-bottom-color: var(--bronze-clair); box-shadow: 0 1px 0 var(--bronze-clair); }
.atl-champ input[type="text"] {
  flex: 1; min-width: 0; width: 100%; padding: 6px 0 10px; border: 0; border-radius: 0; background: transparent; color: var(--creme);
  font: 300 clamp(32px, 3.4vw, 44px)/1.2 var(--f-sans); letter-spacing: .04em; font-variant-numeric: tabular-nums;
}
.atl-champ input[type="text"]::placeholder { color: rgba(236,230,222,.3); }
.atl-champ input[type="text"]:focus { outline: none; }
.atl-unite { display: flex; gap: 4px; margin: 0; padding: 0; border: 0; flex: none; }
.atl-unite span { display: grid; place-items: center; min-width: 46px; min-height: 40px; padding: 0 10px; border: 1px solid rgba(201,187,174,.25); font-size: 13px; color: var(--atl-texte-2); transition: border-color .3s, background-color .3s, color .3s; }
.atl-unite input:checked + span { border-color: var(--bronze-clair); background-color: rgba(184,155,127,.14); color: var(--creme); }
.atl-unite input:focus-visible + span { outline: 1px solid var(--bronze); outline-offset: 3px; }
.atl-aide { margin: 10px 0 0; font-size: 12px; color: var(--atl-texte-3); }

.atl-resultats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 0; }
.atl-res { min-width: 0; padding-left: 16px; border-left: 1px solid var(--atl-trait-fort); }
.atl-res dt { font-size: 10px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--sable); line-height: 1.4; }
.atl-res dd { margin: 0; }
.atl-res__val { display: block; margin-top: 10px; font-weight: 300; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.1; letter-spacing: .03em; color: var(--creme); font-variant-numeric: tabular-nums; white-space: nowrap; }
.atl-res__val b { font-weight: 300; }
.atl-res__val small { font-size: 12px; font-weight: 500; letter-spacing: .14em; color: var(--sable); }
.atl-res__sous { display: block; margin-top: 8px; font-size: 12px; line-height: 1.45; color: var(--atl-texte-3); }

.atl-avert { display: flex; align-items: baseline; gap: 12px; margin: 0; font-size: 12.5px; color: var(--atl-texte-2); }
.atl-avert i { flex: none; width: 7px; height: 7px; border: 1px solid var(--bronze); transform: rotate(45deg) translateY(-1px); }
.atl-envoi { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding-top: 24px; border-top: 1px solid var(--atl-trait); }
.atl-envoi__resume { display: flex; flex-direction: column; gap: 6px; margin: 0; min-width: 0; }
.atl-envoi__etiq { font-size: 10px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--sable); }
.atl-envoi__resume span + span { font-size: 13.5px; letter-spacing: .04em; color: var(--creme); }
.atl-cta { white-space: normal; line-height: 1.5; text-align: left; }
.atl-cta svg { flex: none; }

/* ---------- Bouton « Composer » ajouté aux échantillons de la section Matières ---------- */
.atl-echantillon .plaque { position: relative; cursor: pointer; }
.atl-essayer {
  position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 2;
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding: 8px 6px;
  border: 1px solid rgba(217,191,163,.55); background: rgba(15,15,15,.74); color: var(--creme);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font: 500 9px/1 var(--f-sans); letter-spacing: .16em; text-transform: uppercase; cursor: pointer;
  opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .35s ease, background-color .3s;
}
.atl-essayer svg { width: 12px; height: 12px; flex: none; }
.atl-echantillon:hover .atl-essayer, .atl-essayer:focus-visible { opacity: 1; transform: none; }
.atl-essayer:hover { background: rgba(15,15,15,.9); }
@media (hover: none), (pointer: coarse) { .atl-essayer { opacity: 1; transform: none; } }

/* ---------- Grands écrans : aperçu collant à gauche, étapes à droite ---------- */
@media (min-width: 1000px) {
  .atl-compo { grid-template-columns: minmax(0, 7fr) minmax(360px, 5fr); gap: clamp(40px, 4.5vw, 72px); align-items: start; }
  .atl-scene { position: sticky; top: calc(var(--atl-haut) + 24px); }
  .atl-cadre { margin-right: 36px; }
  .atl-cadre::before {
    content: ""; position: absolute; inset: -9px; pointer-events: none;
    --c: rgba(217,191,163,.75);
    background:
      linear-gradient(var(--c), var(--c)) left top / 20px 1px no-repeat,
      linear-gradient(var(--c), var(--c)) left top / 1px 20px no-repeat,
      linear-gradient(var(--c), var(--c)) right top / 20px 1px no-repeat,
      linear-gradient(var(--c), var(--c)) right top / 1px 20px no-repeat,
      linear-gradient(var(--c), var(--c)) left bottom / 20px 1px no-repeat,
      linear-gradient(var(--c), var(--c)) left bottom / 1px 20px no-repeat,
      linear-gradient(var(--c), var(--c)) right bottom / 20px 1px no-repeat,
      linear-gradient(var(--c), var(--c)) right bottom / 1px 20px no-repeat;
  }
  .atl-cote { display: flex; }
  .atl-legende { margin-top: 44px; margin-right: 36px; }
  .atl-indicatif-dim { display: none; }
  .atl-etape:first-child { padding-top: 0; }
  .atl-calcul { grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 6fr); column-gap: clamp(32px, 4vw, 64px); row-gap: 30px; align-items: start; }
  .atl-avert, .atl-envoi { grid-column: 1 / -1; }
}

/* ---------- Téléphones et tablettes : aperçu pleine largeur, collant sous l'en-tête pendant les choix ---------- */
@media (max-width: 999px) {
  .atl-scene { margin-inline: calc(-1 * var(--gutter)); }
  .atl-legende { padding-inline: var(--gutter); margin-top: 10px; }
  .atl-etapes { padding-top: 10px; }
}
@media (max-width: 999px) and (min-height: 560px) {
  .atl-scene {
    position: sticky; top: var(--atl-haut); z-index: 4; padding-bottom: 12px;
    background: var(--charbon); box-shadow: 0 1px 0 var(--atl-trait), 0 18px 24px -18px rgba(0,0,0,.7);
  }
}
@media (max-width: 999px) and (max-height: 559px) {
  .atl-apercu { max-width: calc((100svh - 120px) * 1.6); margin-inline: auto; }
}
@media (max-width: 700px) {
  .atl-tete { gap: 16px; }
  .atl-intro { font-size: 14px; }
  .atl-detail__etiq { display: none; }
  .atl-detail { width: 74px; right: 12px; bottom: 12px; }
  .atl-loupe { box-shadow: 0 0 0 1px rgba(217,191,163,.9), 0 0 0 3px rgba(15,15,15,.45), 0 12px 22px -10px rgba(0,0,0,.75); }
  .atl-legende { font-size: 9px; letter-spacing: .14em; }
  .atl-resume { letter-spacing: .08em; }
  .atl-etape { padding: 18px 0 20px; }
  .atl-etape > legend { gap: 12px; margin-bottom: 14px; }
  .atl-puces { gap: 6px; }
  .atl-puce > span { gap: 8px; padding: 8px; font-size: 9.5px; letter-spacing: .1em; }
  .atl-pic-box { width: 24px; }
  .atl-pic { width: 24px; height: 17px; }
  .atl-matieres { gap: 14px 8px; }
  .atl-teintes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .atl-teinte { flex-direction: row; justify-content: flex-start; gap: 12px; padding: 12px 8px; text-align: left; border-color: rgba(201,187,174,.12); }
  .atl-teinte i { flex: none; width: 13px; height: 13px; margin-left: 3px; }
  .atl-resultats { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .atl-envoi .btn { width: 100%; justify-content: space-between; }
}
@media (max-width: 380px) {
  .atl-puces { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .atl-matieres { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .atl-teintes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .atl-spot, .atl-bande, .atl-detail, .atl-mat__plaque, .atl-mat__plaque img { transition: none; }
  .atl-mat:hover .atl-mat__plaque, .atl-mat:hover .atl-mat__plaque img { transform: none; }
  .atl-note.est-neuve { animation: none; }
}


/* =========================================================
   Composant : anatomie
   ========================================================= */
/* =========================================================
   Anatomie d'une surface (À propos) : coupe axonométrique d'un coin de douche
   qui se démonte couche par couche au défilement, puis se réassemble.
   Préfixe : .anat / .anat-  (aucune autre classe du site n'est touchée, sauf .wrap .eyebrow .titre .trait .btn réutilisées)
   Par défaut (sans JS ou avec « moins d'animations ») : vue éclatée fixe, toutes les étiquettes et descriptions visibles.
   Avec JS : .anat--pilote ajoute la scène épinglée (position: sticky) pilotée par le défilement.
   Fond : noir « planche technique » (filet de grille bronze très discret), volontairement différent du marbre
   de .valeurs-bloc qui suit : le crème de « Notre approche » bascule dans le noir, et le dessin bronze/crème ressort.
   ========================================================= */
.anat {
  --anat-entete: 64px;           /* hauteur de l'en-tête collant du site */
  --anat-ligne: rgba(217, 191, 163, .34);
  --anat-grille: rgba(184, 155, 127, .055);
  position: relative;
  background-color: var(--noir);
  background-image:
    radial-gradient(90% 60% at 30% 55%, rgba(184, 155, 127, .075), transparent 70%),
    linear-gradient(var(--anat-grille) 1px, transparent 1px),
    linear-gradient(90deg, var(--anat-grille) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px, 48px 48px;
  background-position: 0 0, -1px -1px, -1px -1px;
  color: var(--creme);
  border-bottom: 1px solid rgba(184, 155, 127, .22);
}

/* ---------- En-tête ---------- */
.anat__tete { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding-top: clamp(64px, 8vw, 112px); }
.anat__eyebrow { color: var(--bronze-clair); }
.anat__intro { margin: 0; max-width: 54ch; color: rgba(236, 230, 222, .8); }
.anat__consigne {
  display: none; align-items: center; gap: 14px; margin: 6px 0 0;
  font-size: 10px; font-weight: 500; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--sable);
}
.anat__consigne-trait { width: 1px; height: 28px; background: linear-gradient(var(--bronze), transparent); }
.anat--pilote .anat__consigne { display: inline-flex; }

/* ---------- Scène ---------- */
.anat__piste { position: relative; }
.anat__scene { padding-block: clamp(36px, 5vw, 64px); }
.anat__grille {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 5vw, 80px); align-items: center;
}
.anat__figure { position: relative; margin: 0; min-width: 0; display: flex; flex-direction: column; align-items: center; }
.anat__svg {
  --sep: 1;
  display: block; width: 100%; height: auto; max-height: 72vh; overflow: visible;
  font-family: var(--f-sans);
}
.anat__legende {
  display: flex; align-items: center; gap: 12px; align-self: flex-start; margin-top: 8px;
  font-size: 10px; font-weight: 500; letter-spacing: var(--track-label); text-transform: uppercase; color: rgba(201, 187, 174, .72);
}
.anat__legende-trait { width: 28px; height: 1px; background: var(--bronze); }
.anat__finie {
  position: absolute; left: 0; bottom: 0; margin: 0; display: flex; align-items: center; gap: 12px;
  font-size: 11px; font-weight: 500; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--bronze-clair);
  opacity: 0; transform: translateY(8px); transition: opacity .6s ease, transform .6s ease; pointer-events: none;
}

/* ---------- Dessin : couches ---------- */
.anat-c {
  transform: translate(calc(var(--sep) * var(--k) * -22.45px), calc(var(--sep) * var(--k) * -23.04px));
  transition: opacity .5s ease;
}
.anat-f { stroke: var(--anat-ligne); stroke-width: .7; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.anat-ombre { fill: rgba(0, 0, 0, .5); }

.anat-sup-fond { fill: #3a3734; }  .anat-grain { fill: rgba(236, 230, 222, .13); }
.anat-sup-top, .anat-sup-mur { fill: url(#anat-grain); }
.anat-sup-av { fill: #2c2a28; }    .anat-sup-cp { fill: #232120; }

.anat-des-fond { fill: #5f544a; }  .anat-des-creux { fill: #4a4139; }
.anat-des-top, .anat-des-mur { fill: url(#anat-gaufre); }
.anat-des-av { fill: #4a4139; }    .anat-des-cp { fill: #3e362f; }

.anat-eta-fond { fill: #8f7966; }  .anat-eta-fibre { stroke: rgba(236, 230, 222, .12); stroke-width: .6; }
.anat-eta-top, .anat-eta-mur { fill: url(#anat-tissu); }
.anat-eta-av { fill: #77624f; }    .anat-eta-cp { fill: #685543; }

.anat-mor-fond { fill: #6a6661; }  .anat-mor-crete { fill: #807b75; } .anat-mor-ombre { fill: #4e4a46; }
.anat-mor-top, .anat-mor-mur { fill: url(#anat-sillons); }
.anat-mor-av { fill: #5d5954; }    .anat-mor-cp { fill: #55514c; }

.anat-car-fond { fill: var(--creme); } .anat-car-fond--mur { fill: var(--pierre-clair); }
.anat-veine { fill: none; stroke: rgba(122, 106, 90, .42); stroke-width: 1.1; }
.anat-veine--fine { stroke-width: .6; stroke: rgba(122, 106, 90, .3); }
.anat-car-av { fill: #cdc4b9; }    .anat-car-cp { fill: #b9afa3; }
.anat-joint { fill: none; stroke: #8f8173; stroke-width: 1.4; vector-effect: non-scaling-stroke; stroke-linecap: square; transition: stroke .4s, stroke-width .4s; }
.anat-reflet { fill: none; stroke: rgba(255, 255, 255, .45); stroke-width: 10; stroke-linecap: round; opacity: .35; filter: blur(4px); }

.anat-pro { fill: url(#anat-bronze); stroke: rgba(15, 15, 15, .35); stroke-width: .5; vector-effect: non-scaling-stroke; }
.anat-pro--cp { fill: #8a6f57; }
.anat-pro--haut { fill: var(--bronze-clair); }
.anat-scel { fill: none; stroke: var(--sable); stroke-width: 4.2; stroke-linecap: round; }
.anat-scel-reflet { fill: none; stroke: rgba(255, 255, 255, .5); stroke-width: 1; stroke-linecap: round; }

/* Étiquettes numérotées : visibles seulement quand la coupe est assez éclatée */
.anat-tag { opacity: calc((var(--sep) - .55) * 2.4); }
.anat-tag__ligne { fill: none; stroke: var(--bronze); stroke-width: .8; vector-effect: non-scaling-stroke; transition: stroke .4s; }
.anat-tag__pt { fill: var(--bronze-clair); }
.anat-tag__rond { fill: var(--noir); stroke: var(--bronze); stroke-width: 1; vector-effect: non-scaling-stroke; transition: fill .4s, stroke .4s; }
.anat-tag__no { fill: var(--bronze-clair); font-size: 9.5px; font-weight: 500; letter-spacing: .06em; text-anchor: middle; transition: fill .4s; }

/* ---------- Texte : liste ordonnée des étapes ---------- */
.anat__texte { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.anat__compteur { display: none; align-items: baseline; gap: 10px; font-weight: 300; color: var(--sable); }
.anat__compteur-n { font-size: clamp(34px, 3.4vw, 48px); line-height: 1; letter-spacing: .06em; color: var(--bronze-clair); font-variant-numeric: tabular-nums; }
.anat__compteur-sur { font-size: 12px; letter-spacing: var(--track-label); }
.anat__barre { position: relative; flex: 1; align-self: center; height: 1px; margin-left: 12px; background: rgba(201, 187, 174, .2); overflow: hidden; }
.anat__barre i { position: absolute; inset: 0; background: var(--bronze); transform-origin: 0 50%; transform: scaleX(var(--anat-av, 0)); }

.anat__etapes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.anat__etape { padding-block: 14px; border-top: 1px solid rgba(201, 187, 174, .16); }
.anat__etape:last-child { border-bottom: 1px solid rgba(201, 187, 174, .16); }
.anat__nom { margin: 0; font-size: inherit; font-weight: inherit; }
.anat__saut {
  display: flex; align-items: baseline; gap: 16px; width: 100%; padding: 4px 0; margin: 0;
  background: none; border: 0; color: inherit; text-align: left; cursor: pointer;
  font: 500 12px/1.5 var(--f-sans); letter-spacing: .18em; text-transform: uppercase;
}
.anat__saut:hover .anat__libelle { color: var(--bronze-clair); }
.anat__no { flex: none; min-width: 2.2em; font-weight: 400; color: var(--bronze); letter-spacing: .1em; }
.anat__libelle { transition: color .3s; }
.anat__desc { margin: 6px 0 0 calc(2.2em * 12 / 14 + 16px); font-size: 14px; line-height: 1.65; color: rgba(236, 230, 222, .78); max-width: 46ch; }
.anat__note { margin: 4px 0 0; font-size: 12px; line-height: 1.6; color: rgba(201, 187, 174, .7); }

/* Étape choisie (au clic, en mode statique) ou courante (en mode piloté) */
.anat__etape.est-actif .anat__libelle { color: var(--bronze-clair); }
.anat__etape.est-actif .anat__no { color: var(--bronze-clair); }

/* ---------- Fin : appel à l'action ---------- */
.anat__fin {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
  padding-top: clamp(8px, 2vw, 24px); padding-bottom: clamp(64px, 8vw, 112px);
}
.anat__fin-texte { margin: 0; max-width: 46ch; font-weight: 300; font-size: clamp(16px, 1.6vw, 20px); letter-spacing: .04em; line-height: 1.55; color: var(--creme); }
.anat__cta { color: var(--creme); }

/* Mise en évidence dans le dessin, mode statique ou piloté */
.anat[data-anat-actif] .anat-c { opacity: .07; }
.anat[data-anat-actif] .anat-c.est-passe { opacity: .42; }
.anat[data-anat-actif] .anat-c.est-actif { opacity: 1; }
.anat-tag.est-actif .anat-tag__rond { fill: var(--bronze); stroke: var(--bronze-clair); }
.anat-tag.est-actif .anat-tag__no { fill: var(--noir); }
.anat-tag.est-actif .anat-tag__ligne { stroke: var(--bronze-clair); }
.anat[data-anat-actif="5"] .anat-joint { stroke: var(--bronze); stroke-width: 2.6; }
.anat[data-anat-actif="6"] .anat-scel { stroke: var(--creme); }

/* =========================================================
   Mode piloté (JS, mouvement autorisé, écran assez haut)
   ========================================================= */
.anat--pilote .anat__piste { height: var(--anat-h, 520vh); }
.anat--pilote .anat__scene {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: flex; align-items: center;
  padding-top: var(--anat-entete); padding-bottom: 16px; box-sizing: border-box;
}
.anat--pilote .anat__grille { width: 100%; }
.anat--pilote .anat__svg { max-height: calc(100svh - var(--anat-entete) - 96px); }
.anat--pilote .anat__compteur { display: flex; }
.anat--pilote .anat__note { display: none; }
.anat--pilote .anat__fin { padding-top: 0; }

/* La description ne s'ouvre que pour l'étape courante (grille 0fr → 1fr) */
.anat--pilote .anat__etape { display: grid; grid-template-rows: auto 0fr; transition: grid-template-rows .45s ease, opacity .4s; padding-block: 10px; opacity: .5; }
.anat--pilote .anat__etape.est-actif { grid-template-rows: auto 1fr; opacity: 1; }
.anat--pilote .anat__etape.est-passe { opacity: .72; }
.anat--pilote .anat__desc { overflow: hidden; min-height: 0; margin-top: 0; padding-top: 0; transition: padding-top .45s ease; }
.anat--pilote .anat__etape.est-actif .anat__desc { padding-top: 8px; }

/* Phase finale : surface réassemblée */
.anat--pilote[data-anat-phase="fin"] .anat__finie { opacity: 1; transform: none; }
.anat--pilote[data-anat-phase="fin"] .anat__legende { opacity: 0; }
.anat__legende { transition: opacity .4s; }

/* ---------- Tablette et téléphone ---------- */
@media (max-width: 900px) {
  .anat__grille { grid-template-columns: minmax(0, 1fr); }
  .anat__svg { max-height: none; }
  .anat__desc { margin-left: 0; }
}
@media (max-width: 900px) {
  .anat--pilote .anat__scene { align-items: stretch; padding-top: calc(var(--anat-entete) + 4px); padding-bottom: 12px; }
  .anat--pilote .anat__grille { display: flex; flex-direction: column; justify-content: center; gap: 10px; height: 100%; }
  .anat--pilote .anat__figure { flex: 1 1 auto; min-height: 0; justify-content: center; }
  .anat--pilote .anat__svg { width: auto; max-width: 100%; height: 100%; max-height: 46svh; }
  .anat--pilote .anat__legende { display: none; }
  .anat--pilote .anat__finie { bottom: 0; left: 0; right: 0; justify-content: center; font-size: 10px; letter-spacing: .14em; white-space: nowrap; }
  .anat--pilote .anat__finie .anat__legende-trait { display: none; }
  .anat--pilote .anat__texte { width: 100%; flex: none; gap: 10px; min-height: 186px; }
  .anat--pilote .anat__compteur-n { font-size: 30px; }
  /* une seule étape visible ; les autres restent lisibles par les lecteurs d'écran */
  .anat--pilote .anat__etape { opacity: 1; padding-block: 0; border: 0; grid-template-rows: auto 1fr; transition: none; }
  .anat--pilote .anat__etape:not(.est-actif) {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  .anat--pilote .anat__etape.est-actif .anat__desc { padding-top: 6px; }
  .anat--pilote .anat__etape.est-actif { animation: anat-entre .45s ease both; }
  .anat--pilote[data-anat-phase="fin"] .anat__etapes { visibility: hidden; }
  .anat__saut { font-size: 12px; }
  .anat__desc { font-size: 14px; line-height: 1.6; }
}
@keyframes anat-entre { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 520px) {
  .anat { background-size: 100% 100%, 32px 32px, 32px 32px; }
  .anat__fin { flex-direction: column; align-items: flex-start; }
  .anat__cta { width: 100%; justify-content: space-between; }
  .anat-tag__no { font-size: 11px; }
}

/* ---------- Moins d'animations : vue éclatée fixe, tout est affiché ---------- */
@media (prefers-reduced-motion: reduce) {
  .anat-c, .anat__finie, .anat__etape { transition: none; }
}


/* =========================================================
   Composant : faq
   ========================================================= */
/* =========================================================
   Questions fréquentes (composant « sdfaq ») : page Services
   Bande claire entre le bandeau défilant (noir) et la bande CTA (pierre).
   Accordéon natif <details>/<summary> ; faq.js ajoute l'animation de hauteur.
   Toutes les classes sont préfixées « sdfaq » ; réutilise les jetons de styles.css.
   ========================================================= */
.sdfaq {
  --sdfaq-ease: cubic-bezier(.7, 0, .2, 1);
  --sdfaq-filet: rgba(28,26,24,.16);
  position: relative;
  background: var(--pierre-clair);
  color: var(--encre);
  padding-block: clamp(64px, 8vw, 120px);
  scroll-margin-top: 84px;
  overflow: clip;
}
/* Fin motif de calepinage en filigrane, coin supérieur droit (rappel des joints) */
.sdfaq::before {
  content: ""; position: absolute; top: 0; right: 0; width: min(46vw, 560px); aspect-ratio: 1; pointer-events: none;
  background-image:
    linear-gradient(rgba(28,26,24,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28,26,24,.06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(circle at 100% 0, #000 0, transparent 70%);
          mask-image: radial-gradient(circle at 100% 0, #000 0, transparent 70%);
}
.sdfaq__grille {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(36px, 6vw, 104px); align-items: start;
}

/* ---------- Colonne d'introduction (collante sur grand écran) ---------- */
.sdfaq__intro { position: sticky; top: 104px; display: flex; flex-direction: column; gap: 22px; }
.sdfaq__chapeau { margin: 0; max-width: 36ch; color: var(--encre-douce); }

.sdfaq__plaque {
  margin-top: 14px; padding: clamp(24px, 2.6vw, 34px);
  display: flex; flex-direction: column; gap: 14px;
  color: var(--creme);
  box-shadow: 0 24px 48px -28px rgba(15,15,15,.55);
}
.sdfaq__plaque .eyebrow { color: var(--bronze-clair); }
.sdfaq__plaque-texte { margin: 0; font-size: 14px; color: rgba(236,230,222,.82); }
.sdfaq__coord { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sdfaq__coord a {
  display: inline-flex; align-items: center; gap: 12px; min-height: 32px;
  font-size: 14px; letter-spacing: .04em; text-decoration: none; color: var(--creme);
  transition: color .3s;
}
.sdfaq__coord a:hover { color: var(--bronze-clair); }
.sdfaq__coord svg { width: 15px; height: 15px; flex: none; color: var(--bronze); }

/* ---------- Liste ---------- */
.sdfaq__outils {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding-bottom: 14px;
}
.sdfaq__compte { margin: 0; font-size: 11px; font-weight: 500; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--taupe-texte); }
.sdfaq__tout {
  position: relative; padding: 8px 0; border: 0; background: none; cursor: pointer; color: var(--encre);
  font: 500 11px/1 var(--f-sans); letter-spacing: var(--track-label); text-transform: uppercase;
}
.sdfaq__tout::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--bronze);
  transform-origin: 100% 50%; transition: transform .45s var(--sdfaq-ease);
}
.sdfaq__tout:hover::after { transform: scaleX(.35); }

.sdfaq__items { border-bottom: 1px solid var(--sdfaq-filet); }
.sdfaq__item { position: relative; border-top: 1px solid var(--sdfaq-filet); scroll-margin-top: 110px; }
/* Filet bronze qui se « tire » au survol et reste tendu quand la réponse est ouverte */
.sdfaq__item::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--bronze);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .7s var(--sdfaq-ease);
}
.sdfaq__item:hover::before,
.sdfaq:not(.sdfaq--js) .sdfaq__item[open]::before,
.sdfaq__item.sdfaq--ouvert::before { transform: scaleX(1); }

.sdfaq__q {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) 40px; align-items: center; gap: 16px;
  padding: 24px 0; cursor: pointer; list-style: none;
  -webkit-tap-highlight-color: transparent;
}
.sdfaq__q::-webkit-details-marker { display: none; }
.sdfaq__q::marker { content: ""; }
.sdfaq__q:focus-visible { outline: 1px solid var(--bronze); outline-offset: -1px; }
.sdfaq__no {
  align-self: start; padding-top: .3em;
  font-size: 12px; font-weight: 500; letter-spacing: .2em; color: var(--taupe-texte);
  font-variant-numeric: tabular-nums; transition: color .4s;
}
.sdfaq__texte {
  font-size: clamp(15px, 1.25vw, 17px); font-weight: 400; line-height: 1.45; letter-spacing: .01em;
  text-wrap: pretty; transition: transform .5s var(--sdfaq-ease);
}
.sdfaq__q:hover .sdfaq__texte { transform: translateX(6px); }
.sdfaq:not(.sdfaq--js) .sdfaq__item[open] .sdfaq__no,
.sdfaq__item.sdfaq--ouvert .sdfaq__no { color: var(--encre); }

/* Plus bronze dans un carreau qui pivote en losange (motif de la marque) ; la barre verticale s'efface : moins */
.sdfaq__ico {
  position: relative; justify-self: center; width: 28px; height: 28px;
  border: 1px solid rgba(28,26,24,.32);
  transition: transform .6s var(--sdfaq-ease), background-color .4s, border-color .4s;
}
.sdfaq__ico::before, .sdfaq__ico::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1px; margin: -.5px 0 0 -6px;
  background: var(--encre); transition: transform .6s var(--sdfaq-ease), background-color .4s;
}
.sdfaq__ico::after { transform: rotate(90deg); }
.sdfaq__q:hover .sdfaq__ico { border-color: var(--encre); }
.sdfaq:not(.sdfaq--js) .sdfaq__item[open] .sdfaq__ico,
.sdfaq__item.sdfaq--ouvert .sdfaq__ico { transform: rotate(45deg); background-color: var(--encre); border-color: var(--encre); }
.sdfaq:not(.sdfaq--js) .sdfaq__item[open] .sdfaq__ico::before,
.sdfaq__item.sdfaq--ouvert .sdfaq__ico::before { transform: rotate(-45deg); background: var(--bronze-clair); }
.sdfaq:not(.sdfaq--js) .sdfaq__item[open] .sdfaq__ico::after,
.sdfaq__item.sdfaq--ouvert .sdfaq__ico::after { transform: rotate(-45deg) scaleX(0); background: var(--bronze-clair); }

.sdfaq__corps { padding: 0 56px 30px 60px; }
.sdfaq__corps p { margin: 0; max-width: 62ch; font-size: 15px; line-height: 1.75; color: var(--encre-douce); }
.sdfaq--js .sdfaq__corps { overflow: hidden; }

/* Apparition au défilement (posée par faq.js seulement si la section est sous la ligne de flottaison) */
.sdfaq--rv .sdfaq__item, .sdfaq--rv .sdfaq__outils { opacity: 0; transform: translateY(16px); }
.sdfaq--rv.sdfaq--vu .sdfaq__item, .sdfaq--rv.sdfaq--vu .sdfaq__outils {
  opacity: 1; transform: none;
  transition: opacity .8s ease, transform .9s var(--sdfaq-ease);
  transition-delay: var(--sdfaq-d, 0s);
}

/* ---------- Tablette et téléphone : une seule colonne, la plaque passe sous la liste ---------- */
@media (max-width: 960px) {
  .sdfaq__grille { display: flex; flex-direction: column; gap: 22px; }
  .sdfaq__intro { display: contents; }
  .sdfaq__liste { order: 1; margin-top: 14px; }
  .sdfaq__plaque { order: 2; margin-top: 26px; }
  .sdfaq__chapeau { max-width: 52ch; }
}
@media (max-width: 640px) {
  .sdfaq::before { width: 78vw; background-size: 44px 44px; }
  .sdfaq__q { grid-template-columns: 30px minmax(0, 1fr) 40px; gap: 10px; padding-block: 20px; }
  .sdfaq__q:hover .sdfaq__texte { transform: none; }
  .sdfaq__no { font-size: 11px; letter-spacing: .14em; }
  .sdfaq__corps { padding: 0 0 26px 40px; }
  .sdfaq__corps p { font-size: 14.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .sdfaq--rv .sdfaq__item, .sdfaq--rv .sdfaq__outils { opacity: 1; transform: none; }
}


/* =========================================================
   Composant : legal
   ========================================================= */
/* =========================================================
   Pages légales (politique-confidentialite.html, avis-legal.html)
   + avis de consentement du formulaire de contact.
   Préfixe « lg- » ; seule exception : .a-confirmer (nom imposé).
   Réutilise les jetons de styles.css (--encre, --creme, --bronze…).
   ========================================================= */

/* ---------- Bannière ---------- */
.lg-heros h1 { font-size: clamp(22px, 2.4vw, 36px); hyphens: none; }
.lg-heros__meta {
  display: flex; flex-wrap: wrap; gap: 14px 0; margin: 8px 0 0; padding: 0;
}
.lg-heros__meta > div { display: flex; flex-direction: column; gap: 4px; padding-right: clamp(18px, 2.4vw, 36px); margin-right: clamp(18px, 2.4vw, 36px); border-right: 1px solid rgba(201,187,174,.2); }
.lg-heros__meta > div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.lg-heros__meta dt { font-size: 10px; font-weight: 500; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--sable); }
.lg-heros__meta dd { margin: 0; font-size: 13px; color: var(--creme); }
.lg-heros__meta a { text-decoration: none; border-bottom: 1px solid rgba(217,191,163,.5); transition: color .3s, border-color .3s; }
.lg-heros__meta a:hover { color: var(--bronze-clair); border-color: var(--bronze-clair); }

/* ---------- Corps ---------- */
.lg { background: var(--creme); color: var(--encre); padding-block: clamp(48px, 7vw, 112px) clamp(64px, 8vw, 128px); }
.lg__grille { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }

/* ---------- Sommaire (mobile d'abord : bloc repliable) ---------- */
.lg-toc { position: relative; margin-bottom: clamp(36px, 6vw, 56px); border-block: 1px solid rgba(28,26,24,.16); }
.lg-toc__det { margin: 0; }
.lg-toc__sum {
  display: flex; align-items: center; gap: 14px; min-height: 56px; cursor: pointer; list-style: none;
  font-size: 11px; font-weight: 500; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--encre);
}
.lg-toc__sum::-webkit-details-marker { display: none; }
.lg-toc__sum::marker { content: ""; }
.lg-toc__compte { color: var(--taupe-texte); font-weight: 400; letter-spacing: .14em; }
.lg-toc__chevron { width: 16px; height: 16px; margin-left: auto; transition: transform .35s ease; }
.lg-toc__det[open] .lg-toc__chevron { transform: rotate(180deg); }
.lg-toc__liste { list-style: none; margin: 0; padding: 0 0 14px; counter-reset: none; }
.lg-toc__liste a {
  display: flex; align-items: baseline; gap: 14px; min-height: 44px; padding-block: 11px;
  font-size: 13px; line-height: 1.45; text-decoration: none; color: var(--encre-douce);
  border-top: 1px solid rgba(28,26,24,.08); transition: color .3s;
}
.lg-toc__no { flex: none; width: 2.2em; font-size: 10px; font-weight: 500; letter-spacing: .16em; color: var(--taupe-texte); transition: color .3s; }
.lg-toc__liste a:hover { color: var(--encre); }
.lg-toc__liste a[aria-current] { color: var(--encre); }
.lg-toc__liste a[aria-current] .lg-toc__no { color: var(--bronze); }
.lg-toc__rail { display: none; }

/* ---------- Texte ---------- */
.lg-texte { min-width: 0; max-width: 68ch; font-size: 16px; line-height: 1.8; color: var(--encre-douce); }
.lg-texte p { margin: 0 0 1.1em; }
.lg-texte p:last-child { margin-bottom: 0; }
.lg-texte em { font-style: italic; }
.lg-texte a:not(.btn) {
  color: var(--encre); text-decoration: underline; text-decoration-color: var(--bronze);
  text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color .3s, text-decoration-color .3s;
}
.lg-texte a:not(.btn):hover { color: var(--taupe-texte); text-decoration-color: var(--encre); }
.lg-ext { display: inline-block; margin-left: .25em; font-size: .8em; text-decoration: none; }
.lg-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.lg-sec { padding-top: clamp(40px, 5vw, 64px); margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid rgba(28,26,24,.14); scroll-margin-top: 96px; }
.lg-sec:first-child, .lg-bref + .lg-sec { margin-top: 0; padding-top: 0; border-top: 0; }
.lg-sec:focus { outline: none; }
.lg-sec__titre {
  display: flex; flex-direction: column; gap: 14px; margin: 0 0 26px;
  font-size: clamp(15px, 1.3vw, 17px); font-weight: 400; line-height: 1.5; letter-spacing: .2em; text-transform: uppercase; color: var(--encre);
  text-wrap: balance;
}
.lg-sec__no { display: flex; align-items: center; gap: 14px; font-size: 11px; font-weight: 500; letter-spacing: .2em; color: var(--taupe-texte); }
.lg-sec__no::after { content: ""; width: 32px; height: 1px; background: var(--bronze); }
.lg-texte h3 { margin: 34px 0 12px; font-size: 11px; font-weight: 500; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--encre); }
.lg-texte ul { list-style: none; margin: 0 0 1.1em; padding: 0; }
.lg-texte ul li { position: relative; padding-left: 24px; margin-bottom: .35em; }
.lg-texte ul li::before {
  content: ""; position: absolute; left: 2px; top: .78em; width: 5px; height: 5px;
  border: 1px solid var(--bronze); transform: rotate(45deg);
}
.lg-chapeau { font-size: clamp(17px, 1.5vw, 19px); font-weight: 300; line-height: 1.6; color: var(--encre); }
.lg-note { padding: 4px 0 4px 20px; border-left: 1px solid var(--bronze); font-size: 14px; line-height: 1.7; }
.lg-date { margin-top: 28px !important; font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--taupe-texte); }

/* Fiche (coordonnées, prestataires, durées) */
.lg-fiche { margin: 8px 0 1.4em; padding: 0; border-bottom: 1px solid rgba(28,26,24,.12); }
.lg-fiche > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding-block: 14px; border-top: 1px solid rgba(28,26,24,.12); }
.lg-fiche dt { font-size: 10.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--taupe-texte); line-height: 1.6; }
.lg-fiche dd { margin: 0; font-size: 15px; line-height: 1.6; color: var(--encre); overflow-wrap: anywhere; }

/* Droits */
.lg-texte ul.lg-droits { counter-reset: lg-droit; border-bottom: 1px solid rgba(28,26,24,.12); }
.lg-texte ul.lg-droits li { counter-increment: lg-droit; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; margin: 0; padding: 16px 0 16px 44px; border-top: 1px solid rgba(28,26,24,.12); }
.lg-texte ul.lg-droits li::before {
  content: counter(lg-droit, lower-alpha); top: 16px; left: 0; width: 26px; height: 26px; transform: none;
  border: 1px solid rgba(184,155,127,.7); border-radius: 50%;
  display: grid; place-items: center; font-size: 11px; line-height: 1; color: var(--taupe-texte);
}
.lg-droits strong { font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--encre); line-height: 1.8; }
.lg-droits span { font-size: 15px; line-height: 1.7; }

/* En bref : carte en marbre noir */
/* Le fond en marbre vient de la classe .pierre de styles.css (chemin d'image relatif à styles.css) */
.lg-bref { --marbre-pos: 30% 40%; margin-bottom: clamp(48px, 6vw, 72px); padding: clamp(26px, 4vw, 44px); color: var(--creme); background-color: var(--charbon); }
.lg-bref__titre { display: flex; align-items: center; gap: 16px; margin: 0 0 22px; font-size: 11px; font-weight: 500; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--sable); }
.lg-bref__titre::after { content: ""; flex: 0 0 40px; height: 1px; background: var(--bronze); }
.lg-texte ul.lg-bref__grille { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 0; }
.lg-texte ul.lg-bref__grille li { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 18px 0; border-top: 1px solid rgba(201,187,174,.16); }
.lg-texte ul.lg-bref__grille li::before { display: none; }
.lg-bref strong { font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--bronze-clair); }
.lg-bref span { font-size: 14px; line-height: 1.65; color: rgba(236,230,222,.84); }
.lg-texte .lg-bref a { color: var(--creme); text-decoration-color: var(--bronze-clair); }
.lg-texte .lg-bref a:hover { color: var(--bronze-clair); }

/* Fin de page */
.lg-fin { margin-top: clamp(56px, 7vw, 88px); padding-top: clamp(32px, 4vw, 44px); border-top: 1px solid var(--encre); display: flex; flex-direction: column; gap: 12px; }
.lg-fin .eyebrow { margin: 0; }
.lg-texte .lg-fin__txt { margin: 0 0 14px; font-size: clamp(18px, 1.7vw, 22px); font-weight: 300; line-height: 1.5; color: var(--encre); }
.lg-fin__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.lg-fin__actions .btn { text-transform: none; letter-spacing: .08em; font-size: 13px; }
.lg-texte a.lg-fin__lien {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 11px; font-weight: 500; letter-spacing: var(--track-label); text-transform: uppercase; text-decoration: none; color: var(--encre);
  background: linear-gradient(var(--bronze), var(--bronze)) 0 calc(100% - 10px) / 100% 1px no-repeat;
}
.lg-texte a.lg-fin__lien:hover { color: var(--taupe-texte); }

/* ---------- Mentions à confirmer (visibles, discrètes mais claires) ---------- */
.a-confirmer {
  display: inline; padding: .08em .45em; border-radius: 2px;
  font-size: .86em; font-weight: 500; letter-spacing: .02em; line-height: 1.5; text-transform: none;
  color: #6b4f37; background: rgba(184,155,127,.2); outline: 1px dashed rgba(122,106,90,.55); outline-offset: -1px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.pierre .a-confirmer, .lg-bref .a-confirmer { color: var(--bronze-clair); background: rgba(217,191,163,.1); outline-color: rgba(217,191,163,.45); }

/* ---------- Avis de consentement du formulaire ---------- */
.lg-consent {
  grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 12px; margin: 0; max-width: 64ch;
  font-size: 13px; line-height: 1.65; color: var(--encre-douce);
}
.lg-consent__ico { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--taupe); }
.lg-consent a { color: var(--encre); text-decoration: underline; text-decoration-color: var(--bronze); text-underline-offset: 3px; }
.lg-consent a:hover { color: var(--taupe-texte); }

/* ---------- Tablette ---------- */
@media (min-width: 640px) {
  .lg-fiche > div { grid-template-columns: 11.5em minmax(0, 1fr); gap: 24px; align-items: baseline; }
  .lg-texte ul.lg-bref__grille { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 3.4vw, 44px); }
  .lg-texte ul.lg-droits li { grid-template-columns: 12.5em minmax(0, 1fr); gap: 24px; align-items: baseline; }
  .lg-texte ul.lg-droits li::before { top: 13px; }
}

/* ---------- Bureau : sommaire collant à gauche, rail de lecture ---------- */
@media (min-width: 961px) {
  .lg__grille { grid-template-columns: minmax(200px, 3fr) minmax(0, 8fr); column-gap: clamp(48px, 7vw, 112px); align-items: start; }
  .lg-toc {
    position: sticky; top: 112px; margin: 0; border: 0; padding-left: 22px;
    max-height: calc(100vh - 140px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
  }
  .lg-toc::-webkit-scrollbar { display: none; }
  .lg-toc__sum { min-height: 0; padding-bottom: 18px; cursor: default; pointer-events: none; }
  .lg-toc__chevron { display: none; }
  .lg-toc__liste { padding: 0; }
  .lg-toc__liste a { position: relative; min-height: 0; padding-block: 8px; border-top: 0; font-size: 12px; }
  .lg-toc__liste a::before {
    content: ""; position: absolute; left: -22px; top: 50%; width: 0; height: 1px; background: var(--bronze);
    transition: width .35s ease;
  }
  .lg-toc__liste a[aria-current]::before { width: 12px; }
  .lg-toc__rail { display: block; position: absolute; left: 0; top: 4px; bottom: 4px; width: 1px; background: rgba(28,26,24,.14); }
  .lg-toc__rail i { position: absolute; inset: 0; background: var(--bronze); transform-origin: 50% 0; transform: scaleY(var(--lg-p, 0)); }
}

@media (max-width: 520px) {
  .lg-heros__meta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 20px; }
  .lg-heros__meta > div { border: 0; margin: 0; padding: 0; }
  .lg-heros__meta > div:last-child { grid-column: 1 / -1; }
  .lg-texte { font-size: 15.5px; }
  .lg-fin__actions .btn { width: 100%; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  .lg-toc__chevron, .lg-toc__liste a, .lg-toc__liste a::before, .lg-toc__no { transition: none; }
}

/* Reflet des boutons : une seule fois, au survol */
.btn--plein:hover::before { animation: reflet-survol .8s ease-out; }
@keyframes reflet-survol { from { left: -60%; } to { left: 130%; } }

/* Barre d'action mobile : Appeler / Soumission */
.barre-action { display: none; }
@media (max-width: 960px) {
  .barre-action {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1fr;
    padding-bottom: env(safe-area-inset-bottom); background: rgba(15,15,15,.94); backdrop-filter: blur(8px);
    border-top: 1px solid rgba(184,155,127,.3); transition: transform .4s ease;
  }
  .barre-action a { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--creme); }
  .barre-action a + a { background: var(--sable); color: var(--encre); }
  .barre-action svg { width: 16px; height: 16px; }
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
  html.menu-ouvert .barre-action, .barre-action.cachee { transform: translateY(110%); }
}


/* ===== Formulaire de soumission (brf-) ===== */
/* =========================================================
   Formulaire « brief » de contact (préfixe brf-)
   Bande claire .contact (fond crème, encre) ; reprend les jetons de styles.css.
   ========================================================= */
.brf {
  --brf-ligne: rgba(28,26,24,.22);
  --brf-ligne-forte: rgba(28,26,24,.42);
  --brf-erreur: #9a3b2a;         /* brique sourde : 6,4:1 sur --creme */
  --brf-fond-doux: var(--creme-2);
  position: relative; min-width: 0; align-self: start;
  color: var(--encre);
  scroll-margin-top: 96px;
}
.brf-vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.brf-req { color: var(--taupe-texte); font-weight: 500; margin-left: 2px; }

/* ---------- Tête ---------- */
.brf-tete { display: grid; gap: 10px; margin-bottom: clamp(26px, 3vw, 36px); }
.brf-tete__note { margin: 0; font-size: 13px; color: var(--encre-douce); }
.brf-jauge { position: relative; height: 1px; background: var(--brf-ligne); margin-top: 8px; overflow: hidden; }
.brf-jauge__barre {
  position: absolute; inset: 0; background: var(--bronze);
  transform: scaleX(var(--brf-p, 0)); transform-origin: 0 50%;
  transition: transform .8s cubic-bezier(.2,.7,.1,1);
}

/* ---------- Carte « Composition choisie » ---------- */
.brf-compo {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: start;
  margin-bottom: clamp(28px, 3.4vw, 40px); padding: 20px 20px 20px 22px;
  background: var(--charbon); color: var(--creme);
  border-left: 2px solid var(--bronze);
  animation: brf-entre .7s cubic-bezier(.2,.7,.1,1) both;
}
.brf-compo__motif { display: grid; grid-template-columns: repeat(2, 13px); gap: 3px; padding-top: 4px; }
.brf-compo__motif i { display: block; width: 13px; height: 13px; background: var(--bronze); opacity: .9; }
.brf-compo__motif i:nth-child(2), .brf-compo__motif i:nth-child(3) { background: var(--sable); opacity: .55; }
.brf-compo__titre { margin: 0 0 6px; font-size: 11px; font-weight: 500; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--bronze-clair); }
.brf-compo__texte { margin: 0; font-size: 15px; line-height: 1.6; color: var(--creme); overflow-wrap: anywhere; }
.brf-compo__aide { margin: 8px 0 0; font-size: 12px; color: rgba(236,230,222,.72); }
.brf-compo__aide a { color: var(--bronze-clair); text-underline-offset: 3px; }
.brf-compo__aide a:hover { color: var(--creme); }
.brf-compo__retirer {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; margin: -10px -10px 0 0;
  font: 500 10px/1 var(--f-sans); letter-spacing: .18em; text-transform: uppercase;
  color: rgba(236,230,222,.8); background: transparent; border: 1px solid transparent; cursor: pointer;
  transition: color .3s, border-color .3s;
}
.brf-compo__retirer svg { width: 16px; height: 16px; }
.brf-compo__retirer:hover { color: var(--creme); border-color: rgba(201,187,174,.35); }
.brf-compo__retirer:focus-visible { outline-color: var(--bronze-clair); outline-offset: 0; }

/* ---------- Blocs numérotés ---------- */
.brf-form { display: grid; gap: clamp(34px, 4vw, 48px); }
.brf-bloc, .brf-groupe { border: 0; margin: 0; padding: 0; min-width: 0; }
.brf-bloc { display: grid; gap: 26px; }
.brf-bloc__titre {
  display: flex; align-items: center; gap: 16px; width: 100%; padding: 0 0 14px; margin: 0;
  border-bottom: 1px solid var(--brf-ligne);
  font-size: 13px; font-weight: 400; letter-spacing: var(--track-titre); text-transform: uppercase; color: var(--encre);
  float: left; /* un <legend> flottant devient un élément de grille ordinaire (espacement par gap, largeur fiable) */
}
.brf-bloc__no { font-size: 11px; font-weight: 500; letter-spacing: .14em; color: var(--taupe-texte); font-variant-numeric: tabular-nums; }
.brf-bloc__no::after { content: ""; display: inline-block; width: 18px; height: 1px; margin: 0 0 3px 12px; background: var(--bronze); vertical-align: middle; }

.brf-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 28px; }

/* ---------- Champs ---------- */
.brf-champ { position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.brf-champ > label, .brf-etiquette {
  font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--encre-douce);
}
.brf-etiquette { display: block; padding: 0; margin-bottom: 14px; }
.brf-etiquette__aide { margin-left: 8px; font-weight: 400; letter-spacing: .04em; text-transform: none; color: var(--taupe-texte); }

.brf input[type="text"], .brf input[type="email"], .brf input[type="tel"], .brf select, .brf textarea {
  width: 100%; min-height: 46px; padding: 10px 0; margin: 0;
  font: 400 16px/1.5 var(--f-sans); color: var(--encre);
  background: transparent linear-gradient(var(--bronze), var(--bronze)) 0 100% / 0 1px no-repeat;
  border: 0; border-bottom: 1px solid var(--brf-ligne-forte); border-radius: 0;
  -webkit-appearance: none; appearance: none; color-scheme: light;
  transition: background-size .5s cubic-bezier(.2,.7,.1,1), border-color .3s;
}
.brf textarea { min-height: 128px; resize: vertical; line-height: 1.65; }
.brf ::placeholder { color: rgba(74,67,60,.55); opacity: 1; }
.brf input:hover, .brf select:hover, .brf textarea:hover { border-bottom-color: var(--encre-douce); }
.brf input[type="text"]:focus, .brf input[type="email"]:focus, .brf input[type="tel"]:focus, .brf select:focus, .brf textarea:focus {
  outline: none; background-size: 100% 2px; border-bottom-color: transparent;
}
.brf input:focus-visible, .brf select:focus-visible, .brf textarea:focus-visible { outline: none; }

.brf-select { position: relative; }
.brf-select::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 7px; height: 7px; margin-top: -6px;
  border-right: 1px solid var(--encre-douce); border-bottom: 1px solid var(--encre-douce); transform: rotate(45deg); pointer-events: none;
}
.brf select { padding-right: 28px; cursor: pointer; }
.brf select:invalid, .brf select.brf-vide { color: rgba(74,67,60,.7); }

.brf-aide { margin: 0; font-size: 12px; line-height: 1.5; color: var(--taupe-texte); }
.brf-aide--fin { text-align: right; font-variant-numeric: tabular-nums; }

/* Superficie : nombre + unité */
.brf-surface { display: flex; align-items: flex-end; gap: 14px; }
.brf-surface input { flex: 1 1 auto; min-width: 0; }
.brf-unites { display: inline-flex; flex: none; border: 1px solid var(--brf-ligne-forte); }
.brf-unites label { position: relative; display: block; cursor: pointer; }
.brf-unites input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.brf-unites span {
  display: grid; place-items: center; min-width: 50px; height: 44px; padding: 0 12px;
  font-size: 13px; letter-spacing: .06em; color: var(--encre-douce); transition: background .3s, color .3s;
}
.brf-unites label + label span { border-left: 1px solid var(--brf-ligne-forte); }
.brf-unites input:checked + span { background: var(--encre); color: var(--creme); }
.brf-unites input:focus-visible + span { outline: 1px solid var(--bronze); outline-offset: 3px; }

/* ---------- Puces (cases à cocher / radios) ---------- */
.brf-puces { display: flex; flex-wrap: wrap; gap: 10px; }
.brf-puce { position: relative; display: block; cursor: pointer; }
.brf-puce input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.brf-puce span {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px;
  font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--encre);
  border: 1px solid var(--brf-ligne-forte); background: transparent;
  transition: background .35s, color .35s, border-color .35s;
}
.brf-puce span::before {
  content: ""; width: 7px; height: 7px; flex: none; border: 1px solid currentColor; opacity: .55;
  transform: rotate(45deg) scale(.85); transition: background .35s, border-color .35s, opacity .35s, transform .45s cubic-bezier(.2,.7,.1,1);
}
.brf-puce:hover span { border-color: var(--encre); }
.brf-puce input:checked + span { background: var(--encre); color: var(--creme); border-color: var(--encre); }
.brf-puce input:checked + span::before { background: var(--bronze); border-color: var(--bronze); opacity: 1; transform: rotate(225deg) scale(1); }
.brf-puce input:focus-visible + span { outline: 1px solid var(--bronze); outline-offset: 3px; }

/* ---------- Options (matériaux) ---------- */
.brf-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.brf-option { position: relative; display: flex; gap: 14px; align-items: flex-start; min-height: 64px; padding: 16px; cursor: pointer;
  border: 1px solid var(--brf-ligne); background: var(--brf-fond-doux); transition: border-color .35s, background .35s; }
.brf-option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.brf-option__marque { position: relative; flex: none; width: 16px; height: 16px; margin-top: 3px; border: 1px solid var(--encre-douce); border-radius: 50%; transition: border-color .35s; }
.brf-option__marque::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--bronze); transform: scale(0); transition: transform .4s cubic-bezier(.2,.7,.1,1); }
.brf-option__txt { font-size: 14px; line-height: 1.5; color: var(--encre); }
.brf-option:hover { border-color: var(--encre-douce); }
.brf-option:has(input:checked) { border-color: var(--encre); background: #fff; box-shadow: inset 0 -2px 0 var(--bronze); }
.brf-option input:checked ~ .brf-option__marque { border-color: var(--encre); }
.brf-option input:checked ~ .brf-option__marque::after { transform: scale(1); }
.brf-option:has(input:focus-visible) { outline: 1px solid var(--bronze); outline-offset: 3px; }

/* ---------- Consentement ---------- */
.brf-consent { gap: 10px; padding: 18px 18px 16px; background: var(--pierre-clair); }
.brf-case { position: relative; display: flex; gap: 14px; align-items: flex-start; cursor: pointer; }
.brf-case input { position: absolute; left: 0; top: 0; width: 22px; height: 22px; margin: 0; opacity: 0; cursor: pointer; }
.brf-case__boite { position: relative; flex: none; width: 22px; height: 22px; margin-top: 1px; border: 1px solid var(--encre-douce); background: var(--creme-2); transition: background .3s, border-color .3s; }
.brf-case__boite::after {
  content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px;
  border-right: 1.5px solid var(--creme); border-bottom: 1.5px solid var(--creme); transform: rotate(45deg) scale(0); transition: transform .3s cubic-bezier(.2,.7,.1,1);
}
.brf-case input:checked + .brf-case__boite { background: var(--encre); border-color: var(--encre); }
.brf-case input:checked + .brf-case__boite::after { transform: rotate(45deg) scale(1); }
.brf-case input:focus-visible + .brf-case__boite { outline: 1px solid var(--bronze); outline-offset: 3px; }
.brf-case__txt { font-size: 14px; line-height: 1.6; color: var(--encre); }
.brf-consent__lien { padding-left: 36px; }
.brf-consent__lien a { color: var(--encre); text-underline-offset: 3px; display: inline-block; padding-block: 6px; }
.brf-consent__lien a:hover { color: var(--taupe-texte); }

/* ---------- Erreurs ---------- */
.brf-erreur {
  display: flex; gap: 8px; align-items: baseline; margin: 2px 0 0; font-size: 13px; line-height: 1.45; color: var(--brf-erreur);
  animation: brf-entre .45s cubic-bezier(.2,.7,.1,1) both;
}
.brf-erreur::before { content: ""; flex: none; width: 6px; height: 6px; border: 1px solid currentColor; transform: rotate(45deg) translateY(-1px); }
.brf [aria-invalid="true"] { border-bottom-color: var(--brf-erreur) !important; }
.brf-consent:has([aria-invalid="true"]) { box-shadow: inset 2px 0 0 var(--brf-erreur); }
.brf-consent:has([aria-invalid="true"]) .brf-case__boite { border-color: var(--brf-erreur); }
.brf-sommaire {
  margin: 0 0 18px; padding: 14px 16px; font-size: 14px; color: var(--brf-erreur);
  background: rgba(154,59,42,.07); border-left: 2px solid var(--brf-erreur);
}

/* ---------- Envoi ---------- */
.brf-envoi { padding-top: 6px; }
.brf-bouton {
  justify-content: space-between; gap: 28px; min-height: 54px; padding: 18px 26px;
  background: var(--encre); color: var(--creme); border-color: var(--encre);
}
.brf-bouton:hover { background: var(--bronze); border-color: var(--bronze); color: var(--noir); }
.brf-bouton svg { width: 14px; height: 14px; }
.brf-bouton--ligne { background: transparent; color: var(--encre); border-color: var(--encre); justify-content: center; }
.brf-bouton--ligne:hover { background: var(--encre); color: var(--creme); border-color: var(--encre); }
.brf-envoi__note { display: flex; gap: 12px; align-items: flex-start; max-width: 54ch; margin: 18px 0 0; font-size: 13px; line-height: 1.6; color: var(--encre-douce); }
.brf-envoi__note svg { flex: none; width: 15px; height: 15px; margin-top: 3px; color: var(--taupe); }

/* ---------- Confirmation ---------- */
.brf-merci { position: relative; display: grid; gap: 18px; animation: brf-entre .8s cubic-bezier(.2,.7,.1,1) both; }
.brf-merci__motif { display: grid; grid-template-columns: repeat(3, 12px); gap: 3px; margin-bottom: 6px; }
.brf-merci__motif i { display: block; width: 12px; height: 12px; background: var(--bronze); opacity: 0; transform: scale(.6);
  animation: brf-pose .5s cubic-bezier(.2,.7,.1,1) forwards; animation-delay: calc(var(--i, 0) * 70ms + .15s); }
.brf-merci__motif i:nth-child(1) { --i: 0; } .brf-merci__motif i:nth-child(2) { --i: 1; } .brf-merci__motif i:nth-child(4) { --i: 2; }
.brf-merci__motif i:nth-child(3) { --i: 3; } .brf-merci__motif i:nth-child(5) { --i: 4; background: var(--encre); } .brf-merci__motif i:nth-child(7) { --i: 5; }
.brf-merci__motif i:nth-child(6) { --i: 6; } .brf-merci__motif i:nth-child(8) { --i: 7; } .brf-merci__motif i:nth-child(9) { --i: 8; }
.brf-merci__motif i:nth-child(even) { background: var(--sable); }
.brf-merci__titre {
  margin: 0; font-weight: 300; text-transform: uppercase; letter-spacing: .2em; line-height: 1.4;
  font-size: clamp(20px, 2.4vw, 28px); text-wrap: balance;
}
.brf-merci__titre:focus { outline: none; }
.brf-merci__texte { margin: 0; max-width: 58ch; color: var(--encre-douce); font-size: 14px; }
.brf-merci__texte a { color: var(--encre); text-underline-offset: 3px; overflow-wrap: anywhere; }

.brf-resume { margin-top: 6px; padding: clamp(18px, 2.4vw, 26px); background: var(--creme-2); border-top: 2px solid var(--bronze); }
.brf-resume__titre { margin: 0 0 14px; font-size: 11px; font-weight: 500; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--taupe-texte); }
.brf-resume__liste { display: grid; grid-template-columns: minmax(120px, auto) minmax(0, 1fr); margin: 0; font-size: 14px; }
.brf-resume__liste dt, .brf-resume__liste dd { margin: 0; padding: 9px 0; border-top: 1px solid var(--brf-ligne); }
.brf-resume__liste dt:first-of-type, .brf-resume__liste dt:first-of-type + dd { border-top: 0; }
.brf-resume__liste dt { padding-right: 18px; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--encre-douce); padding-top: 11px; }
.brf-resume__liste dd { color: var(--encre); white-space: pre-line; overflow-wrap: anywhere; }

.brf-merci__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.brf-copie { margin: 0; min-height: 1.5em; font-size: 13px; color: var(--taupe-texte); }
.brf-merci__alt { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding-top: 18px; border-top: 1px solid var(--brf-ligne); }
.brf-merci__alt p { margin: 0; font-size: 13px; color: var(--encre-douce); }
.brf-tel { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 18px; font-weight: 400; letter-spacing: .08em; color: var(--encre); text-decoration: none; transition: color .3s; }
.brf-tel svg { width: 16px; height: 16px; color: var(--bronze); }
.brf-tel:hover { color: var(--taupe-texte); }
.brf-modifier {
  justify-self: start; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0; margin-top: 4px;
  font: 500 11px/1 var(--f-sans); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--encre-douce);
  background: none; border: 0; cursor: pointer; transition: color .3s;
}
.brf-modifier svg { width: 14px; height: 14px; transition: transform .3s; }
.brf-modifier:hover { color: var(--encre); }
.brf-modifier:hover svg { transform: translateX(-4px); }

@keyframes brf-entre { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes brf-pose { to { opacity: 1; transform: none; } }

/* ---------- Téléphone ---------- */
@media (max-width: 720px) {
  .brf-options { grid-template-columns: 1fr; }
  .brf-option { min-height: 56px; padding: 15px 16px; }
}
@media (max-width: 560px) {
  .brf-grille { grid-template-columns: 1fr; gap: 22px; }
  .brf-puces:not(.brf-puces--duo) { gap: 8px; }
  .brf-puce span { padding: 0 14px; letter-spacing: .1em; }
  .brf-puces--duo { display: grid; grid-template-columns: 1fr 1fr; }
  .brf-puces--duo .brf-puce span { width: 100%; justify-content: center; }
  .brf-compo { grid-template-columns: minmax(0, 1fr) auto; padding: 18px 16px 18px 18px; gap: 12px; }
  .brf-compo__motif { display: none; }
  .brf-compo__retirer span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .brf-compo__retirer { width: 44px; justify-content: center; padding: 0; }
  .brf-bouton { width: 100%; }
  .brf-merci__actions .brf-bouton { width: 100%; }
  .brf-resume__liste { grid-template-columns: 1fr; }
  .brf-resume__liste dt { padding-bottom: 0; }
  .brf-resume__liste dd { border-top: 0; padding-top: 2px; }
  .brf-resume__liste dt:first-of-type { border-top: 0; }
  .brf-etiquette__aide { display: block; margin: 4px 0 0; }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  .brf-compo, .brf-merci, .brf-erreur { animation: none; }
  .brf-merci__motif i { animation: none; opacity: 1; transform: none; }
  .brf-jauge__barre { transition: none; }
}


/* ===== Chantier réel (Réalisations) ===== */
.chantier { background: var(--creme); color: var(--encre); padding-block: clamp(56px, 7vw, 96px) 0; }
.chantier__tete { display: grid; gap: 14px; max-width: 46ch; margin-bottom: clamp(28px, 4vw, 44px); }
.chantier__tete p:last-child { margin: 0; color: var(--encre-douce); }
.chantier__galerie .projet .cadre { aspect-ratio: 3 / 4; cursor: zoom-in; }
.chantier__projet { display: grid; gap: 22px; padding-block: clamp(28px, 4vw, 44px); border-top: 1px solid rgba(28,26,24,.14); }
.chantier__info { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 18px; align-items: baseline; }
.chantier__num { grid-row: span 2; font-size: 11px; letter-spacing: .2em; color: var(--taupe-texte); }
.chantier__info h3 { margin: 0; font-weight: 400; font-size: clamp(15px, 1.4vw, 18px); letter-spacing: .18em; text-transform: uppercase; }
.chantier__info p { margin: 0; color: var(--encre-douce); max-width: 60ch; }
.chantier__galerie--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.chantier__galerie--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 66%; }
.chantier + .realisations { padding-top: clamp(56px, 7vw, 96px); }
@media (max-width: 960px) { .chantier__galerie, .chantier__galerie--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; } .chantier__galerie--3 .projet:first-child { grid-column: 1 / -1; } .chantier__galerie--3 .projet:first-child .cadre { aspect-ratio: 4 / 3; } }

/* Accroche du pied de page (remplace le sous-titre sous le logo) */
.pied__accroche { margin: 18px 0 0; max-width: 30ch; font-size: 13px; line-height: 1.6; opacity: .75; }

/* ===== Avant / après (accueil) ===== */
.avap { background: var(--creme); color: var(--encre); padding-block: clamp(56px, 7vw, 100px); }
.avap__grille { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.avap__texte { display: grid; gap: 16px; justify-items: start; }
.avap__texte > p:not(.eyebrow) { margin: 0; color: var(--encre-douce); max-width: 44ch; }
.avap__cadre { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: #2a2622; user-select: none; touch-action: pan-y; }
.avap__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; pointer-events: none; }
.avap__avant { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.avap__etiq {
  position: absolute; top: 16px; z-index: 2; padding: 8px 12px; font-size: 10px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  background: rgba(28,26,24,.72); color: var(--creme); pointer-events: none;
}
.avap__etiq--g { left: 16px; }
.avap__etiq--d { right: 16px; }
.avap__ligne { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--creme); z-index: 2; pointer-events: none; box-shadow: 0 0 12px rgba(0,0,0,.35); }
.avap__poignee {
  position: absolute; top: 50%; left: 50%; width: 54px; height: 54px; transform: translate(-50%, -50%); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; gap: 2px; background: var(--creme); color: var(--encre); box-shadow: 0 6px 24px rgba(0,0,0,.3);
}
.avap__poignee svg { width: 13px; height: 13px; }
.avap__curseur { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.avap__curseur:focus-visible + * , .avap__cadre:focus-within .avap__poignee { outline: 1px solid var(--bronze); outline-offset: 4px; }
@media (prefers-reduced-motion: no-preference) {
  .avap__cadre:not(.avap--touche) .avap__poignee { animation: avap-invite 2.6s ease-in-out 1s 2; }
  @keyframes avap-invite { 0%, 100% { transform: translate(-50%, -50%); } 30% { transform: translate(calc(-50% - 10px), -50%); } 60% { transform: translate(calc(-50% + 10px), -50%); } }
}
@media (max-width: 960px) { .avap__grille { grid-template-columns: 1fr; } }

.avap__onglets { display: flex; gap: 8px; margin: 6px 0 4px; }
.avap__onglets button {
  font: 500 11px/1 var(--f-sans); letter-spacing: .16em; text-transform: uppercase; padding: 12px 18px;
  background: transparent; color: var(--encre-douce); border: 1px solid rgba(28,26,24,.2); cursor: pointer;
}
.avap__onglets button[aria-pressed="true"] { background: var(--encre); color: var(--creme); border-color: var(--encre); }

/* ===== Démonstration de précision (Services) ===== */
.precision { background: var(--creme); color: var(--encre); padding-block: clamp(64px, 8vw, 120px); }
.pre-tete { align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.pre-tete > p { margin: 0; max-width: 46ch; color: var(--encre-douce); }
.pre-etapes { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(48px, 7vw, 110px); }
.pre-etape { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 6vw, 96px); align-items: center; }
.pre-etape--inverse .pre-photo { order: 2; }
.pre-photo { position: relative; margin: 0; aspect-ratio: 3 / 4; max-width: 480px; width: 100%; justify-self: center; }
.pre-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pre-texte { display: grid; gap: 12px; max-width: 46ch; }
.pre-num { font-size: 11px; letter-spacing: .24em; color: var(--taupe-texte); }
.pre-texte h3 { margin: 0; font-weight: 400; font-size: clamp(20px, 2.2vw, 28px); letter-spacing: .14em; text-transform: uppercase; }
.pre-texte p { margin: 0; color: var(--encre-douce); }
.pre-note { position: absolute; left: var(--x); top: var(--y); display: flex; align-items: center; gap: 10px; pointer-events: none; }
.pre-note i { position: relative; width: 12px; height: 12px; margin: -6px; border-radius: 50%; background: var(--creme); box-shadow: 0 0 0 4px rgba(236,230,222,.35), 0 2px 8px rgba(0,0,0,.4); flex: none; }
.pre-note span {
  white-space: nowrap; padding: 7px 10px; font-size: 10px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  background: rgba(28,26,24,.82); color: var(--creme); border-left: 2px solid var(--bronze);
}
.pre-note--g { flex-direction: row-reverse; left: auto; right: calc(100% - var(--x)); }
.pre-note--g span { border-left: 0; border-right: 2px solid var(--bronze); }
@media (prefers-reduced-motion: no-preference) {
  .pre-note i { transform: scale(0); transition: transform .5s cubic-bezier(.3,1.6,.5,1) calc(var(--n) * .45s + .2s); }
  .pre-note span { opacity: 0; transform: translateX(-8px); transition: opacity .6s ease calc(var(--n) * .45s + .45s), transform .6s ease calc(var(--n) * .45s + .45s); }
  .pre-note--g span { transform: translateX(8px); }
  .pre--vu .pre-note i { transform: scale(1); }
  .pre--vu .pre-note span { opacity: 1; transform: none; }
  .pre--vu .pre-note i::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--creme); animation: pre-onde 2.4s ease-out calc(var(--n) * .45s + .6s) 2; opacity: 0; }
  @keyframes pre-onde { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.2); opacity: 0; } }
}
@media (max-width: 960px) {
  .pre-etape { grid-template-columns: 1fr; }
  .pre-etape--inverse .pre-photo { order: 0; }
  .pre-note span { font-size: 9px; padding: 6px 8px; letter-spacing: .1em; }
}

/* Anatomie sur téléphone : laisser la place à la barre d'actions fixée en bas (Appeler / Soumission) */
@media (max-width: 960px) {
  .anat--pilote .anat__scene { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px) + 14px); }
  .anat--pilote .anat__svg { max-height: 38svh; }
  .anat--pilote .anat__texte { min-height: 0; }
}
@media (max-width: 960px) and (max-height: 700px) {
  .anat--pilote .anat__svg { max-height: 32svh; }
  .anat--pilote .anat__desc { font-size: 13px; line-height: 1.5; }
}

/* Vérification avant mise en ligne */
.brf-piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lg-toc__no { color: #6b5a49; }
.e404__liens { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.evitement { position: fixed; top: 8px; left: 8px; z-index: 10000; padding: 12px 18px; background: var(--bronze); color: #0f0f0f; font-size: 13px; letter-spacing: .08em; transform: translateY(-150%); transition: transform .2s; }
.evitement:focus { transform: none; }
main:focus { outline: none; }

/* ---------- Accueil : retouches (métier, services, atelier en étapes) ---------- */
.heros__metier { margin: 0 0 22px; color: var(--bronze); font-size: 15px; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; display: flex; align-items: center; gap: 14px; }
.heros__metier::before { content: ""; width: 36px; height: 1px; background: currentColor; }
.services__tete { margin-bottom: 40px; align-items: flex-end; }
.services__tete .eyebrow { margin-bottom: 10px; }
.service h3 { font-size: 16px; }
.service p { font-size: 15px; }
.service__plus { display: inline-flex; align-items: center; gap: 10px; margin-top: auto; font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: #7a5d42; }
.service__plus svg { width: 14px; height: 14px; transition: transform .3s; }
.service:hover .service__plus svg { transform: translateX(4px); }

.atl-prog { list-style: none; margin: 0 0 6px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.atl-prog button { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px 0 0; background: none; border: 0; border-top: 2px solid rgba(255,255,255,.14); color: rgba(236,230,222,.55); font: inherit; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; text-align: left; }
.atl-prog__no { font-size: 13px; font-weight: 500; letter-spacing: 0; }
.atl-prog li.fait button { border-top-color: rgba(184,155,127,.55); color: rgba(236,230,222,.8); }
.atl-prog li.actif button { border-top-color: var(--bronze); color: #f3ede6; }
.atl-prog button:focus-visible { outline: 1px solid var(--bronze); outline-offset: 4px; }
.atl-prog__statut { margin: 10px 0 4px; color: var(--bronze); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }

.atl-etape--guidee > legend { position: relative; }
.atl-etape__ouvrir { position: absolute; inset: -10px 0; width: 100%; background: none; border: 0; cursor: pointer; }
.atl-etape__ouvrir:focus-visible { outline: 1px solid var(--bronze); outline-offset: 2px; }
.atl-etape--guidee:not(.atl-etape--ouverte) { padding: 16px 0; }
.atl-etape--guidee:not(.atl-etape--ouverte) > legend { margin-bottom: 0; opacity: .7; }
.atl-etape--guidee:not(.atl-etape--ouverte) > legend:hover { opacity: 1; }
.atl-etape--guidee:not(.atl-etape--ouverte) .atl-etape__corps { display: none; }
.atl-etape--ouverte .atl-etape__ouvrir { pointer-events: none; }
.atl-etape--faite:not(.atl-etape--ouverte) .atl-num::after { content: " ✓"; color: var(--bronze); }
.atl-suivant { margin-top: 22px; }
@media (max-width: 600px) {
  .atl-prog__nom { font-size: 9px; letter-spacing: .06em; }
  .atl-suivant { width: 100%; justify-content: center; }
  .heros__metier { font-size: 13px; letter-spacing: .26em; }
}
.atl-prog, .atl-etape { scroll-margin-top: 130px; }
.cta__in > div { flex: 1 1 280px; min-width: 0; }
@media (max-width: 960px) {
  .heros__metier { color: var(--bronze-clair); text-shadow: 0 1px 12px rgba(0,0,0,.55); }
}
.cta h2 { display: block; }
.cta h2::after { display: inline-block; vertical-align: middle; margin-left: 20px; }
/* Visite 3D : indicateur de chargement */
.visite__charge { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--sable); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.visite__charge i { width: 14px; height: 14px; border: 1px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: visite-tourne 1s linear infinite; }
@keyframes visite-tourne { to { transform: rotate(360deg); } }
.visite--prete .visite__charge, .visite--secours .visite__charge { display: none; }
.visite:not(.visite--prete) #visite-entrer { opacity: .55; }

/* Réalisations : vignettes des chantiers réels + fiche projet */
.chantier__grille { padding-bottom: clamp(40px, 5vw, 64px); }
.chantier-tuile button.cadre { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; position: relative; color: inherit; aspect-ratio: 4 / 3; }
.chantier-tuile button.cadre::after {
  content: attr(data-label); position: absolute; left: 12px; bottom: 12px; padding: 8px 12px;
  background: rgba(28,26,24,.78); color: var(--creme); font: 500 10px/1 var(--f-sans); letter-spacing: .2em; text-transform: uppercase;
  opacity: 0; transform: translateY(6px); transition: opacity .3s ease, transform .3s ease;
}
.chantier-tuile button.cadre:hover::after, .chantier-tuile button.cadre:focus-visible::after { opacity: 1; transform: none; }
.chantier-tuile figcaption { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 16px; row-gap: 6px; align-items: center; line-height: 1.5; }
.chantier-tuile figcaption::before { display: block; width: 36px; align-self: start; margin-top: .75em; }
.chantier-tuile__n { grid-column: 2; font-size: 10px; letter-spacing: .16em; color: #6b5a49; font-weight: 400; text-align: left; }
@media (max-width: 600px) { .chantier-tuile figcaption { grid-template-columns: 20px minmax(0, 1fr); column-gap: 10px; font-size: 10px; letter-spacing: .14em; } .chantier-tuile figcaption::before { width: 20px; } }
@media (hover: none) { .chantier-tuile button.cadre::after { opacity: 1; transform: none; } }
@media (max-width: 960px) { .chantier__grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

html.fiche-ouverte { overflow: hidden; }
.fiche { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: clamp(0px, 3vw, 40px); background: rgba(20,18,16,.86); opacity: 0; transition: opacity .3s ease; }
.fiche[hidden] { display: none; }
.fiche--visible { opacity: 1; }
.fiche__boite {
  position: relative; width: min(1180px, 100%); max-height: 100%; overflow: auto; background: var(--creme); color: var(--encre);
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
}
.fiche__fermer { position: absolute; top: 10px; right: 10px; z-index: 3; width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: var(--creme); color: var(--encre); cursor: pointer; border-radius: 50%; }
.fiche__fermer svg { width: 22px; height: 22px; }
.fiche__media { display: grid; gap: 10px; padding: 10px; background: var(--encre); min-width: 0; }
.fiche__photo { position: relative; margin: 0; height: min(68vh, 640px); background: #111; }
.fiche__photo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.fiche__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: rgba(245,240,232,.92); color: var(--encre); cursor: pointer; border-radius: 50%; }
.fiche__nav svg { width: 18px; height: 18px; }
.fiche__nav--g { left: 10px; } .fiche__nav--d { right: 10px; }
.fiche--une .fiche__nav, .fiche--une .fiche__vignettes { display: none; }
.fiche__vignettes { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; }
.fiche__vignettes button { flex: none; width: 76px; height: 58px; padding: 0; border: 2px solid transparent; background: none; cursor: pointer; opacity: .6; transition: opacity .2s; }
.fiche__vignettes button[aria-current="true"] { border-color: var(--bronze-clair); opacity: 1; }
.fiche__vignettes button:hover { opacity: 1; }
.fiche__vignettes img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fiche__texte { display: flex; flex-direction: column; gap: 16px; padding: clamp(28px, 3.4vw, 48px); padding-top: 64px; min-width: 0; }
.fiche__num { margin: 0; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #6b5a49; }
.fiche__titre { margin: 0; font-weight: 400; font-size: clamp(20px, 2vw, 26px); letter-spacing: .14em; text-transform: uppercase; line-height: 1.3; }
.fiche__desc { margin: 0; color: var(--encre-douce); line-height: 1.7; }
.fiche__legende { margin: 0; font-size: 13px; color: #6b5a49; }
.fiche__actions { margin-top: auto; display: grid; gap: 18px; padding-top: 12px; }
.fiche__actions .btn { justify-self: start; }
.fiche__projets { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(28,26,24,.16); padding-top: 16px; }
.fiche__projets button { border: 0; background: none; padding: 6px 0; font: 500 11px/1.4 var(--f-sans); letter-spacing: .18em; text-transform: uppercase; color: var(--encre); cursor: pointer; }
.fiche__projets button:hover { color: #7a5d42; }
@media (max-width: 860px) {
  .fiche { padding: 0; place-items: stretch; }
  .fiche__boite { grid-template-columns: 1fr; height: 100%; align-content: start; }
  .fiche__photo { height: 56vh; }
  .fiche__texte { padding: 24px 20px 32px; }
}
