/* ==========================================================================
   B.Menuiserie Agencement — direction « bois clair et lumineux »
   Palette, rythme et composants. Voir DESIGN.md.
   ========================================================================== */

@font-face {
  font-family: Manrope;
  src: url("../fonts/manrope/manrope-400.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: Manrope;
  src: url("../fonts/manrope/manrope-600.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 600;
}

@font-face {
  font-family: Manrope;
  src: url("../fonts/manrope/manrope-700.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 700;
}

@font-face {
  font-family: Lora;
  src: url("../fonts/lora/lora-400-italic.woff2") format("woff2");
  font-display: swap;
  font-style: italic;
  font-weight: 400;
}

:root {
  /* Fonds — du plus clair au plus chaud */
  --paper: #fbf9f6;
  --sand: #f2ece1;
  --oak: #e4d3b6;
  --walnut: #2b241c;

  /* Texte */
  --ink: #191512;
  --muted: #665d50;
  --on-dark: #f7f3ec;
  --muted-on-dark: #cabfad;

  /* Accent — dérivé du doré du logo, assombri pour tenir l'AA sur fond clair */
  --gold: #a97516;

  /* Petits libellés dorés : le doré de marque ne tient pas l'AA sous 24px sur fond clair. */
  --gold-text: #8d6111;
  --gold-bright: #c69122;
  --line: rgb(25 21 18 / 12%);
  --line-strong: rgb(25 21 18 / 22%);
  --line-on-dark: rgb(247 243 236 / 20%);
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --max-width: 1320px;
  --section-y: clamp(5.5rem, 10vw, 10rem);
  --radius: 4px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: clamp(2.75rem, 6.5vw, 5.75rem);
  --font-h2: clamp(2.1rem, 4.4vw, 3.75rem);
  --font-h3: clamp(1.15rem, 1.7vw, 1.5rem);
  --font-lede: clamp(1.05rem, 1.4vw, 1.2rem);

  /* Surfaces dessinées par le navigateur */
  accent-color: var(--gold);
  caret-color: var(--gold-text);
  color-scheme: light;
  scrollbar-color: var(--oak) var(--sand);
  scrollbar-width: thin;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Manrope, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizelegibility;
}

body,
button,
a {
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

/* Les surfaces que le navigateur dessine par défaut appartiennent aussi au design :
   sélection, curseur de saisie, barre de défilement, puces, contrôles natifs. */
::selection {
  background: var(--oak);
  color: var(--ink);
}

::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}

::-webkit-scrollbar-track {
  background: var(--sand);
}

::-webkit-scrollbar-thumb {
  border: 3px solid var(--sand);
  border-radius: 99px;
  background: var(--oak);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

.section-dark ::selection {
  background: var(--gold-bright);
  color: var(--ink);
}

li::marker {
  color: var(--gold-text);
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.03;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

em {
  color: var(--gold);
  font-family: Lora, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--on-dark);
  font-size: 0.9rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* --------------------------------------------------------------------------
   En-tête — transparent sur le hero, puis collant et opaque au défilement
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem var(--gutter);
  border-bottom: 1px solid transparent;
  background: transparent;
  transition:
    background 350ms var(--ease-out),
    border-color 350ms var(--ease-out);
}

.site-header::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  backdrop-filter: blur(14px);
  content: "";
  opacity: 0;
  transition: opacity 350ms var(--ease-out);
}

.site-header[data-scrolled] {
  border-bottom-color: var(--line);
  background: rgb(251 249 246 / 88%);
}

.site-header[data-scrolled]::after {
  opacity: 1;
}

.brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.15;
  text-decoration: none;
  text-transform: uppercase;
}

.brand img {
  width: auto;
  height: 2.6rem;
}

.brand-footer img {
  height: 3.1rem;
}

.brand span,
.brand strong {
  display: block;
}

.brand strong {
  color: var(--gold-text);
  font-weight: 600;
  letter-spacing: 0.15em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.header-call {
  display: none;
  width: 44px;
  min-width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgb(251 249 246 / 70%);
  text-decoration: none;
}

.header-call svg {
  width: 1.05rem;
  fill: currentcolor;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2.25rem);
}

.site-nav a {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:not(.nav-contact)::after {
  position: absolute;
  right: 0;
  bottom: calc(50% - 0.85em);
  left: 0;
  height: 1px;
  background: currentcolor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 320ms var(--ease-out);
}

.site-nav a:not(.nav-contact):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-contact {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border-radius: 99px;
  background: var(--ink);
  color: var(--on-dark);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}

.nav-contact svg {
  width: 1rem;
  fill: currentcolor;
}

.nav-contact:hover {
  background: var(--gold);
  color: var(--ink);
}

.menu-button {
  display: none;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  background: rgb(251 249 246 / 70%);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
}

.menu-button svg {
  width: 1.2rem;
  fill: none;
  stroke: currentcolor;
  stroke-width: 1.6;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  min-height: calc(100svh - 4.75rem);
  align-items: center;
  margin-top: -4.75rem;
  padding-top: 4.75rem;
  overflow: hidden;
  background: var(--sand);
}

.header-trigger {
  position: absolute;
  top: 8.25rem;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

/* Quand la vidéo est écartée (petit écran, économie de données), le poster de la
   balise <video> reste affiché : aucun repli supplémentaire n'est nécessaire. */
.hero-video,
.hero-veil {
  position: absolute;
  inset: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  filter: brightness(1.32) saturate(0.88);
  object-fit: cover;
  object-position: center;
}

/* Voile équilibré pour les deux colonnes : marque à gauche, promesse à droite. */
.hero-veil {
  background:
    linear-gradient(
      90deg,
      rgb(251 249 246 / 72%) 0%,
      rgb(251 249 246 / 58%) 38%,
      rgb(251 249 246 / 80%) 70%,
      rgb(251 249 246 / 90%) 100%
    ),
    linear-gradient(to top, rgb(251 249 246 / 45%), transparent 40%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max-width));
  margin-inline: auto;
  padding: clamp(3.5rem, 8vh, 6rem) var(--gutter);
}

.hero-layout {
  display: grid;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 7rem);
  grid-template-columns: minmax(15rem, 0.75fr) minmax(0, 1.25fr);
}

.hero-brand-panel {
  display: flex;
  min-height: clamp(19rem, 48vh, 31rem);
  align-items: center;
  justify-content: flex-start;
  padding-right: clamp(1.5rem, 4vw, 4rem);
  border-right: 1px solid rgb(29 25 22 / 20%);
}

.hero-logo {
  width: auto;
  height: clamp(15rem, 29vw, 25rem);
}

.hero-copy {
  min-width: 0;
}

#hero-title {
  max-width: 15ch;
  font-size: clamp(2.7rem, 4.75vw, 4.5rem);
}

.hero-lede {
  max-width: 46ch;
  margin-top: 1.75rem;
  color: var(--muted);
  font-size: var(--font-lede);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.5rem;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 99px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 250ms var(--ease-out),
    background 250ms var(--ease-out);
}

.button svg {
  width: 1.05rem;
  fill: currentcolor;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--ink);
  color: var(--on-dark);
}

.button-primary:hover {
  background: var(--gold);
  color: var(--ink);
}

.button-ghost {
  border-color: var(--line-strong);
  background: rgb(251 249 246 / 70%);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.button-ghost:hover {
  background: var(--paper);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  margin: 2.75rem 0 0;
  padding: 0;
  gap: 0.6rem 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  list-style: none;
}

.hero-proof li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.hero-proof li::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  content: "";
}

/* --------------------------------------------------------------------------
   Sections communes
   -------------------------------------------------------------------------- */

.statement,
.services,
.method,
.materials,
.work,
.about,
.reviews,
.contact {
  width: min(100%, var(--max-width));
  margin-inline: auto;
  padding: var(--section-y) var(--gutter);
}

.section-heading {
  max-width: 38rem;
  margin-bottom: clamp(3rem, 5vw, 4.5rem);
}

.section-inner {
  width: min(100%, var(--max-width));
  margin-inline: auto;
}

.section-heading h2,
.statement h2 {
  font-size: var(--font-h2);
}

/* Statement — la 3D */

.statement.section-dark,
.work.section-dark {
  display: block;
  width: 100%;
  max-width: none;
}

.statement.section-dark .section-inner {
  display: grid;
  align-items: start;
  gap: clamp(1.5rem, 4vw, 5rem);
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}

.statement.section-dark h2 {
  max-width: 16ch;
}

.statement.section-dark {
  border-top: 0;
}

.statement {
  display: grid;
  align-items: start;
  gap: clamp(1.5rem, 4vw, 5rem);
  grid-template-columns: minmax(0, 0.32fr) minmax(0, 1fr);
  border-top: 1px solid var(--line);
}

.statement-body p {
  max-width: 62ch;
  margin-top: 1.75rem;
  color: var(--muted);
  font-size: var(--font-lede);
}

.section-dark .statement-body p {
  color: var(--muted-on-dark);
}

/* Prestations */

.services {
  background: var(--paper);
}

.service-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.service-row {
  display: grid;
  align-items: center;
  gap: clamp(1.5rem, 3.5vw, 3.5rem);
  grid-template-columns: clamp(10rem, 17vw, 14rem) minmax(0, 1fr) 2rem;
  padding: clamp(1.35rem, 2.5vw, 2rem) 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: background 300ms var(--ease-out);
}

.service-row:hover {
  background: var(--sand);
}

.service-go {
  color: var(--gold-text);
  justify-self: end;
  transition: transform 300ms var(--ease-out);
}

.service-row:hover .service-go {
  transform: translateX(4px);
}

.service-mark {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) * 0.75);
  aspect-ratio: 4 / 3;
  background: var(--sand);
}

.service-index {
  position: absolute;
  z-index: 1;
  top: 0.65rem;
  left: 0.65rem;
  min-width: 2.25rem;
  padding: 0.28rem 0.45rem;
  border-radius: 2px;
  background: rgb(251 249 246 / 92%);
  color: var(--gold-text);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.service-thumb {
  width: 100%;
  height: 100%;
  filter: saturate(0.82) contrast(1.03);
  object-fit: cover;
  transition:
    filter 300ms var(--ease-out),
    transform 250ms var(--ease-out);
}

.service-row:hover .service-thumb,
.service-row:focus-visible .service-thumb {
  filter: saturate(1) contrast(1.03);
  transform: scale(1.045);
}

.service-copy {
  display: grid;
  align-content: center;
  gap: 0.65rem;
}

.service-copy h3 {
  font-size: var(--font-h3);
}

.service-copy p {
  max-width: 55ch;
  margin: 0;
  color: var(--muted);
}

.services-note {
  max-width: 46ch;
  margin-top: 2.5rem;
  color: var(--muted);
  font-size: 1rem;
}

/* Méthode — bande sable */

.method {
  width: 100%;
  max-width: none;
  background: var(--sand);
}

.method-steps {
  display: grid;
  margin: 0;
  padding: 0;
  gap: clamp(1.75rem, 3vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  list-style: none;
}

.method-steps li {
  padding-top: 1.5rem;
  border-top: 2px solid var(--gold);
}

.method-steps span {
  display: block;
  margin-bottom: 0.9rem;
  color: var(--gold-text);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.method-steps h3 {
  font-size: 1.15rem;
}

.method-steps p {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 1rem;
}

/* Matériaux */

.materials {
  display: grid;
  align-items: start;
  gap: clamp(1.5rem, 4vw, 5rem);
  grid-template-columns: minmax(0, 0.24fr) minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
}

.materials-title {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.materials-content {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.material-texture {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  aspect-ratio: 16 / 7;
  background: var(--sand);
}

.material-texture img {
  width: 100%;
  height: 100%;
  animation: material-texture-drift 14s ease-in-out infinite alternate;
  object-fit: cover;
  transform: scale(1.035);
}

.materials-list {
  display: grid;
  margin: 0;
  gap: clamp(1rem, 3vw, 2.5rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.materials-list > div {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.materials-list dt {
  margin-bottom: 0.45rem;
  color: var(--ink);
  font-size: var(--font-h3);
  font-weight: 600;
}

.materials-list dd {
  margin: 0;
  color: var(--muted);
}

.materials-note {
  max-width: 48ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

@keyframes material-texture-drift {
  to {
    transform: translate3d(-1.25%, 0, 0) scale(1.055);
  }
}

/* Réalisations */

.work-grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.75rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.work-item-wide {
  grid-column: 1 / -1;
}

.work-media {
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
}

.work-item-wide .work-media {
  aspect-ratio: 16 / 7;
}

.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Emplacement photo non encore rempli — volontairement visible comme tel. */
[data-placeholder] {
  display: grid;
  border: 1px dashed var(--line-strong);
  background: var(--sand);
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  place-items: center;
  text-align: center;
  text-transform: uppercase;
}

.work-item h3 {
  margin-top: 1.1rem;
  font-size: var(--font-h3);
}

.work-item p {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 1rem;
}

.work-more {
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
  color: var(--muted);
  font-size: 1rem;
}

.work-more a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--ink);
  font-weight: 600;
  text-decoration-color: var(--gold);
}

/* À propos */

.about {
  display: grid;
  align-items: start;
  gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  border-top: 1px solid var(--line);
}

.about-portrait {
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
}

.about-portrait img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  object-position: center top;
}

.about-content p {
  max-width: 54ch;
  margin-top: 1.75rem;
  color: var(--muted);
  font-size: var(--font-lede);
}

.about-facts {
  display: grid;
  margin: 3rem 0 0;
  gap: 0;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}

.about-facts > div {
  padding: 1.1rem 1.25rem 1.1rem 0;
  border-top: 1px solid var(--line);
}

.about-facts dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-facts dd {
  margin: 0.4rem 0 0;
  font-size: 1.05rem;
  font-weight: 600;
}

/* Avis — bande noyer */

.reviews {
  width: 100%;
  max-width: none;
  background: var(--walnut);
  color: var(--on-dark);
}

.reviews .section-inner {
  display: grid;
  align-items: start;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

.reviews-intro {
  max-width: 30rem;
}

.reviews-intro h2 {
  font-size: var(--font-h2);
}

.reviews-source {
  margin-top: 1.5rem;
  color: var(--muted-on-dark);
  font-size: 0.9rem;
}

.reviews .text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  color: var(--on-dark);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration-color: var(--gold-bright);
}

.reviews-list {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.reviews-list figure {
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-on-dark);
}

.reviews-list blockquote {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
}

.reviews-list figcaption {
  margin-top: 1.1rem;
  color: var(--gold-bright);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Contact */

.contact-head {
  max-width: 34rem;
}

.contact-head h2 {
  font-size: var(--font-h2);
}

.contact-lede {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: var(--font-lede);
}

.contact-actions {
  display: grid;
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  max-width: 46rem;
}

.contact-button {
  display: flex;
  min-height: 76px;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  text-decoration: none;
  transition:
    transform 250ms var(--ease-out),
    background 250ms var(--ease-out),
    border-color 250ms var(--ease-out);
}

.contact-button:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.contact-button svg {
  width: 1.4rem;
  flex: none;
  fill: none;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.contact-button-primary svg {
  fill: currentcolor;
  stroke: none;
}

.contact-button small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-button strong {
  display: block;
  margin-top: 0.2rem;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.contact-button-primary {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--on-dark);
}

.contact-button-primary small {
  color: var(--muted-on-dark);
}

.contact-button-primary:hover {
  background: var(--walnut);
}

.contact-hint {
  max-width: 52ch;
  margin-top: 2rem;
  color: var(--muted);
  font-size: 1rem;
}

.contact-hint strong {
  color: var(--ink);
  font-weight: 600;
}

/* Pied de page */

.site-footer {
  display: flex;
  width: min(100%, var(--max-width));
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-inline: auto;
  padding: 3rem var(--gutter);
  border-top: 1px solid var(--line);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
}

.footer-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-size: 0.9rem;
  text-decoration-color: var(--line-strong);
}

.site-footer > p {
  width: 100%;
  color: var(--muted);
  font-size: 0.78rem;
}

.footer-credit {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--ink);
  font-weight: 650;
  text-decoration-color: var(--gold-text);
  text-underline-offset: 0.2em;
}

/* Pages légales */

.legal-page {
  background: var(--paper);
}

.legal-header {
  width: min(100%, 46rem);
  margin-inline: auto;
  padding: 2rem var(--gutter) 0;
  font-size: 0.9rem;
}

.legal-content {
  width: min(100%, 46rem);
  margin-inline: auto;
  padding: 3rem var(--gutter) 6rem;
}

.legal-content h1 {
  margin-bottom: 2.5rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.legal-content h2 {
  margin-top: 2.75rem;
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
}

.legal-content p {
  margin-bottom: 1rem;
  color: var(--muted);
}

.legal-content .legal-lede {
  margin-bottom: 2rem;
  padding: 1.25rem 1.5rem;
  border-left: 1px solid var(--gold);
  background: var(--sand);
  color: var(--ink);
  font-size: 1.05rem;
}

.legal-content ul {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
  color: var(--muted);
}

.legal-content li {
  margin-bottom: 0.4rem;
}

.legal-content strong {
  color: var(--ink);
}

/* `em` porte le doré de marque, calibré pour les gros titres. En corps de texte
   il tombe à 3,81:1 : sur les pages légales il repasse sur le jeton petit corps. */
.legal-content em {
  color: var(--gold-text);
}

.legal-content a {
  color: var(--ink);
  text-decoration-color: var(--gold);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (width <= 1100px) {
  .hero-layout {
    gap: clamp(2rem, 4vw, 4rem);
    grid-template-columns: minmax(13rem, 0.65fr) minmax(0, 1.35fr);
  }

  .hero-logo {
    height: clamp(12.5rem, 24vw, 17rem);
  }

  .menu-button {
    display: inline-flex;
  }

  .header-call {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: var(--gutter);
    display: grid;
    width: min(20rem, calc(100vw - 2 * var(--gutter)));
    padding: 0.6rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: 0 1.5rem 3rem rgb(25 21 18 / 14%);
    gap: 0.15rem;
  }

  .site-nav[hidden] {
    display: none;
  }

  .site-nav a:not(.nav-contact) {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 0.7rem 0.9rem;
  }

  .nav-contact {
    justify-content: center;
    margin-top: 0.4rem;
  }
}

@media (width <= 900px) {
  .hero-brand-panel {
    display: none;
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-veil {
    background:
      linear-gradient(100deg, rgb(251 249 246 / 88%), rgb(251 249 246 / 68%)),
      linear-gradient(to top, rgb(251 249 246 / 50%), transparent 42%);
  }

  .statement,
  .materials,
  .about,
  .reviews .section-inner {
    grid-template-columns: 1fr;
  }

  .materials-note {
    margin-top: 0;
  }

  .service-row {
    gap: clamp(1rem, 3vw, 1.75rem);
    grid-template-columns: clamp(8rem, 20vw, 10rem) minmax(0, 1fr) 2rem;
  }

  .about-portrait {
    max-width: 22rem;
    aspect-ratio: 4 / 3;
  }

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

  .work-item-wide .work-media,
  .work-media {
    aspect-ratio: 4 / 3;
  }
}

@media (width <= 700px) {
  .faq,
  .zone {
    padding-block: clamp(4rem, 14vw, 5rem);
  }

  .site-footer {
    padding-block: 2.25rem;
  }

  .faq-more-content .faq-item:nth-child(2) {
    border-top: 1px solid var(--line);
  }

  .service-row {
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) 2rem;
    padding: 1.5rem 0;
  }

  .service-mark {
    aspect-ratio: 16 / 8;
    grid-column: 1 / -1;
  }

  .service-copy {
    grid-column: 1;
  }

  .service-go {
    grid-column: 2;
    grid-row: 2;
  }

  .service-copy p {
    margin-top: 0.25rem;
  }

  .service-row:hover .service-thumb,
  .service-row:focus-visible .service-thumb {
    transform: none;
  }

  .hero-actions .button {
    width: 100%;
  }
}

@media (width <= 360px) {
  .site-header {
    gap: 0.5rem;
  }

  .menu-button {
    width: 44px;
    justify-content: center;
    padding-inline: 0;
  }

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

@media (width <= 560px) {
  .materials-list {
    grid-template-columns: 1fr;
  }

  .material-texture {
    aspect-ratio: 4 / 3;
  }
}

/* --------------------------------------------------------------------------
   Mouvement — entrée du hero uniquement, désactivable
   -------------------------------------------------------------------------- */

.js .hero-brand-panel,
.js .hero-copy > * {
  animation: rise 750ms var(--ease-out) both;
}

.js .hero-copy > *:nth-child(1) {
  animation-delay: 80ms;
}

.js .hero-copy > *:nth-child(2) {
  animation-delay: 160ms;
}

.js .hero-copy > *:nth-child(3) {
  animation-delay: 240ms;
}

.js .hero-copy > *:nth-child(4) {
  animation-delay: 320ms;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .hero-video {
    display: none;
  }

  /* le poster prend le relais */
  .hero {
    background:
      linear-gradient(rgb(251 249 246 / 55%), rgb(251 249 246 / 55%)),
      url("../images/hero-wood-poster.webp") center / cover no-repeat,
      var(--sand);
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .js .hero-brand-panel,
  .js .hero-copy > * {
    opacity: 1;
    transform: none;
  }

  .button:hover,
  .contact-button:hover,
  .service-row:hover .service-thumb,
  .service-row:focus-visible .service-thumb {
    transform: none;
  }

  .material-texture img {
    animation: none;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Galerie de réalisations
   -------------------------------------------------------------------------- */

/* Grille régulière : un seul `gap` horizontal et vertical. Les photos sont
   cadrées en 4:3 pour que le noyer n'apparaisse plus en vides entre un
   panorama et un portrait. */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.shot {
  display: flex;
  min-width: 0;
  margin: 0;
  flex-direction: column;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
  background: var(--sand);
}

.shot-portrait img {
  object-position: center 28%;
}

.shot figcaption {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

@media (width <= 900px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (width <= 620px) {
  .gallery {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Avant / après */

.beforeafter {
  width: 100%;
  max-width: none;
  padding: var(--section-y) var(--gutter);
  background: var(--sand);
}

.beforeafter > * {
  width: min(100%, var(--max-width));
  margin-inline: auto;
}

.ba-note {
  max-width: 46ch;
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 1rem;
}

.ba-pair {
  display: grid;
  gap: clamp(1rem, 2vw, 1.75rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
}

/* --------------------------------------------------------------------------
   Pages de prestation
   -------------------------------------------------------------------------- */

.subpage .site-header {
  border-bottom-color: var(--line);
  background: rgb(251 249 246 / 92%);
}

/* Même chêne que le hero d'accueil, en photo fixe. Le voile crème garde le
   texte au-dessus du seuil AA tout en laissant le grain réchauffer la page. */
.page-masthead {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--sand);
}

.page-masthead::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("../images/hero-wood-poster.webp") center / cover no-repeat;
  content: "";
  filter: brightness(1.32) saturate(0.88);
}

.page-masthead::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      rgb(251 249 246 / 62%) 0%,
      rgb(251 249 246 / 52%) 42%,
      rgb(251 249 246 / 78%) 100%
    ),
    linear-gradient(to top, rgb(251 249 246 / 42%), transparent 38%);
  content: "";
}

.breadcrumb {
  display: flex;
  width: min(100%, var(--max-width));
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-inline: auto;
  padding: 1.5rem var(--gutter) 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumb a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration-color: var(--line-strong);
}

.page-hero {
  width: min(100%, var(--max-width));
  margin-inline: auto;
  padding: clamp(2.5rem, 5vw, 4.5rem) var(--gutter) var(--section-y);
}

.page-hero h1 {
  max-width: 18ch;
  font-size: var(--font-display);
}

.page-lede {
  max-width: 52ch;
  margin-top: 1.75rem;
  color: var(--muted);
  font-size: var(--font-lede);
}

.detail {
  width: min(100%, var(--max-width));
  margin-inline: auto;
  padding: var(--section-y) var(--gutter);
  border-top: 1px solid var(--line);
}

.detail-grid {
  display: grid;
  gap: clamp(1.75rem, 3vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.detail-grid article {
  padding-top: 1.5rem;
  border-top: 2px solid var(--gold);
}

.detail-grid h3 {
  font-size: 1.15rem;
}

.detail-grid p {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 1rem;
}

.related {
  width: min(100%, var(--max-width));
  margin-inline: auto;
  padding: var(--section-y) var(--gutter) 0;
}

.related-links {
  display: grid;
  margin-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.related-links a {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
}

.related-links a span {
  color: var(--gold-text);
  transition: transform 300ms var(--ease-out);
}

.related-links a:hover span {
  transform: translateX(4px);
}

/* Bloc professionnels, page d'accueil */

/* La bande chêne est plus sombre que le crème : le doré doit y être assombri. */
.pro em {
  color: #6d4a0d;
}

.pro {
  width: 100%;
  max-width: none;
  padding: var(--section-y) var(--gutter);
  background: var(--oak);
}

.pro-body {
  width: min(100%, var(--max-width));
  margin-inline: auto;
}

.pro-body h2 {
  max-width: 20ch;
  font-size: var(--font-h2);
}

.pro-body > p {
  max-width: 56ch;
  margin-top: 1.75rem;
  font-size: var(--font-lede);
}

.pro-body .button {
  margin-top: 2.25rem;
}

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

.footer-top {
  display: grid;
  width: 100%;
  gap: clamp(2rem, 4vw, 4rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  padding-bottom: 2.5rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-title {
  margin-bottom: 0.5rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-col a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-size: 0.9rem;
  text-decoration-color: var(--line-strong);
}

.footer-note {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (width <= 760px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}

/* Zone d'intervention */

.zone {
  width: 100%;
  max-width: none;
  padding: var(--section-y) var(--gutter);
  border-top: 1px solid var(--line);
  background: var(--sand);
}

.zone .section-inner {
  display: grid;
  align-items: start;
  gap: clamp(2rem, 5vw, 4.5rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
}

.zone-head h2 {
  font-size: var(--font-h2);
}

.zone-head p {
  max-width: 42ch;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 1rem;
}

.zone-list {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 0.15rem 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
  list-style: none;
}

.zone-list li {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.zone-more {
  margin-top: 1rem;
}

.zone-more summary,
.faq-more summary {
  position: relative;
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 2rem 0.65rem 0;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  list-style: none;
}

.zone-more summary::-webkit-details-marker,
.faq-more summary::-webkit-details-marker {
  display: none;
}

.zone-more summary::after,
.faq-more summary::after {
  position: absolute;
  right: 0.25rem;
  color: var(--gold-text);
  content: "+";
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
}

.zone-more[open] summary::after,
.faq-more[open] summary::after {
  content: "−";
}

.zone-more summary:focus-visible,
.faq-more summary:focus-visible {
  border-radius: var(--radius);
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

@media (width <= 900px) {
  .zone .section-inner {
    grid-template-columns: 1fr;
  }
}

/* Questions fréquentes */

.faq {
  width: 100%;
  max-width: none;
  padding: var(--section-y) var(--gutter);
  border-top: 1px solid var(--line);
}

.faq-list {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  column-gap: clamp(2rem, 5vw, 5rem);
}

.faq-item {
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
}

.faq-item h3 {
  font-size: 1.05rem;
  letter-spacing: -0.015em;
}

.faq-item p {
  max-width: 52ch;
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 1rem;
}

.faq-more {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
}

.faq-more-content {
  display: grid;
  column-gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
}

.faq-more-content .faq-item:first-child,
.faq-more-content .faq-item:nth-child(2) {
  border-top: 0;
}

/* ==========================================================================
   Motifs d'atelier — claustra et cotes
   Le claustra est un produit qu'il fabrique ; la cote est son geste de départ.
   Les deux servent de vocabulaire graphique propre au métier.
   ========================================================================== */

/* Transition claustra : le peigne de tasseaux qui ouvre chaque bande sombre.
   C'est un produit qu'il fabrique, pas un ornement générique. */
.section-dark::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: clamp(2.25rem, 4vw, 3.75rem);
  background: repeating-linear-gradient(to right, var(--walnut) 0 14px, transparent 14px 32px);
  content: "";
  mask-image: linear-gradient(to top, #000, transparent);
  pointer-events: none;
  transform: translateY(-100%);
}

/* Bandes sombres : la page ne peut pas rester claire sur 10 000 px. */
.section-dark {
  position: relative;
  background: var(--walnut);
  color: var(--on-dark);
}

.section-dark .materials-title {
  color: var(--muted-on-dark);
}

.section-dark em {
  color: var(--gold-bright);
}

.section-dark p {
  color: var(--muted-on-dark);
}

.section-dark .materials-list > div,
.section-dark .faq-item,
.section-dark .method-steps li {
  border-color: var(--line-on-dark);
}

.section-dark .materials-list dd,
.section-dark h2,
.section-dark h3 {
  color: var(--on-dark);
}

.section-dark .method-steps li {
  border-top-color: var(--gold-bright);
}

.section-dark .method-steps span,
.section-dark .service-index {
  color: var(--gold-bright);
}

/* Cotes : annotation de dessin technique, sur la section conception 3D. */
.dimension {
  position: relative;
  padding-left: clamp(1.75rem, 3vw, 3.25rem);
}

.dimension::before {
  position: absolute;
  top: 0.6rem;
  bottom: 0.6rem;
  left: 0;
  width: 1px;
  background: var(--gold-bright);
  content: "";
  opacity: 0.7;
}

/* Les deux traits de rappel, en haut et en bas de la cote. */
.dimension::after {
  position: absolute;
  top: 0.6rem;
  left: -0.4rem;
  width: 0.85rem;
  height: calc(100% - 1.2rem);
  border-top: 1px solid var(--gold-bright);
  border-bottom: 1px solid var(--gold-bright);
  content: "";
  opacity: 0.7;
}

/* Galerie sur bande sombre */
.work.section-dark .shot img {
  background: rgb(247 243 236 / 8%);
}

.work.section-dark .shot figcaption {
  color: var(--muted-on-dark);
}

.work.section-dark .work-more {
  color: var(--muted-on-dark);
}

.work.section-dark .work-more a {
  color: var(--on-dark);
  text-decoration-color: var(--gold-bright);
}

/* --------------------------------------------------------------------------
   Révélation des réalisations
   Le panneau coulisse en place, comme une porte qu'on ajuste. DESIGN.md
   demandait ce mouvement depuis le début ; il n'avait jamais été implémenté.
   La classe .reveal-ready n'est posée que si IntersectionObserver existe :
   sans JS, ou si l'API manque, rien n'est masqué.
   -------------------------------------------------------------------------- */

/* Le masque porte sur l'image, jamais sur la <figure> observée : Chrome calcule
   l'intersection APRÈS clip-path, donc une figure masquée à 100 % ne déclenche
   jamais l'IntersectionObserver. */
.reveal-ready .shot img {
  clip-path: inset(0 0 0 100%);
  transition: clip-path 900ms var(--ease-out);
}

.reveal-ready .shot figcaption {
  opacity: 0;
  transition:
    opacity 500ms var(--ease-out),
    transform 500ms var(--ease-out);
  transform: translateY(0.4rem);
}

.reveal-ready .shot:nth-child(3n + 2) img,
.reveal-ready .shot:nth-child(3n + 2) figcaption {
  transition-delay: 90ms;
}

.reveal-ready .shot:nth-child(3n + 3) img,
.reveal-ready .shot:nth-child(3n + 3) figcaption {
  transition-delay: 180ms;
}

.reveal-ready .shot.is-in img {
  clip-path: inset(0);
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal-ready .shot img {
    clip-path: none;
    transition: none;
  }

  .reveal-ready .shot figcaption {
    opacity: 1;
    transition: none;
    transform: none;
  }
}
