/* Atelier Tréteau : feuille de style.
   Matières : le mélaminé blanc (fond), le contreplaqué de bouleau (planches et panneaux),
   le graphite du crayon de menuisier (texte et traits), le chêne fumé (sections sombres),
   le cognac du chêne huilé et du tablier de cuir (la seule couleur d'action).
   Polices : Bai Jamjuree (titres, prix, numéros : des courbes tenues au carré et des
   angles chanfreinés, comme le lettrage d'un plan d'atelier), Reddit Sans (texte, cotes).
   Rayon maximal 3 px, aucun verre, aucun grain : la matière vient des photos et des plans. */

@font-face {
  font-family: "Bai Jamjuree";
  src: url("fonts/bai-jamjuree-700-latin.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Bai Jamjuree";
  src: url("fonts/bai-jamjuree-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Reddit Sans";
  src: url("fonts/reddit-sans-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --melamine: #F3F2EE;
  --blanc: #FBF9F5;
  --bouleau: #ECE6DA;
  --bouleau-2: #E3DBCB;
  --bouleau-3: #D6CCB8;
  --graphite: #22211E;
  --graphite-2: #4F4B44;
  --trait: #8A8478;
  --fume: #2A231D;
  --fume-2: #362E26;
  --fume-3: #4A3F35;
  --copeau: #EFE8DC;
  --copeau-2: #C9BFAF;
  --cognac: #8E561B;
  --cognac-fonce: #6F420F;
  --cognac-clair: #E2B886;
  --erreur: #A3341F;
  --erreur-clair: #F2B3A3;
  --acier: #9FA19C;
  --laiton: #B48C4E;

  --police-titre: "Bai Jamjuree", "Helvetica Neue", Arial, sans-serif;
  --police-texte: "Reddit Sans", "Segoe UI", Arial, sans-serif;

  --pas--1: clamp(0.84rem, 0.81rem + 0.12vw, 0.9rem);
  --pas-0: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --pas-1: clamp(1.15rem, 1.06rem + 0.42vw, 1.375rem);
  --pas-2: clamp(1.5rem, 1.22rem + 1.2vw, 2.15rem);
  --pas-3: clamp(1.95rem, 1.4rem + 2.4vw, 3.3rem);
  --pas-4: clamp(2.45rem, 1.5rem + 4.1vw, 5rem);

  --colonne: 1280px;
  --gouttiere: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 8vw, 120px);
  --rayon: 3px;
  --entete-h: 68px;
  /* Le coup de rabot : une poussée franche, puis la lame glisse jusqu'au bout. */
  --rabot: cubic-bezier(0.3, 0.7, 0.1, 1);
  --filet: rgba(34, 33, 30, 0.14);
  --filet-fort: rgba(34, 33, 30, 0.28);
  --filet-clair: rgba(239, 232, 220, 0.18);
}

/* ------------------------------------------------------------------ */
/* Base                                                                 */
/* ------------------------------------------------------------------ */

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

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--brnsg-barre, 0px) + var(--entete-h) + 16px);
  scrollbar-color: var(--bouleau-3) var(--melamine);
}

body {
  margin: 0;
  background: var(--melamine);
  color: var(--graphite);
  font-family: var(--police-texte);
  font-size: var(--pas-0);
  line-height: 1.6;
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--cognac-clair);
  color: var(--graphite);
}

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

img {
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--police-titre);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p,
ul,
ol,
dl,
figure,
blockquote,
address {
  margin: 0;
}

p {
  text-wrap: pretty;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

address {
  font-style: normal;
}

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: var(--cognac);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color 0.2s var(--rabot), text-decoration-color 0.2s var(--rabot);
}

a:hover {
  color: var(--cognac);
}

:focus-visible {
  outline: 2px solid var(--cognac);
  outline-offset: 3px;
}

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

button {
  cursor: pointer;
}

.visuellement-cache {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.colonne {
  width: 100%;
  max-width: calc(var(--colonne) + 2 * var(--gouttiere));
  margin: 0 auto;
  padding: 0 var(--gouttiere);
}

.lien-evitement {
  position: absolute;
  top: calc(var(--brnsg-barre, 0px) + 8px);
  left: 8px;
  z-index: 200;
  padding: 10px 14px;
  background: var(--graphite);
  color: var(--blanc);
  border-radius: var(--rayon);
  transform: translateY(-200%);
}

.lien-evitement:focus {
  transform: none;
}

.icone {
  width: 1.1em;
  height: 1.1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

[data-brnsg-horaires] {
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------------ */
/* Boutons et liens                                                     */
/* ------------------------------------------------------------------ */

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0.8em 1.35em;
  border: 1px solid var(--cognac);
  border-radius: var(--rayon);
  background: var(--cognac);
  color: var(--blanc);
  font-family: var(--police-texte);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s var(--rabot), border-color 0.2s var(--rabot), transform 0.2s var(--rabot);
}

.bouton:hover {
  background: var(--cognac-fonce);
  border-color: var(--cognac-fonce);
  color: var(--blanc);
}

.bouton:active {
  transform: translateY(1px);
}

.bouton--clair {
  background: var(--copeau);
  border-color: var(--copeau);
  color: var(--graphite);
}

.bouton--clair:hover {
  background: var(--blanc);
  border-color: var(--blanc);
  color: var(--graphite);
}

.bouton--petit {
  min-height: 40px;
  padding: 0.55em 1em;
  font-size: 0.95rem;
}

.bouton--large {
  width: 100%;
}

.bouton[aria-busy="true"] {
  opacity: 0.75;
  cursor: progress;
}

.bouton-lien {
  padding: 0.3em 0;
  border: 0;
  background: none;
  color: var(--graphite);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--cognac);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.bouton-lien:hover {
  color: var(--cognac);
}

.lien-fleche {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-weight: 650;
  text-decoration: none;
}

.lien-fleche span {
  text-decoration: underline;
  text-decoration-color: var(--cognac);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.lien-fleche .icone-fleche {
  color: var(--cognac);
  transition: transform 0.25s var(--rabot);
}

.lien-fleche:hover .icone-fleche {
  transform: translateX(4px);
}

.lien-fleche--fort {
  font-size: 1.05rem;
}

.lien-tel {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--police-titre);
  font-size: 1.2rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}

.lien-tel .icone {
  color: var(--cognac);
}

.lien-tel--clair {
  color: var(--copeau);
}

.lien-tel--clair .icone {
  color: var(--cognac-clair);
}

.lien-tel--clair:hover {
  color: var(--blanc);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: 28px;
}

.lien-seul {
  margin-top: 28px;
}

.source {
  margin-top: 12px;
  font-size: var(--pas--1);
  color: var(--graphite-2);
}

.source a {
  display: inline;
}

.icone-source {
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  margin-left: 0.25em;
  vertical-align: -0.1em;
}

.note {
  margin-top: 14px;
  font-size: var(--pas--1);
  color: var(--graphite-2);
}

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

.entete {
  position: sticky;
  top: var(--brnsg-barre, 0px);
  z-index: 100;
  background: var(--melamine);
  border-bottom: 1px solid var(--filet);
  transition: transform 0.35s var(--rabot);
}

.entete-cachee .entete {
  transform: translateY(-100%);
}

.entete-grille {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--entete-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--graphite);
  text-decoration: none;
  flex: none;
}

.logo:hover {
  color: var(--graphite);
}

.logo-marque {
  width: 36px;
  height: 36px;
  fill: none;
  stroke-linecap: square;
}

.logo-traverse {
  stroke: var(--cognac);
  stroke-width: 3.4;
}

.logo-pieds {
  stroke: currentColor;
  stroke-width: 2.6;
}

.logo-texte {
  display: grid;
  line-height: 1.05;
}

.logo-nom {
  font-family: var(--police-titre);
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo-metier {
  font-size: 0.74rem;
  color: var(--graphite-2);
  letter-spacing: 0.01em;
}

.nav {
  margin-left: auto;
}

.nav-liste {
  display: flex;
  gap: 4px;
}

.nav-liste a {
  display: block;
  white-space: nowrap;
  padding: 8px 10px;
  border-radius: var(--rayon);
  font-weight: 600;
  font-size: 0.97rem;
  text-decoration: none;
}

.nav-liste a:hover {
  color: var(--graphite);
  background: var(--bouleau);
}

.nav-liste a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--cognac);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.nav-mobile {
  display: none;
}

.entete-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.entete-tel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.entete-tel .icone {
  color: var(--cognac);
}

.entete-tel-texte {
  display: grid;
  line-height: 1.15;
}

.entete-tel-numero {
  font-family: var(--police-titre);
  font-weight: 700;
  font-size: 1.06rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.entete-statut {
  font-size: 0.74rem;
  color: var(--graphite-2);
  white-space: nowrap;
}

.entete-statut[data-etat="ouvert"]::before,
.statut [data-etat="ouvert"]::before,
.pied-statut [data-etat="ouvert"]::before,
.nav-mobile-statut [data-etat="ouvert"]::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  background: #3F7A3A;
  vertical-align: 0.05em;
}

.menu-bouton {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--filet-fort);
  border-radius: var(--rayon);
  background: var(--blanc);
  font-weight: 650;
}

.menu-bouton-traits {
  position: relative;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: background-color 0.2s;
}

.menu-bouton-traits::before,
.menu-bouton-traits::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s var(--rabot);
}

.menu-bouton-traits::before {
  top: -6px;
}

.menu-bouton-traits::after {
  top: 6px;
}

.menu-bouton[aria-expanded="true"] .menu-bouton-traits {
  background: transparent;
}

.menu-bouton[aria-expanded="true"] .menu-bouton-traits::before {
  transform: translateY(6px) rotate(45deg);
}

.menu-bouton[aria-expanded="true"] .menu-bouton-traits::after {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 1180px) {
  .entete-tel-texte .entete-statut {
    display: none;
  }
}

/* Menu replié jusqu'à 1 240 px : au-dessous, « Dressings et agencement » et « Rendez-vous » passaient sur deux lignes. */
@media (max-width: 1240px) {
  .menu-bouton {
    display: inline-flex;
  }

  .entete-rdv {
    display: none;
  }

  /* Menu replié : la nav sort du flux, le téléphone et le bouton Menu se calent à droite. */
  .entete-actions {
    margin-left: auto;
  }

  .nav {
    position: fixed;
    top: calc(var(--brnsg-barre, 0px) + var(--entete-h));
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
    display: none;
    padding: 24px var(--gouttiere) calc(32px + var(--brnsg-onglet, 0px));
    background: var(--melamine);
    overflow-y: auto;
  }

  .nav--ouverte {
    display: block;
  }

  .nav-liste {
    display: block;
  }

  .nav-liste a {
    padding: 14px 0;
    border-bottom: 1px solid var(--filet);
    border-radius: 0;
    font-family: var(--police-titre);
    font-size: 1.7rem;
    letter-spacing: -0.02em;
  }

  .nav-liste a:hover {
    background: none;
    color: var(--cognac);
  }

  .nav-mobile {
    display: grid;
    gap: 12px;
    margin-top: 28px;
  }

  .nav-mobile-adresse,
  .nav-mobile-statut {
    color: var(--graphite-2);
    font-size: 0.95rem;
  }

  .menu-ouvert {
    overflow: hidden;
  }
}

@media (max-width: 640px) {
  .logo-metier {
    display: none;
  }

  .logo-nom {
    font-size: 1.12rem;
  }

  .entete-grille {
    gap: 10px;
  }

  .entete-actions {
    gap: 8px;
    margin-left: auto;
  }

  .entete-tel-numero {
    font-size: 0.98rem;
  }

  .menu-bouton-texte {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .menu-bouton {
    padding: 0 12px;
  }
}

@media (max-width: 380px) {
  .logo-nom {
    font-size: 1rem;
  }

  .entete-actions {
    gap: 6px;
  }

  .entete-tel-numero {
    font-size: 0.86rem;
  }
}

/* Très petits écrans : le numéro reste dans la barre « Appeler » du bas,
   l'en-tête garde l'icône du téléphone (le lien et son nom accessible restent). */
@media (max-width: 340px) {
  .entete-tel {
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
  }

  .entete-tel-texte {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media (max-width: 360px) {
  .logo-marque {
    width: 30px;
    height: 30px;
  }

  .logo-nom {
    font-size: 1rem;
  }
}

/* ------------------------------------------------------------------ */
/* Sections et titres                                                   */
/* ------------------------------------------------------------------ */

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

.section--serre {
  padding: clamp(40px, 5vw, 72px) 0;
}

.section--panneau {
  background: var(--bouleau);
}

.section--fume {
  background: var(--fume);
  color: var(--copeau);
}

.section--fume a:not(.bouton) {
  text-decoration-color: var(--cognac-clair);
}

.section--fume a:not(.bouton):hover {
  color: var(--blanc);
}

.section--fume :focus-visible {
  outline-color: var(--cognac-clair);
}

.titre-section {
  font-size: var(--pas-3);
}

.section-tete {
  max-width: 48rem;
  margin-bottom: clamp(28px, 4vw, 52px);
}

.section-chapo {
  margin-top: 16px;
  font-size: var(--pas-1);
  line-height: 1.5;
  color: var(--graphite-2);
}

.section--fume .section-chapo {
  color: var(--copeau-2);
}

.deux-colonnes {
  display: grid;
  gap: 40px;
}

@media (min-width: 900px) {
  .deux-colonnes {
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 96px);
  }

  .deux-colonnes--large {
    grid-template-columns: 1.15fr 1fr;
  }
}

.deux-colonnes .titre-section {
  font-size: var(--pas-2);
  margin-bottom: 18px;
}

.deux-colonnes p + p {
  margin-top: 14px;
}

.texte-etroit {
  max-width: 46rem;
}

.texte-etroit .titre-section {
  margin-bottom: 20px;
}

.texte-etroit p + p {
  margin-top: 14px;
}

.liste-coches {
  display: grid;
  gap: 12px;
}

.liste-coches li {
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.liste-coches .icone {
  color: var(--cognac);
  transform: translateY(0.18em);
}

.liste-tirets {
  display: grid;
  gap: 10px;
}

.liste-tirets li {
  position: relative;
  padding-left: 22px;
}

.liste-tirets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 12px;
  height: 1.5px;
  background: var(--trait);
}

@media (min-width: 700px) {
  .liste-tirets--colonnes {
    grid-template-columns: 1fr 1fr;
    column-gap: 32px;
  }
}

/* ------------------------------------------------------------------ */
/* Hero de l'accueil                                                    */
/* ------------------------------------------------------------------ */

.hero {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: clamp(560px, calc(100svh - var(--brnsg-barre, 0px) - var(--entete-h)), 900px);
  background: var(--fume);
  color: var(--copeau);
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-poster,
.hero-poster img,
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
}

.hero-video {
  opacity: 0;
  transition: opacity 0.9s var(--rabot);
}

.hero-video.est-prete {
  opacity: 1;
}

.hero-voile {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(26, 21, 17, 0.86) 0%, rgba(26, 21, 17, 0.62) 38%, rgba(26, 21, 17, 0.08) 72%),
    linear-gradient(0deg, rgba(26, 21, 17, 0.72) 0%, rgba(26, 21, 17, 0) 34%);
}

.hero-contenu {
  align-self: center;
  padding-top: clamp(40px, 7vh, 112px);
  padding-bottom: 40px;
}

.hero-titre {
  max-width: 12.5em;
  font-size: clamp(2.3rem, 1.25rem + 3.75vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

/* Au-delà du téléphone, quatre lignes fixées : la plus longue reste en haut,
   au-dessus du rabot et du copeau, les suivantes s'arrêtent avant. */
@media (min-width: 761px) {
  .hero-ligne {
    display: block;
  }
}

.hero-chapo {
  max-width: 34rem;
  margin-top: 22px;
  font-size: var(--pas-1);
  line-height: 1.5;
  color: var(--copeau);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 30px;
}

.hero-preuves {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--filet-clair);
  padding-top: 18px;
  padding-bottom: 22px;
}

.hero-preuves li {
  display: grid;
  gap: 2px;
  padding-right: 18px;
}

.hero-preuves li + li {
  padding-left: 18px;
  border-left: 1px solid var(--filet-clair);
}

.hero-preuves strong {
  font-family: var(--police-titre);
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero-preuves span {
  font-size: 0.88rem;
  color: var(--copeau-2);
}

.hero-pause {
  position: absolute;
  right: var(--gouttiere);
  top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--filet-clair);
  border-radius: var(--rayon);
  background: rgba(26, 21, 17, 0.55);
  color: var(--copeau);
  font-size: 0.85rem;
  font-weight: 600;
}

.hero-pause:hover {
  background: rgba(26, 21, 17, 0.8);
}

.hero-pause-icone {
  position: relative;
  width: 10px;
  height: 12px;
  border-left: 3px solid currentColor;
  border-right: 3px solid currentColor;
}

.hero-pause[data-etat="pause"] .hero-pause-icone {
  width: 0;
  height: 0;
  border-left: 10px solid currentColor;
  border-right: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

/* Entrée du haut de page en CSS : elle ne dépend pas du chargement de GSAP. */
@media (prefers-reduced-motion: no-preference) {
  .hero-titre,
  .page-titre {
    animation: entree 0.9s var(--rabot) both;
  }

  .hero-chapo,
  .page-chapo {
    animation: entree 0.9s 0.12s var(--rabot) both;
  }

  .hero-actions,
  .page-tete .actions {
    animation: entree 0.9s 0.22s var(--rabot) both;
  }

  .hero-preuves li {
    animation: entree 0.8s var(--rabot) both;
  }

  .hero-preuves li:nth-child(1) { animation-delay: 0.32s; }
  .hero-preuves li:nth-child(2) { animation-delay: 0.38s; }
  .hero-preuves li:nth-child(3) { animation-delay: 0.44s; }
  .hero-preuves li:nth-child(4) { animation-delay: 0.5s; }

}

@keyframes entree {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .hero-preuves {
    grid-template-columns: 1fr 1fr;
    row-gap: 14px;
  }

  .hero-preuves li:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 760px) {
  .hero {
    min-height: calc(100svh - var(--brnsg-barre, 0px) - var(--entete-h));
  }

  .hero-poster img,
  .hero-video {
    object-position: 50% 30%;
  }

  .hero-voile {
    background: linear-gradient(0deg, rgba(26, 21, 17, 0.94) 0%, rgba(26, 21, 17, 0.8) 46%, rgba(26, 21, 17, 0.2) 78%);
  }

  .hero-contenu {
    align-self: end;
    padding-top: 160px;
    padding-bottom: 24px;
  }

  .hero-chapo {
    font-size: 1.04rem;
  }

  .hero-preuves strong {
    font-size: 1.05rem;
  }

  .hero-preuves span {
    font-size: 0.8rem;
  }
}

/* Tablette en portrait : l'atelier en haut, le texte dessous sur le chêne fumé,
   pour que le titre ne passe jamais sur les mains et le rabot. */
@media (min-width: 761px) and (max-width: 1100px) and (orientation: portrait) {
  .hero {
    min-height: calc(100svh - var(--brnsg-barre, 0px) - var(--entete-h));
  }

  .hero-media {
    bottom: auto;
    height: 54%;
  }

  .hero-poster img,
  .hero-video {
    object-position: 72% 50%;
  }

  .hero-voile {
    background:
      linear-gradient(0deg, var(--fume) 0%, rgba(42, 35, 29, 0.82) 30%, rgba(42, 35, 29, 0) 50%),
      linear-gradient(90deg, rgba(26, 21, 17, 0.4) 0%, rgba(26, 21, 17, 0) 55%);
  }

  .hero-contenu {
    align-self: end;
    padding-top: 0;
    padding-bottom: 28px;
  }
}

/* ------------------------------------------------------------------ */
/* Têtes des pages intérieures                                          */
/* ------------------------------------------------------------------ */

.page-tete {
  padding: clamp(40px, 6vw, 88px) 0 clamp(32px, 4vw, 56px);
}

.page-tete-grille {
  display: grid;
  gap: 32px;
  align-items: end;
}

.page-titre {
  font-size: var(--pas-4);
  line-height: 0.98;
  letter-spacing: -0.03em;
  max-width: 14em;
}

.page-chapo {
  max-width: 40rem;
  margin-top: 20px;
  font-size: var(--pas-1);
  line-height: 1.5;
  color: var(--graphite-2);
}

.page-tete-image {
  border-radius: var(--rayon);
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--bouleau);
}

.page-tete-image img,
.page-tete-image picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 960px) {
  .page-tete--image .page-tete-grille {
    grid-template-columns: 1fr 1.05fr;
    gap: clamp(32px, 5vw, 80px);
  }
}

.page-tete--config {
  padding: clamp(28px, 4vw, 52px) 0 22px;
}

.page-tete--config .page-titre {
  font-size: var(--pas-3);
}

.page-tete--config .page-chapo {
  max-width: 50rem;
}

.page-tete--legal .page-titre {
  font-size: var(--pas-3);
}

/* ------------------------------------------------------------------ */
/* Planche : le plan d'atelier                                          */
/* ------------------------------------------------------------------ */

.planche {
  position: relative;
  background: var(--bouleau);
  border: 1px solid var(--bouleau-3);
  border-radius: var(--rayon);
  padding: clamp(12px, 2vw, 20px);
}

/* Le triangle de menuisier, tracé au crayon dans le coin de la planche. */
.planche::before {
  content: "";
  position: absolute;
  top: 10px;
  right: 12px;
  width: 22px;
  height: 19px;
  background: linear-gradient(var(--graphite), var(--graphite)) no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 19'%3E%3Cpath d='M11 1.5 20.5 17.5h-19z' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 19'%3E%3Cpath d='M11 1.5 20.5 17.5h-19z' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.55;
  pointer-events: none;
}

.planche-feuille {
  position: relative;
}

.planche-vue svg {
  width: 100%;
  height: auto;
}

.planche-legende {
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--graphite-2);
}

.planche-onglets {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
  padding-right: 40px;
}

.planche-onglet {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: var(--rayon);
  background: none;
  font-weight: 650;
  font-size: 0.92rem;
  color: var(--graphite-2);
}

.planche-onglet:hover {
  color: var(--graphite);
  background: var(--bouleau-2);
}

.planche-onglet[aria-selected="true"] {
  background: var(--blanc);
  border-color: var(--bouleau-3);
  color: var(--graphite);
}

.planche-mini-budget {
  display: none;
}

/* Traits du plan : épaisseurs constantes quelle que soit l'échelle. */
.planche-svg text {
  font-family: var(--police-texte);
}

.p-mur {
  fill: var(--graphite);
}

.p-contour {
  fill: none;
  stroke: var(--graphite);
  stroke-width: 1.6;
  vector-effect: non-scaling-stroke;
}

.p-caisson {
  stroke: var(--graphite);
  stroke-width: 0.75;
  stroke-dasharray: 4 3;
  vector-effect: non-scaling-stroke;
  opacity: 0.6;
}

.p-appareil {
  fill: rgba(251, 249, 245, 0.55);
  stroke: var(--graphite);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.p-appareil-fin {
  fill: none;
  stroke: var(--graphite);
  stroke-width: 0.75;
  vector-effect: non-scaling-stroke;
}

.p-colonne-cadre {
  fill: var(--bouleau-2);
  stroke: var(--graphite);
  stroke-width: 1.3;
  vector-effect: non-scaling-stroke;
}

.p-colonne-diag {
  stroke: var(--graphite);
  stroke-width: 0.7;
  vector-effect: non-scaling-stroke;
  opacity: 0.7;
}

.p-haut {
  fill: none;
  stroke: var(--graphite);
  stroke-width: 0.8;
  stroke-dasharray: 7 4;
  vector-effect: non-scaling-stroke;
  opacity: 0.55;
}

.p-haut--hotte {
  opacity: 0.85;
}

.p-tabouret {
  fill: none;
  stroke: var(--graphite-2);
  stroke-width: 0.9;
  vector-effect: non-scaling-stroke;
}

.p-rep {
  fill: var(--graphite);
  font-weight: 650;
  letter-spacing: 0.02em;
}

.p-rep--fin {
  fill: var(--graphite-2);
  font-weight: 450;
}

.p-cote-attache,
.p-cote-ligne {
  stroke: var(--graphite-2);
  stroke-width: 0.75;
  vector-effect: non-scaling-stroke;
}

.p-cote-fleche {
  fill: var(--graphite-2);
}

.p-cote-texte {
  fill: var(--graphite);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.p-cote--totale .p-cote-texte {
  font-weight: 700;
}

.p-cote--actif .p-cote-ligne,
.p-cote--actif .p-cote-attache {
  stroke: var(--cognac);
  stroke-width: 1.2;
}

.p-cote--actif .p-cote-fleche {
  fill: var(--cognac);
}

.p-cote--actif .p-cote-texte {
  fill: var(--cognac);
  font-weight: 700;
}

.p-cote--passage .p-cote-ligne {
  stroke-dasharray: 5 3;
}

.p-echelle-plein {
  fill: var(--graphite);
}

.p-echelle-vide {
  fill: var(--blanc);
  stroke: var(--graphite);
  stroke-width: 0.8;
  vector-effect: non-scaling-stroke;
}

.p-echelle-texte {
  fill: var(--graphite-2);
  font-variant-numeric: tabular-nums;
}

.e-mur {
  fill: #F4EFE6;
}

.e-sol {
  stroke: var(--graphite);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.e-facade,
.e-joue {
  stroke: var(--graphite);
  stroke-width: 0.6;
  vector-effect: non-scaling-stroke;
}

.e-fileur {
  stroke: var(--graphite);
  stroke-width: 0.4;
  vector-effect: non-scaling-stroke;
}

.e-socle {
  fill: #3A3631;
}

.e-plan {
  stroke: var(--graphite);
  stroke-width: 0.6;
  vector-effect: non-scaling-stroke;
}

.e-poignee {
  fill: var(--acier);
  stroke: rgba(34, 33, 30, 0.7);
  stroke-width: 0.8;
  vector-effect: non-scaling-stroke;
}

.e-poignee--laiton {
  fill: #C9A060;
}

.e-gorge {
  fill: var(--graphite);
  opacity: 0.5;
}

.e-four {
  fill: #1E1D1B;
}

.e-four-poignee,
.e-hotte {
  fill: var(--acier);
}

.e-retour-cache {
  fill: var(--bouleau-2);
  stroke: var(--graphite);
  stroke-width: 0.4;
  stroke-dasharray: 4 3;
  vector-effect: non-scaling-stroke;
}

/* ------------------------------------------------------------------ */
/* Aperçu du configurateur (accueil)                                    */
/* ------------------------------------------------------------------ */

.apercu-grille {
  display: grid;
  gap: 32px;
  align-items: center;
}

@media (min-width: 960px) {
  .apercu-grille {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(32px, 5vw, 80px);
  }
}

.apercu-texte > p {
  margin-top: 18px;
  font-size: var(--pas-1);
  line-height: 1.5;
  color: var(--graphite-2);
}

.segments {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 28px 0 0;
  padding: 0;
  border: 0;
}

.segment {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 10px 6px 8px;
  border: 1px solid var(--bouleau-3);
  border-radius: var(--rayon);
  background: var(--blanc);
  font-size: 0.86rem;
  font-weight: 650;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s var(--rabot), background-color 0.2s var(--rabot);
}

.segment input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.segment:hover {
  border-color: var(--graphite-2);
}

.segment:has(input:checked) {
  border-color: var(--graphite);
  box-shadow: inset 0 0 0 1px var(--graphite);
}

.segment:has(input:focus-visible) {
  outline: 2px solid var(--cognac);
  outline-offset: 2px;
}

.forme-picto {
  width: 44px;
  height: 36px;
}

.forme-picto .pm {
  fill: none;
  stroke: var(--graphite);
  stroke-width: 3;
}

.forme-picto .pf {
  fill: var(--bouleau-2);
  stroke: var(--graphite);
  stroke-width: 1.2;
}

:checked + .forme-picto .pf,
.tuile:has(input:checked) .forme-picto .pf {
  fill: var(--cognac-clair);
}

.apercu-prix {
  display: grid;
  gap: 4px;
  margin: 24px 0 18px;
  padding: 14px 0;
  border-top: 1px solid var(--filet);
  border-bottom: 1px solid var(--filet);
}

.apercu-prix-libelle {
  font-size: 0.9rem;
  color: var(--graphite-2);
}

.apercu-prix-valeur {
  font-family: var(--police-titre);
  font-size: var(--pas-2);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

/* ------------------------------------------------------------------ */
/* Configurateur (cuisines.html)                                        */
/* ------------------------------------------------------------------ */

.config {
  padding-bottom: var(--section);
}

.config-grille {
  display: grid;
  gap: 24px;
}

.config-collant {
  display: grid;
  gap: 14px;
}

@media (min-width: 1024px) {
  .config-grille {
    grid-template-columns: minmax(0, 7fr) minmax(340px, 5fr);
    gap: clamp(28px, 3.5vw, 52px);
  }

  .config-planche {
    align-self: stretch;
  }

  .config-collant {
    position: sticky;
    top: calc(var(--brnsg-barre, 0px) + var(--entete-h) + 14px);
    transition: top 0.35s var(--rabot);
  }

  .entete-cachee .config-collant {
    top: calc(var(--brnsg-barre, 0px) + 14px);
  }

  .config .planche-feuille {
    height: clamp(300px, calc(100vh - 380px), 560px);
  }

  .config .planche-vue,
  .config .planche-vue svg {
    height: 100%;
  }
}

.bon {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, auto));
  gap: 6px 18px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--bouleau-3);
  font-size: 0.82rem;
}

.bon dt {
  color: var(--graphite-2);
}

.bon dd {
  margin: 0;
  font-weight: 650;
}

.budget-barre {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 14px 16px;
  background: var(--blanc);
  border: 1px solid var(--bouleau-3);
  border-radius: var(--rayon);
}

.budget-barre-texte {
  display: grid;
  line-height: 1.2;
}

.budget-barre-libelle {
  font-size: 0.82rem;
  color: var(--graphite-2);
}

.budget-barre-total {
  font-family: var(--police-titre);
  font-size: 1.45rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.config-colonne-choix {
  display: grid;
  gap: 18px;
  align-content: start;
}

.config-choix {
  display: grid;
  gap: 18px;
}

.choix {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--bouleau-3);
  border-radius: var(--rayon);
  background: var(--blanc);
}

.choix-legende {
  padding: 0 6px;
  margin-left: -6px;
  font-family: var(--police-titre);
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.choix-sous-titre {
  margin: 0 0 10px;
  padding: 0;
  font-weight: 700;
  font-size: 0.95rem;
}

.radios {
  margin: 18px 0 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 8px;
}

.radio {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  cursor: pointer;
}

.radio input,
.consentement input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--cognac);
  flex: none;
}

.tuiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.tuiles--formes {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tuiles--lignes {
  grid-template-columns: 1fr;
}

.tuile {
  position: relative;
  display: block;
  cursor: pointer;
}

.tuile input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}

.tuile-corps {
  display: grid;
  gap: 3px;
  height: 100%;
  padding: 10px 12px;
  border: 1px solid var(--bouleau-3);
  border-radius: var(--rayon);
  background: var(--melamine);
  transition: border-color 0.2s var(--rabot), background-color 0.2s var(--rabot), box-shadow 0.2s var(--rabot);
}

.tuile:hover .tuile-corps {
  border-color: var(--graphite-2);
}

.tuile input:checked + .tuile-corps {
  border-color: var(--graphite);
  background: var(--blanc);
  box-shadow: inset 0 0 0 1px var(--graphite);
}

/* Le choix retenu porte le triangle de menuisier, en cognac. */
.tuile input:checked + .tuile-corps::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 7px;
  width: 12px;
  height: 11px;
  background: var(--cognac);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.tuile input:focus-visible + .tuile-corps {
  outline: 2px solid var(--cognac);
  outline-offset: 2px;
}

.tuile-libelle {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.25;
  padding-right: 16px;
}

.tuile-aide {
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--graphite-2);
}

.tuile-prix {
  margin-top: 2px;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--cognac-fonce);
  font-variant-numeric: tabular-nums;
}

.tuile--forme .tuile-corps {
  justify-items: center;
  text-align: center;
  padding: 10px 6px;
}

.tuile--forme .tuile-libelle {
  padding-right: 0;
}

.tuile--matiere .tuile-corps {
  grid-template-columns: 52px minmax(0, 1fr);
  column-gap: 12px;
  align-content: start;
}

.tuile--matiere .vignette {
  grid-row: span 3;
}

.tuile--matiere .tuile-libelle,
.tuile--matiere .tuile-aide,
.tuile--matiere .tuile-prix {
  grid-column: 2;
}

.tuile--ligne .tuile-corps {
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 12px;
  align-items: center;
}

.tuile--ligne .tuile-corps > :not(.poignee-picto) {
  grid-column: 2;
}

.tuile--ligne .tuile-corps:not(:has(.poignee-picto)) {
  grid-template-columns: minmax(0, 1fr);
}

.tuile--ligne .tuile-corps:not(:has(.poignee-picto)) > * {
  grid-column: 1;
}

.vignette {
  display: block;
  width: 52px;
  height: 52px;
  border: 1px solid var(--filet-fort);
  border-radius: 2px;
  background-size: cover;
  background-position: center;
}

.vignette--teintes {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  overflow: hidden;
}

.vignette--petite {
  width: 26px;
  height: 26px;
  flex: none;
}

.poignee-picto {
  grid-row: span 2;
  position: relative;
  width: 40px;
  height: 40px;
  border: 1px solid var(--filet-fort);
  border-radius: 2px;
  background: var(--bouleau);
}

.poignee-picto::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 9px;
  width: 4px;
  height: 22px;
  border-radius: 2px;
  transform: translateX(-50%);
  background: var(--acier);
}

.poignee-picto--laiton::after {
  background: var(--laiton);
}

.poignee-picto--gorge::after {
  left: 0;
  right: 0;
  top: 5px;
  width: auto;
  height: 4px;
  border-radius: 0;
  transform: none;
  background: var(--graphite);
  opacity: 0.55;
}

.poignee-picto--sans::after {
  left: auto;
  right: 6px;
  top: 6px;
  width: 6px;
  height: 6px;
  border-radius: 0;
  transform: none;
  background: none;
  border: 1.5px solid var(--graphite-2);
}

.teintes {
  margin-top: 14px;
}

.teintes-libelle {
  font-weight: 700;
  font-size: 0.95rem;
}

.teintes-liste {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.teinte {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 4px;
  width: 74px;
  cursor: pointer;
  font-size: 0.76rem;
  line-height: 1.2;
  text-align: center;
}

.teinte input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}

.teinte-pastille {
  width: 44px;
  height: 44px;
  border: 1px solid var(--filet-fort);
  border-radius: 2px;
}

.teinte input:checked + .teinte-pastille {
  outline: 2px solid var(--graphite);
  outline-offset: 2px;
}

.teinte input:focus-visible + .teinte-pastille {
  outline: 2px solid var(--cognac);
  outline-offset: 3px;
}

.curseur {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 4px 12px;
  margin-top: 18px;
}

.curseur-libelle {
  font-weight: 650;
  font-size: 0.95rem;
}

.curseur-valeur {
  font-family: var(--police-titre);
  font-size: 1.25rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.curseur-champ {
  grid-column: 1 / -1;
  width: 100%;
  height: 32px;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  --pct: 50%;
}

.curseur-champ::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 1px;
  background: linear-gradient(90deg, var(--cognac) 0 var(--pct), var(--bouleau-3) var(--pct) 100%);
}

.curseur-champ::-moz-range-track {
  height: 6px;
  border-radius: 1px;
  background: var(--bouleau-3);
}

.curseur-champ::-moz-range-progress {
  height: 6px;
  background: var(--cognac);
}

.curseur-champ::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 26px;
  margin-top: -10px;
  border: 2px solid var(--graphite);
  border-radius: 2px;
  background: var(--blanc);
}

.curseur-champ::-moz-range-thumb {
  width: 18px;
  height: 22px;
  border: 2px solid var(--graphite);
  border-radius: 2px;
  background: var(--blanc);
}

.curseur-champ:focus-visible {
  outline: none;
}

.curseur-champ:focus-visible::-webkit-slider-thumb {
  outline: 2px solid var(--cognac);
  outline-offset: 2px;
}

.curseur-champ:focus-visible::-moz-range-thumb {
  outline: 2px solid var(--cognac);
  outline-offset: 2px;
}

.champ-aide {
  margin-top: 6px;
  font-size: 0.84rem;
  color: var(--graphite-2);
}

/* Bon de prix détaillé */
.budget {
  padding: 18px;
  border: 1px solid var(--bouleau-3);
  border-radius: var(--rayon);
  background: var(--blanc);
  border-top: 3px solid var(--graphite);
}

.budget-titre {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--graphite-2);
}

.budget-total {
  margin-top: 4px;
  font-family: var(--police-titre);
  font-size: var(--pas-2);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.budget-lignes {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--bouleau-3);
  font-size: 0.92rem;
}

.budget-lignes div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.budget-lignes dt {
  color: var(--graphite-2);
}

.budget-lignes dd {
  margin: 0;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.budget-tva,
.budget-note {
  margin-top: 12px;
  font-size: 0.84rem;
  color: var(--graphite-2);
}

.budget-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 16px;
}

.budget-retour {
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--cognac-fonce);
}

.maj {
  animation: maj 0.6s var(--rabot);
}

@keyframes maj {
  from {
    color: var(--cognac);
  }
}

.fiche {
  border: 1px solid var(--bouleau-3);
  border-radius: var(--rayon);
  background: var(--blanc);
}

.fiche-titre {
  padding: 14px 18px;
  font-weight: 700;
  cursor: pointer;
}

.fiche-compte {
  color: var(--graphite-2);
  font-weight: 500;
}

.fiche .tableau-enveloppe {
  margin: 0 18px 18px;
}

.config-sans-js {
  padding: 14px;
  border: 1px dashed var(--trait);
  font-size: 0.95rem;
}

/* Mobile : la planche reste en haut de l'écran pendant les choix. */
@media (max-width: 1023px) {
  .config-planche {
    position: sticky;
    top: calc(var(--brnsg-barre, 0px) + var(--entete-h));
    z-index: 20;
    margin: 0 calc(-1 * var(--gouttiere));
    padding: 8px var(--gouttiere) 10px;
    background: var(--melamine);
    border-bottom: 1px solid var(--filet);
    transition: top 0.35s var(--rabot);
  }

  .entete-cachee .config-planche {
    top: var(--brnsg-barre, 0px);
  }

  .config .planche {
    padding: 8px 10px 10px;
  }

  .config .planche::before {
    top: 8px;
    right: 8px;
    width: 16px;
    height: 14px;
  }

  .config .planche-onglets {
    margin-bottom: 6px;
  }

  .config .planche-onglet {
    min-height: 32px;
    font-size: 0.82rem;
  }

  .config .planche-feuille {
    height: clamp(190px, 33svh, 300px);
  }

  .config .planche-vue,
  .config .planche-vue svg {
    height: 100%;
  }

  .config .planche-legende,
  .config .bon,
  .config .budget-barre {
    display: none;
  }

  .config .planche-mini-budget {
    display: block;
    position: absolute;
    right: 0;
    bottom: 0;
    padding: 4px 8px;
    background: var(--graphite);
    color: var(--blanc);
    font-size: 0.8rem;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
    border-radius: 2px;
  }

  .config-colonne-choix {
    margin-top: 6px;
  }
}

@media (max-width: 520px) {
  .tuiles {
    grid-template-columns: 1fr;
  }

  .tuiles--formes {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .tuile--forme .tuile-aide {
    display: none;
  }

  .tuile--forme .tuile-libelle {
    font-size: 0.82rem;
  }

  .forme-picto {
    width: 36px;
    height: 30px;
  }

  .choix {
    padding: 14px;
  }
}

/* ------------------------------------------------------------------ */
/* Comparateur avant / après                                            */
/* ------------------------------------------------------------------ */

.comparateur {
  position: relative;
}

.comparateur-cadre {
  position: relative;
  overflow: hidden;
  border-radius: var(--rayon);
  background: var(--bouleau);
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.comparateur-apres,
.comparateur-avant {
  position: absolute;
  inset: 0;
}

.comparateur-apres img,
.comparateur-avant img,
.comparateur-apres picture,
.comparateur-avant picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comparateur-avant {
  clip-path: inset(0 calc(100% - var(--position)) 0 0);
}

.comparateur-etiquette {
  position: absolute;
  top: 12px;
  padding: 5px 9px;
  background: rgba(34, 33, 30, 0.78);
  color: var(--blanc);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 2px;
  pointer-events: none;
}

.comparateur-etiquette--avant {
  left: 12px;
}

.comparateur-etiquette--apres {
  right: 12px;
}

.comparateur-curseur {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--position);
  width: 48px;
  margin-left: -24px;
  cursor: ew-resize;
  touch-action: none;
}

.comparateur-curseur:focus-visible {
  outline: none;
}

.comparateur-curseur:focus-visible .comparateur-prise {
  outline: 3px solid var(--cognac-clair);
  outline-offset: 2px;
}

.comparateur-trait {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: var(--blanc);
  box-shadow: 0 0 0 1px rgba(34, 33, 30, 0.25);
}

.comparateur-prise {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  background: var(--blanc);
  border: 1px solid var(--graphite);
  border-radius: 2px;
  box-shadow: 0 6px 18px -8px rgba(34, 33, 30, 0.55);
}

.comparateur-prise svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--graphite);
  stroke-width: 2;
  stroke-linecap: square;
}

/* ------------------------------------------------------------------ */
/* Réalisations (accueil et page)                                      */
/* ------------------------------------------------------------------ */

.une-grille {
  display: grid;
  gap: 28px;
}

@media (min-width: 1000px) {
  .une-grille {
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
    align-items: start;
  }
}

.une-legende {
  margin-top: 12px;
  color: var(--graphite-2);
}

.une-legende strong {
  color: var(--graphite);
}

.mini-reals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 14px;
}

.mini-real-lien {
  display: grid;
  gap: 6px;
  text-decoration: none;
}

.mini-real-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--rayon);
  background: var(--bouleau);
}

.mini-real-image img,
.mini-real-image picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--rabot);
}

.mini-real-lien:hover img {
  transform: scale(1.04);
}

.mini-real-type {
  font-size: 0.8rem;
  color: var(--graphite-2);
}

.mini-real-titre {
  font-weight: 700;
  line-height: 1.3;
}

.mini-real-lien:hover .mini-real-titre {
  color: var(--cognac);
}

.filtres {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.filtre {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--bouleau-3);
  border-radius: var(--rayon);
  background: var(--blanc);
  font-weight: 650;
  transition: background-color 0.2s var(--rabot), color 0.2s var(--rabot), border-color 0.2s var(--rabot);
}

.filtre:hover {
  border-color: var(--graphite);
}

.filtre[aria-pressed="true"] {
  background: var(--graphite);
  border-color: var(--graphite);
  color: var(--blanc);
}

.filtre-compte {
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  opacity: 0.75;
}

.reals {
  display: grid;
  gap: clamp(44px, 6vw, 88px);
}

.real {
  display: grid;
  gap: 22px;
  scroll-margin-top: calc(var(--brnsg-barre, 0px) + var(--entete-h) + 24px);
}

@media (min-width: 960px) {
  .real {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: center;
  }

  .real:nth-child(even) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr);
  }

  .real:nth-child(even) .comparateur {
    order: 2;
  }
}

.real-type {
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--cognac-fonce);
}

.real-titre {
  margin-top: 6px;
  font-size: var(--pas-2);
}

.real-lieu {
  margin: 6px 0 14px;
  color: var(--graphite-2);
}

.real-faits {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--filet);
}

.real-faits div {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 12px;
}

.real-faits dt {
  color: var(--graphite-2);
  font-size: 0.92rem;
}

.real-faits dd {
  margin: 0;
  font-weight: 650;
}

.reals-vide {
  padding: 32px 0;
  color: var(--graphite-2);
}

/* ------------------------------------------------------------------ */
/* Massif ou mélaminé (section sombre)                                  */
/* ------------------------------------------------------------------ */

.massif-grille {
  display: grid;
  gap: 36px;
}

@media (min-width: 1000px) {
  .massif-grille {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: clamp(36px, 5vw, 72px);
    align-items: start;
  }
}

.massif-texte > p {
  margin-top: 18px;
  color: var(--copeau-2);
  font-size: var(--pas-1);
  line-height: 1.5;
}

.massif-image {
  margin-top: 28px;
  border-radius: var(--rayon);
  overflow: hidden;
}

.massif-matiere {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.note--clair {
  color: var(--copeau-2);
}

/* ------------------------------------------------------------------ */
/* Tableaux                                                             */
/* ------------------------------------------------------------------ */

.tableau-enveloppe {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tableau {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.tableau caption {
  margin-bottom: 10px;
  text-align: left;
  font-family: var(--police-titre);
  font-size: 1.28rem;
  font-weight: 700;
}

.tableau th,
.tableau td {
  padding: 12px 14px 12px 0;
  border-bottom: 1px solid var(--filet);
  text-align: left;
  vertical-align: top;
}

.tableau thead th {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--graphite-2);
  border-bottom-color: var(--filet-fort);
}

.tableau tbody th {
  font-weight: 700;
}

.tableau td {
  font-variant-numeric: tabular-nums;
}

.tableau-enveloppe--sombre .tableau th,
.tableau-enveloppe--sombre .tableau td {
  border-bottom-color: var(--filet-clair);
}

.tableau-enveloppe--sombre .tableau thead th {
  color: var(--copeau-2);
  border-bottom-color: rgba(239, 232, 220, 0.34);
}

.tableau--fiche th,
.tableau--fiche td {
  padding: 8px 10px 8px 0;
  font-size: 0.88rem;
}

.deux-colonnes--tableaux {
  align-items: start;
}

@media (max-width: 700px) {
  .massif-tableau .tableau thead {
    display: none;
  }

  .massif-tableau .tableau tr {
    display: grid;
    gap: 4px;
    padding: 14px 0;
    border-bottom: 1px solid var(--filet-clair);
  }

  .massif-tableau .tableau th,
  .massif-tableau .tableau td {
    padding: 0;
    border: 0;
  }

  .massif-tableau .tableau td:nth-child(2) {
    font-weight: 700;
    color: var(--cognac-clair);
  }
}

/* ------------------------------------------------------------------ */
/* Agencement en bento (accueil)                                        */
/* ------------------------------------------------------------------ */

.bento {
  display: grid;
  gap: 16px;
}

@media (min-width: 900px) {
  .bento {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    grid-template-rows: auto auto;
  }

  .bento-carte--grande {
    grid-row: span 2;
  }
}

.bento-carte {
  border-radius: var(--rayon);
  overflow: hidden;
  background: var(--bouleau);
}

.bento-lien {
  display: grid;
  height: 100%;
  grid-template-rows: minmax(0, 1fr) auto;
  text-decoration: none;
}

.bento-image {
  overflow: hidden;
  aspect-ratio: 3 / 2;
}

.bento-carte--grande .bento-image {
  aspect-ratio: auto;
  min-height: 300px;
}

.bento-image img,
.bento-image picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--rabot);
}

.bento-lien:hover img {
  transform: scale(1.035);
}

.bento-texte {
  padding: 18px 20px 20px;
}

.bento-titre {
  font-size: var(--pas-2);
}

.bento-texte p {
  margin-top: 6px;
  color: var(--graphite-2);
}

.bento-texte .bento-prix {
  margin-top: 10px;
  color: var(--graphite);
  font-weight: 700;
}

.bento-lien:hover .bento-titre {
  color: var(--cognac);
}

/* ------------------------------------------------------------------ */
/* Étapes : une chaîne de cotes où chaque cote est une durée            */
/* ------------------------------------------------------------------ */

.etapes {
  position: relative;
  display: grid;
  gap: 26px;
}

/* Borne de fin de la chaîne de cotes. */
@media (min-width: 960px) {
  .etapes::after {
    content: "";
    position: absolute;
    top: 26px;
    right: 0;
    width: 1px;
    height: 17px;
    background: var(--graphite-2);
  }

  .etape:last-child .etape-duree {
    right: 0;
  }
}

@media (min-width: 960px) {
  .etapes {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
  }
}

.etape {
  position: relative;
  padding-top: 52px;
}

@media (min-width: 960px) {
  .etape {
    padding-right: 22px;
  }
}

.etape::before {
  content: "";
  position: absolute;
  top: 34px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--graphite-2);
  transform-origin: left center;
  transform: scaleX(var(--trace, 1));
}

.etape::after {
  content: "";
  position: absolute;
  top: 26px;
  left: 0;
  width: 1px;
  height: 17px;
  background: var(--graphite-2);
}

.etape:last-child {
  padding-right: 0;
}

.etape:last-child .etape-borne {
  display: block;
}

.etape-duree {
  position: absolute;
  top: 6px;
  left: 0;
  right: 22px;
  text-align: center;
  font-family: var(--police-titre);
  font-weight: 700;
  font-size: 1.12rem;
  font-variant-numeric: tabular-nums;
  color: var(--cognac-fonce);
}

.etape-titre {
  font-size: 1.22rem;
  letter-spacing: -0.01em;
}

.etape p:not(.etape-duree) {
  margin-top: 8px;
  color: var(--graphite-2);
  font-size: 0.96rem;
}

@media (max-width: 959px) {
  .etape {
    padding-top: 0;
    padding-left: 120px;
  }

  .etape::before {
    top: 0;
    bottom: -26px;
    left: 104px;
    right: auto;
    width: 1px;
    height: auto;
    transform-origin: center top;
    transform: scaleY(var(--trace, 1));
  }

  .etape:last-child::before {
    bottom: 0;
  }

  .etape::after {
    top: 0;
    left: 96px;
    width: 17px;
    height: 1px;
  }

  .etape-duree {
    top: -2px;
    left: 0;
    right: auto;
    width: 92px;
    text-align: right;
    font-size: 1rem;
    line-height: 1.3;
  }
}

/* ------------------------------------------------------------------ */
/* Avis                                                                 */
/* ------------------------------------------------------------------ */

.avis-entete {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 18px 40px;
  margin-bottom: 32px;
}

.avis-synthese {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.avis-synthese-note {
  font-family: var(--police-titre);
  font-size: var(--pas-4);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.avis-synthese-texte {
  max-width: 11rem;
  color: var(--graphite-2);
  font-size: 0.95rem;
  line-height: 1.35;
}

.avis-liste {
  display: grid;
  gap: 16px;
}

@media (min-width: 900px) {
  .avis-liste {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
  }

  .avis-carte:first-child .avis-texte {
    font-family: var(--police-titre);
    font-weight: 500;
    font-size: var(--pas-1);
    line-height: 1.32;
    letter-spacing: -0.01em;
  }

  .avis-liste:has(> :nth-child(5)) .avis-carte:first-child {
    grid-row: span 2;
  }

  .avis-liste:has(> :nth-child(5)) .avis-carte:first-child .avis-texte {
    font-size: var(--pas-2);
    line-height: 1.25;
  }
}

.avis-carte {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  background: var(--blanc);
  border: 1px solid var(--bouleau-3);
  border-radius: var(--rayon);
}

.section--panneau .avis-carte {
  border-color: var(--bouleau-3);
}

.avis-note-ligne {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}

.etoile {
  width: 18px;
  height: 18px;
  fill: var(--cognac);
}

.avis-sur {
  color: var(--graphite-2);
  font-weight: 500;
}

.avis-texte {
  margin: 0;
  flex: 1;
}

.avis-auteur {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 0.88rem;
  color: var(--graphite-2);
}

.avis-nom {
  color: var(--graphite);
  font-weight: 700;
}

.avis-note {
  margin-top: 16px;
  font-size: 0.84rem;
  color: var(--graphite-2);
}

/* ------------------------------------------------------------------ */
/* Showroom (accueil) et pages showroom, atelier, agencement             */
/* ------------------------------------------------------------------ */

.showroom-grille {
  display: grid;
  gap: 32px;
  align-items: center;
}

@media (min-width: 960px) {
  .showroom-grille {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 72px);
  }
}

.showroom-image {
  border-radius: var(--rayon);
  overflow: hidden;
}

.showroom-texte > p {
  margin-top: 16px;
  color: var(--graphite-2);
}

.showroom-adresse {
  margin-top: 20px;
  font-weight: 650;
}

.statut {
  margin-top: 12px;
  font-weight: 650;
}

.statut--clair {
  color: var(--copeau);
}

.horaires {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  font-size: 0.95rem;
}

.horaires li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 0;
  border-bottom: 1px dashed var(--filet);
}

.horaires li span:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.horaires--grand {
  font-size: 1rem;
}

.ouvrage-grille {
  display: grid;
  gap: 28px;
  align-items: center;
}

@media (min-width: 960px) {
  .ouvrage-grille {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 72px);
  }

  .ouvrage-grille--inverse .ouvrage-image {
    order: 2;
  }
}

.ouvrage {
  scroll-margin-top: calc(var(--brnsg-barre, 0px) + var(--entete-h));
}

.ouvrage-image {
  border-radius: var(--rayon);
  overflow: hidden;
}

.ouvrage-texte p {
  margin-top: 14px;
}

.ouvrage-texte .titre-section {
  margin-bottom: 4px;
}

.prix-liste {
  display: grid;
  margin-top: 20px;
  border-top: 1px solid var(--filet-fort);
}

.prix-liste div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--filet);
}

.prix-liste dt {
  color: var(--graphite-2);
}

.prix-liste dd {
  margin: 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.ouvrage-delai {
  font-weight: 650;
}

.sommaire {
  margin-top: -8px;
  margin-bottom: 8px;
}

.sommaire ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-top: 16px;
  border-top: 1px solid var(--filet);
}

.sommaire a {
  font-weight: 650;
}

.machines {
  display: grid;
  border-top: 1px solid var(--filet-fort);
}

.machines div {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--filet);
}

.machines dt {
  font-weight: 700;
}

.machines dd {
  margin: 0;
  color: var(--graphite-2);
}

.communes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}

.communes li {
  padding: 4px 10px;
  border: 1px solid var(--bouleau-3);
  border-radius: 2px;
  font-size: 0.88rem;
  background: var(--blanc);
}

/* Équipe : le fondateur en grand, les deux autres en vis-à-vis. */
.portraits {
  display: grid;
  gap: 24px;
}

@media (min-width: 900px) {
  .portraits {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: clamp(28px, 4vw, 56px);
  }

  .portrait:first-child {
    grid-row: span 2;
  }

  .portrait:not(:first-child) {
    display: grid;
    grid-template-columns: 9.5rem minmax(0, 1fr);
    column-gap: 20px;
    align-content: start;
  }

  .portrait:not(:first-child) .portrait-image {
    grid-row: span 3;
  }
}

.portrait-image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--rayon);
  background: var(--bouleau-2);
  margin-bottom: 14px;
}

.portrait-image img,
.portrait-image picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait-nom {
  font-size: var(--pas-1);
}

.portrait-role {
  margin: 2px 0 8px;
  color: var(--cognac-fonce);
  font-weight: 650;
}

.portrait:first-child .portrait-nom {
  font-size: var(--pas-2);
}

/* Bande vidéo de l'atelier */
.bande-video {
  position: relative;
  min-height: clamp(360px, 62vh, 640px);
  display: grid;
  align-items: end;
  color: var(--copeau);
  background: var(--fume);
  overflow: hidden;
  isolation: isolate;
}

.bande-video-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.bande-video-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(26, 21, 17, 0.82) 0%, rgba(26, 21, 17, 0) 55%);
}

.bande-video-image,
.bande-video-image img,
.bande-video-film {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
}

.bande-video-film {
  opacity: 0;
  transition: opacity 0.9s var(--rabot);
}

.bande-video-film.est-prete {
  opacity: 1;
}

.bande-video-texte {
  padding-bottom: clamp(28px, 4vw, 48px);
}

.bande-video-texte .titre-section {
  max-width: 18em;
}

.hero-pause--bande {
  top: 16px;
}

/* Infos du showroom */
.infos-grille {
  display: grid;
  gap: 40px;
}

@media (min-width: 1000px) {
  .infos-grille {
    grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 4fr);
    gap: clamp(32px, 4vw, 56px);
  }
}

.info-bloc .titre-section {
  font-size: var(--pas-2);
  margin-bottom: 16px;
}

.info-adresse {
  font-weight: 650;
  font-size: 1.08rem;
}

.acces {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.acces dt {
  font-weight: 700;
}

.acces dd {
  margin: 0;
  color: var(--graphite-2);
}

.info-tel {
  margin-top: 18px;
}

.info-bloc .liste-coches {
  margin-top: 4px;
}

/* Plan de situation */
.carte-grille {
  display: grid;
  gap: 28px;
  align-items: start;
}

@media (min-width: 960px) {
  .carte-grille {
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 2fr);
    gap: clamp(32px, 4vw, 56px);
  }
}

.carte-texte p {
  margin-top: 16px;
  color: var(--graphite-2);
}

.carte-feuille {
  background: var(--blanc);
  border: 1px solid var(--bouleau-3);
  border-radius: var(--rayon);
  overflow: hidden;
}

.carte {
  width: 100%;
  height: auto;
}

.carte-fond {
  fill: #F7F3EC;
}

.c-secondaire {
  fill: none;
  stroke: #D9CFBF;
  stroke-width: 1.1;
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
}

.c-principale {
  fill: none;
  stroke: #B9AC97;
  stroke-width: 1.8;
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
}

.c-rocade {
  fill: none;
  stroke: var(--graphite-2);
  stroke-width: 2.6;
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
}

.c-eau {
  fill: none;
  stroke: #A9BCC2;
  stroke-width: 1.6;
  vector-effect: non-scaling-stroke;
}

.c-scarpe {
  fill: none;
  stroke: #6F8F99;
  stroke-width: 3.2;
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
}

.c-distance {
  stroke: var(--cognac);
  stroke-width: 1.6;
  stroke-dasharray: 6 4;
  vector-effect: non-scaling-stroke;
}

.c-distance-texte {
  fill: var(--cognac-fonce);
  font-family: var(--police-titre);
  font-weight: 700;
  font-size: 120px;
}

.c-beffroi {
  fill: var(--graphite);
}

.c-atelier {
  fill: var(--cognac);
  stroke: var(--blanc);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.c-atelier-halo {
  fill: var(--cognac);
  opacity: 0.18;
}

.c-etiquette {
  fill: var(--graphite);
  font-family: var(--police-texte);
  font-weight: 700;
  font-size: 118px;
  paint-order: stroke;
  stroke: #F7F3EC;
  stroke-width: 22px;
  stroke-linejoin: round;
}

.c-etiquette--atelier {
  fill: var(--cognac-fonce);
  font-size: 128px;
}

.c-etiquette--eau {
  fill: #4C6B75;
  font-style: italic;
  font-weight: 600;
}

.c-etiquette--rocade {
  fill: var(--graphite-2);
  font-weight: 600;
  font-size: 104px;
}

.carte-legende {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--graphite-2);
}

/* ------------------------------------------------------------------ */
/* FAQ                                                                  */
/* ------------------------------------------------------------------ */

.faq-grille {
  display: grid;
  gap: 28px;
}

@media (min-width: 960px) {
  .faq-grille {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: clamp(32px, 5vw, 72px);
  }
}

.faq-item {
  border-bottom: 1px solid var(--filet-fort);
}

.faq-item:first-child {
  border-top: 1px solid var(--filet-fort);
}

.faq-question {
  position: relative;
  display: block;
  padding: 18px 44px 18px 0;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-signe {
  position: absolute;
  right: 6px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
}

.faq-signe::before,
.faq-signe::after {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 16px;
  height: 2px;
  background: var(--cognac);
  transition: transform 0.25s var(--rabot);
}

.faq-signe::after {
  transform: rotate(90deg);
}

.faq-item[open] .faq-signe::after {
  transform: rotate(0deg);
}

.faq-reponse {
  padding: 0 0 20px;
  color: var(--graphite-2);
}

.faq-reponse p {
  max-width: 44rem;
}

/* ------------------------------------------------------------------ */
/* Appel à l'action                                                     */
/* ------------------------------------------------------------------ */

.section--appel {
  background: var(--fume);
  color: var(--copeau);
  padding: clamp(56px, 7vw, 96px) 0;
}

.appel-grille {
  display: grid;
  gap: 24px;
  align-items: end;
}

@media (min-width: 900px) {
  .appel-grille {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }
}

.appel-grille p {
  margin-top: 14px;
  color: var(--copeau-2);
  max-width: 36rem;
}

.appel-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

/* ------------------------------------------------------------------ */
/* Formulaires                                                          */
/* ------------------------------------------------------------------ */

.formulaire-grille {
  display: grid;
  gap: 32px;
}

@media (min-width: 1000px) {
  .formulaire-grille {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
  }
}

.formulaire-intro p {
  margin-top: 16px;
  color: var(--copeau-2);
}

.formulaire-intro .lien-tel {
  margin-top: 18px;
}

.formulaire-carte {
  padding: clamp(18px, 3vw, 32px);
  background: var(--melamine);
  color: var(--graphite);
  border-radius: var(--rayon);
}

.formulaire-carte a {
  color: var(--graphite);
  text-decoration-color: var(--cognac);
}

.formulaire-carte :focus-visible {
  outline-color: var(--cognac);
}

.formulaire {
  display: grid;
  gap: 16px;
}

.champ-rangee {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .champ-rangee {
    grid-template-columns: 1fr 1fr;
  }

  .champ-rangee--trois {
    grid-template-columns: 1.1fr 1fr 1fr;
  }
}

.champ {
  display: grid;
  gap: 6px;
  align-content: start;
}

.champ label {
  font-weight: 650;
  font-size: 0.95rem;
}

.champ-optionnel {
  font-weight: 400;
  color: var(--graphite-2);
}

.champ input,
.champ select,
.champ textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
  background: var(--blanc);
  font-size: 1rem;
  transition: border-color 0.2s var(--rabot), box-shadow 0.2s var(--rabot);
}

.champ textarea {
  min-height: 110px;
  resize: vertical;
}

.champ input:focus,
.champ select:focus,
.champ textarea:focus {
  outline: none;
  border-color: var(--graphite);
  box-shadow: 0 0 0 2px var(--cognac-clair);
}

.champ [aria-invalid="true"] {
  border-color: var(--erreur);
  box-shadow: 0 0 0 1px var(--erreur);
}

.select-enveloppe {
  position: relative;
}

.select-enveloppe::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -6px;
  border-right: 2px solid var(--graphite);
  border-bottom: 2px solid var(--graphite);
  transform: rotate(45deg);
  pointer-events: none;
}

.select-enveloppe select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
}

.champ-erreur {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--erreur);
}

.formulaire-erreur:empty {
  display: none;
}

.champ-piege {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.consentement {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.9rem;
  line-height: 1.5;
}

.consentement input {
  margin-top: 2px;
}

.repere {
  padding: 12px 14px;
  border-left: 3px solid var(--cognac);
  background: var(--bouleau);
  font-weight: 600;
}

.plan-joint {
  padding: 14px;
  border: 1px solid var(--bouleau-3);
  border-radius: var(--rayon);
  background: var(--bouleau);
}

.plan-joint-entete {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 16px;
}

.plan-joint-titre {
  font-weight: 700;
}

.plan-joint-corps {
  display: grid;
  gap: 14px;
  margin-top: 10px;
}

@media (min-width: 640px) {
  .plan-joint-corps {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
  }
}

.plan-joint-dessin svg {
  width: 100%;
  height: auto;
}

.plan-joint-liste {
  display: grid;
  gap: 4px;
  font-size: 0.86rem;
}

.plan-joint-liste div {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 8px;
}

.plan-joint-liste dt {
  color: var(--graphite-2);
}

.plan-joint-liste dd {
  margin: 0;
  font-weight: 650;
}

.plan-absent {
  font-size: 0.92rem;
  color: var(--graphite-2);
}

.formulaire-succes {
  padding: 28px;
  background: var(--melamine);
  color: var(--graphite);
  border-radius: var(--rayon);
  border-left: 4px solid var(--cognac);
}

.formulaire-succes-titre {
  font-family: var(--police-titre);
  font-size: var(--pas-2);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 12px;
}

.formulaire-succes .bouton-lien {
  margin-top: 16px;
}

/* ------------------------------------------------------------------ */
/* Pied de page                                                         */
/* ------------------------------------------------------------------ */

.pied {
  background: var(--fume);
  color: var(--copeau);
  padding: clamp(56px, 7vw, 88px) 0 calc(28px + var(--brnsg-onglet, 0px));
}

.pied a {
  text-decoration-color: var(--cognac-clair);
}

.pied a:hover {
  color: var(--blanc);
}

.pied :focus-visible {
  outline-color: var(--cognac-clair);
}

.pied-grille {
  display: grid;
  gap: 36px;
}

@media (min-width: 760px) {
  .pied-grille {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1100px) {
  .pied-grille {
    grid-template-columns: 1.2fr 1.1fr 0.8fr 1fr;
    gap: 48px;
  }
}

.logo--pied {
  color: var(--copeau);
  margin-bottom: 18px;
}

.logo--pied:hover {
  color: var(--copeau);
}

.logo--pied .logo-metier {
  color: var(--copeau-2);
}

.logo--pied .logo-traverse {
  stroke: var(--cognac-clair);
}

.pied-bloc p,
.pied-adresse {
  color: var(--copeau-2);
  font-size: 0.95rem;
}

.pied-bloc p + p,
.pied-adresse + p {
  margin-top: 8px;
}

.pied-tel a {
  font-family: var(--police-titre);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--copeau);
  text-decoration: none;
}

.pied-titre {
  margin-bottom: 10px;
  font-family: var(--police-titre);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--copeau) !important;
}

.pied .horaires li {
  border-bottom-color: var(--filet-clair);
  color: var(--copeau-2);
}

.pied-statut {
  color: var(--copeau) !important;
  font-weight: 650;
}

.pied-liens {
  display: grid;
  gap: 6px;
}

.pied-liens a {
  color: var(--copeau);
}

.pied-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--filet-clair);
  font-size: 0.86rem;
  color: var(--copeau-2);
}

/* Barre d'actions mobile, au-dessus de l'onglet BRNSG replié. */
.barre-actions {
  display: none;
}

@media (max-width: 760px) {
  body {
    padding-bottom: 64px;
  }

  .barre-actions {
    position: fixed;
    left: 0;
    right: 0;
    bottom: var(--brnsg-onglet, 0px);
    z-index: 90;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 8px;
    padding: 8px var(--gouttiere) calc(8px + env(safe-area-inset-bottom, 0px));
    background: var(--melamine);
    border-top: 1px solid var(--filet-fort);
  }

  .barre-actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    border-radius: var(--rayon);
    font-weight: 700;
    text-decoration: none;
  }

  .barre-actions-tel {
    border: 1px solid var(--graphite);
    color: var(--graphite);
  }

  .barre-actions-tel .icone {
    color: var(--cognac);
  }

  .barre-actions-rdv {
    background: var(--cognac);
    color: var(--blanc);
  }

  .barre-actions-rdv:hover {
    color: var(--blanc);
    background: var(--cognac-fonce);
  }

  .menu-ouvert .barre-actions {
    display: none;
  }
}

/* ------------------------------------------------------------------ */
/* Pages légales et 404                                                 */
/* ------------------------------------------------------------------ */

.texte-legal {
  max-width: 46rem;
}

.texte-legal h2 {
  margin: 34px 0 10px;
  font-size: var(--pas-1);
}

.texte-legal h2:first-child {
  margin-top: 0;
}

.texte-legal p + p {
  margin-top: 10px;
}

.texte-legal ul {
  display: grid;
  gap: 6px;
  margin: 10px 0;
  padding-left: 1.1em;
  list-style: square;
}

.page-tete--404 {
  padding: clamp(56px, 8vw, 120px) 0;
}

.page-404-grille {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 900px) {
  .page-404-grille {
    grid-template-columns: 1fr 1fr;
  }
}

.code-erreur {
  margin-bottom: 14px;
  font-weight: 700;
  color: var(--cognac-fonce);
}

.appel-404 {
  font-weight: 600;
}

.dessin-404 {
  width: 100%;
  height: auto;
}

.d404-meuble {
  fill: var(--blanc);
  stroke: var(--graphite);
  stroke-width: 1.6;
  vector-effect: non-scaling-stroke;
}

.d404-trait {
  fill: none;
  stroke: var(--graphite);
  stroke-width: 0.8;
  stroke-dasharray: 5 4;
  vector-effect: non-scaling-stroke;
}

.d404-cote {
  fill: none;
  stroke: var(--graphite-2);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.d404-fleche {
  fill: var(--graphite-2);
}

.d404-texte {
  fill: var(--cognac);
  font-family: var(--police-titre);
  font-weight: 700;
  font-size: 34px;
}

.d404-triangle {
  fill: none;
  stroke: var(--cognac);
  stroke-width: 1.8;
  vector-effect: non-scaling-stroke;
}

/* ------------------------------------------------------------------ */
/* Mouvement réduit et impression                                       */
/* ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .hero-video,
  .bande-video-film {
    display: none;
  }
}

@media print {
  .brnsg-barre,
  .brnsg-onglet,
  .entete,
  .pied,
  .barre-actions,
  .lien-evitement,
  .page-tete,
  .config-choix,
  .budget-actions,
  .planche-onglets,
  .planche-mini-budget,
  .budget-barre,
  main > section:not(.config) {
    display: none !important;
  }

  body {
    background: #fff;
    padding: 0;
  }

  .config-grille {
    display: block;
  }

  .config-collant {
    position: static;
  }

  .config .planche-feuille {
    height: auto !important;
  }

  .config .planche-vue[hidden] {
    display: block !important;
    margin-top: 12px;
  }

  .planche,
  .budget,
  .fiche {
    break-inside: avoid;
    border-color: #999;
  }

  .fiche > :not(summary) {
    display: block;
  }
}
