/* OG Photographie — maquette page d'accueil
   Ambiance : « salle de concert après le soundcheck » — noir profond,
   projecteurs cobalt, une flamme orange pour l'action. */

:root {
  --bg: oklch(0.10 0 0);
  --surface: oklch(0.14 0 0);
  --line: oklch(0.30 0 0);
  --ink: oklch(0.96 0 0);
  --muted: oklch(0.76 0 0);
  --cobalt: oklch(0.66 0.16 252);
  --cobalt-deep: oklch(0.30 0.15 258);
  --cobalt-ink: oklch(0.90 0.04 252);
  --flame: oklch(0.77 0.165 58);
  --flame-hover: oklch(0.83 0.15 62);
  --on-flame: oklch(0.16 0.02 58);

  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: "Archivo", system-ui, sans-serif;

  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.6rem, 1.35rem + 1.2vw, 2.25rem);
  --step-3: clamp(2.4rem, 1.8rem + 3vw, 4rem);
  --step-4: clamp(3.2rem, 2.2rem + 5.2vw, 6rem);

  --gutter: clamp(1rem, 0.5rem + 3vw, 3rem);
  --section: clamp(5rem, 3rem + 8vw, 10rem);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --z-header: 10;
  --z-skip: 20;

  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { text-wrap: pretty; }

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

.skip {
  position: absolute; left: var(--gutter); top: -4rem;
  z-index: var(--z-skip);
  background: var(--flame); color: var(--on-flame);
  padding: 0.6rem 1rem; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 1rem; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0.75rem 1.5rem;
  font: 600 var(--step-0)/1 var(--body);
  text-decoration: none; border: 1px solid transparent; border-radius: 2px;
  cursor: pointer;
  transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out), border-color 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn-flame { background: var(--flame); color: var(--on-flame); }
.btn-flame:hover { background: var(--flame-hover); }
.btn-ghost { border-color: oklch(0.96 0 0 / 0.5); color: var(--ink); background: oklch(0.10 0 0 / 0.25); }
.btn-ghost:hover { border-color: var(--ink); background: oklch(0.96 0 0 / 0.1); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-weight: 600; text-decoration: none; color: var(--ink);
  padding-block: 0.4rem;
  border-bottom: 1px solid var(--flame);
}
.link-arrow::after {
  content: "→"; color: var(--flame);
  transition: transform 250ms var(--ease-out);
}
.link-arrow:hover::after { transform: translateX(0.3em); }

.caption {
  font-size: var(--step--1); color: var(--muted);
  letter-spacing: 0.02em; margin: 0;
}

/* ---------- En-tête ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-header);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem var(--gutter);
  transition: background-color 300ms var(--ease-out), padding 300ms var(--ease-out);
}
/* Fond flouté porté par un pseudo-élément : un backdrop-filter sur l'en-tête
   lui-même enfermerait le menu mobile (position: fixed) dans l'en-tête. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: oklch(0.10 0 0 / 0.92);
  border-bottom: 1px solid oklch(0.30 0 0 / 0.6);
  opacity: 0;
  transition: opacity 300ms var(--ease-out);
}
@supports (backdrop-filter: blur(1px)) {
  .site-header::before { background: oklch(0.10 0 0 / 0.78); backdrop-filter: blur(14px); }
}
.site-header.is-solid { padding-block: 0.6rem; }
.site-header.is-solid::before { opacity: 1; }

.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.brand-mark {
  width: 2.75rem; height: 2.75rem; flex: none;
  fill: var(--ink);
  transition: transform 600ms var(--ease-out);
}
.brand:hover .brand-mark { transform: rotate(-20deg); }
.brand-name {
  display: flex; flex-direction: column;
  font-weight: 600; font-size: 0.95rem; line-height: 1.2;
}
.brand-name span { font-weight: 400; color: var(--muted); font-size: 0.82rem; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.25rem); }
.nav ul { display: flex; gap: clamp(1rem, 2vw, 1.75rem); list-style: none; margin: 0; padding: 0; }
.nav ul a {
  text-decoration: none; font-weight: 500; font-size: 0.95rem;
  padding-block: 0.5rem;
  background: linear-gradient(var(--flame), var(--flame)) left bottom / 0 1px no-repeat;
  transition: background-size 300ms var(--ease-out);
}
.nav ul a:hover { background-size: 100% 1px; }
.nav-cta { min-height: 2.6rem; padding: 0.6rem 1.1rem; font-size: 0.95rem; }

.menu-toggle {
  display: none;
  align-items: center; gap: 0.6rem;
  background: none; border: 1px solid oklch(0.96 0 0 / 0.4); color: var(--ink);
  font: 600 0.95rem/1 var(--body);
  min-height: 2.75rem; padding: 0 0.9rem; border-radius: 2px; cursor: pointer;
}
.menu-toggle-bars, .menu-toggle-bars::before {
  display: block; width: 18px; height: 2px; background: currentColor;
  transition: transform 250ms var(--ease-out);
}
.menu-toggle-bars { position: relative; transform: translateY(-3px); }
.menu-toggle-bars::before { content: ""; position: absolute; top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(-6px) rotate(-90deg); }

@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; justify-content: center; align-items: flex-start;
    gap: 2.5rem; padding: 6rem var(--gutter) 3rem;
    background: var(--bg);
    opacity: 0; visibility: hidden;
    transition: opacity 300ms var(--ease-out), visibility 0s linear 300ms;
  }
  .nav.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
  .nav ul { flex-direction: column; gap: 0.5rem; }
  .nav ul a { font: 800 var(--step-3)/1.1 var(--display); }
  .nav-cta { font-size: var(--step-0); min-height: 3rem; padding: 0.75rem 1.5rem; }
  .brand-name { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100svh;
  display: grid; align-items: end;
  padding: 7rem var(--gutter) clamp(2.5rem, 6vh, 4.5rem);
  overflow: hidden;
}
.hero-img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 30% 40%;
  animation: hero-in 2.2s var(--ease-out) both;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to left, oklch(0.08 0 0 / 0.85) 0%, oklch(0.08 0 0 / 0.35) 45%, transparent 70%),
    linear-gradient(to top, oklch(0.08 0 0 / 0.7) 0%, transparent 35%);
}
.hero-copy {
  justify-self: end;
  max-width: 34rem;
}
.hero h1 {
  font: 900 var(--step-4)/0.92 var(--display);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
/* Le masque doit laisser respirer les accents des capitales (È, É) */
.hero h1 .line { display: block; overflow: hidden; padding: 0.14em 0 0.04em; margin-top: -0.14em; }
.hero h1 .line > span { display: block; animation: line-up 1.1s var(--ease-out) both; }
.hero h1 .line:nth-child(2) > span { animation-delay: 120ms; }
.hero h1 .line:nth-child(3) > span { animation-delay: 240ms; color: var(--flame); }
.hero-lede {
  font-size: var(--step-1); line-height: 1.5;
  max-width: 30ch; margin: 0 0 2rem;
  animation: fade-in 1s var(--ease-out) 500ms both;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; animation: fade-in 1s var(--ease-out) 650ms both; }
.hero-caption { position: absolute; right: var(--gutter); bottom: 1rem; }

@keyframes hero-in {
  from { transform: scale(1.08); filter: brightness(0.3) saturate(0.6); }
  to   { transform: scale(1);    filter: brightness(1) saturate(1); }
}
@keyframes line-up { from { transform: translateY(105%); } to { transform: translateY(0); } }
@keyframes fade-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Écrans étroits : le texte passe sous la photo pour ne pas masquer l'artiste */
@media (max-width: 900px) {
  .hero { display: block; min-height: 0; padding: 0 0 clamp(3rem, 8vw, 4.5rem); }
  .hero-img { position: relative; z-index: auto; height: min(64svh, 75vw); object-position: 42% 45%; }
  .hero::after {
    inset: 0 0 auto 0; height: min(64svh, 75vw); z-index: 0;
    background:
      linear-gradient(to bottom, oklch(0.08 0 0 / 0.55) 0%, transparent 22%),
      linear-gradient(to top, var(--bg) 0%, transparent 30%);
  }
  .hero-copy { position: relative; z-index: 1; justify-self: start; margin-top: -2.5rem; padding-inline: var(--gutter); max-width: 40rem; }
  .hero-caption { display: none; }
}
@media (max-width: 700px) {
  .hero-img { height: 58svh; }
  .hero::after { height: 58svh; }
}

/* ---------- Manifeste ---------- */
.manifesto {
  padding: var(--section) var(--gutter);
  display: grid; justify-items: center;
}
.manifesto blockquote { margin: 0; text-align: center; }
/* Deux phrases, deux lignes : la seconde reprend la flamme du titre d'accueil */
.manifesto p {
  margin: 0 0 1.75rem;
  font: 800 clamp(2rem, 1rem + 4.2vw, 4.25rem)/1.05 var(--display);
  /* plafond calé sur la largeur d'écran : la phrase la plus longue tient toujours sur une ligne */
  font-size: min(clamp(2rem, 1rem + 4.2vw, 4.25rem), calc(7.3vw - 2px));
  text-transform: uppercase;
  letter-spacing: 0.005em;
}
.manifesto p span { display: block; white-space: nowrap; }
.manifesto p span + span { color: var(--flame); }
.manifesto footer { color: var(--muted); font-size: var(--step-0); }
.manifesto footer::before { content: "— "; color: var(--flame); }

/* ---------- Univers (structure commune) ---------- */
.universe { padding: 0 var(--gutter) var(--section); }
.universe-head {
  display: grid; gap: 1.25rem 3rem;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  border-top: 1px solid var(--line);
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
}
@media (min-width: 900px) {
  .universe-head { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
}
.universe-title {
  font: 900 var(--step-4)/0.9 var(--display);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.universe-text p { margin: 0 0 1.25rem; max-width: 46ch; color: var(--muted); }

/* Corporate : trois portraits alignés, rigueur */
.corporate-grid {
  display: grid; gap: clamp(0.75rem, 1.5vw, 1.25rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.corporate-grid figure { aspect-ratio: 2 / 3; overflow: hidden; background: var(--surface); }
.corporate-grid img { width: 100%; height: 100%; object-fit: cover; }
.corporate-grid figure:nth-child(2) { transform: translateY(clamp(1.5rem, 4vw, 4rem)); }
@media (max-width: 700px) {
  .corporate-grid {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
  }
  .corporate-grid figure { scroll-snap-align: start; }
  .corporate-grid figure:nth-child(2) { transform: none; }
}

/* Événements : mosaïque asymétrique */
.events-mosaic {
  display: grid; gap: clamp(0.5rem, 1vw, 0.9rem);
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: clamp(5rem, 9vw, 9rem);
}
.events-mosaic figure { position: relative; overflow: hidden; background: var(--surface); }
.events-mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.events-mosaic figure:hover img { transform: scale(1.03); }
.events-mosaic figcaption {
  /* À droite : le filigrane OG occupe le coin bas gauche des photos */
  position: absolute; right: 0; bottom: 0;
  padding: 2rem 1rem 0.75rem;
  width: 100%; text-align: right;
  background: linear-gradient(to top, oklch(0.08 0 0 / 0.75), transparent);
  color: var(--ink);
}
.m-a { grid-column: 1 / span 8; grid-row: span 4; }
.m-b { grid-column: 9 / span 4; grid-row: span 5; }
.m-c { grid-column: 1 / span 5; grid-row: span 3; }
.m-d { grid-column: 6 / span 3; grid-row: span 3; }
.m-e { grid-column: 9 / span 4; grid-row: span 2; }
.m-f { grid-column: 1 / -1; grid-row: span 3; }
.m-f img { object-position: 50% 18%; }
@media (max-width: 700px) {
  .events-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 9rem; }
  .m-a { grid-column: 1 / -1; grid-row: span 2; }
  .m-b { grid-column: 1 / -1; grid-row: span 3; }
  .m-c { grid-column: 1; grid-row: span 2; }
  .m-d { grid-column: 2; grid-row: span 2; }
  .m-e { grid-column: 1 / -1; grid-row: span 2; }
  .m-f { grid-column: 1 / -1; grid-row: span 2; }
}

/* Œuvres : mur de galerie défilant */
.wall {
  margin-inline: calc(var(--gutter) * -1);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.wall-track {
  display: flex; align-items: flex-end; gap: clamp(1.5rem, 4vw, 4rem);
  list-style: none; margin: 0;
  padding: clamp(2rem, 4vw, 3.5rem) var(--gutter);
  background:
    radial-gradient(ellipse 60% 70% at 50% 0%, oklch(0.22 0 0), transparent 70%),
    var(--surface);
  width: max-content;
}
.wall-track li { scroll-snap-align: center; flex: none; }
.wall-track img {
  height: clamp(18rem, 42vw, 34rem); width: auto;
  box-shadow: 0 30px 60px -20px oklch(0 0 0 / 0.8);
}

/* ---------- Vidéo : plongée cobalt ---------- */
.video {
  background:
    radial-gradient(ellipse 80% 90% at 85% 50%, oklch(0.40 0.17 256), transparent 70%),
    var(--cobalt-deep);
  color: var(--ink);
  padding: var(--section) var(--gutter);
}
.video-inner {
  display: grid; gap: clamp(2.5rem, 5vw, 5rem);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  max-width: 90rem; margin-inline: auto;
}
@media (min-width: 900px) { .video-inner { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }
.video .universe-title { margin-bottom: 1.5rem; }
.video-lede { font-size: var(--step-1); line-height: 1.45; margin: 0 0 1rem; max-width: 30ch; }
.video-copy p:not(.video-lede) { color: var(--cobalt-ink); max-width: 46ch; margin: 0 0 2rem; }
.video-frame { margin: 0; display: grid; gap: 0.75rem; }
.video-facade, .video-frame iframe {
  display: block; width: 100%; aspect-ratio: 16 / 9; border: 0;
  background: oklch(0.12 0.04 258);
  box-shadow: 0 40px 80px -30px oklch(0.05 0.05 258 / 0.9);
}
.video-facade { position: relative; padding: 0; cursor: pointer; overflow: hidden; }
.video-facade img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out), filter 400ms var(--ease-out); }
.video-facade::after { content: ""; position: absolute; inset: 0; background: oklch(0.10 0.05 258 / 0.25); transition: background-color 400ms var(--ease-out); }
.video-facade:hover img { transform: scale(1.03); }
.video-facade:hover::after { background: oklch(0.10 0.05 258 / 0.05); }
/* Bouton en coin : la vignette Vimeo actuelle porte le logo Stars & Métiers en son centre */
.video-play {
  position: absolute; z-index: 1; left: clamp(1rem, 3%, 1.75rem); bottom: clamp(1rem, 4%, 1.75rem);
  width: 4.5rem; height: 4.5rem; border-radius: 50%;
  background: var(--flame);
  box-shadow: 0 0 0 0 oklch(0.77 0.165 58 / 0.5);
  transition: transform 300ms var(--ease-out), box-shadow 600ms var(--ease-out);
}
.video-facade:hover .video-play { transform: scale(1.08); box-shadow: 0 0 0 14px oklch(0.77 0.165 58 / 0); }
.video-play::after {
  content: ""; position: absolute; left: 54%; top: 50%;
  transform: translate(-50%, -50%);
  border-style: solid; border-width: 0.75rem 0 0.75rem 1.2rem;
  border-color: transparent transparent transparent var(--on-flame);
}
.video-frame .caption { color: var(--cobalt-ink); }

/* ---------- Avis clients ---------- */
.proof { padding: var(--section) var(--gutter); }
.proof h2 { font: 900 var(--step-3)/1 var(--display); text-transform: uppercase; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.reviews {
  display: grid; gap: clamp(2rem, 4vw, 4rem);
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
@media (min-width: 900px) { .reviews { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
.review { margin: 0; }
.review blockquote { margin: 0 0 1.25rem; }
.review p { margin: 0; font-size: var(--step-1); line-height: 1.5; max-width: 52ch; }
.review p::before { content: "« "; color: var(--flame); }
.review p::after { content: " »"; color: var(--flame); }
.review-main p { font-size: var(--step-2); line-height: 1.35; }
.review figcaption { color: var(--muted); font-size: var(--step--1); }
.review-name { color: var(--ink); font-weight: 600; font-size: var(--step-0); }
.review:not(.review-main) { padding-top: 1.5rem; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .review:not(.review-main) { margin-top: 0.5rem; } }

/* ---------- À propos ---------- */
.about {
  display: grid; gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  padding: 0 var(--gutter) var(--section);
}
@media (min-width: 900px) { .about { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }
/* Le logo OG en grand, éclairé comme sur scène */
.about-mark {
  display: grid; place-items: center;
  aspect-ratio: 1;
  max-width: 34rem; width: 100%; justify-self: center;
  background: radial-gradient(circle at 50% 50%, oklch(0.77 0.165 58 / 0.22), oklch(0.66 0.16 252 / 0.10) 45%, transparent 70%);
}
.about-mark svg { width: 72%; height: 72%; fill: var(--ink); }
@supports (animation-timeline: view()) {
  .about-mark svg {
    animation: mark-in linear both;
    animation-timeline: view();
    animation-range: entry 10% cover 45%;
  }
  @keyframes mark-in {
    from { transform: rotate(-35deg) scale(0.9); opacity: 0.25; }
    to   { transform: none; opacity: 1; }
  }
}
@media (max-width: 899px) { .about-mark { max-width: 18rem; } }
.about h2 { font: 900 var(--step-3)/1 var(--display); text-transform: uppercase; margin-bottom: 1.5rem; }
.about p { max-width: 48ch; color: var(--muted); margin: 0 0 1rem; }
.about p:first-of-type { color: var(--ink); font-size: var(--step-1); line-height: 1.5; }

/* ---------- Devis ---------- */
.quote {
  display: grid; gap: clamp(2.5rem, 5vw, 6rem);
  grid-template-columns: minmax(0, 1fr);
  padding: var(--section) var(--gutter);
  background: var(--surface);
  border-top: 1px solid var(--line);
}
@media (min-width: 900px) { .quote { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); } }
.quote h2 { font: 900 var(--step-4)/0.92 var(--display); text-transform: uppercase; margin-bottom: 1.5rem; }
.quote-intro p { max-width: 38ch; color: var(--muted); margin: 0 0 2rem; }
.direct { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.direct a { font-weight: 600; text-decoration-color: var(--flame); text-underline-offset: 0.25em; }
.direct li:last-child { color: var(--muted); }

.quote-form { display: grid; gap: 1.25rem; align-content: start; }
.field-row { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.field { display: grid; gap: 0.45rem; }
.field label { font-weight: 600; font-size: 0.95rem; }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  font: 400 var(--step-0)/1.4 var(--body);
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.8rem 0.9rem;
  min-height: 3rem;
  transition: border-color 200ms var(--ease-out);
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(-45deg, transparent 50%, var(--muted) 50%); background-position: calc(100% - 1.2rem) 55%, calc(100% - 0.85rem) 55%; background-size: 0.35rem 0.35rem; background-repeat: no-repeat; padding-right: 2.5rem; }
.field input::placeholder, .field textarea::placeholder { color: oklch(0.66 0 0); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: oklch(0.45 0 0); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--cobalt); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: oklch(0.68 0.19 25); }
.btn-submit { justify-self: start; }
.btn-submit:disabled { opacity: 0.6; cursor: progress; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { margin: 0; }
.form-note a { color: var(--ink); text-decoration-color: var(--flame); text-underline-offset: 0.25em; }
.form-status { margin: 0; min-height: 1.6em; color: var(--muted); }
.form-status.is-error { color: oklch(0.75 0.15 25); }
.form-status.is-ok { color: var(--flame); }

/* ---------- Pied de page ---------- */
.site-footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 2.5rem var(--gutter);
  border-top: 1px solid var(--line);
  font-size: var(--step--1); color: var(--muted);
}
.footer-mark { width: 3rem; height: 3rem; fill: var(--ink); }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.site-footer ul { align-items: center; }
.site-footer a { text-decoration: none; display: inline-flex; align-items: center; min-height: 2.75rem; }
.social { gap: 0.5rem; }
.icon { width: 1.25rem; height: 1.25rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; }
.icon .dot { fill: currentColor; stroke: none; }
.site-footer a:hover { color: var(--ink); }
.footer-legal { margin: 0; }

/* =====================================================================
   Pages intérieures
   ===================================================================== */

.link-more {
  display: inline-block; margin-left: 1.5rem;
  color: var(--muted); font-weight: 500; text-decoration: underline;
  text-underline-offset: 0.3em; text-decoration-color: var(--line);
  transition: color 200ms var(--ease-out), text-decoration-color 200ms var(--ease-out);
}
.link-more:hover { color: var(--ink); text-decoration-color: var(--flame); }
.link-more-light { color: var(--cobalt-ink); margin-left: 0; }
.video-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
@media (max-width: 520px) { .link-more { display: block; margin: 0.75rem 0 0; } }

.nav ul a[aria-current="page"] { background-size: 100% 1px; }

/* En-tête de page commun */
.page-hero { position: relative; isolation: isolate; padding: 8rem var(--gutter) clamp(3rem, 6vw, 5rem); }
.crumb { margin: 0 0 1.25rem; font-size: var(--step--1); color: var(--muted); }
.crumb a { color: var(--ink); text-decoration-color: var(--flame); text-underline-offset: 0.25em; }
.crumb span { margin-inline: 0.4rem; color: var(--line); }
.page-title {
  font: 900 var(--step-4)/0.9 var(--display);
  text-transform: uppercase; letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}
.page-lede { font-size: var(--step-1); line-height: 1.5; max-width: 40ch; margin: 0 0 2rem; }
.facts {
  display: grid; gap: 1px; margin: 0 0 2rem;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  border-block: 1px solid var(--line);
}
.facts div { padding: 1rem 1.25rem 1rem 0; }
.facts dt { font-size: var(--step--1); color: var(--muted); margin-bottom: 0.3rem; }
.facts dd { margin: 0; font-weight: 600; line-height: 1.4; }
.price { font: 800 var(--step-2)/1 var(--display); color: var(--flame); letter-spacing: 0.01em; }
.fine { font-size: var(--step--1); color: var(--muted); margin: 1rem 0 0; }

/* Variante photo plein cadre (Événements) */
.page-hero--image { min-height: 88svh; display: grid; align-items: end; overflow: hidden; }
.page-hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; animation: hero-in 2s var(--ease-out) both; }
.page-hero--image::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to right, oklch(0.08 0 0 / 0.92) 0%, oklch(0.08 0 0 / 0.6) 45%, oklch(0.08 0 0 / 0.15) 80%),
    linear-gradient(to top, oklch(0.08 0 0 / 0.8) 0%, transparent 40%);
}
.page-hero--image .page-hero-copy { max-width: 46rem; }

/* Variante deux colonnes (Corporate) */
.page-hero--split {
  display: grid; gap: clamp(2.5rem, 5vw, 5rem); align-items: center;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 900px) { .page-hero--split { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); } }
.page-hero-portrait { aspect-ratio: 4 / 5; overflow: hidden; max-width: 30rem; width: 100%; justify-self: center; }
.page-hero-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }

/* Variante mur de galerie (Œuvres d'art) */
.page-hero--wall {
  display: grid; gap: clamp(2.5rem, 5vw, 5rem); align-items: end;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 900px) { .page-hero--wall { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); } }
.page-quote { padding: 2rem 0 0; border-top: 1px solid var(--line); }
.page-quote p { font-size: var(--step-1) !important; }

/* Variante cobalt (Vidéo) */
.page-hero--video {
  background:
    radial-gradient(ellipse 70% 80% at 80% 60%, oklch(0.40 0.17 256), transparent 70%),
    var(--cobalt-deep);
  display: grid; gap: clamp(2.5rem, 5vw, 4rem);
}
.page-hero--video .crumb, .page-hero--video .crumb span { color: var(--cobalt-ink); }
.video-frame--large { max-width: 72rem; }
.video-story { padding: var(--section) var(--gutter) 0; max-width: 60rem; }
.video-story h2 { font: 900 var(--step-3)/1 var(--display); text-transform: uppercase; margin-bottom: 1.5rem; }
.video-story > p { font-size: var(--step-1); line-height: 1.5; max-width: 48ch; margin: 0 0 2.5rem; }

/* Galeries */
.gallery-section { padding: clamp(2rem, 4vw, 3rem) var(--gutter) var(--section); }
.section-title { font: 800 var(--step-2)/1.1 var(--display); text-transform: uppercase; margin-bottom: 2rem; }
.gallery { list-style: none; margin: 0; padding: 0; }
.gallery a { display: block; position: relative; overflow: hidden; background: var(--surface); cursor: zoom-in; }
.gallery img { width: 100%; height: auto; transition: transform 900ms var(--ease-out), filter 400ms var(--ease-out); }
.gallery a:hover img { transform: scale(1.03); }
.gallery a:focus-visible { outline-offset: 4px; }

.gallery--masonry { columns: 3 18rem; column-gap: clamp(0.6rem, 1.2vw, 1rem); }
.gallery--masonry li { break-inside: avoid; margin-bottom: clamp(0.6rem, 1.2vw, 1rem); }

.gallery--portraits { display: grid; gap: clamp(0.75rem, 1.5vw, 1.25rem); grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.gallery--portraits a { aspect-ratio: 2 / 3; }
.gallery--portraits img { height: 100%; object-fit: cover; }

.gallery-section--wall {
  background:
    radial-gradient(ellipse 70% 40% at 50% 0%, oklch(0.22 0 0), transparent 70%),
    var(--surface);
  padding-top: var(--section);
}
.gallery--wall { columns: 3 17rem; column-gap: clamp(2rem, 4vw, 4rem); }
.gallery--wall li { break-inside: avoid; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.gallery--wall a { background: none; box-shadow: 0 30px 60px -24px oklch(0 0 0 / 0.85); }
.wall-note { text-align: center; }

/* Couleur ou noir et blanc */
.pair {
  display: grid; gap: clamp(2rem, 5vw, 5rem); align-items: center;
  grid-template-columns: minmax(0, 1fr);
  padding: var(--section) var(--gutter) 0;
}
@media (min-width: 900px) { .pair { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); } }
.pair h2 { font: 900 var(--step-3)/1 var(--display); text-transform: uppercase; margin-bottom: 1.25rem; }
.pair p { color: var(--muted); max-width: 44ch; margin: 0; }
.pair-images { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(0.75rem, 1.5vw, 1.25rem); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pair-images a { display: block; aspect-ratio: 2 / 3; overflow: hidden; cursor: zoom-in; }
.pair-images img { width: 100%; height: 100%; object-fit: cover; }
.pair-images .caption { display: block; margin-top: 0.6rem; }

/* Étapes : une vraie séquence, d'où la numérotation */
.steps { padding: 0 var(--gutter) var(--section); }
.steps h2 { font: 900 var(--step-3)/1 var(--display); text-transform: uppercase; margin-bottom: clamp(2rem, 4vw, 3rem); padding-top: clamp(1.5rem, 3vw, 2.5rem); border-top: 1px solid var(--line); }
.steps-list {
  list-style: none; margin: 0; padding: 0; counter-reset: step;
  display: grid; gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}
.steps-list li { counter-increment: step; }
.steps-list li::before {
  content: counter(step);
  display: block; margin-bottom: 0.75rem;
  font: 900 var(--step-3)/1 var(--display); color: var(--flame);
}
.steps-list h3 { font-size: var(--step-1); line-height: 1.3; margin-bottom: 0.5rem; }
.steps-list p { color: var(--muted); margin: 0; max-width: 34ch; }

/* Bandeau final vers le devis */
.cta-band {
  padding: var(--section) var(--gutter);
  background:
    radial-gradient(ellipse 60% 90% at 15% 100%, oklch(0.77 0.165 58 / 0.18), transparent 70%),
    var(--surface);
  border-top: 1px solid var(--line);
}
.cta-band h2 { font: 900 var(--step-4)/0.92 var(--display); text-transform: uppercase; max-width: 16ch; margin-bottom: 1.25rem; }
.cta-band p { color: var(--muted); font-size: var(--step-1); max-width: 40ch; margin: 0 0 2rem; }

/* Visionneuse */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: oklch(0.06 0 0 / 0.96); color: var(--ink);
}
.lightbox::backdrop { background: oklch(0 0 0 / 0.6); }
.lightbox[open] { display: grid; place-items: center; animation: fade-in 300ms var(--ease-out); }
.lightbox-figure { margin: 0; display: grid; justify-items: center; gap: 0.9rem; padding: 4.5rem 4.5rem 2.5rem; max-width: 100%; }
.lightbox-img { max-width: 100%; max-height: calc(100dvh - 9rem); width: auto; height: auto; object-fit: contain; }
.lightbox-caption { font-size: var(--step--1); color: var(--muted); }
.lightbox-btn {
  position: absolute; display: grid; place-items: center;
  width: 3rem; height: 3rem; border-radius: 50%;
  border: 1px solid oklch(0.96 0 0 / 0.3); background: oklch(0.10 0 0 / 0.6); color: var(--ink);
  font: 400 1.4rem/1 var(--body); cursor: pointer;
  transition: background-color 200ms var(--ease-out), border-color 200ms var(--ease-out);
}
.lightbox-btn:hover { background: var(--flame); color: var(--on-flame); border-color: var(--flame); }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-close { right: 1rem; top: 1rem; font-size: 1.8rem; }
.lightbox-count { position: absolute; left: 1.25rem; top: 1.6rem; margin: 0; font-size: var(--step--1); color: var(--muted); }
@media (max-width: 700px) {
  .lightbox-figure { padding: 4.5rem 0.75rem 6rem; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 1.25rem; transform: none; }
  .lightbox-prev { left: calc(50% - 3.75rem); }
  .lightbox-next { right: calc(50% - 3.75rem); }
}

/* Pages de texte (mentions légales, CGV) */
.page-plain .site-header::before { opacity: 1; }
.legal { padding: 8rem var(--gutter) var(--section); }
.legal-head { max-width: 48rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.legal-head .page-title { font-size: var(--step-3); }
.legal-head p { color: var(--muted); margin: 0; }
.prose { max-width: 48rem; }
.prose h2 { font: 800 var(--step-2)/1.15 var(--display); text-transform: uppercase; margin: 3rem 0 1rem; }
.prose h3 { font-size: var(--step-1); margin: 2rem 0 0.75rem; }
.prose p, .prose li { color: oklch(0.86 0 0); }
.prose p { margin: 0 0 1rem; }
.prose ul, .prose ol { margin: 0 0 1rem; padding-left: 1.25rem; }
.prose li { margin-bottom: 0.4rem; }
.prose strong { color: var(--ink); }
.prose a { color: var(--ink); text-decoration-color: var(--flame); text-underline-offset: 0.25em; }
.prose blockquote { margin: 0 0 1rem; padding: 1rem 1.25rem; background: var(--surface); border: 1px solid var(--line); }
.table-wrap { overflow-x: auto; margin: 0 0 1.5rem; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 30rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 0.7rem 0.9rem; border: 1px solid var(--line); }
.prose th { background: var(--surface); color: var(--muted); font-weight: 600; }
.prose td { color: oklch(0.86 0 0); }
.todo-inline { background: oklch(0.77 0.165 58 / 0.18); color: var(--ink); padding: 0.1em 0.35em; border: 1px dashed var(--flame); }

/* ---------- Apparition au défilement (amélioration progressive) ---------- */
@supports (animation-timeline: view()) {
  .reveal {
    animation: reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 60%;
  }
  @keyframes reveal {
    from { clip-path: inset(12% 0 0 0); opacity: 0.4; }
    to   { clip-path: inset(0 0 0 0); opacity: 1; }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .about-mark svg { animation: none !important; }
}
