/* ===========================================================
   Liying Xie — feuille de styles partagée
   Reproduction de la maquette Figma "Maquette - Website - Ling Xie"
   =========================================================== */

/* Police hébergée localement (aucun appel à Google Fonts → conformité RGPD) */
@font-face {
  font-family: 'Junge';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/junge-v26-latin-400.woff2') format('woff2');
}

:root {
  --white: #ffffff;
  --ink: rgba(0, 0, 0, 0.8);
  --black: #000000;
  --grey-dark: #4e4e4e;
  --grey-mid: #787878;
  --grey-btn: #3d3d3d;
  --placeholder: #212121;
  --tan: #c3b090;
  --serif: 'Junge', 'Cormorant Garamond', Georgia, 'Noto Serif SC', 'Songti SC', 'STSong', 'SimSun', serif;
  --sans: 'Helvetica Neue', Helvetica, Arial, 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

h1, h2, h3, h4, .serif { font-family: var(--serif); font-weight: 400; }

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

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

.wrap {
  width: min(1440px, 100%);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 90px);
}

.page-main { padding-top: 132px; }            /* compense la nav fixe */

/* ---------- Header / Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px clamp(20px, 5vw, 76px);
  background: linear-gradient(180deg, rgba(255,255,255,0.97) 0%, rgba(255,255,255,0.85) 60%, rgba(255,255,255,0.55) 100%);
  backdrop-filter: blur(2px);
}
.nav--solid { background: rgba(255,255,255,0.97); border-bottom: 1px solid rgba(0,0,0,.06); }
.nav__logo img { width: 64px; height: auto; }
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 28px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: -0.011em;
  color: rgba(0,0,0,0.8);
  padding: 6px 4px;
  transition: opacity .2s ease;
}
.nav__links a:hover,
.nav__links a[aria-current="page"] { opacity: .5; }
.nav__links a[aria-current="page"] { border-bottom: 1px solid currentColor; }
.nav__toggle { display: none; }

/* Conteneur droit + sélecteur de langue */
.nav__right { display: flex; align-items: center; gap: clamp(10px, 2vw, 24px); }
.lang-switch { display: flex; align-items: center; gap: 2px; }
.lang-switch button {
  background: none; border: none; cursor: pointer; padding: 4px 7px; border-radius: 4px;
  font-family: var(--serif); font-size: 15px; line-height: 1; color: rgba(0,0,0,.45);
  transition: color .2s ease, background-color .2s ease;
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button.is-active { color: #b5322e; background: rgba(181,50,46,.08); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  background: #2a2a2a;
  overflow: hidden;
}
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.72);
}
.hero__inner { position: relative; z-index: 2; padding: 0 20px; }
.hero h1 {
  margin: 0;
  font-size: clamp(48px, 9vw, 96px);
  line-height: 1.2;
  letter-spacing: -0.011em;
  text-shadow: 0 0 6px rgba(0,0,0,.6), 0 4px 7px rgba(0,0,0,.25);
}
.hero p {
  margin: .25em 0 0;
  font-family: var(--serif);
  font-size: clamp(22px, 4vw, 40px);
  text-shadow: 0 0 6px rgba(0,0,0,.6), 0 4px 7px rgba(0,0,0,.25);
}

/* ---------- Category showcase (Home) ---------- */
.showcase {
  position: relative;
  min-height: 640px;
  display: flex;
  overflow: hidden;
  color: var(--white);
}
.showcase img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.showcase::after { content: ""; position: absolute; inset: 0; }
.showcase--dark::after { background: rgba(78,78,78,.82); }
.showcase--mid::after  { background: rgba(120,120,120,.78); }
.showcase__inner {
  position: relative;
  z-index: 2;
  width: min(1440px, 100%);
  margin-inline: auto;
  padding: clamp(40px, 7vw, 80px) clamp(20px, 6vw, 90px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
}
.showcase h2 {
  margin: 0;
  font-size: clamp(56px, 12vw, 128px);
  line-height: 1.1;
  letter-spacing: -0.011em;
  color: rgba(255,255,255,.92);
}
.showcase--right h2 { align-self: center; }
.showcase__work { max-width: 933px; }
.showcase__work h3 { margin: 0 0 14px; font-size: clamp(30px, 5vw, 52px); line-height: 1.3; }
.showcase__work p { margin: 0; max-width: 70ch; }

/* ---------- Generic section heading ---------- */
.section { padding: clamp(50px, 7vw, 90px) 0; }
.section__title {
  text-align: center;
  font-size: clamp(46px, 8vw, 96px);
  margin: 0 0 clamp(40px, 6vw, 64px);
  color: var(--black);
}
.page-title {
  text-align: center;
  font-size: clamp(44px, 7vw, 96px);
  color: var(--black);
  margin: 0 0 48px;
}

/* ---------- Expositions cards (Home + page) ---------- */
.expos { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.expo-card {
  width: 360px; max-width: 100%;
  background: var(--white);
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
  display: flex; flex-direction: column;
}
.expo-card__img { aspect-ratio: 3 / 4; width: 100%; object-fit: cover; background: var(--placeholder); }
.expo-card__body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 6px; }
.expo-card__loc { color: var(--tan); font-family: var(--serif); font-size: 18px; }
.expo-card__name { margin: 2px 0; font-family: var(--serif); font-size: 26px; color: var(--black); }
.expo-card__date { color: var(--tan); font-family: var(--serif); font-size: 16px; }
.expo-card__more {
  margin-top: 14px; align-self: flex-start;
  font-family: var(--serif); font-size: 18px; color: var(--black);
  border-bottom: 1px solid var(--black); padding-bottom: 2px;
}

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1.2fr .8fr; }
.contact__form-side { padding: clamp(50px, 7vw, 90px) clamp(20px, 5vw, 76px); }
.contact__form-side h2 {
  text-align: center; font-size: clamp(46px, 8vw, 96px);
  margin: 0 0 40px; color: var(--black);
}
form { display: flex; flex-direction: column; gap: 18px; max-width: 720px; margin-inline: auto; }
form input, form textarea {
  font-family: var(--sans); font-size: 16px; padding: 14px 16px;
  border: 1px solid var(--black); background: transparent; color: var(--ink); border-radius: 0;
}
form textarea { min-height: 150px; resize: vertical; }
form input::placeholder, form textarea::placeholder { color: rgba(0,0,0,.57); }
form button {
  align-self: center; margin-top: 6px; padding: 14px 54px;
  background: var(--grey-btn); color: var(--white); border: none;
  font-family: var(--serif); font-size: 20px; cursor: pointer; transition: background .2s ease;
}
form button:hover { background: var(--black); }

.contact__social {
  background: var(--black); color: var(--white);
  padding: clamp(50px, 7vw, 90px) clamp(28px, 4vw, 56px);
  display: flex; flex-direction: column; justify-content: center; gap: 30px;
}
.contact__social .block h3 { margin: 0 0 14px; font-size: 28px; color: var(--white); }
.contact__social .row { display: flex; align-items: center; gap: 12px; font-size: 16px; }
.contact__social .row svg { width: 24px; height: 24px; flex: none; }
.contact__social hr { width: 100%; border: none; border-top: 1px solid rgba(255,255,255,.4); margin: 4px 0; }

/* ---------- Footer ---------- */
.footer { background: var(--tan); color: var(--white); }
.footer__top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 40px; flex-wrap: wrap; padding: 48px clamp(20px, 5vw, 76px);
}
.footer__logo img { width: 70px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 10px 28px; list-style: none; margin: 0; padding: 0; }
.footer__nav a { font-family: var(--serif); font-size: 18px; }
.footer__nav a:hover { text-decoration: underline; }
.footer__contact { display: flex; flex-direction: column; gap: 12px; }
.footer__contact .row { display: flex; align-items: center; gap: 10px; }
.footer__contact svg { width: 20px; height: 20px; }
.footer__bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 20px;
  text-align: center; padding: 14px; font-size: 14px; border-top: 1px solid rgba(255,255,255,.35);
}
.footer__legal { display: inline-flex; flex-wrap: wrap; gap: 8px 18px; }
.footer__legal a { text-decoration: underline; text-underline-offset: 2px; opacity: .9; }
.footer__legal a:hover { opacity: 1; }

/* ---------- Pages légales (mentions / confidentialité) ---------- */
.legal { max-width: 820px; }
.legal h2 { font-family: var(--serif); font-size: clamp(20px, 2.2vw, 26px); margin: 34px 0 10px; }
.legal p, .legal li { font-size: 16px; line-height: 1.7; color: var(--grey-dark); }
.legal ul { padding-left: 22px; margin: 8px 0; }
.legal li { margin-bottom: 10px; }
.legal a { color: var(--black); text-decoration: underline; text-underline-offset: 2px; }
.legal .legal__updated { margin-top: 34px; font-style: italic; color: var(--grey-mid); font-size: 14px; }
.legal .todo { background: #fff3cd; color: #8a6d00; padding: 1px 6px; border-radius: 3px; font-size: .92em; }

/* ---------- Case de consentement du formulaire ---------- */
.contact-consent {
  display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 14px;
  font-size: 13px; line-height: 1.5; color: var(--grey-dark); cursor: pointer;
}
.contact-consent input { margin-top: 3px; flex: none; width: 16px; height: 16px; cursor: pointer; }
.contact-consent a { color: var(--black); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Biographie ---------- */
.bio-block { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 64px); align-items: center; margin-bottom: clamp(40px, 6vw, 80px); }
.bio-block--reverse .bio-text { order: 2; }
.bio-text h2 { font-size: clamp(30px, 4vw, 52px); color: var(--black); margin: 0 0 20px; }
.bio-text p { margin: 0 0 16px; white-space: pre-line; }
.bio-img { width: 100%; aspect-ratio: 4 / 5; background: var(--placeholder); object-fit: cover; }
.bio-intro { max-width: 900px; margin: 0 auto 64px; text-align: justify; white-space: pre-line; }

/* ---------- Œuvres : grille de catégories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.cat-card {
  position: relative; min-height: 360px; overflow: hidden;
  display: flex; align-items: flex-end; color: var(--white);
}
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cat-card::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.32); transition: background .25s ease; }
.cat-card:hover::after { background: rgba(0,0,0,.5); }
.cat-card.is-empty { background: var(--placeholder); }
.cat-card__label {
  position: relative; z-index: 2; padding: 28px 34px;
  font-family: var(--serif); font-size: clamp(34px, 5vw, 56px);
  text-shadow: 0 2px 10px rgba(0,0,0,.5);
}
.cat-card--wide { grid-column: 1 / -1; }

/* ---------- Galerie d'œuvres (sous-pages) ---------- */
.gallery-section + .gallery-section { margin-top: clamp(40px, 6vw, 72px); }
.gallery-section h2 { font-size: clamp(28px, 4vw, 52px); color: var(--black); margin: 0 0 28px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
.art { display: flex; flex-direction: column; gap: 10px; }
.art__img { width: 100%; aspect-ratio: 3 / 4; background: var(--placeholder); object-fit: cover; }
.art__name { font-family: var(--serif); font-size: 22px; color: var(--black); }
.art__meta { font-size: 14px; color: var(--grey-mid); }
.subnav { display: flex; flex-wrap: wrap; gap: 14px 26px; justify-content: center; margin: -16px 0 48px; }
.subnav a { font-family: var(--serif); font-size: 20px; color: var(--black); border-bottom: 1px solid transparent; padding-bottom: 2px; }
.subnav a:hover, .subnav a[aria-current="page"] { border-bottom-color: var(--tan); }
.art--clickable { cursor: pointer; }
.art--clickable .art__img { position: relative; }
.art { position: relative; }
.art__count {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  min-width: 26px; height: 26px; padding: 0 8px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  font-size: 13px; font-weight: 600; color: #fff; background: rgba(0,0,0,.55);
  backdrop-filter: blur(2px); pointer-events: none;
}
.art__count::before { content: "\25A3"; font-size: 13px; opacity: .85; }
.art--clickable:focus-visible { outline: 2px solid var(--seal-red); outline-offset: 4px; }

/* ---------- Carrousel (lightbox) ---------- */
body.lx-no-scroll { overflow: hidden; }
.lx-carousel {
  position: fixed; inset: 0; z-index: 1000; display: none;
  background: rgba(12,11,10,.92); padding: clamp(16px, 4vw, 56px);
}
.lx-carousel.is-open { display: flex; flex-direction: column; }
/* corps : image à gauche, panneau texte à droite */
.lx-carousel__body {
  flex: 1; min-height: 0; width: 100%;
  display: flex; align-items: center; gap: clamp(18px, 3vw, 48px);
}
.lx-carousel__stagewrap {
  position: relative; flex: 1 1 auto; min-width: 0; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.lx-carousel__stage { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.lx-carousel__img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,.5); animation: lxFade .35s var(--ease-ink);
}
@keyframes lxFade { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
.lx-carousel__close, .lx-carousel__nav {
  position: absolute; z-index: 2; background: rgba(255,255,255,.08); color: #fff;
  border: none; cursor: pointer; border-radius: 50%; line-height: 1;
  transition: background-color .25s, transform .25s;
}
.lx-carousel__close { top: clamp(14px, 3vw, 28px); right: clamp(14px, 3vw, 28px); width: 46px; height: 46px; font-size: 26px; }
.lx-carousel__nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 34px; }
.lx-carousel__nav--prev { left: clamp(4px, 1vw, 16px); }
.lx-carousel__nav--next { right: clamp(4px, 1vw, 16px); }
.lx-carousel__close:hover, .lx-carousel__nav:hover { background: rgba(255,255,255,.2); }
.lx-carousel__nav:hover { transform: translateY(-50%) scale(1.08); }

/* panneau texte latéral */
.lx-carousel__info {
  flex: 0 0 clamp(260px, 28vw, 380px); align-self: center;
  max-height: 100%; overflow-y: auto; text-align: left;
  padding-right: 8px; border-left: 1px solid rgba(255,255,255,.12); padding-left: clamp(16px, 2vw, 32px);
}
.lx-carousel__cap { display: flex; flex-direction: column; gap: 4px; color: rgba(255,255,255,.92); }
.lx-carousel__title { font-family: var(--serif); font-size: clamp(22px, 2.6vw, 30px); line-height: 1.15; margin: 0; }
.lx-carousel__meta { font-size: 14px; letter-spacing: .04em; color: rgba(255,255,255,.6); }
.lx-carousel__count { font-size: 12px; color: rgba(255,255,255,.5); letter-spacing: .1em; }
.lx-carousel__desc {
  margin: 18px 0 0; font-size: 15px; line-height: 1.7; color: rgba(255,255,255,.8);
  white-space: pre-line;
}
.lx-carousel__desc::before {
  content: ""; display: block; width: 38px; height: 1px;
  background: rgba(255,255,255,.35); margin-bottom: 16px;
}
/* dots = les images de l'œuvre courante (si plusieurs) */
.lx-carousel__imgdots { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.lx-carousel__imgdot {
  width: 44px; height: 44px; padding: 0; cursor: pointer; overflow: hidden;
  border: 1px solid rgba(255,255,255,.25); border-radius: 3px; background: rgba(255,255,255,.06);
  opacity: .6; transition: opacity .2s, border-color .2s;
}
.lx-carousel__imgdot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lx-carousel__imgdot:hover { opacity: .9; }
.lx-carousel__imgdot.is-active { opacity: 1; border-color: #fff; }

/* animation d'arrivée du texte (rejouée à chaque œuvre) */
.lx-carousel__info > * { opacity: 0; }
.lx-carousel__info.lx-in > * { animation: lxTextIn .6s var(--ease-ink, cubic-bezier(.22,1,.36,1)) both; }
.lx-carousel__info.lx-in > *:nth-child(1) { animation-delay: .05s; }
.lx-carousel__info.lx-in > *:nth-child(2) { animation-delay: .16s; }
.lx-carousel__info.lx-in > *:nth-child(3) { animation-delay: .27s; }
@keyframes lxTextIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* bande de petites vignettes cliquables = toutes les œuvres de la page */
.lx-carousel__thumbs {
  flex: none; display: flex; gap: 10px; justify-content: center;
  margin-top: 16px; overflow-x: auto; overflow-y: hidden; padding: 4px 2px;
}
.lx-carousel__thumb {
  flex: 0 0 auto; width: 56px; height: 56px; padding: 0; cursor: pointer;
  border: 1px solid rgba(255,255,255,.22); border-radius: 4px; overflow: hidden;
  background: rgba(255,255,255,.06); opacity: .5;
  transition: opacity .2s, border-color .2s, transform .2s;
}
.lx-carousel__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lx-carousel__thumb:hover { opacity: .9; transform: translateY(-2px); }
.lx-carousel__thumb.is-active { opacity: 1; border-color: #fff; }

/* ---------- Presse ---------- */
.press-list { display: flex; flex-direction: column; gap: 28px; max-width: 1100px; margin-inline: auto; }
.press-item {
  display: grid; grid-template-columns: 260px 1fr; gap: 28px;
  border-bottom: 1px solid rgba(0,0,0,.12); padding-bottom: 28px; align-items: start;
}
.press-item__img { width: 100%; aspect-ratio: 4 / 3; background: var(--placeholder); object-fit: cover; }
.press-item__head { display: flex; justify-content: space-between; gap: 16px; color: var(--tan); font-family: var(--serif); font-size: 17px; margin-bottom: 8px; }
.press-item h3 { font-size: clamp(22px, 3vw, 30px); color: var(--black); margin: 0 0 12px; }
.press-item p { margin: 0 0 16px; }
.press-item__more { font-family: var(--serif); color: var(--black); border-bottom: 1px solid var(--black); padding-bottom: 2px; }

/* ---------- Ateliers ---------- */
.atelier-block { margin-bottom: clamp(48px, 7vw, 90px); }
.atelier-block__head { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin-bottom: 24px; }
.atelier-block__head .section-num { font-family: var(--serif); font-size: clamp(28px, 4vw, 44px); color: var(--tan); }
.atelier-block__head h2 { font-family: var(--serif); font-size: clamp(30px, 4vw, 52px); color: var(--black); margin: 0; }
.atelier-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.atelier-grid p { margin: 0 0 16px; }
.atelier-img { width: 100%; aspect-ratio: 4 / 3; background: var(--placeholder); object-fit: cover; }
.atelier-list { margin: 8px 0 16px; padding-left: 20px; }
.atelier-list li { margin-bottom: 8px; }
.atelier-block strong, .ts1 { color: var(--tan); font-weight: 400; }

/* ---------- Expositions (page) ---------- */
.expo-year { display: flex; align-items: flex-start; gap: clamp(20px, 4vw, 48px); margin-bottom: clamp(40px, 6vw, 72px); flex-wrap: wrap; }
.expo-year__num { font-family: var(--serif); font-size: clamp(40px, 6vw, 72px); color: var(--tan); min-width: 120px; }
.expo-year__body { flex: 1; min-width: 280px; display: grid; grid-template-columns: 320px 1fr; gap: clamp(20px, 4vw, 40px); align-items: start; }
.expo-year__img { width: 100%; aspect-ratio: 3 / 4; background: var(--placeholder); object-fit: cover; }
.expo-year__meta { color: var(--tan); font-family: var(--serif); font-size: 17px; margin-bottom: 6px; display: flex; flex-direction: column; gap: 2px; }
.expo-year__body h2 { font-size: clamp(28px, 4vw, 44px); color: var(--black); margin: 4px 0 14px; }
.expo-year__body p { margin: 0 0 18px; }
.expo-year__more { font-family: var(--serif); color: var(--black); border-bottom: 1px solid var(--black); padding-bottom: 2px; }

/* ---------- Contact (page extra) ---------- */
.contact-lead { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.contact-lead p { margin: 6px 0; font-family: var(--serif); font-size: 20px; }

/* ---------- Responsive ---------- */

/* Nav : passe en menu hamburger tant que les liens ne tiennent pas sur une ligne */
@media (max-width: 1080px) {
  .nav { padding: 7px clamp(16px, 4vw, 40px); }
  .nav__logo img { width: 56px; }
  .nav__right { gap: 12px; }
  .nav__toggle {
    display: block; background: none; border: none; padding: 4px;
    font-size: 28px; line-height: 1; cursor: pointer; color: var(--black);
  }
  .nav__links {
    position: absolute; top: 100%; right: 0; left: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(255,255,255,.98); box-shadow: 0 14px 30px rgba(0,0,0,.12);
    max-height: 0; overflow: hidden; transition: max-height .35s var(--ease-ink);
  }
  .nav__links.open { max-height: 75vh; overflow-y: auto; }
  .nav__links a { display: block; padding: 15px 24px; font-size: 19px; border-top: 1px solid rgba(0,0,0,.08); }
  .nav__links a::after { display: none; }        /* pas de soulignement animé en colonne */
  .nav__links a[aria-current="page"] { opacity: 1; background: rgba(0,0,0,.04); border-bottom: none; }
}

/* Tablette : on dépile les mises en page à deux colonnes */
@media (max-width: 900px) {
  .press-item { grid-template-columns: 1fr; }
  .expo-year__body { grid-template-columns: 1fr; }
  .atelier-grid, .bio-block { grid-template-columns: 1fr; }
  .bio-block--reverse .bio-text { order: 0; }
  .contact { grid-template-columns: 1fr; }
}

/* Mobile */
@media (max-width: 760px) {
  .page-main { padding-top: 92px; }
  .section { padding: clamp(40px, 9vw, 64px) 0; }
  .cat-grid { grid-template-columns: 1fr; }
  .cat-card { min-height: 240px; }
  .cat-card__label { padding: 22px 24px; }
  .showcase { min-height: 440px; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
  .footer__top { gap: 26px; }
  .contact__social { gap: 22px; }
  /* lightbox : image au-dessus, texte en dessous */
  .lx-carousel__body { flex-direction: column; gap: 14px; align-items: stretch; }
  .lx-carousel__stagewrap { flex: 1 1 auto; min-height: 0; }
  .lx-carousel__info {
    flex: none; max-height: 38vh; text-align: center;
    border-left: none; border-top: 1px solid rgba(255,255,255,.12);
    padding-left: 0; padding-top: 14px;
  }
  .lx-carousel__cap { align-items: center; }
  .lx-carousel__desc::before { margin-inline: auto; }
  .lx-carousel__imgdots { justify-content: center; }
}

/* Petit mobile */
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .art__name { font-size: 18px; }
  .art__meta { font-size: 13px; }
  .expo-card { width: 100%; }
  .lx-carousel { padding: 12px; }
  .lx-carousel__nav { width: 44px; height: 44px; font-size: 26px; }
  .lx-carousel__close { width: 40px; height: 40px; font-size: 22px; }
  .lx-carousel__desc { font-size: 14px; }
  .lx-carousel__thumbs { flex-wrap: nowrap; justify-content: flex-start; }
  .lx-carousel__thumb { width: 44px; height: 44px; }
}

/* ===========================================================
   EXPÉRIENCE — Identité « encre de Chine contemporaine »
   Loader ensō · texture papier · révélations au scroll ·
   parallaxe · curseur-encre · sceau rouge · pinceau · particules
   =========================================================== */

:root {
  --paper: #f4f1ea;          /* papier de riz */
  --paper-warm: #efe9dc;
  --ink: rgba(0,0,0,0.8);
  --seal-red: #b5322e;       /* rouge cinabre du sceau */
  --ease-ink: cubic-bezier(.16,.8,.26,1);
}

/* Fond papier de riz très subtil sur les sections claires */
body {
  background:
    radial-gradient(140% 120% at 80% -10%, rgba(197,176,144,.10), transparent 55%),
    radial-gradient(120% 120% at -10% 110%, rgba(78,78,78,.06), transparent 50%),
    var(--paper);
}

/* ---------- Texture grain papier (injectée) ---------- */
.fx-grain {
  position: fixed; inset: 0; z-index: 9990; pointer-events: none;
  opacity: .045; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Ligne de progression (trait de pinceau) ---------- */
.fx-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  z-index: 9991; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.15), var(--ink) 40%, var(--seal-red));
  border-radius: 0 3px 3px 0;
}

/* ---------- Curseur encre (desktop) ---------- */
.fx-cursor, .fx-cursor-dot {
  position: fixed; top: 0; left: 0; z-index: 9992; pointer-events: none;
  border-radius: 50%; transform: translate(-50%, -50%); will-change: transform;
  mix-blend-mode: multiply;
}
.fx-cursor {
  width: 38px; height: 38px; border: 1px solid rgba(0,0,0,.35);
  transition: width .25s var(--ease-ink), height .25s var(--ease-ink),
              background-color .25s var(--ease-ink), border-color .25s;
}
.fx-cursor-dot { width: 7px; height: 7px; background: var(--ink); }
.fx-cursor.is-hot {
  width: 64px; height: 64px; background: rgba(181,50,46,.10);
  border-color: rgba(181,50,46,.5);
}
body.fx-has-cursor { cursor: none; }
body.fx-has-cursor a, body.fx-has-cursor button { cursor: none; }

/* Sur fond noir (lightbox ouverte) : le curseur encre passe en blanc pour rester visible */
body.lx-on-dark .fx-cursor,
body.lx-on-dark .fx-cursor-dot { mix-blend-mode: normal; }
body.lx-on-dark .fx-cursor { border-color: rgba(255,255,255,.65); }
body.lx-on-dark .fx-cursor-dot { background: #fff; }
body.lx-on-dark .fx-cursor.is-hot { background: rgba(255,255,255,.14); border-color: #fff; }

/* ---------- Loader ensō (cercle Zen) ---------- */
.fx-loader {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 26px; background: var(--paper);
  transition: opacity .9s var(--ease-ink), visibility .9s;
}
.fx-loader.is-done { opacity: 0; visibility: hidden; }
.fx-loader svg { width: 168px; height: 168px; overflow: visible; }
.fx-enso { fill: none; stroke: #14110f; stroke-width: 7; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; }
.fx-loader.run .fx-enso { animation: enso-draw 1.7s var(--ease-ink) forwards; }
.fx-loader__name {
  font-family: var(--serif); font-size: 30px; letter-spacing: .14em;
  color: var(--ink); opacity: 0; transform: translateY(8px);
}
.fx-loader.run .fx-loader__name { animation: fade-rise .9s ease .9s forwards; }
@keyframes enso-draw { to { stroke-dashoffset: 0; } }
@keyframes fade-rise { to { opacity: 1; transform: none; } }

/* ---------- Sceau rouge (signature de l'artiste) ---------- */
.fx-seal {
  position: fixed; right: clamp(16px, 3vw, 34px); bottom: clamp(16px, 3vw, 34px);
  z-index: 60; width: 60px; height: 60px; border-radius: 9px;
  background: var(--seal-red); color: #fff;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 30px; line-height: 1;
  box-shadow: 0 6px 18px rgba(181,50,46,.35);
  opacity: 0; transform: scale(.5) rotate(-12deg); transform-origin: center;
  transition: transform .2s var(--ease-ink), box-shadow .2s;
}
.fx-seal.is-in { animation: seal-stamp .6s var(--ease-ink) forwards; }
.fx-seal:hover { transform: scale(1.06) rotate(-4deg); }
.fx-seal::after {           /* liseré intérieur typique des sceaux */
  content: ""; position: absolute; inset: 6px; border: 1.5px solid rgba(255,255,255,.65); border-radius: 5px;
}
@keyframes seal-stamp {
  0%   { opacity: 0; transform: scale(1.7) rotate(-12deg); }
  55%  { opacity: 1; transform: scale(.9) rotate(-9deg); }
  100% { opacity: 1; transform: scale(1) rotate(-9deg); }
}

/* ---------- Révélations au scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition:
  opacity .9s var(--ease-ink), transform .9s var(--ease-ink), filter .9s var(--ease-ink);
  filter: blur(6px); will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: none; filter: blur(0); }
.reveal[data-anim="left"]  { transform: translateX(-40px); }
.reveal[data-anim="right"] { transform: translateX(40px); }
.reveal[data-anim="scale"] { transform: scale(.94); filter: blur(8px); }
.reveal[data-anim="ink"] {
  clip-path: inset(0 100% 0 0); transform: none; filter: none; opacity: 1;
  transition: clip-path 1.1s var(--ease-ink);
}
.reveal[data-anim="ink"].is-visible { clip-path: inset(0 0 0 0); }
/* décalage en cascade */
.reveal[style*="--d"] { transition-delay: var(--d); }

/* ---------- Hero animé ---------- */
.hero img { transform: scale(1.08); will-change: transform; }
.hero__inner h1 { opacity: 0; transform: translateY(22px); filter: blur(10px); }
.hero__inner p  { opacity: 0; transform: translateY(18px); filter: blur(6px); }
body.fx-ready .hero__inner h1 { animation: hero-in 1.3s var(--ease-ink) .25s forwards; }
body.fx-ready .hero__inner p  { animation: hero-in 1.2s var(--ease-ink) .6s forwards; }
@keyframes hero-in { to { opacity: 1; transform: none; filter: blur(0); } }

/* Voile d'encre qui « respire » sur le hero */
.hero::before {
  content: ""; position: absolute; inset: -10%; z-index: 1; pointer-events: none;
  background:
    radial-gradient(45% 38% at 25% 30%, rgba(0,0,0,.5), transparent 60%),
    radial-gradient(50% 45% at 78% 72%, rgba(0,0,0,.45), transparent 62%);
  mix-blend-mode: multiply; opacity: .7;
  animation: ink-breathe 14s ease-in-out infinite alternate;
}
@keyframes ink-breathe {
  0%   { transform: scale(1) translate(0,0); opacity: .55; }
  100% { transform: scale(1.15) translate(2%, -2%); opacity: .8; }
}

/* Indicateur de défilement (goutte d'encre) */
.fx-scrollcue {
  position: absolute; left: 50%; bottom: 30px; z-index: 3; transform: translateX(-50%);
  width: 1px; height: 56px; background: linear-gradient(rgba(255,255,255,.85), transparent);
}
.fx-scrollcue::after {
  content: ""; position: absolute; top: 0; left: 50%; width: 7px; height: 7px;
  margin-left: -3.5px; border-radius: 50%; background: #fff;
  animation: ink-drop 2.2s var(--ease-ink) infinite;
}
@keyframes ink-drop {
  0% { transform: translateY(0); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateY(50px); opacity: 0; }
}

/* ---------- Parallaxe showcase ---------- */
.showcase img { will-change: transform; transform: scale(1.12); }
.showcase h2 { transition: letter-spacing .6s var(--ease-ink), transform .6s var(--ease-ink); }
.showcase:hover h2 { letter-spacing: .03em; }

/* ---------- Diviseur au pinceau (injecté entre sections) ---------- */
.fx-brush { display: block; width: 100%; height: 34px; margin: 0; color: var(--ink); opacity: .5; }
.fx-brush svg { width: 100%; height: 100%; }

/* ---------- Particules d'encre flottantes ---------- */
.fx-particles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 2; }
.fx-particles span {
  position: absolute; bottom: -40px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.5), rgba(255,255,255,0) 70%);
  filter: blur(1px); animation: drift linear infinite;
}
@keyframes drift {
  0%   { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
  10%  { opacity: .7; }
  90%  { opacity: .5; }
  100% { transform: translateY(-120vh) translateX(40px) scale(1.4); opacity: 0; }
}

/* ---------- Liens & boutons : soulignement encre / onde ---------- */
.nav__links a, .footer__nav a, .press-item__more, .expo-year__more,
.expo-card__more, .subnav a, .showcase__work a, .contact-lead a {
  position: relative;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1.5px;
  background: var(--seal-red); transition: right .35s var(--ease-ink);
}
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { right: 0; }
.nav__links a[aria-current="page"] { border-bottom: none; }

form button { position: relative; overflow: hidden; }
form button .ripple, .fx-ripple {
  position: absolute; border-radius: 50%; transform: translate(-50%,-50%) scale(0);
  background: rgba(255,255,255,.4); pointer-events: none;
  animation: ripple .6s ease-out forwards;
}
@keyframes ripple { to { transform: translate(-50%,-50%) scale(1); opacity: 0; } }

/* Cartes : élévation + zoom image */
.expo-card { transition: transform .5s var(--ease-ink), box-shadow .5s var(--ease-ink); overflow: hidden; }
.expo-card:hover { transform: translateY(-8px); box-shadow: 0 18px 40px rgba(0,0,0,.22); }
.cat-card img { transition: transform 1.1s var(--ease-ink), filter .6s; }
.cat-card:hover img { transform: scale(1.07); }
.art__img, .bio-img, .press-item__img, .expo-year__img, .atelier-img {
  transition: transform .7s var(--ease-ink), filter .7s var(--ease-ink); overflow: hidden;
}
.art:hover .art__img { transform: scale(1.04); filter: brightness(1.05); }

/* Titres de section : petit trait rouge animé dessous */
.page-title, .section__title { position: relative; }
.page-title::after, .section__title::after {
  content: ""; display: block; width: 0; height: 2px; margin: 18px auto 0;
  background: var(--seal-red); transition: width 1s var(--ease-ink) .2s;
}
.reveal.is-visible.page-title::after,
.page-title.is-visible::after, .section__title.is-visible::after { width: 64px; }

/* ---------- Frise chronologique (page Expositions) ---------- */
.timeline {
  position: fixed; left: clamp(18px, 3.5vw, 54px); top: 50%;
  transform: translateY(-50%); height: 62vh; width: 2px; z-index: 40;
}
.timeline__cap {
  position: absolute; left: 50%; transform: translateX(-50%);
  font-family: var(--serif); font-size: 12px; letter-spacing: .18em;
  color: rgba(0,0,0,.4); white-space: nowrap; text-transform: uppercase;
}
.timeline__cap--top { top: -28px; }
.timeline__cap--bot { bottom: -28px; }
.timeline__track { position: absolute; inset: 0; background: rgba(0,0,0,.12); border-radius: 2px; }
.timeline__fill {
  position: absolute; top: 0; left: 0; width: 100%; height: 0; border-radius: 2px;
  background: linear-gradient(var(--ink), var(--seal-red));
  transition: height .12s linear;
}
.timeline__year {
  position: absolute; left: 0; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 12px; cursor: pointer; background: none; border: none; padding: 0;
}
.timeline__year .dot {
  width: 11px; height: 11px; border-radius: 50%; background: var(--paper);
  border: 1.5px solid rgba(0,0,0,.4); flex: none;
  transition: transform .3s var(--ease-ink), background-color .3s, border-color .3s, box-shadow .3s;
}
.timeline__year .lbl {
  font-family: var(--serif); font-size: 15px; color: rgba(0,0,0,.42);
  transition: color .3s, font-size .3s, opacity .3s; white-space: nowrap; opacity: .8;
}
.timeline__year.is-passed .dot { background: var(--ink); border-color: var(--ink); }
.timeline__year.is-passed .lbl { color: var(--ink); opacity: 1; }
.timeline__year.is-active .dot {
  background: var(--seal-red); border-color: var(--seal-red);
  transform: scale(1.35); box-shadow: 0 0 0 5px rgba(181,50,46,.14);
}
.timeline__year.is-active .lbl { color: var(--seal-red); font-size: 19px; opacity: 1; }
.timeline__year:hover .lbl { color: var(--seal-red); }

/* Réserve une « voie » à gauche pour la frise sur grand écran */
@media (min-width: 1181px) {
  .tl-active .page-main .wrap { padding-left: clamp(120px, 13vw, 240px); }
}
@media (max-width: 1180px) { .timeline { display: none; } }

/* ---------- Accessibilité : mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important; }
  .fx-cursor, .fx-cursor-dot, .fx-particles, .fx-scrollcue, .hero::before { display: none !important; }
  .hero img, .showcase img { transform: none !important; }
  body.fx-has-cursor { cursor: auto; }
}

