/* ------------------------------------------------------------------
   Menuiserie Bishop - Rossas, 26310 Valdrome (Drome, Haut-Diois)
   Direction artistique « Calcaire & Sapin » : fond pierre calcaire
   froide, encre vert pin, un seul accent (le pin) ; la couleur chaude
   de la page vient uniquement du bois des photographies.
   Geometrie : tout est rectiligne, rayon 3 px sur les surfaces,
   8 px sur les coques exterieures (cadres concentriques). Aucune
   pilule : la menuiserie se coupe d'equerre.
   Theme unique verrouille (clair) : la marque n'existe qu'en clair.
   Aucune ressource tierce : polices, images et icones auto-hebergees.
   ------------------------------------------------------------------ */

/* --- Polices ------------------------------------------------------- */
/* Bricolage Grotesque (SIL Open Font License 1.1) - titres */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("assets/fonts/bricolage-latin.woff2") format("woff2");
  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: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("assets/fonts/bricolage-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
/* Instrument Sans (SIL Open Font License 1.1) - texte courant */
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/instrument-latin.woff2") format("woff2");
  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: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/instrument-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

/* --- Jetons -------------------------------------------------------- */
:root {
  color-scheme: light;

  --paper: #e7eae3;
  --paper-2: #eff2eb;
  --surface: #fbfcf9;

  --ink: #14201a;
  --ink-2: #2a3a32;
  --muted: #4a5a51;

  --pine: #1d4535;
  --pine-2: #16362a;
  --pine-3: #0f281f;
  --pine-wash: rgba(29, 69, 53, 0.07);
  --pine-line: rgba(29, 69, 53, 0.28);

  --line: rgba(20, 32, 26, 0.13);
  --line-2: rgba(20, 32, 26, 0.24);

  /* Rayons : coques 8, surfaces 3, aucun element en pilule */
  --r: 3px;
  --r-shell: 8px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.32, 0.72, 0, 1);

  --pad-y: clamp(4.75rem, 8.5vw, 8.5rem);
  --gut: clamp(1.25rem, 4vw, 3rem);
  --max: 1240px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.62;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto; /* neutralise l'attribut height du HTML, laisse agir aspect-ratio */
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.06;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.ico {
  width: 1em;
  height: 1em;
  flex: none;
  fill: currentColor;
}

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

/* --- Bandeau d'apercu ---------------------------------------------- */
.preview {
  background: var(--pine-3);
  color: #dbe4de;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.preview__in {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: baseline;
  justify-content: space-between;
  padding-block: 0.6rem;
}

.preview__txt strong {
  color: #fff;
  font-weight: 600;
}

.preview__link {
  color: #c7d6ce;
  text-decoration-color: rgba(199, 214, 206, 0.45);
  text-underline-offset: 3px;
  transition: color 0.3s var(--ease);
}

.preview__link:hover {
  color: #fff;
}

/* --- Navigation ---------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(231, 234, 227, 0.88);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.nav__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 72px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-decoration: none;
  line-height: 1.1;
}

.brand__name {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.brand__sub {
  font-size: 0.625rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.1vw, 1.9rem);
  font-size: 0.9rem;
}

.nav__links a {
  text-decoration: none;
  color: var(--ink-2);
  padding-block: 0.35rem;
  border-bottom: 1px solid transparent;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
  white-space: nowrap;
}

.nav__links a:hover {
  color: var(--pine);
  border-bottom-color: var(--pine-line);
}

.nav__tel {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--pine);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--r);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.35s var(--ease), transform 0.35s var(--ease);
}

.nav__tel:hover {
  background: var(--pine-2);
}

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

/* Menu compact (sous 920 px) : bouton qui se transforme en croix */
.burger {
  display: none;
  align-items: center;
  gap: 0.55rem;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  color: var(--ink);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.55rem 0.75rem;
  cursor: pointer;
  transition: border-color 0.35s var(--ease), color 0.35s var(--ease);
}

.burger:hover {
  border-color: var(--pine);
  color: var(--pine);
}

.burger__lines {
  position: relative;
  width: 16px;
  height: 10px;
  flex: none;
}

.burger__lines i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.45s var(--ease), opacity 0.25s var(--ease);
}

.burger__lines i:nth-child(1) {
  top: 0;
}
.burger__lines i:nth-child(2) {
  top: 4.25px;
}
.burger__lines i:nth-child(3) {
  top: 8.5px;
}

.is-open .burger__lines i:nth-child(1) {
  transform: translateY(4.25px) rotate(45deg);
}
.is-open .burger__lines i:nth-child(2) {
  opacity: 0;
}
.is-open .burger__lines i:nth-child(3) {
  transform: translateY(-4.25px) rotate(-45deg);
}

.sheet {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(231, 234, 227, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: grid;
  align-content: center;
  padding: var(--gut);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}

.sheet[data-open="true"] {
  opacity: 1;
  visibility: visible;
}

.sheet__nav {
  display: grid;
  gap: 0.35rem;
  max-width: var(--max);
  margin-inline: auto;
  width: 100%;
}

.sheet__nav a {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 600;
  font-size: clamp(1.75rem, 9vw, 2.5rem);
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--ink);
  padding-block: 0.4rem;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease),
    color 0.3s var(--ease);
}

.sheet[data-open="true"] .sheet__nav a {
  opacity: 1;
  transform: none;
}

.sheet__nav a:nth-child(1) {
  transition-delay: 80ms;
}
.sheet__nav a:nth-child(2) {
  transition-delay: 130ms;
}
.sheet__nav a:nth-child(3) {
  transition-delay: 180ms;
}
.sheet__nav a:nth-child(4) {
  transition-delay: 230ms;
}
.sheet__nav a:nth-child(5) {
  transition-delay: 280ms;
}

.sheet__cta {
  margin: 2rem auto 0;
  max-width: var(--max);
  width: 100%;
  justify-content: center;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease) 330ms, transform 0.5s var(--ease) 330ms,
    background 0.4s var(--ease);
}

.sheet[data-open="true"] .sheet__cta {
  opacity: 1;
  transform: none;
}

.sheet__close {
  position: absolute;
  top: clamp(1rem, 4vw, 1.75rem);
  right: var(--gut);
}

/* --- Boutons ------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.35rem;
  border-radius: var(--r);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background 0.4s var(--ease), color 0.4s var(--ease),
    border-color 0.4s var(--ease), transform 0.4s var(--ease);
}

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

.btn--primary {
  background: var(--pine);
  color: #fff;
}

.btn--primary:hover {
  background: var(--pine-2);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}

.btn--ghost:hover {
  border-color: var(--pine);
  color: var(--pine);
  background: var(--pine-wash);
}

.btn .ico {
  transition: transform 0.4s var(--ease);
}

.btn--ghost:hover .ico {
  transform: translateX(3px);
}

/* --- Heros --------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(520px, 74svh, 690px);
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 46%;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(15, 40, 31, 0.4) 0%,
    rgba(15, 40, 31, 0.12) 42%,
    rgba(15, 40, 31, 0) 68%
  );
}

.plaque {
  width: min(100%, 620px);
  background: rgba(231, 234, 227, 0.82);
  border: 1px solid rgba(251, 252, 249, 0.55);
  border-radius: var(--r-shell);
  padding: 6px;
  box-shadow: 0 26px 60px -28px rgba(15, 40, 31, 0.55);
}

.plaque__core {
  background: var(--surface);
  border-radius: var(--r);
  padding: clamp(1.5rem, 3.2vw, 2.5rem);
}

.hero h1 {
  font-size: clamp(2.05rem, 3.55vw, 3.05rem);
  letter-spacing: -0.035em;
}

.hero__lede {
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: clamp(0.975rem, 1.15vw, 1.0625rem);
  max-width: 46ch;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* --- Bande de reperes ---------------------------------------------- */
.facts {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.facts__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.fact {
  padding: clamp(1.5rem, 2.6vw, 2.1rem) clamp(1rem, 2vw, 1.8rem);
  border-left: 1px solid var(--line);
}

.fact:first-child {
  border-left: 0;
  padding-left: 0;
}

.fact__k {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 600;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.fact__v {
  margin-top: 0.3rem;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.45;
}

/* --- Sections ------------------------------------------------------ */
.sec {
  padding-block: var(--pad-y);
}

.sec--alt {
  background: var(--paper-2);
}

.sec--surface {
  background: var(--surface);
}

.sec__head {
  max-width: 40rem;
  margin-bottom: clamp(2.5rem, 4.5vw, 3.75rem);
}

.sec__head h2 {
  font-size: clamp(1.95rem, 3.4vw, 2.9rem);
  max-width: 18ch;
}

.sec__head p {
  margin-top: 1rem;
  color: var(--muted);
  max-width: 58ch;
}

/* --- Metiers : grille asymetrique ----------------------------------- */
.metiers {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(0.85rem, 1.4vw, 1.15rem);
}

.tile {
  display: flex;
  flex-direction: column;
  background: rgba(251, 252, 249, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--r-shell);
  padding: 6px;
  overflow: hidden;
}

.tile__media {
  border-radius: var(--r);
  overflow: hidden;
  background: var(--paper-2);
}

.tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-soft);
}

.tile:hover .tile__media img {
  transform: scale(1.035);
}

.tile__body {
  padding: clamp(1.15rem, 1.8vw, 1.6rem) clamp(1rem, 1.6vw, 1.4rem)
    clamp(1.1rem, 1.6vw, 1.35rem);
}

.tile__body h3 {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
}

.tile__body p {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.05rem;
}

.tag {
  font-size: 0.75rem;
  line-height: 1.35;
  padding: 0.32rem 0.6rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  color: var(--ink-2);
  background: rgba(251, 252, 249, 0.7);
}

.tile--a {
  grid-column: span 5;
  grid-row: span 2;
}

.tile--a .tile__media {
  flex: 1;
  min-height: 260px;
}

.tile--b {
  grid-column: span 7;
}

.tile--b .tile__media {
  aspect-ratio: 3 / 2;
  max-height: 282px;
}

.tile--c {
  grid-column: span 7;
}

.tile--c .tile__media {
  aspect-ratio: 3 / 2;
  max-height: 218px;
}

/* Quatrieme metier : bande pleine largeur en vert pin, sans photo,
   pour rompre la repetition des cartes a image et fermer la grille. */
.tile--d {
  grid-column: span 12;
  background: var(--pine);
  border-color: var(--pine);
  color: #eef3f0;
}

.tile--d .tile__body {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.25rem, 3vw, 3rem);
  align-items: center;
  padding: clamp(1.5rem, 2.4vw, 2.1rem) clamp(1.1rem, 1.8vw, 1.6rem);
}

.tile--d .tags {
  margin-top: 0;
}

.tile--d h3 {
  color: #fff;
}

.tile--d p {
  color: #c2d3ca;
}

.tile--d .tag {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: #e4ede8;
}

/* --- Galerie de realisations ---------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(0.85rem, 1.6vw, 1.4rem) clamp(0.85rem, 1.4vw, 1.15rem);
}

.shot {
  margin: 0;
}

.shot__frame {
  border-radius: var(--r-shell);
  border: 1px solid var(--line);
  padding: 6px;
  background: rgba(251, 252, 249, 0.55);
  overflow: hidden;
}

.shot img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--r);
  transition: transform 1.1s var(--ease-soft);
}

.shot:hover img {
  transform: scale(1.03);
}

.shot figcaption {
  margin-top: 0.7rem;
  font-size: 0.8125rem;
  color: var(--muted);
  padding-inline: 2px;
}

/* Les tuiles d'une meme rangee doivent finir a la meme hauteur : le
   rapport d'image compense la difference de largeur entre 7 et 5 colonnes. */
.c7 {
  grid-column: span 7;
}
.c5 {
  grid-column: span 5;
}
.c4 {
  grid-column: span 4;
}

.c5 img {
  aspect-ratio: 1.06;
}

/* --- Renovation : comparaison --------------------------------------- */
/* La comparaison occupe toute la largeur : c'est le moment le plus
   parlant de la page, il ne tient pas dans une demi-colonne. */
.reno__txt {
  max-width: 44rem;
  margin-bottom: clamp(2.25rem, 4vw, 3.25rem);
}

.reno__txt h2 {
  font-size: clamp(1.95rem, 3.4vw, 2.9rem);
  max-width: 18ch;
}

.reno__txt p {
  margin-top: 1.1rem;
  color: var(--muted);
  max-width: 58ch;
}

.reno__meta {
  margin-top: 1.5rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: rgba(251, 252, 249, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--r-shell);
  padding: 6px;
}

.compare figure {
  margin: 0;
}

.compare img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--r);
}

.compare figcaption {
  margin-top: 0.6rem;
  margin-bottom: 0.25rem;
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pine);
  font-weight: 600;
}

.compare--wide img {
  aspect-ratio: 16 / 10;
}

/* --- Atelier : bande panoramique ------------------------------------ */
.atelier {
  position: relative;
  background: var(--pine-3);
  color: #e6ede9;
  overflow: hidden;
  isolation: isolate;
}

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

.atelier__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 45% 60%;
}

.atelier__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(11, 30, 23, 0.93) 0%,
    rgba(11, 30, 23, 0.86) 34%,
    rgba(11, 30, 23, 0.38) 72%,
    rgba(11, 30, 23, 0.22) 100%
  );
}

.atelier__in {
  padding-block: clamp(4.5rem, 8vw, 7.5rem);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: end;
  justify-items: end;
}

.atelier__in > :first-child {
  justify-self: stretch;
}

.atelier h2 {
  font-size: clamp(1.95rem, 3.3vw, 2.8rem);
  color: #fff;
  max-width: 15ch;
}

.atelier p {
  margin-top: 1.2rem;
  color: #c3d4cb;
  max-width: 46ch;
}

/* Tampon d'atelier pose sur la photo : le fond sombre garantit le
   contraste quelle que soit la zone d'image qui passe dessous. */
.since {
  display: inline-flex;
  align-items: baseline;
  gap: 1rem;
  background: rgba(11, 30, 23, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--r-shell);
  padding: clamp(1rem, 1.8vw, 1.4rem) clamp(1.1rem, 2vw, 1.6rem);
}

.since__n {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: clamp(3.75rem, 8vw, 6.5rem);
  line-height: 0.86;
  letter-spacing: -0.05em;
  color: #fff;
}

.since__t {
  font-size: 0.875rem;
  color: #a9bfb4;
  max-width: 14ch;
  line-height: 1.4;
}

.atelier__list {
  display: grid;
  gap: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 1.35rem;
  margin-top: 1.6rem;
}

.atelier__list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.9375rem;
  color: #cfdcd5;
}

.atelier__list .ico {
  color: #8fb3a0;
  margin-top: 0.35em;
}

/* --- Yoga : rangee a defilement -------------------------------------- */
.yoga__head {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  max-width: 46rem;
  margin-bottom: clamp(2rem, 3.5vw, 2.75rem);
}

.yoga__head h2 {
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  max-width: 17ch;
}

.yoga__head p {
  color: var(--muted);
  max-width: 56ch;
}

/* La rangee deborde jusqu'au bord droit du viewport : c'est ce qui
   signale, sans texte, qu'elle se fait defiler. */
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 260px);
  gap: clamp(0.85rem, 1.4vw, 1.15rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  padding-right: var(--gut);
  margin-right: calc(-1 * var(--gut));
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}

.rail::-webkit-scrollbar {
  height: 6px;
}

.rail::-webkit-scrollbar-thumb {
  background: var(--line-2);
  border-radius: 3px;
}

.prod {
  scroll-snap-align: start;
  margin: 0;
}

.prod__well {
  background: #000;
  border: 1px solid var(--line);
  border-radius: var(--r-shell);
  padding: 6px;
  overflow: hidden;
}

.prod img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #000;
  border-radius: var(--r);
}

.prod figcaption {
  margin-top: 0.65rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--ink-2);
}

.prod figcaption span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
}

.yoga__note {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--muted);
  max-width: 62ch;
}

.yoga__note a {
  color: var(--pine);
  text-underline-offset: 3px;
}

/* --- Contact --------------------------------------------------------- */
.contact {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.contact h2 {
  font-size: clamp(1.95rem, 3.3vw, 2.8rem);
}

.contact__intro {
  margin-top: 1.1rem;
  color: var(--muted);
  max-width: 38ch;
}

.coord {
  margin-top: 2rem;
  display: grid;
  gap: 1.35rem;
}

.coord__row {
  display: grid;
  gap: 0.3rem;
}

.coord__lab {
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.coord__val {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  width: fit-content;
  border-bottom: 1px solid transparent;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

a.coord__val:hover {
  color: var(--pine);
  border-bottom-color: var(--pine-line);
}

.coord__val .ico {
  color: var(--pine);
  font-size: 0.85em;
}

.coord__val--sm {
  font-size: 1rem;
  word-break: break-word;
}

.coord__note {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
}

/* Formulaire desactive (option de la maquette) */
.form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-shell);
  padding: 6px;
}

.form__core {
  border-radius: var(--r);
  background: var(--paper-2);
  padding: clamp(1.35rem, 2.6vw, 2rem);
}

.form__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.form__top h3 {
  font-size: 1.15rem;
}

.opt {
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  padding: 0.25rem 0.5rem;
  white-space: nowrap;
}

.field {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.field label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-2);
}

.field input,
.field textarea {
  font: inherit;
  font-size: 0.9375rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  padding: 0.7rem 0.85rem;
  width: 100%;
}

.field textarea {
  resize: vertical;
  min-height: 116px;
}

.field input:disabled,
.field textarea:disabled {
  color: var(--muted);
  background: rgba(251, 252, 249, 0.6);
  cursor: not-allowed;
  -webkit-text-fill-color: var(--muted);
  opacity: 1;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form__row .field {
  margin-bottom: 1rem;
}

.form button {
  font: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  padding: 0.75rem 1.2rem;
  cursor: not-allowed;
}

.form__note {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.55;
}

/* --- Pied de page ---------------------------------------------------- */
.foot {
  background: var(--pine-3);
  color: #b8c9c0;
  font-size: 0.875rem;
}

.foot__top {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  align-items: flex-start;
  justify-content: space-between;
  padding-block: clamp(2.5rem, 4vw, 3.5rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.foot__brand .brand__name {
  color: #fff;
}

.foot__brand p {
  margin-top: 0.5rem;
  max-width: 34ch;
  color: #9fb3a9;
}

.foot__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
}

.foot__nav a {
  color: #c6d5cd;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.foot__nav a:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.4);
}

.foot__legal {
  padding-block: 1.5rem 2.25rem;
  font-size: 0.8125rem;
  color: #8ba398;
  display: grid;
  gap: 0.35rem;
}

.foot__legal a {
  color: #b8c9c0;
  text-underline-offset: 3px;
}

/* --- Pages secondaires ----------------------------------------------- */
.page {
  padding-block: clamp(3rem, 6vw, 5rem) var(--pad-y);
}

.page__head {
  max-width: 46rem;
  margin-bottom: clamp(2.25rem, 4vw, 3.25rem);
}

.page__head h1 {
  font-size: clamp(2rem, 3.6vw, 3rem);
}

.page__head p {
  margin-top: 1rem;
  color: var(--muted);
  max-width: 62ch;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: color 0.3s var(--ease);
}

.back:hover {
  color: var(--pine);
}

.prose {
  max-width: 68ch;
  display: grid;
  gap: 2.25rem;
}

.prose h2 {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}

.prose p {
  color: var(--muted);
  margin-bottom: 0.7rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose ul {
  display: grid;
  gap: 0.5rem;
  color: var(--muted);
}

.prose li {
  padding-left: 1.05rem;
  position: relative;
}

.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 6px;
  height: 1px;
  background: var(--pine);
}

.prose a {
  color: var(--pine);
  text-underline-offset: 3px;
}

/* --- Page avant / apres ---------------------------------------------- */
.ba {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: start;
}

.ba__card {
  background: rgba(251, 252, 249, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--r-shell);
  padding: 6px;
}

.ba__card--new {
  border-color: var(--pine-line);
  background: var(--pine-wash);
}

.ba__lab {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem 0.8rem;
}

.ba__lab strong {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
}

.ba__lab span {
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.ba__card img {
  width: 100%;
  border-radius: var(--r);
  border: 1px solid var(--line);
}

.gains {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}

.gain {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-shell);
  padding: 6px;
}

.gain__core {
  border-radius: var(--r);
  padding: clamp(1.2rem, 2vw, 1.6rem);
  background: var(--paper-2);
  height: 100%;
}

.gain h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.5rem;
}

.gain p {
  font-size: 0.9375rem;
  color: var(--muted);
}

/* Le premier gain est le plus fort : il porte la couleur de la marque,
   pour ne pas aligner trois cartes identiques. */
.gain--lead {
  background: var(--pine);
  border-color: var(--pine);
}

.gain--lead .gain__core {
  background: var(--pine);
}

.gain--lead h3 {
  color: #fff;
  font-size: 1.2rem;
}

.gain--lead p {
  color: #c2d3ca;
}

/* --- Reveal au defilement -------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.reveal:nth-child(2) {
  transition-delay: 70ms;
}
.reveal:nth-child(3) {
  transition-delay: 140ms;
}
.reveal:nth-child(4) {
  transition-delay: 210ms;
}

/* --- Adaptations ------------------------------------------------------ */
@media (max-width: 1080px) {
  .nav__links {
    gap: 1rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 920px) {
  .nav__links {
    display: none;
  }

  .burger {
    display: inline-flex;
  }

  .nav__in {
    height: 66px;
  }

  .atelier__in,
  .contact {
    grid-template-columns: 1fr;
  }

  .atelier__in {
    align-items: start;
    justify-items: start;
  }

  /* Sur une colonne, le texte passe partout sur la photo : voile uniforme. */
  .atelier__media::after {
    background: linear-gradient(
      180deg,
      rgba(11, 30, 23, 0.9) 0%,
      rgba(11, 30, 23, 0.84) 55%,
      rgba(11, 30, 23, 0.88) 100%
    );
  }

  .tile--a,
  .tile--b,
  .tile--c,
  .tile--d {
    grid-column: span 12;
    grid-row: auto;
  }

  .tile--a .tile__media {
    aspect-ratio: 3 / 2;
    min-height: 0;
    flex: none;
  }

  .c7,
  .c5,
  .c4 {
    grid-column: span 6;
  }

  .c5 img {
    aspect-ratio: 3 / 2;
  }
}

@media (max-width: 860px) {
  .hero {
    display: block;
    min-height: 0;
    padding-block: 0 0;
  }

  .hero__media {
    position: relative;
    inset: auto;
    z-index: 0;
    height: 44svh;
    min-height: 260px;
  }

  .hero__media::after {
    background: linear-gradient(
      180deg,
      rgba(15, 40, 31, 0.28) 0%,
      rgba(15, 40, 31, 0) 55%
    );
  }

  .hero .wrap {
    margin-top: -2.25rem;
    padding-bottom: clamp(2.5rem, 6vw, 3.5rem);
    position: relative;
    z-index: 1;
  }

  .plaque {
    width: 100%;
  }

  .facts__grid {
    grid-template-columns: 1fr 1fr;
  }

  .fact {
    border-top: 1px solid var(--line);
    padding-inline: 0;
    padding-left: clamp(1rem, 3vw, 1.5rem);
  }

  .fact:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }

  .fact:nth-child(-n + 2) {
    border-top: 0;
  }
}

@media (min-width: 921px) {
  .sheet {
    display: none;
  }
}

@media (max-width: 560px) {
  .nav__in {
    gap: 0.65rem;
  }

  .brand__name {
    font-size: 0.9375rem;
  }

  .brand__sub {
    display: none;
  }

  .burger__label {
    display: none;
  }

  .burger {
    padding: 0.55rem 0.6rem;
  }

  .nav__tel {
    padding: 0.6rem 0.65rem;
    font-size: 1rem;
  }

  .nav__tel span {
    display: none;
  }
}

@media (max-width: 620px) {
  .c7,
  .c5,
  .c4 {
    grid-column: span 12;
  }

  .compare {
    grid-template-columns: 1fr;
  }

  .form__row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .ba,
  .gains {
    grid-template-columns: 1fr;
  }

  .facts__grid {
    grid-template-columns: 1fr;
  }

  .fact,
  .fact:nth-child(odd),
  .fact:nth-child(-n + 2) {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
  }

  .fact:first-child {
    border-top: 0;
  }

  .tile--d .tile__body {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero__cta .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
