/* Muttner Menuiserie — maquette 2026
   Identité : le pignon. La silhouette du logo (maison + M) cadre les images
   et rythme la page ; tout le reste reste calme, bois et chaux. */

@font-face {
  font-family: "Young Serif";
  src: url("fonts/young-serif.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Jura";
  src: url("fonts/jura.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/hanken-grotesk.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/hanken-grotesk-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --chaux: #faf8f5;
  --pierre: #efe8dd;
  --pierre-fonce: #e2d8c8;
  --noyer: #2e1e18;
  --brou: #4c3028;
  --chene: #a88458;
  --chene-clair: #c6ad88;
  --texte-doux: #6b5a50;
  --trait: #dcd1c2;
  --sapin: #3f6b4e;
  --sur-sombre: #f3ebe0;

  --f-titre: "Young Serif", "Georgia", serif;
  --f-texte: "Hanken Grotesk", system-ui, sans-serif;
  --f-marque: "Jura", "Gill Sans", sans-serif;

  /* Échelle typographique (rapport 1.25, ancrée à 17px) */
  --t-xs: 0.8125rem;
  --t-s: 0.9375rem;
  --t-m: 1.0625rem;
  --t-l: 1.3125rem;
  --t-xl: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem);
  --t-2xl: clamp(2.1rem, 1.4rem + 2.6vw, 3.5rem);
  --t-hero: clamp(2.6rem, 1.4rem + 4.6vw, 5.6rem);

  --page: 1240px;
  --gouttiere: clamp(16px, 4vw, 48px);
  --rayon: 6px;

  --pignon: polygon(50% 0, 100% 26%, 100% 100%, 0 100%, 0 26%);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --chaux: #1b1411;
    --pierre: #251b17;
    --pierre-fonce: #31241e;
    --noyer: #f1e9df;
    --brou: #e4d3bd;
    --chene: #c9a878;
    --chene-clair: #8c7253;
    --texte-doux: #b9a99b;
    --trait: #3a2c25;
    --sapin: #8fc0a0;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --chaux: #1b1411;
  --pierre: #251b17;
  --pierre-fonce: #31241e;
  --noyer: #f1e9df;
  --brou: #e4d3bd;
  --chene: #c9a878;
  --chene-clair: #8c7253;
  --texte-doux: #b9a99b;
  --trait: #3a2c25;
  --sapin: #8fc0a0;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--chaux);
  color: var(--noyer);
  font: 400 var(--t-m)/1.6 var(--f-texte);
  font-feature-settings: "ss01";
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--chene); outline-offset: 3px; border-radius: 2px; }

.enveloppe {
  width: min(100% - 2 * var(--gouttiere), var(--page));
  margin-inline: auto;
}

/* ——— Annonce ——— */
.annonce {
  background: var(--brou);
  color: var(--chaux);
  font-size: var(--t-s);
}
.annonce .enveloppe {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  padding-block: 10px;
  text-align: center;
}
.annonce svg { flex: none; width: 18px; height: 18px; }
.annonce[hidden] { display: none; }

/* Menu mobile : un tiroir qui descend sous l'en-tête */
.menu-tiroir {
  position: fixed;
  inset: 0 0 auto 0;
  margin: 0;
  width: 100%;
  max-width: none;
  padding: 88px var(--gouttiere) 28px;
  border: 0;
  border-bottom: 1px solid var(--trait);
  background: var(--chaux);
  color: var(--noyer);
  box-shadow: 0 24px 48px -24px rgb(46 30 24 / .35);
}
.menu-tiroir:popover-open { display: grid; gap: 4px; }
.menu-tiroir a {
  padding: 12px 0;
  font: 400 var(--t-xl)/1.2 var(--f-titre);
  color: var(--brou);
  text-decoration: none;
  border-bottom: 1px solid var(--trait);
}
.menu-tiroir a[aria-current="page"] { color: var(--chene); }
.menu-fermer {
  justify-self: start;
  margin-top: 16px;
  padding: 10px 18px;
  border: 1px solid var(--trait);
  border-radius: 999px;
  background: none;
  color: var(--noyer);
  font: 600 var(--t-s)/1 var(--f-texte);
  cursor: pointer;
}
.menu-tiroir::backdrop { background: rgb(28 18 13 / .35); }
@media (prefers-reduced-motion: no-preference) {
  .menu-tiroir:popover-open { animation: tiroir .25s cubic-bezier(.2,.7,.1,1); }
  @keyframes tiroir { from { transform: translateY(-16px); opacity: 0; } }
}

/* ——— En-tête ——— */
.entete {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--chaux) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.entete.defile { border-bottom-color: var(--trait); }
.entete .enveloppe {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 76px;
}
.marque {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--brou);
}
.marque svg { width: 40px; height: 36px; flex: none; }
.marque .mot {
  font: 600 1.5rem/1 var(--f-marque);
  font-variant: small-caps;
  letter-spacing: .015em;
  white-space: nowrap;
}
.nav {
  margin-left: auto;
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav a {
  text-decoration: none;
  font-size: var(--t-s);
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--texte-doux);
}
.nav a:hover { color: var(--noyer); background: var(--pierre); }
.nav a[aria-current="page"] { color: var(--noyer); }

.bouton {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font: 600 var(--t-s)/1 var(--f-texte);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.bouton svg { width: 18px; height: 18px; }
.bouton-plein { background: var(--brou); color: var(--chaux); }
.bouton-plein:hover { background: color-mix(in srgb, var(--brou) 86%, var(--noyer)); }
.bouton-plein:active { transform: translateY(1px); }
.bouton-lien {
  color: var(--noyer);
  padding-inline: 6px;
  min-height: 48px;
  text-decoration: underline;
  text-decoration-color: var(--chene);
  text-underline-offset: 6px;
  text-decoration-thickness: 1.5px;
}
.bouton-lien:hover { text-decoration-color: currentColor; }
.entete .bouton { min-height: 42px; padding-inline: 18px; }
.menu-mobile { display: none; }

/* ——— Héros : le pignon ——— */
.heros {
  position: relative;
  padding-block: clamp(32px, 6vw, 72px) clamp(80px, 9vw, 128px);
}
.heros .enveloppe {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
}
.heros h1 {
  font: 400 var(--t-hero)/1.02 var(--f-titre);
  letter-spacing: -.015em;
  margin: 0 0 28px;
  color: var(--brou);
  text-wrap: balance;
}
.heros .chapeau {
  font-size: var(--t-l);
  line-height: 1.55;
  max-width: 34ch;
  color: var(--texte-doux);
  margin: 0 0 36px;
}
.heros .actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }

.statut {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 44px;
  font-size: var(--t-s);
  color: var(--texte-doux);
}
.statut i {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--texte-doux);
  box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 0%, transparent);
}
.statut[data-etat="ouvert"] i { background: var(--sapin); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sapin) 20%, transparent); }
.statut strong { color: var(--noyer); font-weight: 600; }

.pignon {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  max-height: 78vh;
  justify-self: end;
  width: 100%;
}
.pignon .photo {
  position: absolute;
  inset: 0;
  clip-path: var(--pignon);
  overflow: hidden;
  background: var(--pierre);
}
.pignon .photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.pignon .photo img.active { opacity: 1; }
.pignon .toit {
  position: absolute;
  inset: -20px;
  width: calc(100% + 40px);
  height: calc(100% + 40px);
  overflow: visible;
  pointer-events: none;
}
.pignon .toit path {
  fill: none;
  stroke: var(--chene);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}
.pignon figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -46px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: var(--t-xs);
  color: var(--texte-doux);
}
.pignon figcaption [data-legende] { margin-right: auto; }
.reperes { display: flex; gap: 6px; }
.reperes button {
  position: relative;
  width: 28px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.reperes button::before, .reperes button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 11px;
  height: 2px;
  border-radius: 2px;
  background: var(--trait);
}
.reperes button::after { right: 100%; background: var(--chene); }
.reperes button[aria-current="true"]::after { right: 0; }
.auto .reperes button[aria-current="true"]::after { right: 100%; animation: avance var(--duree, 6s) linear forwards; }
@keyframes avance { to { right: 0; } }
.pause {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--trait);
  border-radius: 50%;
  background: none;
  color: var(--texte-doux);
  cursor: pointer;
}
.pause svg { width: 12px; height: 12px; }
.pause .lecture, .en-pause .pause .arret { display: none; }
.en-pause .pause .lecture { display: block; }

/* Moment d'ouverture unique : le mur monte, puis le toit se trace */
@media (prefers-reduced-motion: no-preference) {
  .pignon .photo { animation: mur 1.1s cubic-bezier(.2,.7,.1,1) both; }
  .pignon .photo img.active { animation: lent 9s ease-out both; }
  .pignon .toit { animation: trace 1.1s .6s cubic-bezier(.4,0,.2,1) both; }
  @keyframes mur { from { clip-path: polygon(50% 100%, 100% 100%, 100% 100%, 0 100%, 0 100%); } }
  @keyframes lent { from { transform: scale(1.06); } }
  @keyframes trace { from { clip-path: inset(100% 0 0 0); opacity: 0; } to { clip-path: inset(0); opacity: 1; } }
}

/* ——— Sections ——— */
.section { padding-block: clamp(64px, 9vw, 128px); }
.section-pierre { background: var(--pierre); }
.titre-section {
  font: 400 var(--t-2xl)/1.08 var(--f-titre);
  letter-spacing: -.01em;
  color: var(--brou);
  margin: 0 0 24px;
  max-width: 18ch;
  text-wrap: balance;
}
.intro {
  font-size: var(--t-l);
  color: var(--texte-doux);
  max-width: 52ch;
  margin: 0;
}

/* Histoire : une vraie chronologie, donc des repères */
.histoire {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
}
.chronologie {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--trait);
}
.chronologie li {
  position: relative;
  padding: 0 0 40px 36px;
}
.chronologie li:last-child { padding-bottom: 0; }
.chronologie li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 10px;
  width: 13px;
  height: 12px;
  background: var(--chene);
  clip-path: var(--pignon);
}
.chronologie h3 {
  font: 400 var(--t-xl)/1.1 var(--f-titre);
  color: var(--brou);
  margin: 0 0 8px;
}
.chronologie p { margin: 0; max-width: 48ch; color: var(--texte-doux); }

/* Citation sur bois */
.citation {
  position: relative;
  color: var(--sur-sombre);
  background: #2a1b14 url("img/bois.webp") center / cover;
  isolation: isolate;
}
.citation::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(28 18 13 / .82), rgb(28 18 13 / .55));
  z-index: -1;
}
.citation .enveloppe { padding-block: clamp(72px, 10vw, 140px); }
.citation blockquote { margin: 0; }
.citation blockquote p {
  font: 400 var(--t-2xl)/1.15 var(--f-titre);
  margin: 0 0 28px;
  max-width: 24ch;
  text-wrap: balance;
}
.citation .suite { max-width: 46ch; font-size: var(--t-l); opacity: .82; margin: 0; }

/* Prestations : une liste qui se lit comme une phrase */
.prestations-tete {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 16px 48px;
  margin-bottom: 48px;
}
.prestations-tete .intro { max-width: 40ch; font-size: var(--t-m); }
.prestations {
  list-style: none;
  margin: 0;
  padding: 36px 0 0;
  border-top: 1px solid var(--trait);
  font: 400 var(--t-xl)/1.5 var(--f-titre);
  color: var(--brou);
}
.prestations { display: flex; flex-wrap: wrap; gap: .25em 1.3em; }
.prestations li { display: flex; align-items: baseline; gap: .5em; }
.prestations li::before {
  content: "";
  flex: none;
  width: .4em;
  height: .36em;
  background: var(--chene);
  clip-path: var(--pignon);
  transform: translateY(-.08em);
}
@media (max-width: 760px) {
  .prestations { flex-direction: column; gap: .35em; font-size: var(--t-l); }
}
.suisse {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
  font-size: var(--t-s);
  color: var(--texte-doux);
}
.suisse svg { width: 20px; height: 20px; flex: none; border-radius: 3px; }

/* Réalisations : mosaïque */
.realisations-tete {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.mosaique {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(140px, 17vw, 230px);
  grid-auto-flow: dense;
  gap: 10px;
}
.mosaique a {
  position: relative;
  overflow: hidden;
  border-radius: var(--rayon);
  background: var(--pierre);
}
.mosaique img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.7,.1,1);
}
.mosaique a:hover img { transform: scale(1.04); }
.mosaique .haut { grid-row: span 2; }
.mosaique .large { grid-column: span 2; }

/* Page Réalisations */
.page-tete { padding-bottom: clamp(32px, 4vw, 48px); }
.page-tete h1 { margin-bottom: 16px; }
.section-galerie { padding-bottom: clamp(64px, 9vw, 128px); }
.galerie-complete { columns: 3 260px; column-gap: 10px; }
.galerie-complete a {
  display: block;
  margin-bottom: 10px;
  break-inside: avoid;
  border-radius: var(--rayon);
  overflow: hidden;
  background: var(--pierre);
}
.galerie-complete img { width: 100%; transition: transform .6s cubic-bezier(.2,.7,.1,1); }
.galerie-complete a:hover img { transform: scale(1.03); }
.appel {
  margin-top: clamp(56px, 8vw, 96px);
  padding-top: 40px;
  border-top: 1px solid var(--trait);
}
.appel .intro { margin-bottom: 28px; }
.appel .actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }

/* Équipe sur l'accueil */
.equipe-accueil { margin-top: clamp(48px, 7vw, 96px); margin-bottom: 0; }
.equipe-accueil img, .equipe-grande img, .equipe-fete img { width: 100%; border-radius: var(--rayon); }
.equipe-accueil figcaption, .equipe-grande figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
  margin-top: 14px;
  color: var(--texte-doux);
  font-size: var(--t-s);
}

/* Page Entreprise */
.texte-long { max-width: 62ch; font-size: var(--t-l); line-height: 1.6; color: var(--texte-doux); }
.texte-long p { margin: 0 0 1em; }
.partenaires {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: clamp(32px, 5vw, 56px);
}
.partenaire {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--trait);
  border-radius: 12px;
}
.partenaire img { width: 72px; height: 72px; object-fit: contain; flex: none; border-radius: 10px; }
.partenaire p { margin: 0; color: var(--texte-doux); }
.partenaire b { display: block; color: var(--noyer); font-weight: 600; margin-bottom: 2px; }
.equipe-grande { margin: 32px 0 0; }
.portraits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(24px, 4vw, 48px);
  margin-top: clamp(48px, 6vw, 80px);
}
.portrait { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 24px; align-items: start; }
.portrait > img { width: 148px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
.portrait:not(:has(> img)) { grid-template-columns: minmax(0, 1fr); }
.portrait h3 { font: 400 var(--t-xl)/1.15 var(--f-titre); color: var(--brou); margin: 8px 0 8px; }
.portrait p { margin: 0; color: var(--texte-doux); }
.equipe-fete { margin: clamp(48px, 6vw, 80px) 0 0; }
/* La liste de l'équipe : du texte seul, comme un générique ; les photos au-dessus montrent les visages. */
.equipe-liste {
  list-style: none;
  margin: clamp(48px, 6vw, 80px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  column-gap: clamp(24px, 4vw, 48px);
  border-top: 1px solid var(--trait);
}
.equipe-liste li { padding: 18px 0 20px; border-bottom: 1px solid var(--trait); }
.equipe-liste b { display: block; font: 400 var(--t-l)/1.25 var(--f-titre); color: var(--noyer); }
.equipe-liste li > span { display: block; max-width: 34ch; margin-top: 4px; font-size: var(--t-s); line-height: 1.45; color: var(--texte-doux); }

.atelier-photos {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 10px;
  margin-top: 32px;
  align-items: start;
}
.atelier-photos a { border-radius: var(--rayon); overflow: hidden; }
.atelier-photos img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.atelier-photos a:nth-child(2) img { aspect-ratio: 3/4; }
/* Une ou deux photos seulement : elles se partagent la largeur, sans recadrage en portrait. */
.atelier-photos:has(> a:only-child) { grid-template-columns: 1fr; max-width: 880px; }
.atelier-photos:has(> a:nth-child(2):last-child) { grid-template-columns: 1fr 1fr; }
.atelier-photos:has(> a:only-child) img, .atelier-photos:has(> a:nth-child(2):last-child) img { aspect-ratio: 16/9; }

/* Mentions légales et confidentialité : titre à gauche, texte à droite, comme un registre. */
.texte-legal { margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--trait); }
.rubrique-legale {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 8px clamp(24px, 4vw, 48px);
  padding: 28px 0;
  border-bottom: 1px solid var(--trait);
}
.rubrique-legale h2 { margin: 0; font: 400 var(--t-l)/1.3 var(--f-titre); color: var(--brou); }
.rubrique-legale > div { max-width: 62ch; color: var(--texte-doux); line-height: 1.65; }
.rubrique-legale p { margin: 0 0 .9em; }
.rubrique-legale p:last-child { margin-bottom: 0; }
.rubrique-legale a { color: var(--noyer); overflow-wrap: anywhere; }
.texte-legal .maj { margin: 20px 0 0; font-size: var(--t-xs); color: var(--texte-doux); }
@media (max-width: 760px) {
  .rubrique-legale { grid-template-columns: minmax(0, 1fr); padding: 22px 0; }
}

/* Page Contact */
.heros-contact .heros-texte { min-width: 0; }
.heros-contact h1 { font-size: clamp(2.4rem, 1.4rem + 3.4vw, 4.4rem); }
.coordonnees-grandes { margin: 0 0 32px; gap: 4px; }
.coordonnees-grandes a { font-size: var(--t-xl); line-height: 1.3; }
.pignon-carte { aspect-ratio: 1 / 1.05; }
.carte { z-index: 0; }
.carte-repli { position: absolute; inset: 0; display: grid; place-items: center; color: var(--texte-doux); }
.carte .leaflet-container, .carte.leaflet-container { background: var(--pierre); font-family: var(--f-texte); }
.carte .leaflet-tile-pane { filter: sepia(.28) saturate(.75) brightness(1.02); }
.carte .leaflet-control-attribution { font-size: 10px; background: color-mix(in srgb, var(--chaux) 85%, transparent); color: var(--texte-doux); }
.carte .leaflet-control-attribution a { color: var(--texte-doux); }
.carte .leaflet-bar { border: 1px solid var(--trait); box-shadow: none; border-radius: 10px; overflow: hidden; }
.carte .leaflet-bar a { background: var(--chaux); color: var(--noyer); border-bottom-color: var(--trait); width: 34px; height: 34px; line-height: 34px; }
.carte .leaflet-bar a:hover { background: var(--pierre); }
.repere {
  width: 52px !important;
  height: 60px !important;
  margin: -58px 0 0 -26px !important;
  color: var(--brou);
  filter: drop-shadow(0 6px 8px rgb(46 30 24 / .35));
}
.repere svg { width: 100%; height: 100%; display: block; }
.contact.contact-page { border-top: 0; padding-top: 0; }
.contact-page p, .contact-page dl { font-size: var(--t-m); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .carte .leaflet-tile-pane { filter: invert(1) hue-rotate(185deg) brightness(.85) contrast(.9) sepia(.25); }
}
:root[data-theme="dark"] .carte .leaflet-tile-pane { filter: invert(1) hue-rotate(185deg) brightness(.85) contrast(.9) sepia(.25); }

/* Écoutes et liens des portraits : une même pilule, bouton rond à gauche. */
.medias { display: grid; gap: 10px; margin-top: 20px; max-width: 380px; }
.lecteur, .media-lien {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px 10px 10px;
  border-radius: 999px;
  background: var(--chaux);
  border: 1px solid var(--trait);
}
.media-lien { color: inherit; text-decoration: none; transition: border-color .15s; }
.media-lien:hover { border-color: var(--chene-clair); }
.media-lien:focus-visible { outline: 2px solid var(--chene); outline-offset: 2px; }
.media-lien-icone {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--brou);
  color: var(--brou);
  transition: background .15s, color .15s;
}
.media-lien:hover .media-lien-icone { background: var(--brou); color: var(--chaux); }
.media-lien-icone svg { width: 18px; height: 18px; }
.media-lien-corps { display: grid; gap: 1px; min-width: 0; }
.media-lien-titre { font-weight: 600; font-size: var(--t-s); }
.media-lien-source { font-size: var(--t-xs); color: var(--texte-doux); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lecteur-bouton {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--brou);
  color: var(--chaux);
  cursor: pointer;
}
.lecteur-bouton svg { width: 20px; height: 20px; }
.lecteur-bouton .pause-icone, .lecteur.joue .lecteur-bouton .lire { display: none; }
.lecteur.joue .lecteur-bouton .pause-icone { display: block; }
.lecteur-corps { flex: 1; display: grid; gap: 4px; min-width: 0; }
.lecteur-titre { font-weight: 600; font-size: var(--t-s); }
.lecteur input[type="range"] {
  width: 100%;
  height: 4px;
  margin: 4px 0;
  appearance: none;
  border-radius: 4px;
  background: linear-gradient(var(--chene), var(--chene)) 0 / var(--avance, 0%) 100% no-repeat, var(--trait);
  cursor: pointer;
}
.lecteur input[type="range"]::-webkit-slider-thumb { appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--brou); }
.lecteur input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: var(--brou); }
.lecteur-temps { font-size: var(--t-xs); color: var(--texte-doux); font-variant-numeric: tabular-nums; }

@media (max-width: 760px) {
  .portrait { grid-template-columns: 1fr; }
  .portrait > img { width: 120px; }
  .atelier-photos:has(> a:nth-child(3)) { grid-template-columns: 1fr 1fr; }
  .atelier-photos:has(> a:nth-child(3)) a:nth-child(2) { grid-row: span 2; }
  .atelier-photos:has(> a:nth-child(3)) a:nth-child(2) img { aspect-ratio: auto; height: 100%; }
}

/* Visionneuse */
.visionneuse {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #170f0c;
  color: #f3ebe0;
  overscroll-behavior: contain;
}
.visionneuse::backdrop { background: #170f0c; }
.visionneuse[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}
.visionneuse .v-haut, .visionneuse .v-bas {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px clamp(16px, 3vw, 32px);
  font-size: var(--t-s);
}
.visionneuse .v-haut { justify-content: space-between; }
.visionneuse .v-compte { font-variant-numeric: tabular-nums; opacity: .7; }
.visionneuse .v-scene {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 0 clamp(8px, 7vw, 96px);
  touch-action: pan-y;
}
.visionneuse .v-scene img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
  user-select: none;
}
.visionneuse .v-legende { text-align: center; width: 100%; justify-content: center; opacity: .85; }
.v-bouton {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgb(243 235 224 / .2);
  border-radius: 50%;
  background: rgb(243 235 224 / .06);
  color: inherit;
  cursor: pointer;
  transition: background .15s;
}
.v-bouton:hover { background: rgb(243 235 224 / .16); }
.v-bouton svg { width: 20px; height: 20px; }
.v-prec, .v-suiv { position: absolute; top: 50%; translate: 0 -50%; }
.v-prec { left: clamp(8px, 2vw, 24px); }
.v-suiv { right: clamp(8px, 2vw, 24px); }
.visionneuse :focus-visible { outline-color: #c9a878; }
@media (prefers-reduced-motion: no-preference) {
  .visionneuse[open] .v-scene img { animation: apparait .35s cubic-bezier(.2,.7,.1,1); }
  @keyframes apparait { from { opacity: 0; transform: scale(.98); } }
}
@media (max-width: 760px) {
  .v-prec, .v-suiv { top: auto; bottom: 8px; translate: none; }
  .visionneuse .v-scene { padding-bottom: 72px; }
}

/* Visite de la menuiserie */
.visite {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.visite-photos {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 10px;
  align-items: end;
}
.visite-photos img { border-radius: var(--rayon); width: 100%; object-fit: cover; }
.visite-photos img:first-child { aspect-ratio: 3/4; }
.visite-photos img:last-child { aspect-ratio: 1; }
.visite-photos:has(> img:only-child) { grid-template-columns: 1fr; }
.visite:not(:has(.visite-photos img)) { grid-template-columns: minmax(0, 1fr); }
.visite-photos img:only-child { aspect-ratio: 4/3; }
.labels { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 10px 10px;
  border: 1px solid var(--trait);
  border-radius: 999px;
  font-size: var(--t-s);
  color: var(--texte-doux);
}
.label b { color: var(--noyer); font-weight: 600; display: block; }
.label .pastille {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--pierre);
  color: var(--brou);
  flex: none;
}
.label .pastille svg { width: 18px; height: 18px; }

/* Contact */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px clamp(24px, 4vw, 64px);
  padding-top: 40px;
  border-top: 1px solid var(--trait);
}
.contact h3 {
  font: 600 var(--t-s)/1.4 var(--f-texte);
  margin: 0 0 12px;
  color: var(--noyer);
}
.contact p, .contact dl { margin: 0; color: var(--texte-doux); }
.horaires {
  display: grid;
  grid-template-columns: auto auto;
  gap: 4px 20px;
  font-variant-numeric: tabular-nums;
}
.horaires dt { color: var(--noyer); }
.horaires dd { margin: 0; }
.horaires .aujourdhui { font-weight: 600; color: var(--noyer); }
.contact a { text-decoration-color: var(--chene); text-underline-offset: 4px; }
.coordonnees { display: grid; gap: 6px; }
.coordonnees a { font-size: var(--t-l); color: var(--brou); font-family: var(--f-titre); text-decoration: none; }
.coordonnees a:hover { text-decoration: underline; }

/* Pied */
.pied {
  padding-block: 48px;
  color: var(--texte-doux);
  font-size: var(--t-s);
}
.pied .enveloppe {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--trait);
  padding-top: 32px;
}
.pied nav { display: flex; gap: 24px; flex-wrap: wrap; }
.pied a { text-decoration: none; }
.pied a:hover { color: var(--noyer); }

/* ——— Responsive ——— */
@media (max-width: 960px) {
  .heros .enveloppe, .histoire, .visite { grid-template-columns: 1fr; }
  .pignon { max-width: 520px; justify-self: center; max-height: none; }
  .contact { grid-template-columns: 1fr 1fr; }
  .contact > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .entete .bouton { margin-left: auto; }
  .menu-mobile {
    display: grid;
    place-items: center;
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 1px solid var(--trait);
    background: transparent;
    color: var(--noyer);
  }
  .menu-mobile svg { width: 20px; height: 20px; }
  .entete .bouton span { display: none; }
  .entete .bouton { width: 42px; padding: 0; justify-content: center; }
  .marque .mot { font-size: 1.12rem; }
  .reperes button { width: 18px; }
  .marque svg { width: 32px; height: 29px; }
  .entete .enveloppe { gap: 10px; }
  .mosaique { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; }
  .mosaique .large { grid-column: span 2; }
  .contact { grid-template-columns: 1fr; }
  .pignon .toit { inset: -12px; width: calc(100% + 24px); height: calc(100% + 24px); }
}
