/* ============================================================
   Fil Rouge Mosaïque — Valentina Rossi
   Feuille de style principale
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.2vw, 0.9375rem);
  --text-base: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.1vw, 2.125rem);
  --text-2xl: clamp(2rem, 1.3rem + 2.4vw, 3.25rem);
  --text-3xl: clamp(2.5rem, 1.2rem + 4vw, 4.75rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  --content-narrow: 660px;
  --content-default: 980px;
  --content-wide: 1320px;

  --radius-sm: 2px;
  --radius-md: 3px;
  --transition-interactive: 220ms cubic-bezier(0.16, 1, 0.3, 1);

  --font-display: 'Boska', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Switzer', 'Helvetica Neue', Arial, sans-serif;
}

:root,
[data-theme='light'] {
  --color-bg: #f4f1ea;
  --color-surface: #faf8f3;
  --color-surface-offset: #eae5da;
  --color-surface-deep: #191713;
  --color-border: #d9d3c5;
  --color-divider: #e5e0d4;
  --color-text: #1e1b16;
  --color-text-muted: #6b6458;
  --color-text-faint: #a49c8c;
  --color-text-inverse: #f6f3ec;
  --color-primary: #8a6a22;
  --color-primary-hover: #6d5218;
  --color-thread: #9e3b2f;
  --shadow-md: 0 6px 28px rgba(30, 27, 22, 0.09);
  --shadow-lg: 0 18px 60px rgba(30, 27, 22, 0.14);
}

[data-theme='dark'] {
  --color-bg: #131110;
  --color-surface: #1a1816;
  --color-surface-offset: #221f1b;
  --color-surface-deep: #0d0c0b;
  --color-border: #35312b;
  --color-divider: #262320;
  --color-text: #e6e1d6;
  --color-text-muted: #9c9486;
  --color-text-faint: #6d675d;
  --color-text-inverse: #16140f;
  --color-primary: #cba55f;
  --color-primary-hover: #ddba7c;
  --color-thread: #c2564a;
  --shadow-md: 0 6px 28px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 18px 60px rgba(0, 0, 0, 0.6);
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  transition: background 400ms ease, color 400ms ease;
}

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

ul[role='list'] {
  list-style: none;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  text-wrap: balance;
  letter-spacing: -0.01em;
}

p,
li {
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
  transition: color var(--transition-interactive),
    text-decoration-color var(--transition-interactive),
    opacity var(--transition-interactive), background var(--transition-interactive),
    border-color var(--transition-interactive);
}

::selection {
  background: rgba(158, 59, 47, 0.22);
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 200;
  padding: var(--space-3) var(--space-5);
  background: var(--color-text);
  color: var(--color-bg);
  font-size: var(--text-sm);
}
.skip-link:focus {
  top: var(--space-4);
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-5), 5vw, var(--space-16));
}
.wrap--default {
  max-width: var(--content-default);
}
.wrap--narrow {
  max-width: var(--content-narrow);
}

.section {
  padding-block: clamp(var(--space-16), 9vw, var(--space-32));
}
.section--tight {
  padding-block: clamp(var(--space-12), 6vw, var(--space-20));
}
.section--alt {
  background: var(--color-surface);
}

.rule {
  height: 1px;
  background: var(--color-divider);
  border: 0;
}

/* ---------- Typographie utilitaire ---------- */
.kicker {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.lead {
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--color-text-muted);
  max-width: 46ch;
}

.prose p + p {
  margin-top: var(--space-5);
}
.prose p {
  max-width: 68ch;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: clamp(var(--space-8), 4vw, var(--space-12));
}
.section-head h2 {
  font-size: var(--text-xl);
}
.section-head p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 42ch;
}

/* ---------- Fil (signature graphique) ---------- */
.thread {
  display: block;
  width: 56px;
  height: 1px;
  background: var(--color-thread);
  margin-bottom: var(--space-6);
}

/* ---------- Boutons & liens ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  border: 1px solid var(--color-text);
  color: var(--color-text);
  background: transparent;
  text-decoration: none;
}
.btn:hover {
  background: var(--color-text);
  color: var(--color-bg);
}
.btn--light {
  border-color: rgba(246, 243, 236, 0.55);
  color: #f6f3ec;
}
.btn--light:hover {
  background: #f6f3ec;
  color: #191713;
}
.btn--solid {
  background: var(--color-text);
  color: var(--color-bg);
}
.btn--solid:hover {
  background: transparent;
  color: var(--color-text);
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 2px;
}
.link-more:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.link-more svg {
  transition: transform var(--transition-interactive);
}
.link-more:hover svg {
  transform: translateX(4px);
}

/* ---------- En-tête ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 300ms ease, background 300ms ease;
}
.header--scrolled {
  border-bottom-color: var(--color-divider);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
}
.brand__mark {
  color: var(--color-text);
  flex-shrink: 0;
}
.brand__mark .thread-line {
  stroke: var(--color-thread);
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand__name {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  letter-spacing: 0.01em;
}
.brand__sub {
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(var(--space-4), 2vw, var(--space-8));
}
.nav a {
  font-size: var(--text-sm);
  text-decoration: none;
  color: var(--color-text-muted);
  padding-block: var(--space-2);
  border-bottom: 1px solid transparent;
}
.nav a:hover {
  color: var(--color-text);
}
.nav a[aria-current='page'] {
  color: var(--color-text);
  border-bottom-color: var(--color-thread);
}

.header__tools {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.langs {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
}
.langs a {
  text-decoration: none;
  color: var(--color-text-faint);
  padding: 2px 1px;
}
.langs a:hover {
  color: var(--color-text);
}
.langs a[aria-current='true'] {
  color: var(--color-text);
  border-bottom: 1px solid var(--color-primary);
}
.langs span {
  color: var(--color-text-faint);
  opacity: 0.5;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: var(--color-text-muted);
  border: 1px solid transparent;
}
.icon-btn:hover {
  color: var(--color-text);
  border-color: var(--color-border);
}

.burger {
  display: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--color-surface-deep);
}
.hero__media {
  position: absolute;
  inset: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  filter: contrast(1.12) saturate(1.12);
}
.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(13, 12, 11, 0.72) 0%,
    rgba(13, 12, 11, 0.5) 40%,
    rgba(13, 12, 11, 0) 64%
  );
}
@media (max-width: 760px) {
  .hero__media::after {
    background: linear-gradient(180deg, rgba(13, 12, 11, 0.35) 0%, rgba(13, 12, 11, 0.55) 100%);
  }
}
.hero__content h1, .hero__content .hero__sub, .hero__content .hero__cite, .hero__content .kicker {
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.45);
}
.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
  color: #f6f3ec;
}
.hero__content .kicker {
  color: rgba(246, 243, 236, 0.72);
}
.hero h1 {
  font-size: var(--text-3xl);
  max-width: 16ch;
  margin-block: var(--space-5) var(--space-6);
  font-weight: 300;
}
.hero__sub {
  max-width: 52ch;
  color: rgba(246, 243, 236, 0.86);
  font-size: var(--text-base);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-8);
}
.hero .thread {
  background: var(--color-thread);
}

/* page hero (intérieur) */
.page-hero {
  padding-block: clamp(var(--space-16), 10vw, var(--space-24)) clamp(var(--space-8), 5vw, var(--space-12));
  border-bottom: 1px solid var(--color-divider);
}
.page-hero h1 {
  font-size: var(--text-2xl);
  font-weight: 300;
  margin-bottom: var(--space-6);
  max-width: 20ch;
}

/* ---------- Galerie / cartes ---------- */
.grid {
  display: grid;
  gap: clamp(var(--space-6), 3vw, var(--space-10));
}
.grid--3 {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.card__media {
  position: relative;
  overflow: hidden;
  background: var(--color-surface-offset);
  aspect-ratio: 4 / 5;
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 500ms ease;
}
.card:hover .card__media img {
  transform: scale(1.045);
}
.card__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: var(--space-3);
  padding: var(--space-6);
  text-align: center;
  background:
    repeating-linear-gradient(
      45deg,
      transparent 0 10px,
      color-mix(in srgb, var(--color-border) 45%, transparent) 10px 11px
    ),
    var(--color-surface-offset);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.card__body {
  padding-top: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  line-height: 1.2;
}
.card:hover .card__title {
  color: var(--color-primary);
}
.card__meta {
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}
.card__mat {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

/* mise en avant : première carte plus large sur grand écran */
@media (min-width: 900px) {
  .grid--feature {
    grid-template-columns: repeat(6, 1fr);
  }
  .grid--feature > * {
    grid-column: span 2;
  }
  .grid--feature > *:first-child {
    grid-column: span 3;
  }
  .grid--feature > *:nth-child(2) {
    grid-column: span 3;
  }
  .grid--feature > *:first-child .card__media,
  .grid--feature > *:nth-child(2) .card__media {
    aspect-ratio: 3 / 2;
  }
}

/* ---------- Filtres ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: clamp(var(--space-8), 4vw, var(--space-12));
}
.filters button {
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
}
.filters button:hover {
  color: var(--color-text);
  border-color: var(--color-text-muted);
}
.filters button[aria-pressed='true'] {
  background: var(--color-text);
  border-color: var(--color-text);
  color: var(--color-bg);
}

/* ---------- Bloc éditorial deux colonnes ---------- */
.split {
  display: grid;
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: center;
}
@media (min-width: 860px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
  .split--reverse .split__media {
    order: 2;
  }
}
.split__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.split__body h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-5);
}
.split__body p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

/* ---------- Citation ---------- */
.quote {
  background: var(--color-surface-deep);
  color: #ece7dc;
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
}
.quote blockquote {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 300;
  line-height: 1.35;
  max-width: 24ch;
}
.quote cite {
  display: block;
  margin-top: var(--space-6);
  font-family: var(--font-body);
  font-style: normal;
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(236, 231, 220, 0.6);
}

/* ---------- Démarche : blocs numérotés ---------- */
.numbered {
  display: grid;
  gap: clamp(var(--space-10), 5vw, var(--space-16));
}
@media (min-width: 800px) {
  .numbered {
    grid-template-columns: repeat(2, 1fr);
  }
}
.numbered article {
  border-top: 1px solid var(--color-divider);
  padding-top: var(--space-6);
}
.numbered .num {
  display: block;
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}
.numbered h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
}
.numbered p {
  color: var(--color-text-muted);
}

/* ---------- Chronologie ---------- */
.timeline {
  display: grid;
  gap: 0;
}
.timeline article {
  display: grid;
  gap: var(--space-2) var(--space-10);
  padding-block: clamp(var(--space-6), 3vw, var(--space-10));
  border-top: 1px solid var(--color-divider);
}
@media (min-width: 760px) {
  .timeline article {
    grid-template-columns: 150px 1fr;
  }
}
.timeline .yr {
  font-size: var(--text-sm);
  letter-spacing: 0.1em;
  color: var(--color-primary);
  padding-top: 0.25rem;
}
.timeline h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}
.timeline p {
  color: var(--color-text-muted);
  max-width: 62ch;
}

/* ---------- Fiche œuvre ---------- */
.work {
  padding-block: clamp(var(--space-10), 6vw, var(--space-20));
}
.work__grid {
  display: grid;
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: start;
}
@media (min-width: 940px) {
  .work__grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  }
  .work__aside {
    position: sticky;
    top: 7rem;
  }
}
.work__figure {
  margin-bottom: var(--space-6);
}
.work__figure img {
  display: block;
  width: 100%;
  height: auto;
}
.work__figure--empty {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--space-8);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background:
    repeating-linear-gradient(
      45deg,
      transparent 0 12px,
      color-mix(in srgb, var(--color-border) 45%, transparent) 12px 13px
    ),
    var(--color-surface-offset);
}
.work h1 {
  font-size: var(--text-2xl);
  font-weight: 300;
  margin-bottom: var(--space-5);
}
.specs {
  border-top: 1px solid var(--color-divider);
  margin-top: var(--space-8);
}
.specs div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: var(--space-4);
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--color-divider);
  font-size: var(--text-sm);
}
.specs dt {
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  padding-top: 0.2rem;
}
.specs dd {
  color: var(--color-text);
}
.work__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: clamp(var(--space-12), 6vw, var(--space-20));
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
}

/* ---------- Listes & formulaire ---------- */
.checklist {
  list-style: none;
  display: grid;
  gap: var(--space-3);
}
.checklist li {
  position: relative;
  padding-left: var(--space-6);
  color: var(--color-text-muted);
}
.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 10px;
  height: 1px;
  background: var(--color-thread);
}

.steps {
  counter-reset: step;
  display: grid;
  gap: var(--space-6);
}
.steps li {
  list-style: none;
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: var(--space-4);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-divider);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  color: var(--color-primary);
  padding-top: 0.35em;
}
.steps h3 {
  font-size: var(--text-base);
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: var(--space-1);
}
.steps p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.form {
  display: grid;
  gap: var(--space-5);
  max-width: 560px;
}
.field {
  display: grid;
  gap: var(--space-2);
}
.field label {
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
}
.field textarea {
  min-height: 150px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}
.form-note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  max-width: 46ch;
}

.contact-list {
  list-style: none;
  display: grid;
  gap: var(--space-6);
}
.contact-list li {
  display: block;
}
.contact-list dt,
.contact-list .lbl {
  display: block;
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: var(--space-1);
}
.contact-list a {
  color: var(--color-text);
  text-decoration-color: var(--color-border);
}
.contact-list a:hover {
  color: var(--color-primary);
}

/* ---------- Légal ---------- */
.legal-note {
  border: 1px solid var(--color-border);
  border-left: 2px solid var(--color-thread);
  padding: var(--space-5) var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: clamp(var(--space-10), 5vw, var(--space-16));
}
.legal article {
  padding-block: var(--space-8);
  border-top: 1px solid var(--color-divider);
}
.legal h2 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
}
.legal p {
  color: var(--color-text-muted);
  max-width: 70ch;
}

/* ---------- CTA bande ---------- */
.cta-band {
  background: var(--color-surface-deep);
  color: #ece7dc;
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
}
.cta-band h2 {
  font-size: var(--text-xl);
  font-weight: 300;
  margin-bottom: var(--space-5);
  max-width: 18ch;
}
.cta-band p {
  color: rgba(236, 231, 220, 0.75);
  max-width: 52ch;
  margin-bottom: var(--space-8);
}

/* ---------- Pied de page ---------- */
.footer {
  border-top: 1px solid var(--color-divider);
  padding-block: clamp(var(--space-12), 6vw, var(--space-20)) var(--space-8);
  font-size: var(--text-sm);
}
.footer__grid {
  display: grid;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}
@media (min-width: 760px) {
  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}
.footer h3 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: var(--space-4);
}
.footer ul {
  list-style: none;
  display: grid;
  gap: var(--space-2);
}
.footer a {
  color: var(--color-text-muted);
  text-decoration: none;
}
.footer a:hover {
  color: var(--color-text);
}
.footer__baseline {
  color: var(--color-text-muted);
  max-width: 34ch;
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

/* ---------- Apparitions au défilement ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 900ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .burger {
    display: inline-flex;
  }
  .nav {
    position: fixed;
    inset: 74px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: var(--space-4) clamp(var(--space-5), 5vw, var(--space-10)) var(--space-8);
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-divider);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 250ms ease, transform 250ms ease;
  }
  .nav.is-open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .nav a {
    width: 100%;
    padding-block: var(--space-4);
    border-bottom: 1px solid var(--color-divider);
    font-size: var(--text-base);
  }
  .nav a[aria-current='page'] {
    border-bottom-color: var(--color-thread);
  }
  .hero {
    min-height: 78vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .header,
  .footer,
  .cta-band {
    display: none;
  }
}

/* alignement des titres dans les grilles de galerie */
@media (min-width: 700px) {
  .grid--gallery .card__meta {
    min-height: 2.6em;
  }
}

/* ---------- Ajustements en-tête mobile ---------- */
@media (max-width: 900px) {
  .header__inner {
    gap: var(--space-3);
    min-height: 66px;
  }
  .header__tools {
    gap: var(--space-2);
  }
  .langs {
    gap: var(--space-2);
    font-size: 0.68rem;
  }
  .brand__mark {
    width: 54px;
    height: 23px;
  }
  .brand__name {
    font-size: 0.98rem;
  }
  .brand__sub {
    font-size: 0.56rem;
    letter-spacing: 0.14em;
  }
  .nav {
    inset: 66px 0 auto 0;
  }
}
@media (max-width: 420px) {
  .langs {
    gap: 0.35rem;
    font-size: 0.62rem;
  }
  .header__tools {
    gap: 0.35rem;
  }
}

@media (max-width: 430px) {
  .brand__sub {
    display: none;
  }
  .brand__name {
    font-size: 0.92rem;
  }
}

/* ---------- Triptyque atelier ---------- */
.grid--trio figure {
  margin: 0;
}
.grid--trio img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* ==========================================================
   Ajouts septembre 2026 : sous-menu Galerie, carrousel de
   détails, visionneuse, galerie par collections
   ========================================================== */

/* ---------- Sous-menu Galerie ---------- */
.nav__item {
  position: relative;
  display: flex;
  align-items: center;
}
.nav__item--has-sub > a::after {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 7px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
  opacity: 0.6;
}
.nav__sub {
  position: absolute;
  top: 100%;
  left: -1.25rem;
  min-width: 15rem;
  padding: var(--space-3) 0;
  background: var(--color-bg);
  border: 1px solid var(--color-divider);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 200ms ease, transform 200ms ease, visibility 0s linear 200ms;
  z-index: 60;
}
.nav__sub::before {
  content: '';
  position: absolute;
  inset: -14px 0 auto 0;
  height: 14px;
}
.nav__item:hover .nav__sub,
.nav__item:focus-within .nav__sub {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
.nav .nav__sub a {
  padding: var(--space-2) 1.25rem;
  border-bottom: 0;
  white-space: nowrap;
}
.nav .nav__sub a:hover {
  background: var(--color-surface-offset);
}

@media (max-width: 900px) {
  .nav__item {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .nav__item--has-sub > a::after {
    display: none;
  }
  .nav__sub {
    position: static;
    min-width: 0;
    padding: 0 0 var(--space-2) 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav__sub::before {
    display: none;
  }
  .nav .nav__sub a {
    padding: var(--space-2) 0 var(--space-2) var(--space-5);
    font-size: var(--text-sm);
    border-bottom: 0;
    border-left: 1px solid var(--color-thread);
  }
  .nav {
    max-height: calc(100vh - 74px);
    overflow-y: auto;
  }
}

/* ---------- Carrousel de détails ---------- */
.details {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24)) clamp(var(--space-8), 4vw, var(--space-12));
  overflow: hidden;
}
.details__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-8);
  flex-wrap: wrap;
  margin-bottom: clamp(var(--space-8), 4vw, var(--space-12));
}
.details__head h2 {
  margin-top: var(--space-3);
}
.details__head p {
  max-width: 38ch;
  color: var(--color-text-muted);
}
.marquee {
  --marquee-h: clamp(220px, 30vw, 380px);
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 90s linear infinite;
}
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track,
.marquee.is-paused .marquee__track {
  animation-play-state: paused;
}
.marquee__group {
  display: flex;
  gap: clamp(var(--space-3), 1.4vw, var(--space-5));
  padding-right: clamp(var(--space-3), 1.4vw, var(--space-5));
}
.marquee__item {
  flex: none;
  height: var(--marquee-h);
  padding: 0;
  border: 0;
  background: var(--color-surface-offset);
  cursor: zoom-in;
  overflow: hidden;
  position: relative;
}
.marquee__item img {
  height: 100%;
  width: auto;
  max-width: none;
  display: block;
  transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}
.marquee__item:hover img,
.marquee__item:focus-visible img {
  transform: scale(1.05);
}
.marquee__item:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}
.details__foot {
  margin-top: var(--space-6);
  display: flex;
  justify-content: flex-end;
}
.marquee__toggle {
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  background: none;
  border: 0;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
}
.marquee__toggle:hover {
  color: var(--color-text);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .marquee__track {
    animation: none;
  }
  .marquee__group[aria-hidden='true'],
  .marquee__toggle {
    display: none;
  }
}

/* ---------- Boutons d'agrandissement ---------- */
.zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.zoom:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

/* ---------- Visionneuse ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  align-items: center;
  background: rgba(12, 11, 10, 0.94);
  color: #efe9dd;
  opacity: 0;
  transition: opacity 260ms ease;
}
.lightbox[hidden] {
  display: none;
}
.lightbox.is-open {
  opacity: 1;
}
.lightbox__figure {
  grid-column: 2;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  max-height: 100vh;
  padding-block: var(--space-12) var(--space-6);
}
.lightbox__figure img {
  max-width: 100%;
  max-height: calc(100vh - 150px);
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.lightbox__caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  color: #d9d2c4;
  text-align: center;
}
.lightbox__caption [data-lb-cap] {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: #f4efe5;
}
.lightbox__caption .link-more {
  color: #cba55f;
}
.lightbox__count {
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  color: #9c9486;
}
.lightbox__close,
.lightbox__nav {
  background: none;
  border: 0;
  color: #efe9dd;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  opacity: 0.75;
  transition: opacity 200ms ease;
}
.lightbox__close:hover,
.lightbox__nav:hover {
  opacity: 1;
}
.lightbox__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
}
.lightbox__nav--prev { grid-column: 1; justify-self: center; }
.lightbox__nav--next { grid-column: 3; justify-self: center; }
.lightbox__nav[hidden] { visibility: hidden; display: inline-flex; }
@media (max-width: 640px) {
  .lightbox {
    grid-template-columns: 1fr;
  }
  .lightbox__figure {
    grid-column: 1;
    padding-inline: var(--space-3);
  }
  .lightbox__nav {
    position: absolute;
    bottom: var(--space-4);
  }
  .lightbox__nav--prev { left: var(--space-4); }
  .lightbox__nav--next { right: var(--space-4); }
  .lightbox__figure img {
    max-height: calc(100vh - 200px);
  }
}
body.lb-open {
  overflow: hidden;
}

/* ---------- Galerie par collections ---------- */
.gallery-group {
  padding-top: clamp(var(--space-12), 6vw, var(--space-20));
  scroll-margin-top: 90px;
}
.gallery-group + .gallery-group {
  margin-top: clamp(var(--space-8), 4vw, var(--space-12));
  border-top: 1px solid var(--color-divider);
}
.gallery-group__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-8);
  margin-bottom: clamp(var(--space-8), 4vw, var(--space-12));
}
.gallery-group__head h2 {
  font-size: var(--text-2xl);
}
.gallery-group__head p {
  max-width: 44ch;
  color: var(--color-text-muted);
}
.gallery-group__count {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  color: var(--color-text-faint);
  vertical-align: super;
  margin-left: 0.35em;
}
.gallery-group__note {
  margin-top: var(--space-8);
  color: var(--color-text-muted);
  max-width: 60ch;
}
.gallery-group[hidden] {
  display: none;
}

/* ---------- Vignettes des fiches d'œuvre ---------- */
.work__thumbs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(var(--space-3), 1.5vw, var(--space-5));
  margin-top: clamp(var(--space-3), 1.5vw, var(--space-5));
}
.work__thumbs .work__figure {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--color-surface-offset);
}
.work__thumbs .zoom,
.work__thumbs img {
  height: 100%;
}
.work__thumbs img {
  object-fit: cover;
  transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}
.work__thumbs .zoom:hover img {
  transform: scale(1.04);
}
.work__thumbs .work__figure:only-child {
  grid-column: 1 / -1;
  aspect-ratio: auto;
}
.work__thumbs .work__figure:only-child img {
  height: auto;
}

/* ---- Biographie (parcours) */
.bio__body p { max-width: 62ch; margin-top: 1.1rem; color: var(--color-text-muted); }
.bio__body p:first-of-type { color: var(--color-text); }
.bio__h { font-size: var(--text-lg); margin-bottom: 2rem; }
.bio__also { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--color-divider, rgba(0,0,0,.12)); }
.bio__also h3 { font-size: var(--text-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--color-text-muted); margin-bottom: 1rem; font-family: var(--font-body); font-weight: 500; }
.bio__also ul { display: grid; grid-template-columns: 1fr; gap: .75rem 2.5rem; }
@media (min-width: 720px) { .bio__also ul { grid-template-columns: 1fr 1fr; } }
.bio__also li { padding-left: 1.1rem; position: relative; }
.bio__also li::before { content: ""; position: absolute; left: 0; top: .7em; width: .5rem; height: 1px; background: var(--color-thread, #9e3b2f); }

/* ---- Mémoire et hommage */
.memo-hero .kicker { font-size: var(--text-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--color-text-muted); margin: 1.25rem 0 .75rem; }
.memo-hero h1 { max-width: 18ch; }
.memo-pending { color: var(--color-text-muted); max-width: 60ch; padding: 2rem 0; border-top: 1px solid var(--color-divider); border-bottom: 1px solid var(--color-divider); }
.faq { border-top: 1px solid var(--color-divider); }
.faq__item { border-bottom: 1px solid var(--color-divider); }
.faq__item summary { cursor: pointer; list-style: none; padding: 1.25rem 2.5rem 1.25rem 0; position: relative; font-weight: 500; color: var(--color-text); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: .25rem; top: 1.1rem; font-size: 1.25rem; color: var(--color-thread); transition: transform .25s ease; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding: 0 0 1.5rem; color: var(--color-text-muted); max-width: 66ch; }
.faq__item summary:focus-visible { outline: 2px solid var(--color-thread); outline-offset: 4px; }
.memo-teaser { display: grid; gap: .9rem; padding: clamp(2rem, 5vw, 4rem); background: #1e1b16; color: #f4f1ea; text-decoration: none; border: 1px solid rgba(203,165,95,.25); }
.memo-teaser__k { font-size: var(--text-xs); letter-spacing: .16em; text-transform: uppercase; opacity: .7; }
.memo-teaser__t { font-family: var(--font-display); font-size: var(--text-xl); line-height: 1.1; }
.memo-teaser__p { max-width: 60ch; opacity: .82; }
.memo-teaser .link-more { color: inherit; }
.memo-teaser:hover .memo-teaser__t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }

.hero__cite { margin: -.4rem 0 1.4rem; font-size: .95rem; letter-spacing: .04em; font-style: italic; opacity: .85; }
.section.temps { padding-top: clamp(var(--space-8), 4vw, var(--space-12)); }

/* Variante claire de l’accueil (image lumineuse, texte foncé) */
.hero--light .hero__media::after { background: none; }
.hero--light .hero__content { color: #1d1a17; }
.hero--light .hero__content .kicker { color: rgba(29, 26, 23, 0.72); }
.hero--light .hero__sub { color: rgba(29, 26, 23, 0.86); }
.hero--light .hero__content h1, .hero--light .hero__content .hero__sub,
.hero--light .hero__content .hero__cite, .hero--light .hero__content .kicker { text-shadow: 0 1px 12px rgba(246, 243, 236, 0.7); }
.hero--light .btn--light { color: #1d1a17; border-color: rgba(29, 26, 23, 0.6); }
.hero--light .btn--light:hover { background: #1d1a17; color: #f6f3ec; }
@media (max-width: 760px) {
  .hero--light .hero__media::after { background: none; }
}

/* Encadré du texte d’accueil : la photo reste sans filtre */
.hero--light .hero__panel {
  max-width: 40rem;
  padding: clamp(1.5rem, 3.5vw, 3rem);
  background: rgba(246, 243, 236, 0.93);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 40px rgba(29, 26, 23, 0.18);
}
.hero--light .hero__panel h1 { margin-top: var(--space-4); }
.hero--light .hero__content h1, .hero--light .hero__content .hero__sub,
.hero--light .hero__content .hero__cite, .hero--light .hero__content .kicker { text-shadow: none; }
.hero--light .hero__content { padding-block: clamp(2rem, 5vw, 4rem); }
.hero--light .hero__panel { max-width: 36rem; padding: clamp(1.5rem, 3vw, 2.5rem); }
.hero--light .hero__panel h1 { font-size: clamp(2.2rem, 3.6vw, 3.4rem); max-width: none; margin-block: var(--space-4) var(--space-4); }
.hero--light .hero__panel .hero__actions { margin-top: var(--space-6); }
.hero--light .hero__media img { filter: none; }
/* Accueil Sorgente : voile renforcé à gauche pour la lisibilité */
.hero--sorgente .hero__media img { object-position: 75% center; }
.hero--sorgente .hero__media::after {
  background: linear-gradient(100deg, rgba(13, 12, 11, 0.86) 0%, rgba(13, 12, 11, 0.7) 36%, rgba(13, 12, 11, 0.15) 58%, rgba(13, 12, 11, 0) 66%);
}
@media (max-width: 760px) {
  .hero--sorgente .hero__media::after { background: rgba(13, 12, 11, 0.62); }
}

/* Variante accueil : Luna, détail (bord noir de la nuit à gauche) */
.hero--luna .hero__media img { object-position: 0% 40%; filter: contrast(1.08); }
.hero--luna .hero__media::after {
  background: linear-gradient(100deg, rgba(13, 12, 11, 0.78) 0%, rgba(13, 12, 11, 0.55) 38%, rgba(13, 12, 11, 0.1) 60%, rgba(13, 12, 11, 0) 68%);
}
@media (max-width: 760px) {
  .hero--luna .hero__media img { object-position: 12% center; }
  .hero--luna .hero__media::after { background: rgba(13, 12, 11, 0.6); }
}

/* ---------- Accueil : l’œil doré détouré, sur le fond du site (clair ou sombre) ---------- */
.hero--eye {
  background: var(--color-bg);
  align-items: center;
  min-height: min(86vh, 800px);
}
.hero--eye .hero__media {
  inset: 0 0 0 auto;
  width: 56%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vw, 3rem) clamp(1rem, 3vw, 3rem) clamp(1rem, 3vw, 3rem) 0;
}
.hero--eye .hero__media::after { content: none; }
.hero--eye .hero__media img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  filter: none;
}
.hero--eye .hero__content { color: var(--color-text); }
.hero--eye .hero__content * { text-shadow: none !important; }
.hero--eye .hero__panel { max-width: 36%; }
.hero--eye h1.kicker {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  max-width: none;
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.6;
}
.hero--eye .hero__quote {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  font-weight: 300;
  line-height: 1.12;
  max-width: 16ch;
  margin-block: var(--space-5) var(--space-6);
}
.hero--eye .hero__sub { color: var(--color-text-muted); }
@media (max-width: 900px) {
  .hero--eye { flex-direction: column; align-items: stretch; min-height: 0; }
  .hero--eye .hero__media { position: relative; inset: auto; width: 100%; order: -1; padding: var(--space-6) var(--space-4) 0; }
  .hero--eye .hero__panel { max-width: none; }
  .hero--eye .hero__content { padding-block: var(--space-6) var(--space-12); }
}
