/* =========================================================
   Jérémie Mazenq — Ingénieur du son & Photographe
   Feuille de style principale
   ========================================================= */

:root {
  /* Fond & texte — thème sombre (par défaut) */
  --bg: #17171a;
  --bg-son: #17181c;
  --bg-photo: #1a1817;
  --panel: #16171a;
  --surface-2: #1e1f24;
  --fg: #f4f0e8;
  --fg-soft: rgba(244, 240, 232, 0.85);
  --muted: #a39c8f;
  --muted-2: #6f6a61;
  --line: rgba(244, 240, 232, 0.12);

  /* Accents */
  --accent-son: #d7a441;
  --accent-son-soft: rgba(215, 164, 65, 0.14);
  --accent-photo: #c97a5d;
  --accent-photo-soft: rgba(201, 122, 93, 0.14);

  /* Typo */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-alt: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Rythme */
  --gap: clamp(1.25rem, 2.5vw, 2.5rem);
  --gallery-gap: clamp(0.75rem, 1.5vw, 1.5rem);
  --radius: 6px;

  color-scheme: dark;
}

/* ---------- Thème clair ---------- */
:root[data-theme="light"] {
  --bg: #f3f4f1;
  --bg-son: #f3f4f1;
  --bg-photo: #f2f3f0;
  --panel: #ffffff;
  --surface-2: #e8e9e4;
  --fg: #201d1a;
  --fg-soft: rgba(32, 29, 26, 0.85);
  --muted: #6b6459;
  --muted-2: #8f8676;
  --line: rgba(32, 29, 26, 0.14);

  --accent-son: #a8781f;
  --accent-son-soft: rgba(168, 120, 31, 0.14);
  --accent-photo: #a8563a;
  --accent-photo-soft: rgba(168, 86, 58, 0.14);

  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  margin: 0;
}

p { margin: 0 0 1em; color: var(--muted); max-width: 60ch; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 1em;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--gap);
}

/* ---------- Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--gap);
  background: var(--bg-son);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.02em;
}

.brand strong { font-weight: 700; }

.topnav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}

.topnav a {
  position: relative;
  padding: 0.3em 0;
  color: var(--muted);
  transition: color 0.2s ease;
}
.topnav a:hover { color: var(--fg); }

.topnav .pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5em 1.1em;
  color: var(--fg);
}
.topnav .pill--son:hover { border-color: var(--accent-son); color: var(--accent-son); }
.topnav .pill--photo:hover { border-color: var(--accent-photo); color: var(--accent-photo); }

.menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  width: 42px;
  height: 42px;
  color: var(--fg);
  font-size: 1rem;
  cursor: pointer;
}

/* ---------- Hero / accueil ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 6rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 15% 20%, var(--accent-son-soft), transparent 60%),
    radial-gradient(55% 45% at 85% 75%, var(--accent-photo-soft), transparent 60%);
  pointer-events: none;
}

.hero-inner { position: relative; }

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  max-width: 16ch;
  margin-bottom: 0.4em;
}

.hero .lede {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  max-width: 52ch;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

/* Variante hero avec photo de fond (portée en style inline background-image) */
.hero--image {
  background-size: cover;
  background-repeat: no-repeat;
}
.hero--image::before { content: none; }
.hero--image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9,9,10,0.45) 0%, rgba(9,9,10,0.78) 100%);
  pointer-events: none;
}
.hero--image .hero-inner { position: relative; z-index: 2; }
.hero--image .back-link { color: rgba(244,240,232,0.75); }
.hero--image .back-link:hover { color: var(--accent-photo); }
.hero--image .eyebrow { color: rgba(244,240,232,0.7); }
.hero--image h1 { color: #f4f0e8; }

.hero--image .lede { color: rgba(244,240,232,0.88); }

/* ---------- Photo : en-tête compact des pages galerie ----------
   Même esprit que l'en-tête "Domaines d'intervention" côté son :
   un trait d'accent, un titre, rien de plus — pour arriver vite
   sur les photos. */
.page-head {
  padding: 3.25rem 0 2rem;
  text-align: center;
}

.page-head .back-link {
  justify-content: center;
  margin: 0 auto 1rem;
}

.page-head__rule {
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--accent-photo);
  margin-bottom: 1rem;
}

.page-head h1 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  margin: 0;
}

.page-head .lede {
  max-width: 52ch;
  margin: 0.6rem auto 0;
  font-size: 0.9rem;
}

/* Texte de présentation plus long (ex. note d'intention d'une série),
   affiché sous le page-head : même largeur que la galerie ci-dessous
   (bords alignés avec les vignettes, via .container), paragraphes
   alignés à gauche (contrairement au .lede court et centré ci-dessus). */
.series-statement {
  padding-bottom: 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

.series-statement p {
  margin: 0 0 1.1em;
  max-width: none; /* la règle globale p{max-width:60ch} rétrécirait le texte
                       par rapport à la largeur de la galerie ci-dessous */
}

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

/* Repliée par défaut (aperçu de 2 lignes environ) pour ne pas repousser
   la galerie trop bas — dépliable au clic. Sans JS, le texte reste
   simplement affiché en entier (pas de bouton, pas de recadrage). */
.series-statement__body {
  max-height: 3.6em;
  overflow: hidden;
  position: relative;
}

.series-statement.is-expanded .series-statement__body {
  max-height: none;
}

.series-statement__body::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.2em;
  background: linear-gradient(180deg, transparent, var(--bg) 85%);
  pointer-events: none;
}

.series-statement.is-expanded .series-statement__body::after {
  display: none;
}

.series-statement__toggle {
  display: inline-block;
  margin-top: 0.85rem;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--accent-photo);
  cursor: pointer;
}

.series-statement__toggle:hover {
  opacity: 0.8;
}

.universe--tight { padding-top: 2rem; }

/* ---------- Photo : accueil en trois portes ---------- */
.photo-split {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  background-color: var(--bg);
  overflow: hidden;
  height: min(72vh, 44.44vw);
}

.photo-split__half {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  height: 100%;
  padding: 2.5rem 2rem;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.photo-split__half::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9,9,10,0.05) 40%, rgba(9,9,10,0.85) 100%);
  transition: background 0.3s ease;
  pointer-events: none;
}
.photo-split__half:hover::after {
  background: linear-gradient(180deg, rgba(9,9,10,0.15) 30%, rgba(9,9,10,0.9) 100%);
}

.photo-split__half--placeholder {
  background-color: var(--surface-2);
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 14px);
}
.photo-split__half--placeholder::after {
  background: linear-gradient(180deg, rgba(9,9,10,0) 55%, rgba(9,9,10,0.88) 100%);
}

.photo-split__num {
  position: relative;
  z-index: 2;
  font-family: var(--font-alt);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: rgba(244,240,232,0.7);
  margin-bottom: 0.6em;
}

.photo-split__title {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  color: #f4f0e8;
  margin-bottom: 0.5em;
}

.photo-split__line {
  position: relative;
  z-index: 2;
  display: block;
  width: 32px;
  height: 2px;
  background: var(--accent-photo);
  transition: width 0.3s ease;
}
.photo-split__half:hover .photo-split__line { width: 56px; }

@media (max-width: 900px) {
  .photo-split { grid-template-columns: 1fr; height: auto; }
  .photo-split__half {
    height: auto;
    aspect-ratio: 4 / 5;
    max-height: none;
  }
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1rem;
}

.split-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 260px;
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease;
}

.split-card:hover { transform: translateY(-4px); }

.split-card--son {
  background: linear-gradient(160deg, rgba(215,164,65,0.16), rgba(255,255,255,0.02));
}
.split-card--son:hover { border-color: var(--accent-son); }

.split-card--photo {
  background: linear-gradient(160deg, rgba(201,122,93,0.16), rgba(255,255,255,0.02));
}
.split-card--photo:hover { border-color: var(--accent-photo); }

.split-card .tag {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 0.6em;
}

.split-card h3 {
  font-size: 1.6rem;
  margin-bottom: 0.3em;
}

.split-card .arrow {
  margin-top: 1em;
  font-size: 0.85rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}
.split-card--son .arrow { color: var(--accent-son); }
.split-card--photo .arrow { color: var(--accent-photo); }

/* ---------- Accueil minimal (porte d'entrée) ---------- */
body.is-gate {
  margin: 0;
  background: var(--bg);
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gate-minimal {
  width: 100%;
  height: clamp(560px, 82svh, 760px);
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.gate-logo-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 6vh, 3.5rem) 1.5rem;
}

.gate-logo {
  display: block;
  width: min(42vw, 280px);
  transition: filter 0.25s ease;
}

:root[data-theme="light"] .gate-logo { filter: invert(1); }

.gate-split {
  flex: 1;
  display: flex;
  gap: 1px;
  background: var(--line);
  padding: 1px;
  margin: 0 1px 1px;
}

.gate-half {
  flex: 1;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--fg-soft);
  box-shadow: inset 0 0 0 1px transparent;
  transition: background 0.25s ease, box-shadow 0.35s ease, filter 0.25s ease;
}

.gate-num {
  font-family: var(--font-alt);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--muted-2);
}

.gate-half .gate-title {
  font-family: var(--font-alt);
  font-size: clamp(1.2rem, 2.4vw, 1.9rem);
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.gate-line {
  width: 32px;
  height: 2px;
  background: currentColor;
  transition: width 0.3s ease;
}

.gate-half:hover .gate-line { width: 48px; }
.gate-half:hover { background: var(--surface-2); }
.gate-half--son .gate-line { background: var(--accent-son); }
.gate-half--photo .gate-line { background: var(--accent-photo); }
.gate-half--son { box-shadow: inset 0 0 0 1px rgba(215, 164, 65, 0.06); }
.gate-half--photo { box-shadow: inset 0 0 0 1px rgba(201, 122, 93, 0.06); }
.gate-half--son:hover { color: var(--accent-son); box-shadow: inset 0 0 0 1px var(--accent-son); }
.gate-half--photo:hover { color: var(--accent-photo); box-shadow: inset 0 0 0 1px var(--accent-photo); }

/* Variante test : aperçu photo en fond derrière une des rubriques */
.gate-half--preview {
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
}

.gate-half--preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(23, 23, 26, 0.72);
  transition: background 0.4s ease;
}

.gate-half--preview:hover::before { background: rgba(23, 23, 26, 0.48); }

.gate-half--preview span {
  position: relative;
  z-index: 1;
  color: rgba(244, 240, 232, 0.92);
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.gate-half--preview:hover span { color: var(--accent-son); }

@media (max-width: 640px) {
  .gate-split { flex-direction: column; }
  .gate-half .gate-title { white-space: normal; }
}

/* ---------- Hero en fondu (page son) ---------- */
.hero-split {
  min-height: clamp(560px, 82svh, 800px);
  display: flex;
  background: var(--bg-son);
}

.hero-split__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem clamp(1.5rem, 5vw, 4rem);
  position: relative;
}

.hero-split__inner {
  width: 100%;
  max-width: 30rem;
  margin: 0 auto;
}

.hero-split__text::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 60% at 20% 30%, var(--accent-son-soft), transparent 65%);
  pointer-events: none;
}

.hero-split__title {
  position: relative;
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  line-height: 1.08;
  margin: 0 0 0.5em;
  font-weight: 600;
}

.hero-split__title-place {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--accent-son);
  font-size: 0.58em;
  letter-spacing: 0.01em;
  margin-top: 0.18em;
}

.hero-split__subtitle {
  position: relative;
  font-family: var(--font-alt);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--muted);
  letter-spacing: 0.01em;
  margin: 0 0 1.4rem;
  max-width: 32ch;
}

.hero-split__bio {
  position: relative;
  max-width: 38ch;
  margin: 0 0 2rem;
}

.hero-split__bio-rule {
  display: block;
  width: 32px;
  height: 2px;
  background: var(--accent-son);
  margin: 0 0 1.4rem;
}

.hero-split__bio-rule--bottom {
  margin: 0 0 2.4rem;
}

.hero-split__bio p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
  margin: 0 0 1.4rem;
}

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

.hero-split__bio em {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--fg);
  opacity: 0.95;
}

.hero-split__tags {
  position: relative;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 0 2.4rem;
  padding: 0;
}

.hero-split__tags li {
  font-family: var(--font-alt);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5em 1.1em;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.hero-split__tags li:hover {
  border-color: var(--accent-son);
  color: var(--accent-son);
}

.hero-split__scroll {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 1rem;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.hero-split__scroll:hover { border-color: var(--accent-son); color: var(--accent-son); }

.hero-split__scroll-arrow { display: inline-block; }

@media (prefers-reduced-motion: no-preference) {
  .hero-split__scroll-arrow {
    animation: hero-scroll-bounce 2.2s ease-in-out infinite;
  }
}

@keyframes hero-scroll-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

.hero-split__media {
  flex: 0 0 42%;
  position: relative;
  overflow: hidden;
}

.hero-split__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease;
  will-change: opacity;
}

.hero-split__slide.is-active { opacity: 1; }

.hero-split__media::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 8px 0 24px -8px rgba(0,0,0,0.55);
  pointer-events: none;
}

/* Navigation manuelle du fondu (page son) */
.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(244, 240, 232, 0.35);
  background: rgba(9, 9, 10, 0.35);
  backdrop-filter: blur(4px);
  color: var(--fg);
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}
.hero-nav:hover { border-color: var(--accent-son); color: var(--accent-son); }
.hero-nav--prev { left: 1rem; }
.hero-nav--next { right: 1rem; }

.hero-split__media.is-transitioning .hero-nav { pointer-events: none; opacity: 0.5; }

.hero-counter {
  position: absolute;
  z-index: 3;
  right: 1.1rem;
  bottom: 1.1rem;
  font-family: var(--font-alt);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: rgba(244, 240, 232, 0.75);
  background: rgba(9, 9, 10, 0.35);
  padding: 0.35em 0.7em;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

@media (max-width: 640px) {
  .hero-nav { width: 38px; height: 38px; font-size: 1.3rem; }
}

@media (max-width: 900px) {
  .hero-split { flex-direction: column; }
  .hero-split__media { flex: 0 0 58svh; order: -1; }
  .hero-split__media::after { box-shadow: inset 0 -8px 24px -8px rgba(0,0,0,0.55); }
  .hero-split__text { padding: 3rem 1.5rem 3.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-split__slide { transition: none; }
}

.tag-pill {
  display: inline-block;
  border: 1px solid rgba(244, 240, 232, 0.4);
  padding: 0.5em 1em;
  font-family: var(--font-alt);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg);
}

/* ---------- Domaines d'intervention (page son) ---------- */
.work-section {
  padding: 5rem 0 6rem;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
}

.container.narrow {
  max-width: 68ch;
}

.work-section__head {
  text-align: center;
  padding: 0 var(--gap);
}

.work-section__rule {
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--accent-son);
  margin-bottom: 1.4rem;
}

.work-section__title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin: 0;
}

.work-grid {
  max-width: 1180px;
  margin: 3.5rem auto 0;
  padding: 0 var(--gap);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.work-block {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

a.work-block {
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.25s ease;
}
a.work-block:hover {
  border-color: var(--accent-photo);
  transform: translateY(-2px);
}

/* Variante photo : accents oranges au lieu de l'accent son */
.work-section--photo .work-section__rule { background: var(--accent-photo); }
.work-section--photo .work-block__text .gate-line { background: var(--accent-photo); }

.work-block__media {
  display: block;
  width: 100%;
  height: auto;
}

.work-block__text {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 2.25rem clamp(1.25rem, 2.5vw, 2rem);
  flex: 1;
}

.work-block__text .gate-num { font-size: 0.75rem; }
.work-block__text .gate-line { background: var(--accent-son); }

.work-block__text .gate-title {
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  white-space: normal;
}

.work-block__text p {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 32ch;
}

@media (max-width: 900px) {
  .work-grid {
    grid-template-columns: 1fr;
  }
  .work-block__text p { max-width: 42ch; }
}

/* ---------- Avertissement catégorie sensible ---------- */
.category-card--warning p { color: var(--accent-photo); }

/* ---------- Univers (sections son / photo) ---------- */
.universe {
  padding: 7rem 0 6rem;
  border-top: 1px solid var(--line);
}

.universe--son { background: var(--bg-son); }
.universe--photo { background: var(--bg-photo); }

.universe-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.universe-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
}

.universe--son .eyebrow, .universe--son .accent { color: var(--accent-son); }
.universe--photo .eyebrow, .universe--photo .accent { color: var(--accent-photo); }

/* Services grid (son) */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 3.5rem;
}

.service {
  background: var(--panel);
  padding: 2rem 1.6rem;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service .num {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.service h3 {
  font-size: 1.15rem;
  margin: 1.2rem 0 0.5em;
}

.service p { font-size: 0.92rem; margin: 0; }

/* Bio + portrait block */
.bio-block {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: var(--gap);
  align-items: start;
  margin-bottom: 3.5rem;
}

.placeholder-media {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  border: 1px dashed var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-2);
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 14px);
}

.bio-block .placeholder-media { aspect-ratio: 4/5; }

/* Clients strip */
.clients {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.75rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2.2rem;
  align-items: center;
  justify-content: space-between;
}

.clients span {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--muted);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

/* ---------- Photo: lien retour + avertissement nu ---------- */
.back-link {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 0.4em;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  transition: color 0.2s ease;
}
.back-link:hover { color: var(--accent-photo); }

/* Avertissement contenu sensible : maintenant affiché en amont, au clic sur
   la porte d'entrée "Portrait & nu" (voir .warn-modal plus bas), plutôt
   qu'en bannière sur la page elle-même. */
.warn-modal {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 8, 9, 0.88);
  padding: 2rem 1.25rem;
}
.warn-modal[hidden] { display: none; }

.warn-modal__panel {
  position: relative;
  width: 100%;
  max-width: 440px;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
}
.warn-modal__panel .eyebrow { justify-content: center; color: var(--accent-photo); margin-bottom: 1rem; }
.warn-modal__panel p { margin: 0 auto 1.75rem; max-width: 34ch; }

.warn-modal__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

/* ---------- Photo: séries ---------- */
.series-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
  margin-bottom: 4rem;
}

@media (max-width: 640px) {
  .series-grid { grid-template-columns: 1fr; }
}

/* ---------- Photo: catégories + galerie ---------- */
.categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  margin-bottom: 4rem;
}

.category-card { text-align: left; }

.category-card .placeholder-media {
  aspect-ratio: 3 / 4;
  margin-bottom: 1rem;
  transition: border-color 0.25s ease;
}
.category-card:hover .placeholder-media { border-color: var(--accent-photo); }

.category-card__cover {
  aspect-ratio: 1 / 1;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: border-color 0.25s ease;
}
.category-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.category-card:hover .category-card__cover { border-color: var(--accent-photo); }
.category-card:hover .category-card__cover img { transform: scale(1.03); }

.category-card h3 { font-size: 1.05rem; margin-bottom: 0.2em; }
.category-card p { font-size: 0.85rem; margin: 0; }

.gallery {
  columns: 3;
  column-gap: var(--gallery-gap);
  margin-bottom: 3.5rem;
}

.gallery .placeholder-media {
  margin-bottom: var(--gallery-gap);
  break-inside: avoid;
}
.gallery .placeholder-media:nth-child(3n+1) { aspect-ratio: 4/5; }
.gallery .placeholder-media:nth-child(3n+2) { aspect-ratio: 1/1; }
.gallery .placeholder-media:nth-child(3n) { aspect-ratio: 3/4; }

.gallery img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: var(--gallery-gap);
  border-radius: var(--radius);
  break-inside: avoid;
}

.gallery--grid-4 {
  columns: initial;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gallery-gap);
}
.gallery--grid-4 img {
  margin-bottom: 0;
}

/* Dissuasion basique contre le téléchargement occasionnel des photos */
.gallery img,
.work-block__media,
.lightbox__img {
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
}

/* ---------- CTA / contact ---------- */
.cta {
  padding: 6rem 0;
  text-align: center;
  border-top: 1px solid var(--line);
}

.cta h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: 20ch;
  margin: 0 auto 0.6em;
}

.cta p { margin: 0 auto 2rem; }

.buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-form {
  max-width: 560px;
  margin: 2.8rem auto 0;
  text-align: left;
}

.contact-form__hidden { display: none; }

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

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.contact-form label {
  font-family: var(--font-alt);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.contact-form input,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--fg);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75em 0.9em;
  resize: vertical;
  transition: border-color 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-son);
}

.contact-form .btn {
  width: 100%;
}

.contact-form__status {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  min-height: 1.4em;
}

.contact-form__status[data-state="ok"] { color: var(--accent-son); }
.contact-form__status[data-state="error"] { color: var(--accent-photo); }

@media (max-width: 640px) {
  .contact-form__row { grid-template-columns: 1fr; }
}

.social-links {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  margin-top: 2.2rem;
}

.social-links__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.social-links__item svg {
  width: 19px;
  height: 19px;
}

.social-links__item:hover {
  border-color: var(--accent-son);
  color: var(--accent-son);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.9em 1.6em;
  border-radius: 999px;
  font-size: 0.9rem;
  border: 1px solid var(--line);
  transition: all 0.2s ease;
}

.btn--primary {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.btn--primary:hover { opacity: 0.85; }

.btn--ghost:hover { border-color: var(--fg); }

/* ---------- Footer ---------- */
footer {
  padding: 2.5rem var(--gap);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--muted-2);
  border-top: 1px solid var(--line);
}

footer a:hover { color: var(--fg); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .topnav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.25rem var(--gap) 1.5rem;
    background: var(--bg-son);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
  }
  .topnav.is-open { display: flex; }
  .topnav a { width: 100%; padding: 0.85em 0; }
  .topnav .pill { margin-top: 0.4em; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .menu-btn[aria-expanded="true"] { border-color: var(--fg); background: var(--surface-2); }
  .split { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .bio-block { grid-template-columns: 1fr; }
  .categories { grid-template-columns: repeat(2, 1fr); }
  .gallery { columns: 2; }
  .gallery--grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .grid-4 { grid-template-columns: 1fr; }
  .categories { grid-template-columns: 1fr; }
  .gallery { columns: 1; }
  .gallery--grid-4 { grid-template-columns: 1fr; }
  .clients { justify-content: flex-start; }
}

/* ---------- Bascule thème clair / sombre ---------- */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.theme-toggle {
  flex: none;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: none;
  color: var(--fg);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.theme-toggle:hover { border-color: var(--accent-son); color: var(--accent-son); }

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.theme-toggle .theme-toggle__icon--moon { display: none; }
:root[data-theme="light"] .theme-toggle .theme-toggle__icon--sun { display: none; }
:root[data-theme="light"] .theme-toggle .theme-toggle__icon--moon { display: block; }

/* Page gate (index.html) : pas de menu du haut, bouton en haut à droite */
.theme-toggle--gate {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 200;
}

@media (max-width: 640px) {
  .theme-toggle--gate { top: 1rem; right: 1rem; width: 38px; height: 38px; }
}

/* ---------- Lightbox (agrandissement des galeries) ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(8, 8, 9, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
}
.lightbox[hidden] { display: none; }

.lightbox__img {
  max-width: min(92vw, 1400px);
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(244, 240, 232, 0.35);
  background: rgba(9, 9, 10, 0.45);
  backdrop-filter: blur(4px);
  color: #f4f0e8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.lightbox__close:hover,
.lightbox__nav:hover { border-color: var(--accent-photo); color: var(--accent-photo); }

.lightbox__close {
  top: 1.25rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  font-size: 1.1rem;
}

.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 1.7rem;
  line-height: 1;
}
.lightbox__nav--prev { left: 1.25rem; }
.lightbox__nav--next { right: 1.25rem; }

.lightbox__counter {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-alt);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: rgba(244, 240, 232, 0.8);
  background: rgba(9, 9, 10, 0.45);
  padding: 0.4em 0.9em;
  border-radius: 999px;
}

@media (max-width: 640px) {
  .lightbox__nav { width: 42px; height: 42px; font-size: 1.4rem; }
  .lightbox__close { width: 38px; height: 38px; }
}

/* ---------- Lightbox : achat de tirage ---------- */
.lightbox__buy {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  z-index: 2;
  border: 1px solid var(--accent-photo);
  background: rgba(9, 9, 10, 0.55);
  backdrop-filter: blur(4px);
  color: #f4f0e8;
  font-family: var(--font-alt);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  border-radius: 999px;
  padding: 0.7em 1.3em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.lightbox__buy:hover { background: var(--accent-photo); color: #09090a; }

.lightbox__buy-panel {
  position: absolute;
  left: 1.25rem;
  bottom: 4.25rem;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem;
  background: rgba(20, 19, 22, 0.97);
  border: 1px solid rgba(244, 240, 232, 0.18);
  border-radius: var(--radius);
  min-width: 230px;
}
.lightbox__buy-panel[hidden] { display: none; }

.lightbox__buy-title {
  font-family: var(--font-alt);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244, 240, 232, 0.55);
  margin: 0 0 0.4em;
}

.lightbox__buy-option {
  text-align: left;
  background: none;
  border: none;
  border-top: 1px solid rgba(244, 240, 232, 0.1);
  color: #f4f0e8;
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 0.65em 0.1em;
  cursor: pointer;
  transition: color 0.2s ease;
}
.lightbox__buy-option:first-of-type { border-top: none; }
.lightbox__buy-option:hover { color: var(--accent-photo); }

@media (max-width: 640px) {
  .lightbox__buy {
    left: 50%;
    bottom: 3.6rem;
    transform: translateX(-50%);
    font-size: 0.72rem;
    padding: 0.6em 1.1em;
    white-space: nowrap;
  }
  .lightbox__buy-panel {
    left: 50%;
    bottom: 6.5rem;
    transform: translateX(-50%);
    min-width: 200px;
  }
}

/* ---------- Photo : section Tirages ---------- */
.prints-intro {
  max-width: 48ch;
  margin: 1rem auto 0;
  font-size: 0.92rem;
}

.prints-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
  max-width: 1180px;
  margin: 3.5rem auto 0;
  padding: 0 var(--gap);
}

.print-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding: 2.5rem 1.5rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.print-card__format {
  font-family: var(--font-display);
  font-size: 1.3rem;
}
.print-card__format .print-card__alt {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--muted-2);
}

.print-card__price {
  font-family: var(--font-alt);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--accent-photo);
}

.print-card p { font-size: 0.88rem; max-width: 28ch; }

.print-card__btn { margin-top: 0.5rem; }

@media (max-width: 1080px) {
  .prints-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .prints-grid { grid-template-columns: 1fr; }
}

/* Sélecteur de photo (avant redirection vers Stripe depuis la section Tirages) */
.photo-picker {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 8, 9, 0.88);
  padding: 2rem 1.25rem;
}
.photo-picker[hidden] { display: none; }

.photo-picker__panel {
  position: relative;
  width: 100%;
  max-width: 900px;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.5rem 2rem 2rem;
}

.photo-picker__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  border: none;
  background: none;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--muted-2);
  cursor: pointer;
  padding: 0.5em;
}
.photo-picker__close:hover { color: var(--fg); }

.photo-picker__title {
  text-align: center;
  font-family: var(--font-alt);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: var(--muted-2);
  margin: 0 0 1.5rem;
}
.photo-picker__format { color: var(--accent-photo); }

.photo-picker__category + .photo-picker__category { margin-top: 2rem; }

.photo-picker__category-title {
  font-family: var(--font-alt);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-soft);
  margin: 0 0 0.9rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}

.photo-picker__grid {
  columns: 4;
  column-gap: 0.7rem;
}

.photo-picker__item {
  display: block;
  width: 100%;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 4px;
  background: none;
  cursor: pointer;
  overflow: hidden;
  line-height: 0;
  margin-bottom: 0.7rem;
  break-inside: avoid;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.photo-picker__item:hover,
.photo-picker__item:focus-visible { border-color: var(--accent-photo); transform: scale(1.03); }
.photo-picker__item img { width: 100%; height: auto; display: block; }

@media (max-width: 900px) {
  .photo-picker__grid { columns: 3; }
}

@media (max-width: 640px) {
  .photo-picker__panel { padding: 2.25rem 1.25rem 1.5rem; }
  .photo-picker__grid { columns: 2; column-gap: 0.5rem; }
  .photo-picker__item { margin-bottom: 0.5rem; }
}
