/* ATELIER BARDZOUR — feuille unique.
   Direction « Ivoire & tamarin » : beaucoup de vide, des filets d'un cheveu,
   des angles vifs. Un meuble d'atelier n'a pas d'ombre portée, il a une arête.

   Les interdits, tenus partout : aucune box-shadow, aucun border-radius, aucun
   dégradé (les voiles posés sur les photos sont des aplats translucides),
   aucun style en ligne dans le HTML hors consigne de cadrage. */

/* ── Jetons ──────────────────────────────────────────────────────────────── */

:root {
  --ivoire: #f7f4ef;
  --ivoire-creuse: #efeae1;
  --ivoire-profonde: #e6dfd2;
  --encre: #17150f;
  --encre-creuse: #201d15;
  --encre-douce: #4a4437; /* texte secondaire sur ivoire — 8,1:1 */
  --tamarin: #8a5a32; /* accent, texte sur ivoire — 5,4:1 */
  --tamarin-clair: #a97848; /* accent sur fond sombre */
  --laiton: #b79256; /* filets et détails — jamais de texte, 2,3:1 */
  --filet: rgba(23, 21, 15, 0.16);
  --filet-clair: rgba(247, 244, 239, 0.22);

  --serif: "Marcellus", "Times New Roman", Times, serif;
  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;

  --marge: clamp(1.25rem, 5vw, 4rem);
  --largeur: 1280px;
  --etroit: 46rem;
  --section: clamp(4.5rem, 10vw, 8.5rem);

  --lent: 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  --vif: 0.25s ease;
}

/* ── Assises ─────────────────────────────────────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--ivoire);
  color: var(--encre-douce);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

/* L'attribut hidden ne pèse rien face à un display: posé par une classe —
   .bouton[hidden] resterait inline-block. On lui rend son autorité, une fois
   pour toutes : le JS peut alors masquer n'importe quoi avec .hidden = true. */
[hidden] {
  display: none !important;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 1px solid var(--tamarin);
  outline-offset: 3px;
}

.saut {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--encre);
  color: var(--ivoire);
  padding: 0.85rem 1.4rem;
  text-decoration: none;
}
.saut:focus {
  left: 0;
}

/* ── Rythme et utilitaires ───────────────────────────────────────────────── */

.enveloppe {
  width: 100%;
  max-width: var(--largeur);
  margin: 0 auto;
  padding-inline: var(--marge);
}
.enveloppe--etroite {
  max-width: calc(var(--etroit) + 2 * var(--marge));
}

.section {
  padding-block: var(--section);
}

.surtitre {
  margin: 0 0 1.4rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--tamarin);
}
.surtitre::before {
  content: "";
  display: inline-block;
  width: 2.2rem;
  height: 1px;
  margin-right: 0.9rem;
  vertical-align: 0.28em;
  background: var(--laiton);
}
.surtitre--clair {
  color: var(--tamarin-clair);
}

.titre {
  margin: 0 0 1.6rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.6vw, 3.1rem);
  line-height: 1.14;
  letter-spacing: -0.005em;
  color: var(--encre);
  max-width: 22ch;
}
.titre--centre {
  margin-inline: auto;
  text-align: center;
  max-width: 24ch;
}
.titre--clair {
  color: var(--ivoire);
}

.texte {
  margin: 0 0 1.2rem;
  max-width: 62ch;
}
.texte p {
  margin: 0 0 1.15rem;
}
.texte p:last-child {
  margin-bottom: 0;
}
.texte--centre {
  margin-inline: auto;
  text-align: center;
}
.texte--etroit {
  max-width: 54ch;
}

.section > .enveloppe > .surtitre + .titre--centre {
  margin-top: -0.4rem;
}
.section > .enveloppe > .surtitre:has(+ .titre--centre) {
  text-align: center;
}

/* ── Boutons ─────────────────────────────────────────────────────────────── */

.bouton {
  display: inline-block;
  padding: 0.95rem 1.7rem;
  border: 1px solid var(--encre);
  background: transparent;
  color: var(--encre);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--vif), color var(--vif), border-color var(--vif);
}
.bouton--plein {
  background: var(--encre);
  color: var(--ivoire);
}
.bouton--plein:hover {
  background: var(--tamarin);
  border-color: var(--tamarin);
}
.bouton--fantome:hover {
  background: var(--encre);
  color: var(--ivoire);
}
.bouton[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ── Clichés ── Tant qu'une photo manque, sa figure porte la consigne de
   cadrage : la mise en page ne bouge pas quand l'image arrive. ─────────────── */

.cliche {
  position: relative;
  margin: 0;
  background: var(--ivoire-profonde);
  overflow: hidden;
  aspect-ratio: var(--ratio, 3 / 2);
}
.cliche img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.cliche--zoom:hover img {
  transform: scale(1.04);
}
.cliche--portrait {
  --ratio: 4 / 5;
}
.cliche--carre {
  --ratio: 1 / 1;
}
.cliche--absent img {
  display: none;
}
.cliche--absent::before {
  content: "";
  position: absolute;
  inset: 0.7rem;
  border: 1px solid rgba(23, 21, 15, 0.2);
}
.cliche--absent::after {
  content: attr(data-cadre);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.8rem;
  text-align: center;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.9;
  color: rgba(23, 21, 15, 0.6);
}

/* ── En-tête ─────────────────────────────────────────────────────────────── */

.entete {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--ivoire);
  border-bottom: 1px solid var(--filet);
}
.entete__barre {
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 1.05rem var(--marge);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.entete__marque {
  text-decoration: none;
  display: grid;
  gap: 0.1rem;
}
.entete__nom {
  font-family: var(--serif);
  font-size: 1.28rem;
  line-height: 1.1;
  color: var(--encre);
}
.entete__mention {
  font-size: 0.63rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tamarin);
}
.entete__nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2rem);
}
.lien-nav {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: var(--encre-douce);
  padding-block: 0.3rem;
  border-bottom: 1px solid transparent;
  transition: color var(--vif), border-color var(--vif);
}
.lien-nav:hover {
  color: var(--encre);
  border-bottom-color: var(--laiton);
}
.entete__tel {
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--encre);
  white-space: nowrap;
}
.entete__bascule,
.entete__ferme {
  display: none;
  background: transparent;
  border: 1px solid var(--encre);
  padding: 0.6rem 1.1rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

/* ── Hero ── Les mots à gauche, la scène à droite. Sans JS ni animation, la
   photo et les mots sont déjà en place : le tracé n'est qu'un préambule. ───── */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: stretch;
  min-height: min(86vh, 820px);
  border-bottom: 1px solid var(--filet);
  position: relative;
}

.hero__scene {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  overflow: hidden;
  background: var(--ivoire-creuse);
}
.hero__cliche {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
  background: var(--ivoire-creuse);
}
.hero__cadre {
  position: absolute;
  inset: 1.4rem;
  border: 1px solid rgba(183, 146, 86, 0.55);
  pointer-events: none;
  z-index: 3;
}

.hero__plan {
  display: none; /* n'existe que si le script a pu poser .html-js */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}
.html-js .hero__plan {
  display: block;
}
.trace {
  fill: none;
  stroke-linecap: square;
  stroke-linejoin: miter;
  vector-effect: non-scaling-stroke;
}
.hero__murs .trace {
  stroke: var(--encre);
  stroke-width: 2.2;
}
.hero__meubles .trace {
  stroke: var(--tamarin);
  stroke-width: 1.6;
}
.hero__cotes .trace {
  stroke: var(--laiton);
  stroke-width: 1.1;
}
.trace-mot {
  fill: var(--encre-douce);
  font-family: var(--sans);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.hero__mots {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  padding: clamp(3rem, 7vw, 6rem) clamp(2rem, 4vw, 4rem) clamp(3rem, 7vw, 6rem) var(--marge);
}
.hero__lieu {
  margin: 0 0 1.5rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--tamarin);
}
.hero__titre {
  margin: 0 0 1.6rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.3rem, 4.4vw, 3.9rem);
  line-height: 1.08;
  letter-spacing: -0.012em;
  color: var(--encre);
  max-width: 15ch;
}
.hero__baseline {
  margin: 0 0 2.3rem;
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  max-width: 38ch;
}
.hero__actions {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.hero__ancre {
  position: absolute;
  left: var(--marge);
  bottom: 2rem;
  width: 1px;
  height: 3.4rem;
  background: var(--filet);
  z-index: 5;
}
.hero__ancre span {
  position: absolute;
  inset: auto 0 0 0;
  height: 1.2rem;
  background: var(--tamarin);
  animation: descendre 2.6s ease-in-out infinite;
}

@keyframes descendre {
  0%, 100% { transform: translateY(-2.2rem); }
  50% { transform: translateY(0); }
}
@keyframes tracer {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}
@keyframes paraitre {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes effacer {
  to { opacity: 0; visibility: hidden; }
}
@keyframes monter {
  from { opacity: 0; transform: translateY(1.1rem); }
  to { opacity: 1; transform: none; }
}

/* La séquence : les murs, les meubles, les cotes, puis le fondu vers la photo.
   Chaque trait porte son propre retard — le HTML reste propre, sans style en
   ligne, et l'ordre de dessin se relit ici d'un coup d'œil. */
.html-js .hero__plan .trace {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: tracer 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.html-js .hero__murs .trace:nth-child(1) { animation-delay: 0.05s; }
.html-js .hero__murs .trace:nth-child(2) { animation-delay: 0.2s; }
.html-js .hero__murs .trace:nth-child(3) { animation-delay: 0.32s; }
.html-js .hero__meubles .trace:nth-child(1) { animation-delay: 0.46s; }
.html-js .hero__meubles .trace:nth-child(2) { animation-delay: 0.56s; }
.html-js .hero__meubles .trace:nth-child(3) { animation-delay: 0.66s; }
.html-js .hero__meubles .trace:nth-child(4) { animation-delay: 0.78s; }
.html-js .hero__meubles .trace:nth-child(5) { animation-delay: 0.85s; }
.html-js .hero__meubles .trace:nth-child(6) { animation-delay: 0.92s; }
.html-js .hero__meubles .trace:nth-child(7) { animation-delay: 0.99s; }
.html-js .hero__cotes .trace:nth-child(1) { animation-delay: 1.06s; }
.html-js .hero__cotes .trace:nth-child(2) { animation-delay: 1.14s; }
.html-js .hero__cotes .trace:nth-child(3) { animation-delay: 1.22s; }
/* Remplissage « backwards » et non « forwards » : l'état de repos de chaque
   élément est son état FINAL — photo posée, mots lus. L'animation ne fait que
   reculer le point de départ. Si elle ne tourne pas — onglet en arrière-plan,
   moteur qui l'ignore, feuille à moitié chargée — on voit le hero fini, jamais
   un hero vide. Seul le tracé fait exception, et js/ui.js le retire de force. */
.html-js .hero__legende {
  animation: paraitre 0.5s ease 1.2s backwards;
}
.html-js .hero__plan {
  animation: effacer 0.75s ease 1.7s forwards;
}
.html-js .hero__cliche img {
  animation: paraitre 1.2s ease 1.6s backwards;
}
.html-js .hero__mots > * {
  animation: monter 0.85s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.html-js .hero__lieu { animation-delay: 1.55s; }
.html-js .hero__titre { animation-delay: 1.68s; }
.html-js .hero__baseline { animation-delay: 1.82s; }
.html-js .hero__actions { animation-delay: 1.96s; }

/* ── Repères ─────────────────────────────────────────────────────────────── */

.reperes {
  background: var(--ivoire-creuse);
  border-bottom: 1px solid var(--filet);
}
.reperes__liste {
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 0 var(--marge);
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.reperes__item {
  padding: 1.7rem 1.4rem;
  border-left: 1px solid var(--filet);
  display: grid;
  gap: 0.2rem;
}
.reperes__item:first-child {
  border-left: 0;
  padding-left: 0;
}
.reperes__item strong {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--encre);
}
.reperes__item span {
  font-size: 0.78rem;
  color: var(--encre-douce);
}

/* ── L'artisan ───────────────────────────────────────────────────────────── */

.artisan__grille {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.artisan__portrait {
  position: sticky;
  top: 7rem;
}
.artisan__signature {
  margin: 1.1rem 0 0;
  display: grid;
  gap: 0.1rem;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--encre);
}
.artisan__signature span {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tamarin);
}
.artisan .titre {
  max-width: 20ch;
}
.artisan__mots .texte {
  max-width: 58ch;
}

.parcours {
  margin: 2.8rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--filet);
}
.parcours__etape {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1.2rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--filet);
}
.parcours__annee {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--tamarin);
  position: relative;
}
.parcours__annee::after {
  content: "";
  position: absolute;
  right: -0.65rem;
  top: 0.75rem;
  width: 5px;
  height: 5px;
  background: var(--laiton);
}
.parcours__fait {
  font-size: 0.95rem;
}

/* ── Créations ── Un rail qui défile nativement : sans JS, il reste une bande
   qu'on fait glisser. Les flèches et les puces ne font qu'ajouter du confort. ── */

.creations__entete {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  margin-bottom: clamp(2rem, 4vw, 3.4rem);
}
.creations__cote {
  display: grid;
  gap: 1.4rem;
  justify-items: start;
}
.creations__cote .texte {
  margin: 0;
}

.pilote {
  display: flex;
  gap: 0.6rem;
}
.pilote__fleche {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--encre);
  cursor: pointer;
  transition: background var(--vif), color var(--vif), opacity var(--vif);
}
.pilote__fleche svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}
.pilote__fleche:hover {
  background: var(--encre);
  color: var(--ivoire);
}
.pilote__fleche[disabled] {
  opacity: 0.25;
  cursor: default;
}
.pilote__fleche[disabled]:hover {
  background: transparent;
  color: inherit;
}

.rail {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-inline: max(var(--marge), calc((100vw - var(--largeur)) / 2 + var(--marge)));
  padding-bottom: 0.5rem;
}
.rail::-webkit-scrollbar {
  display: none;
}
.rail.rail--tire {
  cursor: grabbing;
  scroll-snap-type: none;
}
.rail__liste {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: clamp(1rem, 2.2vw, 2rem);
}
.carte {
  flex: 0 0 clamp(255px, 30vw, 380px);
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
}
.carte .cliche {
  --ratio: 4 / 5;
}
.carte__mots {
  padding-top: 1.2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.carte__lieu {
  margin: 0 0 0.35rem;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tamarin);
}
.carte__nom {
  margin: 0 0 0.6rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--encre);
}
.carte__note {
  margin: 0 0 1rem;
  font-size: 0.92rem;
}
.carte__lien {
  margin-top: auto;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--encre);
  border-bottom: 1px solid var(--laiton);
  padding-bottom: 0.25rem;
  transition: color var(--vif), border-color var(--vif);
}
.carte__lien:hover {
  color: var(--tamarin);
  border-color: var(--tamarin);
}

.puces {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: clamp(1.6rem, 3vw, 2.4rem);
}
.puce {
  width: 2.2rem;
  height: 2px;
  padding: 0;
  border: 0;
  background: var(--filet);
  cursor: pointer;
  transition: background var(--vif);
}
.puce[aria-current="true"] {
  background: var(--tamarin);
}

/* ── Les bois ────────────────────────────────────────────────────────────── */

.matieres {
  background: var(--ivoire-creuse);
  border-block: 1px solid var(--filet);
}
.matieres__grille {
  margin-top: clamp(2.4rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3.5vw, 3rem);
}
.matiere {
  display: flex;
  flex-direction: column;
}
.matiere__nom {
  margin: 1.4rem 0 0.6rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--encre);
}
.matiere__note {
  margin: 0 0 1rem;
  font-size: 0.95rem;
}
.matiere__usage {
  margin: auto 0 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--filet);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tamarin);
}
.matieres__note {
  margin: clamp(2.4rem, 5vw, 3.6rem) auto 0;
  max-width: 56ch;
  text-align: center;
  font-size: 0.95rem;
  color: var(--encre-douce);
}

/* ── Implantations ───────────────────────────────────────────────────────── */

.implantations__grille {
  margin: clamp(2.4rem, 5vw, 4rem) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.2rem, 2.6vw, 2.4rem);
}
.implantation__plan {
  width: 100%;
  height: auto;
  background: var(--ivoire-creuse);
  display: block;
}
.implantation__piece {
  fill: none;
  stroke: var(--encre);
  stroke-width: 1.5;
}
.implantation__meuble {
  fill: var(--tamarin);
  stroke: none;
}
.implantation__nom {
  margin: 1.2rem 0 0.5rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--encre);
}
.implantation__note {
  margin: 0 0 0.9rem;
  font-size: 0.9rem;
}
.implantation__surface {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tamarin);
}

/* ── Étapes ── La seule bande sombre du site. ────────────────────────────── */

.etapes {
  background: var(--encre);
  color: rgba(247, 244, 239, 0.76);
}
.etapes .titre {
  max-width: 26ch;
}
.etapes__liste {
  margin: clamp(2.4rem, 5vw, 3.6rem) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}
.etape {
  padding: 1.8rem 1.5rem 0 0;
  border-top: 1px solid var(--filet-clair);
  margin-right: 1.5rem;
}
.etape:last-child {
  margin-right: 0;
}
.etape__rang {
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: var(--tamarin-clair);
}
.etape__nom {
  margin: 0.7rem 0 0.7rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--ivoire);
}
.etape__note {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ── Estimateur ──────────────────────────────────────────────────────────── */

.estimateur {
  border-top: 1px solid var(--filet);
}
.estim {
  max-width: 56rem;
  margin: clamp(2.4rem, 5vw, 3.6rem) auto 0;
  border: 1px solid var(--encre);
  padding: clamp(1.6rem, 4vw, 3rem);
  background: var(--ivoire);
}

.estim__jalons {
  margin: 0 0 2.4rem;
  padding: 0 0 1.4rem;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  border-bottom: 1px solid var(--filet);
}
.estim__jalon {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(23, 21, 15, 0.35);
  padding-top: 0.7rem;
  border-top: 2px solid var(--filet);
  transition: color var(--vif), border-color var(--vif);
}
.estim__jalon[data-atteint] {
  color: var(--encre);
  border-top-color: var(--tamarin);
}

.estim__etape {
  border: 0;
  margin: 0;
  padding: 0;
}
.html-js .estim__etape[hidden] {
  display: none;
}
.html-js .estim__etape + .estim__etape {
  margin-top: 0;
}
.estim__etape + .estim__etape {
  margin-top: 2.6rem;
}
.estim__question {
  padding: 0;
  margin-bottom: 1.5rem;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.25;
  color: var(--encre);
}
.estim__rang {
  display: inline-block;
  margin-right: 0.6rem;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--tamarin);
  vertical-align: 0.35em;
}
.estim__sous {
  margin: 1.8rem 0 0.9rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tamarin);
}
.estim__sous:first-of-type {
  margin-top: 0;
}
.estim__choix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr));
  gap: 0.7rem;
}

.option {
  position: relative;
  display: block;
  border: 1px solid var(--filet);
  padding: 1rem 1.1rem;
  cursor: pointer;
  background: var(--ivoire);
  transition: border-color var(--vif), background var(--vif);
}
.option:hover {
  border-color: var(--laiton);
}
.option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}
.option__corps {
  display: grid;
  gap: 0.2rem;
}
.option__nom {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--encre);
}
.option__note {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--encre-douce);
}
.option:has(input:checked) {
  border-color: var(--encre);
  background: var(--ivoire-creuse);
}
.option:has(input:checked) .option__nom::after {
  content: "";
  display: inline-block;
  width: 0.42rem;
  height: 0.42rem;
  margin-left: 0.5rem;
  vertical-align: 0.08em;
  background: var(--tamarin);
}
.option:has(input:focus-visible) {
  outline: 1px solid var(--tamarin);
  outline-offset: 2px;
}

.estim__curseur {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
}
.curseur {
  width: 100%;
  height: 2px;
  appearance: none;
  background: var(--filet);
  cursor: pointer;
}
.curseur::-webkit-slider-thumb {
  appearance: none;
  width: 1.4rem;
  height: 1.4rem;
  background: var(--encre);
  cursor: grab;
}
.curseur::-moz-range-thumb {
  width: 1.4rem;
  height: 1.4rem;
  border: 0;
  background: var(--encre);
  cursor: grab;
}
.curseur__valeur {
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--encre);
  min-width: 4.5ch;
  text-align: right;
}
.estim__aide {
  margin: 1.2rem 0 0;
  font-size: 0.86rem;
  color: var(--encre-douce);
  max-width: 58ch;
}

.estim__pilote {
  display: none;
  margin-top: 2.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--filet);
  gap: 0.7rem;
  flex-wrap: wrap;
}
.html-js .estim__pilote {
  display: flex;
}

.estim__sortie {
  max-width: 56rem;
  margin: -1px auto 0;
  border: 1px solid var(--encre);
  border-top: 0;
  padding: clamp(1.6rem, 4vw, 3rem);
  background: var(--ivoire-creuse);
}
.estim__annonce {
  margin: 0 0 0.4rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tamarin);
}
.estim__fourchette {
  margin: 0 0 1.2rem;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 1.1;
  color: var(--encre);
}
.estim__a {
  font-size: 0.5em;
  color: var(--tamarin);
  padding-inline: 0.2em;
}
.estim__avertit {
  margin: 0 0 1.4rem;
  padding: 0.9rem 1.1rem;
  border-left: 2px solid var(--tamarin);
  background: var(--ivoire);
  font-size: 0.88rem;
}
.estim__detail {
  margin: 0 0 1.4rem;
  padding: 0;
  list-style: none;
  max-width: 34rem;
}
.estim__detail li {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--filet);
  font-size: 0.9rem;
}
.estim__detail li span:last-child {
  font-weight: 600;
  color: var(--encre);
  white-space: nowrap;
}
.estim__mention {
  margin: 0 0 1.8rem;
  font-size: 0.82rem;
  color: var(--encre-douce);
  max-width: 54ch;
}
.estim__suite {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.estim__secours {
  max-width: 56rem;
  margin: 2rem auto 0;
  border-left: 2px solid var(--laiton);
  padding-left: 1.4rem;
  font-size: 0.92rem;
}
.html-js .estim__secours {
  display: none;
}
.estim__secours-titre {
  margin: 0 0 0.8rem;
  font-weight: 600;
  color: var(--encre);
}
.estim__secours ul {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
}
.estim__secours li {
  margin-bottom: 0.4rem;
}

/* ── Avis ────────────────────────────────────────────────────────────────── */

.avis {
  background: var(--ivoire-creuse);
  border-block: 1px solid var(--filet);
}
.avis__grille {
  margin-top: clamp(2.4rem, 5vw, 3.6rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3.5vw, 3rem);
}
.avis__mot {
  margin: 0;
  padding-top: 1.6rem;
  border-top: 1px solid var(--laiton);
}
.avis__mot blockquote {
  margin: 0 0 1.4rem;
}
.avis__mot blockquote p {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.55;
  color: var(--encre);
}
.avis__mot figcaption {
  display: grid;
  gap: 0.15rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--encre);
}
.avis__mot figcaption span {
  font-weight: 400;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: var(--tamarin);
}

/* ── FAQ ── En <details> : rien à charger pour qu'elle s'ouvre. ──────────── */

.question {
  border-bottom: 1px solid var(--filet);
}
.question:first-of-type {
  border-top: 1px solid var(--filet);
}
.question summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 2.5rem 1.25rem 0;
  position: relative;
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--encre);
}
.question summary::-webkit-details-marker {
  display: none;
}
.question summary::after,
.question summary::before {
  content: "";
  position: absolute;
  right: 0.4rem;
  top: 50%;
  background: var(--tamarin);
  transition: transform var(--vif);
}
.question summary::before {
  width: 0.85rem;
  height: 1px;
}
.question summary::after {
  width: 1px;
  height: 0.85rem;
  right: 0.82rem;
  margin-top: -0.42rem;
}
.question[open] summary::after {
  transform: scaleY(0);
}
.question__corps {
  padding: 0 2.5rem 1.5rem 0;
  max-width: 62ch;
}
.question__corps p {
  margin: 0;
  font-size: 0.95rem;
}

/* ── Contact ─────────────────────────────────────────────────────────────── */

.contact {
  border-top: 1px solid var(--filet);
}
.contact__grille {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.contact__pratique {
  margin: 2.4rem 0 0;
  display: grid;
  gap: 1.3rem;
}
.contact__pratique div {
  display: grid;
  gap: 0.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--filet);
}
.contact__pratique dt {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tamarin);
}
.contact__pratique dd {
  margin: 0;
  font-size: 0.95rem;
  color: var(--encre);
}

.formulaire {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  border: 1px solid var(--filet);
  padding: clamp(1.5rem, 3.5vw, 2.6rem);
  background: var(--ivoire-creuse);
}
.champ {
  display: grid;
  gap: 0.5rem;
}
.champ--large,
.formulaire__mention,
.formulaire > .bouton,
.formulaire__dit {
  grid-column: 1 / -1;
}
.champ label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--encre-douce);
}
.champ input,
.champ select,
.champ textarea {
  width: 100%;
  padding: 0.7rem 0.2rem;
  border: 0;
  border-bottom: 1px solid var(--filet);
  background: transparent;
  font-size: 0.95rem;
  color: var(--encre);
}
.champ select {
  padding-left: 0;
}
.champ textarea {
  resize: vertical;
  border: 1px solid var(--filet);
  padding: 0.8rem;
}
.champ input:focus,
.champ select:focus,
.champ textarea:focus {
  outline: 0;
  border-color: var(--tamarin);
}
.champ--estimation textarea {
  background: var(--ivoire);
  color: var(--encre-douce);
  font-size: 0.88rem;
}
.champ[data-erreur] input,
.champ[data-erreur] select {
  border-bottom-color: #a8332a;
}
.champ__erreur {
  font-size: 0.78rem;
  color: #a8332a;
}
.formulaire__mention {
  margin: 0;
  font-size: 0.8rem;
  color: var(--encre-douce);
}
.formulaire > .bouton {
  justify-self: start;
}
.formulaire__dit {
  margin: 0;
  padding: 0.9rem 1.1rem;
  border-left: 2px solid var(--tamarin);
  background: var(--ivoire);
  font-size: 0.9rem;
  color: var(--encre);
}

/* ── Pied ────────────────────────────────────────────────────────────────── */

.pied {
  background: var(--ivoire-creuse);
  border-top: 1px solid var(--filet);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: 0.88rem;
}
.pied__grille {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  padding-bottom: 2.4rem;
  border-bottom: 1px solid var(--filet);
}
.pied__bloc p {
  margin: 0 0 0.8rem;
  line-height: 1.9;
}
.pied__marque {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--encre);
}
.pied__titre {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tamarin);
}
.pied__bloc a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.pied__bloc a:hover {
  border-bottom-color: var(--laiton);
}
.pied__bas {
  padding-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.78rem;
}
.pied__bas p {
  margin: 0;
}
.pied__demo {
  max-width: 62ch;
  color: var(--encre-douce);
}

/* ── Pages annexes ───────────────────────────────────────────────────────── */

.annexe .titre {
  max-width: 26ch;
}
.avertissement {
  margin: 0 0 2.4rem;
  padding: 1.2rem 1.4rem;
  border-left: 2px solid var(--tamarin);
  background: var(--ivoire-creuse);
  max-width: 62ch;
}
.avertissement p {
  margin: 0;
  font-size: 0.92rem;
}
.annexe__corps h2 {
  margin: 2.4rem 0 0.8rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.35rem;
  color: var(--encre);
}
.annexe__corps p {
  max-width: 68ch;
  font-size: 0.95rem;
}

/* ── Adaptations ─────────────────────────────────────────────────────────── */

@media (max-width: 1080px) {
  .implantations__grille {
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1.5rem, 4vw, 2.6rem);
  }
  .etapes__liste {
    grid-template-columns: repeat(3, 1fr);
    gap: 0 0;
  }
  .etape {
    padding-bottom: 1.6rem;
  }
}

@media (max-width: 900px) {
  .entete__bascule {
    display: block;
  }
  .entete__ferme {
    display: block;
    justify-self: end;
    margin-bottom: 1rem;
  }
  .entete__nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(22rem, 88vw);
    background: var(--ivoire);
    border-left: 1px solid var(--filet);
    padding: 1.4rem var(--marge) 2.4rem;
    display: grid;
    align-content: start;
    justify-items: start;
    gap: 1.4rem;
    overflow-y: auto;
    z-index: 60;
  }
  .html-js .entete__nav[data-replie="oui"] {
    display: none;
  }
  /* Sans JavaScript, personne ne peut replier ce panneau : il ne doit donc pas
     être un panneau. Il redevient une liste posée sous le logo, et les deux
     boutons qui ne serviraient à rien disparaissent. */
  html:not(.html-js) .entete__barre {
    flex-wrap: wrap;
  }
  html:not(.html-js) .entete__bascule,
  html:not(.html-js) .entete__ferme {
    display: none;
  }
  html:not(.html-js) .entete__nav {
    position: static;
    width: 100%;
    border-left: 0;
    padding: 0.4rem 0 0.2rem;
    overflow: visible;
    gap: 0.9rem;
  }
  .lien-nav {
    font-size: 1.05rem;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .hero__scene {
    grid-column: 1;
    grid-row: 1;
    min-height: min(56vh, 420px);
  }
  .hero__mots {
    grid-column: 1;
    grid-row: 2;
    padding: clamp(2.4rem, 8vw, 3.4rem) var(--marge);
  }
  .hero__titre {
    max-width: 18ch;
  }
  .hero__ancre {
    display: none;
  }

  .reperes__liste {
    grid-template-columns: repeat(2, 1fr);
  }
  .reperes__item:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }

  .artisan__grille,
  .creations__entete,
  .contact__grille {
    grid-template-columns: 1fr;
  }
  .artisan__portrait {
    position: static;
    max-width: 24rem;
  }
  .creations__cote {
    gap: 1.1rem;
  }
  .matieres__grille,
  .avis__grille {
    grid-template-columns: 1fr;
    gap: 2.4rem;
  }
  .pied__grille {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .etapes__liste {
    grid-template-columns: 1fr;
  }
  .etape {
    margin-right: 0;
  }
  .implantations__grille {
    grid-template-columns: 1fr;
  }
  .reperes__liste {
    grid-template-columns: 1fr;
  }
  .reperes__item {
    border-left: 0;
    padding: 1.1rem 0;
    border-top: 1px solid var(--filet);
  }
  .reperes__item:first-child {
    border-top: 0;
  }
  .formulaire,
  .estim__curseur {
    grid-template-columns: 1fr;
  }
  .curseur__valeur {
    text-align: left;
  }
  .estim__jalons {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }
  .pied__grille {
    grid-template-columns: 1fr;
  }
  .carte {
    flex-basis: min(78vw, 320px);
  }
}

/* ── Réduction des animations ── Le tracé du hero est un ornement : quand le
   système demande le calme, on montre directement la photo. ───────────────── */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .html-js .hero__plan {
    display: none;
  }
  .html-js .hero__cliche img,
  .html-js .hero__mots > *,
  .html-js .hero__legende {
    animation: none;
  }
  .hero__ancre span {
    animation: none;
    inset: auto 0 0 0;
  }
  .cliche img,
  .cliche--zoom:hover img {
    transition: none;
    transform: none;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Chantiers (page Réalisations) ───────────────────────────────────────── */

.chantiers__entete {
  padding-bottom: clamp(2rem, 4vw, 3rem);
}
.chantiers__entete .titre {
  max-width: 24ch;
}

.chantier {
  padding-block: clamp(2.6rem, 6vw, 4.5rem);
  border-top: 1px solid var(--filet);
}
.chantier:nth-child(even) {
  background: var(--ivoire-creuse);
}
.chantier__grille {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(1.8rem, 5vw, 4rem);
  align-items: start;
}
.chantier__grille--inverse .chantier__cliche {
  order: 2;
}
.chantier__cliche {
  --ratio: 4 / 3;
  position: sticky;
  top: 6.5rem;
}
.chantier__lieu {
  margin: 0 0 0.4rem;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tamarin);
}
.chantier__nom {
  margin: 0 0 1.3rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.15;
  color: var(--encre);
}
.chantier__probleme,
.chantier__reponse {
  margin: 0 0 1.1rem;
  max-width: 58ch;
  font-size: 0.97rem;
}
.chantier__probleme strong,
.chantier__reponse strong {
  color: var(--encre);
  font-weight: 600;
}
.chantier__fiche {
  margin: 2rem 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 2rem;
  border-top: 1px solid var(--filet);
  padding-top: 1.4rem;
}
.chantier__fiche div {
  display: grid;
  gap: 0.2rem;
}
.chantier__fiche dt {
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tamarin);
}
.chantier__fiche dd {
  margin: 0;
  font-size: 0.92rem;
  color: var(--encre);
}
.chantier__note {
  margin: 1.6rem 0 0;
  padding-left: 1.1rem;
  border-left: 2px solid var(--laiton);
  font-size: 0.9rem;
  max-width: 54ch;
}
.chantiers__pied {
  border-top: 1px solid var(--filet);
  text-align: center;
}
.chantiers__actions {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
}

/* ── 404 ─────────────────────────────────────────────────────────────────── */

.perdu {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
}
.perdu .titre {
  margin-inline: auto;
  max-width: 20ch;
}
.perdu__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
}

@media (max-width: 900px) {
  .chantier__grille {
    grid-template-columns: 1fr;
  }
  .chantier__grille--inverse .chantier__cliche {
    order: 0;
  }
  .chantier__cliche {
    position: static;
  }
}

@media (max-width: 620px) {
  .chantier__fiche {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }
}
