/* Maquette de démonstration Overtek — Julien Lagelee Tapissier Décorateur */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond.woff2") format("woff2");
  font-weight: 400 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond-italic.woff2") format("woff2");
  font-weight: 400 600; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree.woff2") format("woff2");
  font-weight: 400 600; font-style: normal; font-display: swap;
}

:root {
  --ink: #241f1a;
  --taupe: #40382d;
  --taupe-deep: #2b251e;
  --cream: #f6f1e7;
  --linen: #ebe2d2;
  --paper: #fbf8f2;
  --crimson: #9a2a2c;
  --crimson-deep: #7b2022;
  --rose: #e0aca8;
  --brass: #b9955a;
  --muted: #6b6052;
  --line: rgba(36, 31, 26, 0.16);
  --line-light: rgba(246, 241, 231, 0.22);
  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-drape: cubic-bezier(0.76, 0, 0.18, 1);
  --demo-h: 36px;
  --head-h: 72px;
  --top-h: calc(var(--demo-h) + var(--head-h));
  --galon: repeating-linear-gradient(90deg,
    var(--crimson) 0 16px, var(--cream) 16px 20px, var(--taupe-deep) 20px 30px,
    var(--brass) 30px 34px, var(--cream) 34px 38px, var(--rose) 38px 50px, var(--cream) 50px 54px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--taupe-deep);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, address, table, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
address { font-style: normal; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: 12px; top: -80px; z-index: 300; background: var(--paper); color: var(--ink); padding: 10px 14px; border-radius: 4px; }
.skip:focus { top: calc(var(--demo-h) + 8px); }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

/* ---------- Bandeau de démonstration ---------- */
.demo {
  position: fixed; top: 0; left: 0; right: 0; z-index: 120;
  background: #0f0d0b; color: #fff; text-align: center;
  font-size: 0.875rem; font-weight: 600; line-height: 1.35; letter-spacing: 0.01em;
  padding: 8px 16px;
}

/* ---------- Ouverture : logo puis rideau ---------- */
.loader, .drapes { display: none; }
.js .loader {
  position: fixed; inset: 0; z-index: 110;
  display: grid; place-content: center; justify-items: center; gap: 22px;
  background: var(--taupe-deep);
  transition: opacity 0.45s ease, visibility 0s 0.45s;
}
.loader img { width: 220px; }
.loader__line {
  display: block; width: 220px; height: 6px; background: var(--galon);
  transform-origin: left; animation: stitch 0.9s var(--ease) both;
}
@keyframes stitch { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.js .drapes { position: fixed; inset: 0; z-index: 105; display: block; pointer-events: none; }
.drapes span {
  position: absolute; top: 0; bottom: 0; width: 50.5%;
  background: repeating-linear-gradient(90deg, #efe6d6 0 34px, #dccfb7 34px 40px, #f5eee1 40px 76px, #cfc0a4 76px 80px);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.45);
  transition: transform 1.5s var(--ease-drape) 0.3s;
}
.drapes span:first-child { left: 0; }
.drapes span:last-child { right: 0; }
.is-ready .loader { opacity: 0; visibility: hidden; }
.is-ready .drapes span:first-child { transform: translateX(-103%) skewX(4deg); }
.is-ready .drapes span:last-child { transform: translateX(103%) skewX(-4deg); }
.is-open .drapes { display: none; }

/* ---------- En-tête ---------- */
.site-header {
  position: fixed; top: var(--demo-h); left: 0; right: 0; z-index: 100;
  height: var(--head-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter);
  color: var(--cream);
  background: linear-gradient(rgba(20, 16, 12, 0.55), transparent);
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
}
.site-header.is-solid { background: var(--taupe-deep); box-shadow: 0 1px 0 var(--line-light); }
.logo img { width: 168px; height: auto; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); }
.nav a { position: relative; text-decoration: none; font-size: 0.975rem; padding: 6px 0; }
.nav a:not(.nav__tel)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease);
}
.nav a:not(.nav__tel):hover::after, .nav a:not(.nav__tel):focus-visible::after { transform: scaleX(1); }
.nav__tel {
  border: 1px solid var(--line-light); border-radius: 999px; padding: 9px 18px !important;
  font-weight: 600; font-variant-numeric: tabular-nums;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.nav__tel:hover { background: var(--cream); color: var(--taupe); border-color: var(--cream); }
.menu-btn {
  display: none; align-items: center; gap: 10px;
  background: rgba(20, 16, 12, 0.35); border: 1px solid var(--line-light); border-radius: 999px;
  font-size: 0.95rem; font-weight: 600; padding: 9px 16px; cursor: pointer;
}
.menu-btn__bars { width: 18px; height: 10px; border-block: 2px solid currentColor; transition: height 0.2s var(--ease); }
.menu-btn[aria-expanded="true"] .menu-btn__bars { height: 2px; border-bottom-width: 0; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 14px 28px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 1rem; text-decoration: none; text-align: center;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--crimson); color: #fff; }
.btn--primary:hover { background: var(--crimson-deep); }
.btn--ghost { border-color: rgba(246, 241, 231, 0.5); color: var(--cream); background: rgba(20, 16, 12, 0.25); }
.btn--ghost:hover { background: var(--cream); color: var(--taupe); border-color: var(--cream); }

/* ---------- Accueil : l'entrée par la porte ---------- */
.hero { position: relative; z-index: 1; height: 100svh; background: var(--taupe-deep); color: var(--cream); }
.hero__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.hero__salon {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 46%;
  transform: scale(var(--salon-scale, 1));
  will-change: transform;
}
/* La photo du hall, au format 2:3, couvre l'écran ; elle avance vers la porte quand on défile. */
.hero__hall {
  position: absolute; left: 50%; top: 50%;
  width: max(100vw, calc(100svh * 2 / 3)); aspect-ratio: 2 / 3;
  margin-left: calc(max(100vw, calc(100svh * 2 / 3)) / -2);
  margin-top: calc(max(100vw, calc(100svh * 2 / 3)) * -0.75);
  transform-origin: 55.5% 46%;
  will-change: transform;
}
.hero__hall img { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Deuxième exemplaire, percé à l'endroit de la porte : on voit le salon à travers. */
.hero__hall-frame {
  -webkit-mask-image: linear-gradient(90deg, #000 0 39%, transparent 42.5% 68.5%, #000 72% 100%), linear-gradient(180deg, #000 0 24%, transparent 27.5% 63%, #000 67.5% 100%);
  mask-image: linear-gradient(90deg, #000 0 39%, transparent 42.5% 68.5%, #000 72% 100%), linear-gradient(180deg, #000 0 24%, transparent 27.5% 63%, #000 67.5% 100%);
  display: none;
}
.js .hero__hall-frame { display: block; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 16, 12, 0.5), transparent 22%),
    linear-gradient(0deg, rgba(20, 16, 12, 0.82), rgba(20, 16, 12, 0.25) 45%, transparent 70%),
    linear-gradient(90deg, rgba(20, 16, 12, 0.55), transparent 60%);
}
.hero__copy {
  position: absolute; left: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); right: var(--gutter);
  bottom: clamp(72px, 12svh, 120px);
  will-change: transform, opacity;
}
.hero__place { font-size: 0.975rem; color: var(--rose); margin-bottom: 16px; }
h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(3.2rem, 9vw, 8.4rem); line-height: 0.92; letter-spacing: -0.02em;
}
h1 em { font-style: italic; font-weight: 400; color: var(--rose); }
.hero__lead { font-family: var(--serif); font-size: clamp(1.35rem, 2.2vw, 1.85rem); line-height: 1.3; margin-top: 20px; max-width: 26ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__copy--b {
  display: none;
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.7rem, 3.6vw, 3.3rem); line-height: 1.18; letter-spacing: -0.005em;
  max-width: 22em; text-wrap: balance;
}
.hero__hint, .hero__bar { display: none; }

/* Version animée (JavaScript actif, animations acceptées) */
@media (prefers-reduced-motion: no-preference) {
  .js .hero { height: 350svh; }
  .js .hero__copy--b { display: block; opacity: 0; }
  .js .hero__hint {
    display: flex; align-items: center; gap: 12px;
    position: absolute; right: var(--gutter); bottom: clamp(72px, 12svh, 120px);
    font-size: 0.9rem; color: rgba(246, 241, 231, 0.9);
    writing-mode: vertical-rl;
  }
  .hero__hint i { display: block; width: 1px; height: 64px; background: currentColor; transform-origin: top; animation: hint 1.8s ease-in-out infinite; }
  @keyframes hint { 0% { transform: scaleY(0); } 55% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
  .js .hero__bar { display: block; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: rgba(20, 16, 12, 0.5); }
  .hero__bar i { display: block; height: 100%; background: var(--galon); transform-origin: left; transform: scaleX(var(--p, 0)); }

  /* Le texte d'accueil monte une fois le rideau ouvert */
  .js .hero__copy--a > * { opacity: 0; transform: translateY(34px); }
  .js.is-ready .hero__copy--a > * { animation: lift 0.9s var(--ease) both; }
  .js.is-ready .hero__copy--a > :nth-child(1) { animation-delay: 1.05s; }
  .js.is-ready .hero__copy--a > :nth-child(2) { animation-delay: 1.15s; }
  .js.is-ready .hero__copy--a > :nth-child(3) { animation-delay: 1.3s; }
  .js.is-ready .hero__copy--a > :nth-child(4) { animation-delay: 1.42s; }
  @keyframes lift { to { opacity: 1; transform: none; } }

  /* La suite de la page glisse par-dessus le salon */
  .js .sheet { margin-top: -100svh; border-radius: 28px; }
}

/* ---------- La « feuille » : tout ce qui suit l'accueil ---------- */
.sheet { position: relative; z-index: 3; background: var(--cream); overflow: clip; border-radius: 0 0 28px 28px; box-shadow: 0 -30px 80px rgba(0, 0, 0, 0.35); }

.galon { height: 12px; background: var(--galon); }

.section { padding-block: clamp(72px, 11vw, 150px); }
h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1; letter-spacing: -0.015em; }
h2.label { font-size: clamp(1.35rem, 2vw, 1.6rem); font-style: italic; font-weight: 500; color: var(--crimson); letter-spacing: 0; }
h3 { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; line-height: 1.2; }
.lede { font-family: var(--serif); font-size: clamp(1.35rem, 2.2vw, 1.8rem); line-height: 1.36; }

/* Le Métier */
.manifesto {
  --p: 1;
  margin-top: 22px;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.9rem, 4.3vw, 3.9rem); line-height: 1.1; letter-spacing: -0.012em;
  max-width: 24em; text-wrap: pretty;
}
.manifesto .w { opacity: clamp(0.14, calc((var(--p) * var(--n) - var(--i)) * 0.34 + 0.14), 1); }
.metier__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 7vw, 110px); align-items: start;
  margin-top: clamp(56px, 8vw, 110px);
}
.metier__photos { display: grid; grid-template-columns: repeat(12, 1fr); align-items: start; }
.metier__photo { overflow: hidden; will-change: transform; }
.metier__photo img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.metier__photo--a { grid-column: 1 / 9; grid-row: 1; }
.metier__photo--b { grid-column: 6 / 13; grid-row: 1; margin-top: 52%; border: 10px solid var(--cream); border-right: 0; border-bottom: 0; }
.metier__text > p + p { margin-top: 20px; }
.metier__text p { color: #3d352c; max-width: 58ch; }
.facts { margin-top: 40px; border-top: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 16px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts strong { font-family: var(--serif); font-weight: 600; font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.1; }
.facts span { color: var(--muted); font-size: 0.98rem; }

/* ---------- Réalisations : galerie horizontale ---------- */
.works {
  --h: calc(100svh - var(--top-h) - 152px);
  background-color: var(--taupe);
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.06) 0 1px, transparent 1px 3px);
  color: var(--cream);
}
.works__pin { position: sticky; top: 0; height: 100svh; padding-top: var(--top-h); overflow: hidden; display: flex; flex-direction: column; }
.works__head {
  display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap;
  padding: 26px var(--gutter) 22px;
}
.works__head h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
.works__nav { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 0.92rem; font-weight: 600; color: var(--cream); background: transparent;
  border: 1px solid var(--line-light); border-radius: 999px; padding: 9px 16px; min-height: 42px; cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.chip:hover { border-color: var(--cream); }
.chip[aria-pressed="true"] { background: var(--cream); color: var(--taupe); border-color: var(--cream); }
.works__viewport { flex: 1; min-height: 0; }
.works__track { display: flex; align-items: flex-start; gap: clamp(48px, 7vw, 120px); width: max-content; padding-inline: var(--gutter) 12vw; will-change: transform; }
.chapter { display: flex; align-items: flex-start; gap: 18px; height: var(--h); }
.chapter__row { display: contents; }
.chapter__title { width: clamp(250px, 24vw, 380px); align-self: center; padding-right: 22px; }
.chapter__title p { font-size: 0.9rem; font-variant-numeric: tabular-nums; color: var(--rose); margin-bottom: 14px; }
.chapter__title h3 { font-weight: 500; font-size: clamp(2.6rem, 4.6vw, 4.6rem); line-height: 0.96; letter-spacing: -0.015em; }
.chapter__title h3 em { color: var(--rose); font-weight: 400; }
.shot { display: block; flex: none; padding: 0; border: 0; background: var(--taupe-deep); overflow: hidden; cursor: zoom-in; }
.shot img { height: var(--h); width: auto; max-width: none; object-fit: cover; transition: transform 0.7s var(--ease); }
.shot--low { margin-top: calc(var(--h) * 0.14); }
.shot--low img { height: calc(var(--h) * 0.86); }
.pair { display: flex; flex-direction: column; gap: 18px; flex: none; }
.pair .shot img { height: calc((var(--h) - 18px) / 2); }
.shot:hover img, .shot:focus-visible img { transform: scale(1.05); }
.works__end { align-self: center; width: clamp(280px, 26vw, 400px); padding-left: 30px; }
.works__end p { font-family: var(--serif); font-size: clamp(1.3rem, 1.9vw, 1.6rem); line-height: 1.35; margin-bottom: 26px; }
.works__bar { height: 8px; background: rgba(20, 16, 12, 0.4); }
.works__bar i { display: block; height: 100%; background: var(--galon); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* ---------- Les Services ---------- */
.services { background: var(--paper); }
.services__head { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); gap: clamp(24px, 6vw, 96px); align-items: end; }
.services__kicker { font-weight: 600; color: var(--crimson); margin-top: clamp(40px, 6vw, 72px); }
.svc { counter-reset: s; margin-top: 16px; border-top: 1px solid var(--line); }
.svc li {
  counter-increment: s; position: relative;
  display: grid; grid-template-columns: 3.4ch minmax(0, 1fr) auto; gap: 20px; align-items: center;
  padding: clamp(16px, 2vw, 26px) 0; border-bottom: 1px solid var(--line);
  transition: opacity 0.3s, padding-left 0.4s var(--ease), color 0.3s;
}
.svc li::before { content: counter(s, decimal-leading-zero); font-size: 0.85rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.svc__t { font-family: var(--serif); font-size: clamp(1.5rem, 3.4vw, 3rem); line-height: 1.08; letter-spacing: -0.01em; }
.svc__thumb { width: 84px; height: 62px; object-fit: cover; border-radius: 2px; }
.svc__thumb--galon { display: block; background: var(--galon); }
@media (hover: hover) and (pointer: fine) {
  .svc:hover li { opacity: 0.32; }
  .svc li:hover { opacity: 1; padding-left: 18px; color: var(--crimson-deep); }
  .js .svc__thumb { visibility: hidden; }
}
.svc-preview {
  position: fixed; left: 0; top: 0; z-index: 60; width: 300px; height: 380px; pointer-events: none;
  overflow: hidden; opacity: 0; clip-path: inset(50% 0 50% 0);
  transition: opacity 0.25s, clip-path 0.45s var(--ease);
  background: var(--galon); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}
.svc-preview.is-on { opacity: 1; clip-path: inset(0); }
.svc-preview img { width: 100%; height: 100%; object-fit: cover; }
.svc-preview img:not([src]) { display: none; }

.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin-top: clamp(56px, 8vw, 104px); }
.pillar { border-top: 3px solid var(--crimson); padding-top: 18px; }
.pillar dt { font-family: var(--serif); font-weight: 600; font-size: 1.6rem; line-height: 1.2; }
.pillar dd { margin-top: 10px; font-size: 1rem; color: #3d352c; }

/* ---------- Partenaires : bandes défilantes ---------- */
.partenaires { background: var(--linen); padding-block: clamp(56px, 8vw, 110px); overflow: hidden; }
.marquee { display: flex; overflow: hidden; margin-top: 18px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__row {
  display: flex; flex: none; align-items: baseline; white-space: nowrap;
  font-family: var(--serif); font-size: clamp(2.2rem, 6vw, 5.2rem); line-height: 1.15; letter-spacing: -0.01em;
  animation: slide 38s linear infinite;
}
.marquee[data-dir="right"] .marquee__row { animation-direction: reverse; font-style: italic; color: var(--crimson-deep); }
.marquee:hover .marquee__row { animation-play-state: paused; }
.marquee__row li::after { content: "·"; margin-inline: 0.45em; color: var(--crimson); font-style: normal; }
.marquee__row a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size 0.3s var(--ease); }
.marquee__row a:hover, .marquee__row a:focus-visible { background-size: 100% 2px; }
@keyframes slide { to { transform: translateX(-100%); } }

/* ---------- Contact ---------- */
.contact {
  background-color: var(--taupe);
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.06) 0 1px, transparent 1px 3px);
  color: var(--cream);
}
.contact h2 { font-size: clamp(3.4rem, 10vw, 9rem); line-height: 0.9; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 0.85fr); gap: clamp(24px, 3vw, 40px); align-items: end; }
.contact__lead .lede { margin-top: 24px; max-width: 26ch; }
.contact__actions { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); margin-top: 40px; flex-wrap: wrap; }
.call {
  display: grid; place-items: center; flex: none;
  width: 150px; height: 150px; border-radius: 50%;
  background: var(--crimson); color: #fff; text-decoration: none; text-align: center;
  font-weight: 600; line-height: 1.2;
  transition: background-color 0.25s, transform 0.5s var(--ease);
  will-change: transform;
}
.call:hover { background: var(--crimson-deep); }
.big-link {
  display: block; width: fit-content; text-decoration: none;
  font-family: var(--serif); font-size: clamp(1.4rem, 2.3vw, 2rem); line-height: 1.35; font-variant-numeric: tabular-nums;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.3s var(--ease);
  overflow-wrap: anywhere;
}
.big-link:hover, .big-link:focus-visible { background-size: 100% 1px; }
.card { background: rgba(20, 16, 12, 0.28); border: 1px solid var(--line-light); padding: clamp(22px, 2.6vw, 32px); }
.card h3 { margin-bottom: 14px; }
.card p { margin-bottom: 8px; }
.coords { margin-top: 18px; border-top: 1px solid var(--line-light); }
.coords div { display: grid; grid-template-columns: 5.5ch 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-light); }
.coords dt { color: rgba(246, 241, 231, 0.66); font-size: 0.9rem; align-self: center; }
.coords dd { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.coords a { text-decoration: none; }
.coords a:hover { text-decoration: underline; text-underline-offset: 3px; }
.link { display: inline-block; margin-top: 18px; font-weight: 600; color: var(--rose); text-underline-offset: 4px; }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { padding: 12px 0; border-top: 1px solid var(--line-light); vertical-align: top; text-align: left; }
.hours th { font-weight: 600; padding-right: 12px; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Pied de page ---------- */
.footer { position: relative; z-index: 0; background: var(--taupe-deep); color: rgba(246, 241, 231, 0.86); padding-block: 40px 36px; font-size: 0.95rem; overflow: hidden; }
.footer__word {
  font-family: var(--serif); font-weight: 500; font-style: italic; color: var(--cream);
  font-size: clamp(3.6rem, 15.5vw, 15rem); line-height: 0.9; letter-spacing: -0.03em; white-space: nowrap;
  margin: 0 0 28px -0.04em; opacity: 0.94;
}
.footer__grid { display: grid; grid-template-columns: auto 1fr; gap: 20px 48px; align-items: center; }
.footer img { width: 168px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 26px; justify-content: flex-end; }
.footer__nav a { text-decoration: none; }
.footer__nav a:hover, .footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer__legal, .footer__demo { grid-column: 1 / -1; }
.footer__legal { padding-top: 20px; border-top: 1px solid var(--line-light); }
.footer__demo { color: rgba(246, 241, 231, 0.62); font-size: 0.875rem; max-width: 88ch; }
/* Le pied de page reste en place et la page se lève au-dessus, comme un store */
@media (min-width: 821px) and (min-height: 640px) {
  .footer { position: sticky; bottom: 0; }
}

.callbar { display: none; }

/* Curseur « Voir » sur les photos */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 70; width: 86px; height: 86px; margin: -43px 0 0 -43px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--cream); color: var(--taupe); font-weight: 600; font-size: 0.9rem;
  pointer-events: none; opacity: 0; scale: 0.3; transition: opacity 0.25s, scale 0.35s var(--ease);
}
.cursor.is-on { opacity: 1; scale: 1; }

/* Agrandissement */
.lightbox { border: 0; padding: 0; background: transparent; color: var(--cream); max-width: min(92vw, 900px); max-height: 92vh; }
.lightbox::backdrop { background: rgba(15, 12, 9, 0.9); }
.lightbox img { max-height: 76vh; width: auto; max-width: 100%; margin-inline: auto; }
.lightbox__cap { text-align: center; margin-top: 12px; font-size: 0.95rem; }
.lightbox form { text-align: center; margin-top: 12px; }
.lightbox__close { font-weight: 600; color: var(--taupe); background: var(--cream); border: 0; border-radius: 999px; padding: 10px 22px; min-height: 44px; cursor: pointer; }

/* ---------- Révélations au défilement (CSS natif) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .rise { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 90%; }
    .unveil img { animation: unveil linear both; animation-timeline: view(); animation-range: entry 5% cover 36%; }
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes unveil { from { clip-path: inset(0 50% 0 50%); transform: scale(1.1); } to { clip-path: inset(0 0 0 0); transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .loader, .js .drapes { display: none; }
  .marquee { flex-wrap: wrap; -webkit-mask-image: none; mask-image: none; padding-inline: var(--gutter); }
  .marquee__row { animation: none; flex-wrap: wrap; white-space: normal; }
  .marquee__row[aria-hidden="true"] { display: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Tablette ---------- */
@media (max-width: 1080px) {
  .contact__grid { grid-template-columns: 1fr 1fr; }
  .contact__lead { grid-column: 1 / -1; }
  .pillars { grid-template-columns: 1fr 1fr; }
}

/* ---------- Mobile ---------- */
@media (max-width: 820px) {
  :root { --head-h: 60px; }
  body { font-size: 1rem; padding-bottom: 68px; }
  .demo { font-size: 0.78rem; padding: 7px 12px; }
  .logo img { width: 146px; }
  .menu-btn { display: inline-flex; }
  .nav {
    position: fixed; top: var(--top-h); left: 0; right: 0;
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    padding: 4px var(--gutter) 22px; background: var(--taupe-deep);
    clip-path: inset(0 0 100% 0); visibility: hidden;
    transition: clip-path 0.45s var(--ease-drape), visibility 0s 0.45s;
  }
  .nav.is-open { clip-path: inset(0); visibility: visible; transition: clip-path 0.45s var(--ease-drape); }
  .nav a { padding: 15px 0; font-family: var(--serif); font-size: 1.7rem; border-bottom: 1px solid var(--line-light); }
  .nav a:not(.nav__tel)::after { display: none; }
  .nav__tel { margin-top: 18px; text-align: center; font-family: var(--sans) !important; font-size: 1.05rem !important; padding: 14px 18px !important; }

  .hero__copy { bottom: 96px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .js .hero__hint { display: none; }
  .hero__shade { background: linear-gradient(180deg, rgba(20, 16, 12, 0.5), transparent 22%), linear-gradient(0deg, rgba(20, 16, 12, 0.9), rgba(20, 16, 12, 0.35) 55%, transparent 80%); }
  .js .sheet, .sheet { border-radius: 20px; }

  .metier__grid, .services__head { grid-template-columns: 1fr; }
  .metier__photos { margin-bottom: 8px; }

  /* Galerie : chaque famille se feuillette au doigt */
  .works { --h: 54svh; height: auto !important; padding-block: 56px 40px; }
  .works__pin { position: static; height: auto; padding-top: 0; overflow: visible; }
  .works__head { padding-top: 0; }
  .works__nav { display: none; }
  .works__track { flex-direction: column; align-items: stretch; width: auto; gap: 48px; padding-inline: 0; transform: none !important; }
  .chapter { display: block; height: auto; }
  .chapter__title { width: auto; padding: 0 var(--gutter); margin-bottom: 16px; }
  .chapter__title h3 { font-size: clamp(2.2rem, 10vw, 3rem); }
  .chapter__row { display: flex; align-items: flex-start; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .chapter__row::-webkit-scrollbar { display: none; }
  .chapter__row > * { scroll-snap-align: start; }
  .shot--low { margin-top: 0; }
  .shot--low img { height: var(--h); }
  .pair { gap: 12px; }
  .pair .shot img { height: calc((var(--h) - 12px) / 2); }
  .works__end { flex: none; width: 78vw; padding: 0 0 0 8px; align-self: center; }
  .works__bar { display: none; }

  .svc li { grid-template-columns: 3ch minmax(0, 1fr) auto; gap: 14px; }
  .svc__thumb { width: 64px; height: 64px; }
  .pillars, .contact__grid { grid-template-columns: 1fr; }
  .call { width: 124px; height: 124px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__nav { justify-content: flex-start; }
  .cursor, .svc-preview { display: none; }

  .callbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    background: var(--paper); border-top: 1px solid var(--line);
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  }
  .callbar a { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 1px solid var(--ink); color: var(--ink); }
  .callbar a:first-child { background: var(--crimson); border-color: var(--crimson); color: #fff; }
}
@media (hover: none), (pointer: coarse) { .cursor, .svc-preview { display: none; } }
