/* ============================================================
   ÉRIC ZUDAIRE — Œuvres photographiques sur bois
   Design v2 — immersif, contrasté, animé (Lenis + GSAP)
   Sections sombres #0a0a0a / claires #f5f2ed en alternance
   Titres : Syne · Accents : Cormorant Garamond · Corps : Jost
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --dark:    #0a0a0a;
  --dark-2:  #121212;
  --dark-3:  #1a1a1a;
  --light:   #f5f2ed;
  --light-2: #ebe6dd;
  --ink:     #161616;
  --accent:  #c89b5e;            /* sable doré */
  --accent-2:#9e7840;

  --tx-d:        #f5f2ed;                 /* texte sur fond sombre */
  --tx-d-muted:  rgba(245,242,237,0.6);
  --tx-l:        #161616;                 /* texte sur fond clair */
  --tx-l-muted:  rgba(22,22,22,0.62);
  --line-d:  rgba(245,242,237,0.14);
  --line-l:  rgba(22,22,22,0.14);

  --f-title: 'Syne', sans-serif;
  --f-serif: 'Cormorant Garamond', Georgia, serif;
  --f-body:  'Jost', 'Segoe UI', sans-serif;

  --maxw: 1340px;
  --gutter: clamp(1.25rem, 4.5vw, 4.5rem);
  --r: 10px;                     /* rayon des cartes */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 1.02rem;
  line-height: 1.75;
  letter-spacing: 0.012em;
  color: var(--tx-l);
  background: var(--dark);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }
ul { list-style: none; padding: 0; }
::selection { background: var(--accent); color: var(--dark); }

/* ---------- Conteneurs / sections ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.sec { position: relative; padding-block: clamp(4.5rem, 11vw, 9.5rem); }
.sec--dark  { background: var(--dark);  color: var(--tx-d); }
.sec--light { background: var(--light); color: var(--tx-l); }
.sec--tight { padding-block: clamp(3rem, 7vw, 5.5rem); }

/* ---------- Typographie ---------- */
h1, h2, h3 { font-family: var(--f-title); font-weight: 700; line-height: 1.02; letter-spacing: -0.015em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.8em;
  font-family: var(--f-title);
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 2.2em; height: 1px; background: var(--accent); }
.sec-title {
  font-size: clamp(2.3rem, 5.6vw, 4.6rem);
  margin-top: 1rem;
  text-wrap: balance;
}
.sec-head { max-width: 70ch; margin-bottom: clamp(2.4rem, 5vw, 4.2rem); }
.lead {
  font-size: clamp(1.02rem, 1.9vw, 1.25rem);
  max-width: 58ch;
}
.sec--dark .lead { color: var(--tx-d-muted); }
.sec--light .lead { color: var(--tx-l-muted); }
.serif-it { font-family: var(--f-serif); font-style: italic; font-weight: 500; }
.quote {
  font-family: var(--f-serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.7rem, 4.2vw, 3.2rem);
  line-height: 1.25; text-wrap: balance;
  max-width: 26ch; margin-inline: auto; text-align: center;
}
.signature { font-family: var(--f-serif); font-style: italic; font-size: 1.5rem; color: var(--accent); }

/* Ligne horizontale animée entre sections */
.rule {
  height: 1px; width: 100%;
  background: currentColor; opacity: 0.16;
  transform-origin: left center;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.7em;
  padding: 1.05em 2.2em;
  border-radius: 100px;
  font-family: var(--f-title);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  border: 1px solid transparent;
  transition: transform 0.45s var(--ease), background 0.35s var(--ease),
              color 0.35s var(--ease), border-color 0.35s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px) scale(0.99); }
.btn .ico { width: 15px; height: 15px; }
/* sur fond sombre */
.btn--fill-light { background: var(--light); color: var(--dark); }
.btn--fill-light:hover { background: var(--accent); color: var(--dark); }
.btn--line-light { border-color: rgba(245,242,237,0.35); color: var(--tx-d); }
.btn--line-light:hover { border-color: var(--light); background: var(--light); color: var(--dark); }
/* sur fond clair */
.btn--fill-dark { background: var(--dark); color: var(--light); }
.btn--fill-dark:hover { background: var(--accent); color: var(--dark); }
.btn--line-dark { border-color: rgba(22,22,22,0.3); color: var(--tx-l); }
.btn--line-dark:hover { border-color: var(--dark); background: var(--dark); color: var(--light); }
.btn--block { width: 100%; justify-content: center; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.btn-row--center { justify-content: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--f-title); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: gap 0.35s var(--ease), border-color 0.35s var(--ease);
}
.link-arrow::after { content: "→"; transition: transform 0.35s var(--ease); }
.link-arrow:hover { gap: 1em; border-color: var(--accent); }

/* ============================================================
   Header — transparent → blur au scroll
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding-block: 1.1rem;
  color: var(--tx-d);
  transition: padding 0.45s var(--ease), background 0.45s var(--ease);
  background: transparent;
}
.site-header.is-scrolled {
  padding-block: 0.7rem;
  background: rgba(10, 10, 10, 0.55);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 1px 0 rgba(245,242,237,0.07);
}
.header-inner {
  max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.brand { display: flex; flex-direction: column; line-height: 1.05; z-index: 130; }
.brand__name { font-family: var(--f-title); font-weight: 800; font-size: 1.28rem; letter-spacing: -0.01em; color: var(--tx-d); }
.brand__tag {
  display: flex; flex-direction: column;
  margin-top: 4px; line-height: 1.5;
  font-size: 0.56rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--accent);
}
.brand__tag > span { display: block; }

.site-nav { display: flex; align-items: center; gap: clamp(1.2rem, 2.2vw, 2.3rem); }
.site-nav > a {
  position: relative;
  font-family: var(--f-title); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(245,242,237,0.78);
  padding-block: 0.35rem;
  transition: color 0.3s var(--ease);
}
.site-nav > a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1.5px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.site-nav > a:hover { color: var(--tx-d); }
.site-nav > a:hover::after, .site-nav > a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav > a[aria-current="page"] { color: var(--tx-d); }

.lang-switch {
  display: inline-flex; align-items: center; gap: 0.15rem;
  margin-left: 0.5rem; padding-left: 1.1rem;
  border-left: 1px solid var(--line-d);
}
.lang-switch button {
  display: inline-flex; align-items: center; gap: 0.45em;
  padding: 0.35rem 0.5rem;
  font-family: var(--f-title); font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(245,242,237,0.5);
  border-radius: 4px;
  transition: color 0.3s var(--ease);
}
.lang-switch button:hover { color: var(--tx-d); }
.lang-switch button.is-active { color: var(--tx-d); }
.lang-switch .flag-svg {
  width: 17px; height: 11.5px; flex: 0 0 auto;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(245,242,237,0.25);
  opacity: 0.85;
}
.lang-switch button[data-lang="en"] .flag-svg { width: 23px; }
.lang-switch button.is-active .flag-svg { opacity: 1; }

/* Hamburger */
.nav-toggle {
  display: none;
  position: relative; z-index: 130;
  flex-direction: column; justify-content: center; gap: 6px;
  width: 40px; height: 40px;
}
.nav-toggle span {
  display: block; height: 2px; width: 26px;
  background: var(--tx-d); border-radius: 2px;
  transition: transform 0.45s var(--ease), opacity 0.3s var(--ease);
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; transform: scaleX(0.4); }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================================
   Hero accueil — 100vh image + parallaxe
   ============================================================ */
.hero {
  position: relative; height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: var(--dark); color: var(--tx-d);
}
.hero__bg { position: absolute; inset: -14% 0; z-index: 0; will-change: transform; }
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 42%;
  transform: scale(1.22);            /* recadre le mur autour du tableau */
}
.hero__veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.15) 28%, rgba(10,10,10,0.05) 55%, rgba(10,10,10,0.92) 100%);
}
.hero__content {
  position: relative; z-index: 2;
  text-align: center; padding-inline: var(--gutter);
  max-width: 1100px;
}
.hero__title {
  font-size: clamp(2.9rem, 10.5vw, 8.6rem);
  font-weight: 800; line-height: 0.98; letter-spacing: -0.025em;
  color: #fff; text-wrap: balance;
}
.hero__title .w { display: inline-block; white-space: nowrap; }
.hero__title .ltr { display: inline-block; will-change: transform, opacity; }
.hero__sub {
  margin-top: 1.8rem;
  font-size: clamp(1.02rem, 2.1vw, 1.4rem);
  color: rgba(245,242,237,0.85);
  max-width: 48ch; margin-inline: auto;
}
.hero__cta { margin-top: 2.8rem; justify-content: center; }

/* Hero des pages intérieures */
.page-hero {
  position: relative;
  background: var(--dark); color: var(--tx-d);
  padding-top: clamp(8.5rem, 17vw, 13rem);
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
  overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 1px;
  background: var(--line-d);
}
.page-hero h1 {
  font-size: clamp(2.9rem, 8.5vw, 7rem);
  font-weight: 800; letter-spacing: -0.025em;
  margin-top: 1.1rem;
}
.page-hero .lead { margin-top: 1.5rem; color: var(--tx-d-muted); }

/* ============================================================
   Split (image + texte)
   ============================================================ */
.split {
  display: grid; grid-template-columns: 1fr;
  gap: clamp(2.4rem, 6vw, 5.5rem); align-items: center;
}
.split__body h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); margin: 1rem 0 1.4rem; }
.split__body p + p { margin-top: 1.1rem; }
.split__body .link-arrow, .split__body .btn-row { margin-top: 2.2rem; }
.sec--dark .split__body p { color: var(--tx-d-muted); }
.sec--light .split__body p { color: var(--tx-l-muted); }

/* Cadre image avec recadrage (supprime le mur) */
.imgframe {
  position: relative; overflow: hidden; border-radius: var(--r);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.5);
}
.artwork-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transform: none;                   /* les images sont déjà recadrées au cadre (voir assets) */
  transition: transform 0.6s ease;
}
.imgframe:hover .artwork-img { transform: scale(1.05); }
.work-card__open:hover .artwork-img { transform: scale(1.04); }
.imgframe--43 { aspect-ratio: 4 / 3; }
.imgframe--34 { aspect-ratio: 3 / 4; }
.imgframe--11 { aspect-ratio: 1 / 1; }

/* Placeholder moderne (photos à venir : portrait, étapes du processus) */
.ph {
  position: relative; overflow: hidden; border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(200,155,94,0.1), transparent 55%),
    linear-gradient(150deg, #181818 0%, #101010 100%);
  border: 1px solid rgba(245,242,237,0.08);
}
.sec--light .ph {
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(200,155,94,0.16), transparent 55%),
    linear-gradient(150deg, #e9e3d8 0%, #dfd8ca 100%);
  border-color: rgba(22,22,22,0.08);
}
.ph__label {
  display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
  font-family: var(--f-title); font-size: 0.6rem; font-weight: 600;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(245,242,237,0.4);
  text-align: center; padding: 1rem;
}
.sec--light .ph__label { color: rgba(22,22,22,0.4); }
.ph--43 { aspect-ratio: 4 / 3; }
.ph--34 { aspect-ratio: 3 / 4; }
.ph--169 { aspect-ratio: 16 / 9; }

/* ============================================================
   Éditions limitées — cartes + compteur
   ============================================================ */
.ed-grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line-d); border: 1px solid var(--line-d); border-radius: var(--r); overflow: hidden; }
.ed-card { background: var(--dark-2); padding: clamp(1.8rem, 3.4vw, 2.8rem); transition: background 0.4s var(--ease); }
.ed-card:hover { background: var(--dark-3); }
.ed-card .num {
  font-family: var(--f-title); font-weight: 800;
  font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1;
  color: var(--accent);
}
.ed-card h3 { font-size: 1.18rem; margin: 1.1rem 0 0.6rem; }
.ed-card p { font-size: 0.92rem; color: var(--tx-d-muted); }

/* ============================================================
   Œuvres — filtres, masonry, cartes, modale
   ============================================================ */
.work-filter { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: clamp(2rem, 4.5vw, 3.4rem); }
.work-filter__btn {
  padding: 0.7em 1.5em; border-radius: 100px;
  font-family: var(--f-title); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--tx-l-muted);
  border: 1px solid var(--line-l);
  transition: color 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.sec--dark .work-filter__btn { color: var(--tx-d-muted); border-color: var(--line-d); }
.work-filter__btn:hover { color: var(--tx-l); border-color: var(--tx-l); }
.sec--dark .work-filter__btn:hover { color: var(--tx-d); border-color: var(--tx-d); }
.work-filter__btn.is-active { background: var(--dark); border-color: var(--dark); color: var(--light); }
.sec--dark .work-filter__btn.is-active { background: var(--light); border-color: var(--light); color: var(--dark); }

/* Masonry */
.works-masonry { columns: 3; column-gap: 1.4rem; }
.works-masonry .work-card { break-inside: avoid; margin-bottom: 1.4rem; }
.work-card.is-hidden { display: none; }

/* Grille (sélection accueil) */
.works-row { display: grid; grid-template-columns: 1fr; gap: 1.4rem; }

/* Carte œuvre — image mattée + fiche (titre, description, format/prix/dispo) */
.work-card { position: relative; }
.work-card__open {
  display: flex; flex-direction: column; width: 100%; text-align: left;
  border-radius: var(--r); overflow: hidden;
  background: #f2eee6;
  box-shadow: 0 20px 50px -30px rgba(0,0,0,0.32);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.work-card__open:hover { transform: translateY(-4px); box-shadow: 0 32px 70px -30px rgba(0,0,0,0.42); }
.work-card__media {
  display: block; overflow: hidden;
  background: #ebe6dd;                  /* passe-partout = fond baké des images détourées */
  padding: clamp(0.85rem, 2.2vw, 1.5rem);
}
.work-card__media img {
  display: block; width: 100%; height: auto;
  transition: transform 0.7s var(--ease);
}
.work-card__open:hover .work-card__media img { transform: scale(1.035); }
.work-card__body {
  display: flex; flex-direction: column; gap: 0.55rem;
  padding: clamp(1.1rem, 2.4vw, 1.5rem);
}
.work-card__title {
  font-family: var(--f-title); font-weight: 700;
  font-size: clamp(1.18rem, 2vw, 1.45rem);
  letter-spacing: -0.01em; line-height: 1.1; color: var(--ink);
}
.work-card__desc {
  font-family: var(--f-serif); font-style: italic;
  font-size: 1.05rem; line-height: 1.4; color: var(--tx-l-muted);
}
.work-card__foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem 0.9rem;
  margin-top: 0.35rem; padding-top: 0.85rem;
  border-top: 1px solid var(--line-l);
}
.work-card__specs {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.82rem; letter-spacing: 0.01em; color: var(--tx-l-muted);
}
.work-card__specs .sep { opacity: 0.45; }
.avail-pill {
  margin-left: auto;
  font-family: var(--f-title); font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap;
  padding: 0.42em 0.9em; border-radius: 100px;
  background: rgba(22,22,22,0.07); color: var(--ink);
}
.avail-pill--last { background: var(--accent); color: var(--dark); }

/* Modale œuvre */
.work-modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1rem, 3vw, 3rem);
  background: rgba(6,6,6,0.93);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.45s var(--ease), visibility 0s linear 0.45s;
}
.work-modal.open { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 0.45s var(--ease); }
.work-modal__box {
  display: grid; grid-template-columns: 1fr;
  gap: 0; width: min(1080px, 100%);
  max-height: 92vh;
  max-height: 90dvh;                    /* dvh : tient compte de la barre d'adresse iOS */
  background: var(--dark-2); color: var(--tx-d);
  border: 1px solid rgba(245,242,237,0.1);
  border-radius: 14px;
  overflow-x: hidden;
  overflow-y: auto;                     /* le contenu long defile dans la modale */
  -webkit-overflow-scrolling: touch;    /* inertie tactile iOS */
  overscroll-behavior: contain;         /* n'entraine pas le scroll de la page */
  transform: translateY(26px) scale(0.985);
  transition: transform 0.5s var(--ease);
}
.work-modal.open .work-modal__box { transform: none; }
.work-modal__media {
  position: relative; overflow: hidden; background: #ebe6dd;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1rem, 3vw, 2.2rem);
}
.work-modal__media img {
  width: 100%; height: auto;
  max-height: 58vh;
  max-height: 52dvh;
  object-fit: contain; object-position: center;
}
.work-modal__panel { padding: clamp(1.6rem, 3.5vw, 2.8rem); display: flex; flex-direction: column; gap: 1.1rem; }
.work-modal__title { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 800; }
.work-modal__desc {
  font-family: var(--f-serif); font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.4rem); line-height: 1.4;
  color: var(--tx-d-muted); margin-top: -0.3rem;
}
.work-modal__rows { display: grid; gap: 0.55rem; padding-block: 0.9rem; border-block: 1px solid var(--line-d); }
.work-modal__row { display: flex; justify-content: space-between; gap: 1.5rem; font-size: 0.9rem; }
.work-modal__row .k { color: var(--tx-d-muted); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.68rem; font-family: var(--f-title); font-weight: 600; padding-top: 0.2em; }
.work-modal__row .v { text-align: right; }
.work-modal__avail { display: flex; align-items: center; gap: 0.6rem; }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(245,242,237,0.18); }
.dots i.on { background: var(--accent); }
.work-modal__cta { margin-top: 0.4rem; }
/* Ancre sur .work-modal (et non sur la box qui defile) : reste visible
   en haut a droite meme quand on fait defiler le contenu de la fiche. */
.work-modal__close {
  position: absolute;
  top: calc(clamp(1rem, 3vw, 3rem) + 0.7rem);
  right: calc(clamp(1rem, 3vw, 3rem) + 0.7rem);
  z-index: 210;
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10,10,10,0.55); color: var(--tx-d);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(245,242,237,0.18);
  transition: transform 0.35s var(--ease), background 0.3s var(--ease);
}
.work-modal__close:hover { transform: rotate(90deg); background: var(--accent); color: var(--dark); border-color: transparent; }
.work-modal__close svg { width: 16px; height: 16px; }
body.modal-open { overflow: hidden; touch-action: none; }

/* --- Modale sur petits ecrans : tout doit rester atteignable --- */
@media (max-width: 859px) {
  .work-modal { padding: 0.85rem; align-items: flex-start; }
  .work-modal__box {
    max-height: 94dvh;
    margin-top: max(0.6rem, env(safe-area-inset-top));
  }
  /* l'image ne monopolise plus l'espace : les portraits laissent
     la place a la technique, la disponibilite et le bouton */
  .work-modal__media { padding: 0.9rem; }
  .work-modal__media img { max-height: 42dvh; }
  .work-modal__panel { padding: 1.3rem 1.2rem calc(1.4rem + env(safe-area-inset-bottom)); gap: 0.9rem; }
  .work-modal__title { font-size: 1.55rem; }
  .work-modal__desc { font-size: 1.05rem; }
  .work-modal__close {
    top: calc(0.85rem + max(0.6rem, env(safe-area-inset-top)) + 0.5rem);
    right: 1.35rem;
    width: 40px; height: 40px;
    background: rgba(10,10,10,0.75);
  }
}

/* ============================================================
   Processus — storytelling vertical
   ============================================================ */
.process-track { position: relative; }
.process-vline {
  position: absolute; left: 50%; top: 0; bottom: 0;
  width: 1px; background: var(--line-l);
  transform: translateX(-50%);
}
.process-vline i {
  position: absolute; inset: 0;
  background: var(--accent);
  transform-origin: top center; transform: scaleY(0);
  display: block;
}
.pstep {
  position: relative;
  min-height: 80vh;
  display: grid; grid-template-columns: 1fr;
  gap: clamp(1.8rem, 4vw, 4rem);
  align-items: center;
  padding-block: clamp(2.5rem, 6vw, 4rem);
}
.pstep__watermark {
  position: absolute; top: 50%; right: -2%;
  transform: translateY(-50%);
  font-family: var(--f-title); font-weight: 800;
  font-size: clamp(9rem, 24vw, 21rem); line-height: 1;
  color: rgba(22,22,22,0.045);
  pointer-events: none; user-select: none;
  z-index: 0;
}
.pstep:nth-child(even) .pstep__watermark { right: auto; left: -2%; }
.pstep__media, .pstep__body { position: relative; z-index: 1; }
.pstep__num {
  font-family: var(--f-title); font-weight: 800;
  font-size: 0.95rem; letter-spacing: 0.2em;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 0.8em;
  margin-bottom: 1rem;
}
.pstep__num::after { content: ""; width: 3em; height: 1px; background: var(--accent); }
.pstep__body h3 { font-size: clamp(1.6rem, 3.4vw, 2.6rem); margin-bottom: 1rem; }
.pstep__body p { color: var(--tx-l-muted); max-width: 46ch; }

/* ============================================================
   L'artiste
   ============================================================ */
.artist-hero {
  position: relative; height: 92vh; min-height: 600px;
  display: flex; align-items: flex-end;
  background:
    radial-gradient(110% 80% at 75% 15%, rgba(200,155,94,0.14), transparent 55%),
    linear-gradient(170deg, #161616 0%, #0a0a0a 70%);
  color: var(--tx-d); overflow: hidden;
}
.artist-hero::before {
  content: "ÉZ";
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -55%);
  font-family: var(--f-title); font-weight: 800;
  font-size: clamp(14rem, 38vw, 34rem); line-height: 1;
  color: rgba(245,242,237,0.035);
  pointer-events: none;
}
.artist-hero__inner { position: relative; width: 100%; padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.artist-hero h1 { font-size: clamp(3rem, 9vw, 7.5rem); font-weight: 800; margin-top: 1rem; }
.artist-hero .lead { margin-top: 1.4rem; color: var(--tx-d-muted); }

.sources-grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line-d); border: 1px solid var(--line-d); border-radius: var(--r); overflow: hidden; }
.source { background: var(--dark-2); padding: clamp(1.7rem, 3vw, 2.5rem); transition: background 0.4s var(--ease); }
.source:hover { background: var(--dark-3); }
.source .s-ico { width: 34px; height: 34px; color: var(--accent); margin-bottom: 1.2rem; }
.source .idx { font-family: var(--f-title); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.2em; color: var(--accent); }
.source h3 { font-size: 1.25rem; margin: 0.7rem 0 0.6rem; }
.source p { font-size: 0.91rem; color: var(--tx-d-muted); }
.making { margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line-d); max-width: 70ch; }
.making__t { font-size: clamp(1.3rem, 2.6vw, 2rem); margin-bottom: 0.9rem; }
.making__p { color: var(--tx-d-muted); }

/* ============================================================
   Expositions — cartes lieux
   ============================================================ */
.venues { display: grid; grid-template-columns: 1fr; gap: clamp(1.4rem, 3vw, 2.4rem); }
.venue {
  position: relative; overflow: hidden; border-radius: var(--r);
  background: #fff; border: 1px solid var(--line-l);
  box-shadow: 0 26px 70px -34px rgba(0,0,0,0.35);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.venue:hover { transform: translateY(-6px); box-shadow: 0 36px 90px -34px rgba(0,0,0,0.45); }
.venue__logo {
  aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center;
  background: #fbfaf6;                 /* fond clair : les deux logos restent lisibles */
  padding: clamp(1.4rem, 3.5vw, 2.4rem);
  border-bottom: 1px solid var(--line-l);
  overflow: hidden;
}
.venue__logo img {
  max-width: 66%; max-height: 100%; width: auto; height: auto;
  object-fit: contain;
  transition: transform 0.6s ease;
}
.venue:hover .venue__logo img { transform: scale(1.04); }
.venue__monogram {
  font-family: var(--f-title); font-weight: 800;
  font-size: clamp(2.8rem, 6vw, 4rem); letter-spacing: 0.06em;
  color: var(--light);
}
.venue__body { padding: clamp(1.5rem, 3vw, 2.2rem); }
.venue__loc {
  font-family: var(--f-title); font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent-2);
}
.venue__name { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; margin: 0.5rem 0 1.4rem; }
.venue__links { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.venue__links .btn { padding: 0.78em 1.4em; font-size: 0.64rem; }

/* ============================================================
   Contact — split screen
   ============================================================ */
.contact-split { display: grid; grid-template-columns: 1fr; min-height: 100vh; }
.contact-split__form {
  background: var(--dark); color: var(--tx-d);
  padding: clamp(3.5rem, 7vw, 6.5rem) var(--gutter);
  display: flex; flex-direction: column; justify-content: center;
}
.contact-split__info {
  background: var(--light); color: var(--tx-l);
  padding: clamp(3.5rem, 7vw, 6.5rem) var(--gutter);
  display: flex; flex-direction: column; justify-content: center; gap: 1.7rem;
}
.contact-split h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); margin-bottom: 2.2rem; }

.form { display: grid; gap: 2rem; }
.field-row { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.field { position: relative; display: flex; flex-direction: column; gap: 0.55rem; }
.field label {
  font-family: var(--f-title); font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(245,242,237,0.55);
  transition: color 0.3s var(--ease);
}
.field:focus-within label { color: var(--accent); }
.field input, .field select, .field textarea {
  font-family: var(--f-body); font-weight: 300; font-size: 1rem;
  color: var(--tx-d);
  background: transparent;
  border: none; border-bottom: 1px solid rgba(245,242,237,0.22);
  border-radius: 0;
  padding: 0.65em 0 0.7em;
  transition: border-color 0.3s var(--ease);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(245,242,237,0.32); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: rgba(245,242,237,0.45); }
.field select { -webkit-appearance: none; appearance: none; cursor: pointer; }
.field select option { background: var(--dark-2); color: var(--tx-d); }
.field--select::after {
  content: "↓"; position: absolute; right: 2px; bottom: 0.8em;
  font-size: 0.85rem; color: var(--accent); pointer-events: none;
}
/* ligne animée au focus */
.field .uline {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 0.5s var(--ease);
}
.field:focus-within .uline { transform: scaleX(1); }
.form__status { font-size: 0.85rem; color: var(--accent); min-height: 1.3em; }
.form__note { font-size: 0.76rem; color: rgba(245,242,237,0.42); }

.info-item { display: grid; gap: 0.2rem; }
.info-item .k {
  font-family: var(--f-title); font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent-2);
}
.info-item .v { font-size: 1.12rem; }
.info-item a { border-bottom: 1px solid transparent; transition: border-color 0.3s var(--ease); }
.info-item a:hover { border-color: currentColor; }
.ship-note {
  margin-top: 0.6rem; padding: clamp(1.4rem, 3vw, 2rem);
  background: var(--light-2); border-radius: var(--r);
}
.ship-note h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.ship-note p { font-size: 0.89rem; color: var(--tx-l-muted); }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(2.1rem, 5.4vw, 4.4rem); font-weight: 800; max-width: 22ch; margin-inline: auto; }
.cta-band p { color: var(--tx-d-muted); margin: 1.4rem auto 2.4rem; max-width: 54ch; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: #070707; color: rgba(245,242,237,0.75);
  padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem;
  border-top: 1px solid rgba(245,242,237,0.07);
}
.footer-top {
  display: grid; grid-template-columns: 1fr; gap: 2.6rem;
  padding-bottom: 2.8rem; border-bottom: 1px solid rgba(245,242,237,0.09);
}
.footer-brand .brand__name { font-size: 1.5rem; }
.footer-brand p { margin-top: 0.9rem; font-size: 0.88rem; max-width: 34ch; color: rgba(245,242,237,0.5); }
.footer-col h4 {
  font-family: var(--f-title); font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.1rem;
}
.footer-col a { display: block; padding-block: 0.3rem; font-size: 0.92rem; color: rgba(245,242,237,0.66); transition: color 0.3s var(--ease), transform 0.3s var(--ease); }
.footer-col a:hover { color: var(--light); transform: translateX(4px); }
.footer-col--social a { display: flex; align-items: center; gap: 0.65rem; }
.footer-col .ico { width: 17px; height: 17px; flex: 0 0 auto; color: var(--accent); transition: color 0.3s var(--ease), transform 0.3s var(--ease); }
.footer-col--social a:hover .ico { color: var(--light); transform: scale(1.12); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between; align-items: center;
  padding-top: 1.8rem;
  font-size: 0.74rem; color: rgba(245,242,237,0.4);
}
.footer-social { display: flex; gap: 1.4rem; }
.footer-social a {
  font-family: var(--f-title); font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(245,242,237,0.55); transition: color 0.3s var(--ease);
}
.footer-social a:hover { color: var(--accent); }
/* bloc principal réparti horizontalement sur toute la largeur (desktop) */
@media (min-width: 720px) {
  .footer-top {
    grid-template-columns: 1.7fr 1fr 1fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
  }
}

/* ============================================================
   Mentions légales
   ============================================================ */
.legal-block { padding-block: clamp(1.6rem, 3vw, 2.4rem); border-top: 1px solid var(--line-l); }
.legal-block:first-child { border-top: none; padding-top: 0; }
.legal-block h2 { font-size: clamp(1.3rem, 2.6vw, 1.9rem); margin-bottom: 0.7rem; }
.legal-block p { color: var(--tx-l-muted); }
.legal-block a { color: var(--accent-2); border-bottom: 1px solid transparent; transition: border-color 0.3s var(--ease); }
.legal-block a:hover { border-color: currentColor; }

/* ============================================================
   Responsive
   ============================================================ */
@media (min-width: 640px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .works-row { grid-template-columns: repeat(2, 1fr); }
  .ed-grid { grid-template-columns: repeat(3, 1fr); }
  .sources-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 860px) {
  .split { grid-template-columns: 1.05fr 1fr; }
  .split--reverse .split__media { order: 2; }
  .pstep { grid-template-columns: 1fr 1fr; }
  .pstep:nth-child(even) .pstep__media { order: 2; }
  .venues { grid-template-columns: 1fr 1fr; }
  .contact-split { grid-template-columns: 1.1fr 1fr; }
  /* 2 colonnes : la fiche defile toujours si le texte est long (ES/EN) */
  .work-modal__box { grid-template-columns: 1.15fr 1fr; overflow-x: hidden; overflow-y: auto; }
  .work-modal__media img { max-height: 84vh; max-height: 78dvh; }
}
@media (min-width: 1024px) {
  .sources-grid { grid-template-columns: repeat(4, 1fr); }
  .works-row { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1023px) {
  .works-masonry { columns: 2; }
}
@media (max-width: 639px) {
  .works-masonry { columns: 1; }
}

/* ---------- Navigation mobile ---------- */
@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  /* IMPORTANT — un ancetre avec backdrop-filter cree un containing block :
     les enfants en position:fixed se calent alors sur le header au lieu du
     viewport. Le header porte backdrop-filter des qu'on a scrolle (.is-scrolled),
     ce qui decalait l'overlay du menu. On le neutralise pendant l'ouverture. */
  body.nav-open .site-header,
  body.nav-open .site-header.is-scrolled {
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
  }

  .site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;              /* gere la barre d'adresse Safari iOS */
    z-index: 120;
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 1.1rem;
    padding: 6rem var(--gutter) 3rem;
    background: #080808;         /* opaque : rien ne transparait derriere */
    opacity: 0; visibility: hidden; pointer-events: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    transition: opacity 0.45s var(--ease), visibility 0s linear 0.45s;
  }
  .site-nav.open { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 0.45s var(--ease); }
  .site-nav > a {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    font-weight: 700; letter-spacing: 0; text-transform: none;
    color: var(--tx-d);
    transform: translateY(18px); opacity: 0;
    transition: transform 0.55s var(--ease), opacity 0.55s var(--ease);
  }
  .site-nav.open > a { transform: none; opacity: 1; }
  .site-nav.open > a:nth-child(1) { transition-delay: 0.06s; }
  .site-nav.open > a:nth-child(2) { transition-delay: 0.11s; }
  .site-nav.open > a:nth-child(3) { transition-delay: 0.16s; }
  .site-nav.open > a:nth-child(4) { transition-delay: 0.21s; }
  .site-nav.open > a:nth-child(5) { transition-delay: 0.26s; }
  .site-nav.open > a:nth-child(6) { transition-delay: 0.31s; }
  .site-nav > a::after { display: none; }
  .site-nav > a[aria-current="page"] { color: var(--accent); }
  .lang-switch {
    margin: 1.4rem 0 0; padding: 1.4rem 0 0;
    border-left: none; border-top: 1px solid var(--line-d);
    width: 100%; gap: 0.6rem;
  }
  .lang-switch button { font-size: 0.78rem; }
  body.nav-open { overflow: hidden; touch-action: none; }
}

/* ---------- Accessibilité / mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* utilitaires */
.mt-md { margin-top: 2rem; }
.center { text-align: center; }
.maxw-text { max-width: 68ch; }
