/* Accessibility utility */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:root {
  --primary: #ff0a80;
  --primary-dark: #c40060; /* fonce pour contraste AA du texte rose sur fond clair (bg_alt) */
  --accent: #ff6a1a;
  --bg: #faf8f5;
  --bg-alt: #f2ede5;
  --text: #1a1a1a;
  --text-muted: #6b6b6b;
  --border: rgba(26, 26, 26, 0.08);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Noise texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%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");
  mix-blend-mode: multiply;
}

/* Scroll-reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 1s cubic-bezier(0.19, 1, 0.22, 1), transform 1s cubic-bezier(0.19, 1, 0.22, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-child] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s cubic-bezier(0.19, 1, 0.22, 1), transform 0.9s cubic-bezier(0.19, 1, 0.22, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal-group].visible [data-reveal-child] {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal-child] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Image reveal curtain */
.img-curtain {
  position: relative;
  overflow: hidden;
}
.img-curtain::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--primary);
  transform-origin: left;
  transform: scaleX(1);
  transition: transform 1.2s cubic-bezier(0.77, 0, 0.18, 1);
}
[data-reveal].visible .img-curtain::after,
.visible .img-curtain::after {
  transform: scaleX(0);
  transform-origin: right;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ========== NAV ========== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: var(--primary-dark);
  color: white;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 0.15rem;
}
.brand-name {
  font-size: 1.1rem;
  letter-spacing: 0.22em;
}
.brand-subtitle {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.12em;
  color: #ffd9c2; /* peche clair : contraste AA sur le fond rose fonce du nav/footer */
  text-transform: lowercase;
}
.brand-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  /* agrandi sans changer la hauteur du header : deborde dans le padding existant */
  margin-block: -10px;
}
.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav-links a {
  position: relative;
  padding: 0.4rem 0;
  color: white;
  transition: opacity 0.25s;
}
.nav-links a:hover { opacity: 0.75; }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0;
  height: 1px;
  background: white;
  transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }

/* Burger + overlay mobile nav */
.nav-burger {
  display: none;
  background: none;
  border: none;
  padding: 0;
  width: 36px;
  height: 36px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  align-items: stretch;
}
.nav-burger span {
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
  transform-origin: center;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
body.nav-open .nav-overlay {
  opacity: 1;
  pointer-events: auto;
}
body.nav-open { overflow: hidden; }
.nav-overlay-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s, border-color 0.2s;
}
.nav-overlay-close:hover {
  background: white;
  color: var(--primary);
  border-color: white;
}
.nav-overlay-close svg { width: 18px; height: 18px; }

.nav-overlay-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  text-align: center;
}
.nav-overlay-links li {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
body.nav-open .nav-overlay-links li {
  opacity: 1;
  transform: translateY(0);
}
body.nav-open .nav-overlay-links li:nth-child(1) { transition-delay: 0.12s; }
body.nav-open .nav-overlay-links li:nth-child(2) { transition-delay: 0.18s; }
body.nav-open .nav-overlay-links li:nth-child(3) { transition-delay: 0.24s; }
body.nav-open .nav-overlay-links li:nth-child(4) { transition-delay: 0.30s; }
body.nav-open .nav-overlay-links li:nth-child(5) { transition-delay: 0.36s; }
.nav-overlay-links a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 500;
  font-style: italic;
  color: white;
  text-decoration: none;
  transition: color 0.2s;
  display: inline-block;
  position: relative;
}
.nav-overlay-links a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s, left 0.3s;
}
.nav-overlay-links a:hover,
.nav-overlay-links a.is-active { color: var(--accent); }
.nav-overlay-links a:hover::after,
.nav-overlay-links a.is-active::after { width: 60%; left: 20%; }

/* Palier tablette : reduit la typo des liens pour qu'ils tiennent tous
   sans ecraser le logo, entre le burger (<=720px) et le desktop (>1100px) */
@media (min-width: 721px) and (max-width: 1100px) {
  .nav-links {
    gap: 1.3rem;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
  }
  .brand-name {
    font-size: 0.98rem;
    letter-spacing: 0.14em;
  }
  .brand-subtitle { font-size: 0.66rem; }
  .brand-logo { width: 52px; height: 52px; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
}

@media (min-width: 721px) {
  .nav-overlay { display: none; }
}

/* ========== HERO ========== */
.hero {
  min-height: 72vh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden; /* clippe le logo-main (parallaxe) au hero, pas de debordement sur le manifesto */
  padding-top: 7rem;
  padding-bottom: 3rem;
}
/* Frise des creations (accueil uniquement) : fine bande de vignettes qui defile
   lentement entre la nav et le contenu du hero. */
.hero-strip {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
  overflow: hidden;
  padding: 12px 0; /* respire : laisse la place aux vignettes inclinees/decalees sans clipping vertical */
  pointer-events: auto; /* cliquable : la frise est un lien vers /creations */
  cursor: pointer;
  text-decoration: none;
  /* Fond "mur d'atelier" : voile chaud derriere les cadres, fondu en haut/bas
     (le mask horizontal le fond aussi sur les cotes) -> un mur sur lequel s'accrocher. */
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(122, 94, 72, 0.09) 18%,
    rgba(122, 94, 72, 0.15) 50%,
    rgba(122, 94, 72, 0.09) 82%,
    transparent
  );
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.hero-strip--top { top: 5.8rem; }
.hero-strip--bottom { bottom: 1.4rem; }
/* La frise du bas defile en sens inverse (haut -> / bas <-). */
.hero-strip--bottom .hero-strip-track { animation-direction: reverse; }
.hero-strip-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: strip-scroll 70s linear infinite;
}
.hero-strip-track img {
  flex: 0 0 auto;
  width: 118px;
  height: 142px;
  object-fit: contain;
  background: #faf6f0;
  padding: 8px 8px 22px; /* marie-louise : marge basse plus large, comme un encadrement d'oeuvre */
  border: 1px solid rgba(120, 90, 70, 0.16);
  border-radius: 4px; /* cadre net, plus "tirage encadre" que pastille */
  opacity: 0.92;
  filter: saturate(0.86) sepia(0.10); /* voile chaud : la frise devient une toile de fond, ne rivalise pas avec le titre */
  box-shadow: 0 12px 26px rgba(60, 40, 30, 0.13), 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: opacity 0.35s ease, box-shadow 0.35s ease;
}
/* Affordance de lien : au survol / focus clavier, les cadres s'eclaircissent et se soulevent. */
.hero-strip:hover .hero-strip-track img,
.hero-strip:focus-visible .hero-strip-track img {
  opacity: 1;
  box-shadow: 0 16px 32px rgba(60, 40, 30, 0.20), 0 3px 8px rgba(0, 0, 0, 0.08);
}
.hero-strip:focus-visible {
  outline: 2px solid var(--primary, #b06);
  outline-offset: -2px;
}
/* Accrochage organique : legeres inclinaisons + decalages verticaux en cycle (CSS pur, deterministe).
   Le transform de chaque vignette est independant du translateX anime de la piste. */
.hero-strip-track img:nth-child(6n+1) { transform: rotate(-3deg)   translateY(-3px); }
.hero-strip-track img:nth-child(6n+2) { transform: rotate(2.2deg)  translateY(3px); }
.hero-strip-track img:nth-child(6n+3) { transform: rotate(-1.4deg) translateY(-1px); }
.hero-strip-track img:nth-child(6n+4) { transform: rotate(2.8deg)  translateY(2px); }
.hero-strip-track img:nth-child(6n+5) { transform: rotate(-2.2deg) translateY(-2px); }
.hero-strip-track img:nth-child(6n+6) { transform: rotate(1.2deg)  translateY(1px); }
@keyframes strip-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .hero-strip-track { animation: none; }
}
/* Mobile (<=720px, comme le menu burger) : la frise (en absolu) ne doit pas chevaucher
   le titre -> on la reduit et on pousse le contenu du hero en dessous d'elle. */
@media (max-width: 720px) {
  .hero-strip--top { top: 4.6rem; }
  .hero-strip--bottom { bottom: 1.2rem; }
  .hero-strip-track { gap: 12px; }
  .hero-strip-track img { width: 80px; height: 96px; padding: 5px 5px 13px; }
  /* Hero plein ecran : la frise du haut tient dans le padding haut, celle du bas
     dans le padding bas, le contenu se centre entre les deux sans chevauchement. */
  .hero { min-height: 100svh; padding-top: 11.5rem; padding-bottom: 8.5rem; }
}
/* Manifesto (1re section de l'accueil) remonte un peu pour rendre
   visibles les blocs Artisanal/Unique/Sur-mesure sans scroller */
.hero + .section {
  padding-top: clamp(2.5rem, 5vw, 4rem);
}
.hero-inner {
  text-align: center;
  max-width: 720px;
  position: relative;
  z-index: 2;
}
.hero-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
}
.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.hero h1 {
  font-size: clamp(2.5rem, 6.5vw, 5rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}
.hero h1 em {
  color: var(--primary);
  font-style: italic;
}
.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  color: var(--text-muted);
  margin-bottom: 3rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: 0.02em;
}
.hero-hand {
  position: absolute;
  right: -4rem;
  bottom: -4rem;
  width: clamp(260px, 38vw, 480px);
  opacity: 0.45;
  z-index: 1;
  pointer-events: none;
  will-change: transform;
}
/* Mobile : logo decoratif reduit, remonte au-dessus de la frise du bas et ramene
   entierement a l'ecran. Place APRES la regle de base pour ne pas etre ecrase
   (une media query n'augmente pas la specificite). */
@media (max-width: 720px) {
  .hero-hand {
    right: 0;
    bottom: 7rem;
    width: clamp(150px, 44vw, 200px);
    opacity: 0.4;
  }
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 1rem 2.2rem;
  border: 1px solid var(--text);
  transition: all 0.3s;
  cursor: pointer;
  background: transparent;
  color: var(--text);
}
.btn:hover {
  background: var(--text);
  color: var(--bg);
}
.btn-primary {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: white;
}
.btn-primary:hover {
  background: var(--text);
  border-color: var(--text);
}
.btn-arrow { transition: transform 0.3s; }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ========== SECTION ========== */
.section {
  padding: clamp(5rem, 10vw, 9rem) 0;
}
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}
.section-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--primary-dark);
  margin-bottom: 0.8rem;
  display: block;
}
.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  font-style: italic;
}
.section-link {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.2rem;
  transition: color 0.25s;
}
.section-link:hover { color: var(--primary); }

/* ========== PAGE HEADER (inner pages) ========== */
.page-header {
  padding: 6.5rem 0 2.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
/* Premiere section des pages internes (galeries, atelier...) :
   padding-top reduit pour faire remonter les images sous l'en-tete.
   Ne touche pas l'accueil (sa 1re section suit .hero, pas .page-header). */
.page-header + .section {
  padding-top: clamp(2.5rem, 4vw, 3.5rem);
}
.page-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.8rem, 7vw, 5rem);
  line-height: 1.05;
  margin-bottom: 1.2rem;
}
.page-title em {
  color: var(--primary);
}
.page-intro {
  font-family: var(--font-body);
  color: var(--text-muted);
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Active nav link */
.nav-links a.is-active {
  opacity: 1;
}
.nav-links a.is-active::after {
  width: 100%;
}

/* Gallery full page (4-col grid) */
.gallery-full {
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem 2rem;
}
@media (max-width: 1100px) {
  .gallery-full { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .gallery-full { grid-template-columns: repeat(2, 1fr); gap: 1.75rem 1.25rem; }
}
@media (max-width: 420px) {
  .gallery-full { grid-template-columns: 1fr; }
}

/* About page extended layout */
.about-story {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.about-story h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 2rem;
}
.about-story p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.8;
}
.about-process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}
@media (max-width: 900px) {
  /* 2 colonnes plutot qu'une seule pleine largeur : images plus petites,
     plus indulgentes pour des photos de qualite moyenne */
  .about-process { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}
@media (max-width: 560px) {
  .about-process { grid-template-columns: 1fr; }
  .about-process .about-img { max-width: 340px; margin-inline: auto; }
}
.about-process .about-img {
  aspect-ratio: 1 / 1;
}

/* ========== MANIFESTO ========== */
.manifesto {
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.manifesto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem;
  text-align: left;
  max-width: 1040px;
  margin: 0 auto;
}
@media (max-width: 760px) {
  .manifesto-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}
.manifesto-item h3,
.manifesto-item .manifesto-title {
  font-size: 1.4rem;
  font-style: italic;
  font-weight: 500;
  margin-bottom: 0.8rem;
}
.manifesto-item p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ========== GALLERY (featured) ========== */
.section-title.centered {
  text-align: center;
  margin-bottom: 4rem;
}
.section-footer {
  text-align: center;
  margin-top: 4rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem 2.5rem;
}
@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr; }
}

/* Galerie featured de l'accueil (3 items) : grille resserree et centree
   pour des bustes plus petits, coherents avec la page creations. */
.gallery:not(.gallery-full) {
  max-width: 820px;
  margin-inline: auto;
}
/* Accueil : garder 3 colonnes (le 2x3) jusqu'en tablette pour des bustes
   petits ; ne degrader qu'ensuite. Specificite > regle .gallery ci-dessous. */
@media (max-width: 900px) { .gallery:not(.gallery-full) { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
@media (max-width: 600px) { .gallery:not(.gallery-full) { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px) { .gallery:not(.gallery-full) { grid-template-columns: 1fr; } }

/* Galerie pleine page (creations, en-cours) : 4 colonnes = bustes plus petits.
   Specificite .gallery.gallery-full pour battre la regle .gallery ci-dessus. */
.gallery.gallery-full { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .gallery.gallery-full { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .gallery.gallery-full { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px)  { .gallery.gallery-full { grid-template-columns: 1fr; } }

/* Badge statut de vente — semi-transparent pour ne pas trop cacher le buste.
   Vendu = rose de la marque (--primary-dark), Reserve = dore. */
.status-badge {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  z-index: 3;
  padding: 0.38rem 0.82rem;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(26, 26, 26, 0.20);
  pointer-events: none;
}
.status-badge--sold { background: #c40060; }     /* rose fonce - blanc 5.97:1 (WCAG AA) */
.status-badge--reserved { background: #c2410c; } /* orange brule - blanc 5.18:1 (WCAG AA) */
.detail-image .status-badge {
  top: 1.1rem;
  left: 1.1rem;
  font-size: 0.76rem;
  padding: 0.5rem 1.05rem;
}

.gallery-item {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.gallery-img {
  overflow: hidden;
  background: var(--bg-alt);
  aspect-ratio: 3 / 4;
  position: relative;
  border-radius: 14px;
  box-shadow:
    0 2px 8px rgba(26, 26, 26, 0.06),
    0 10px 30px -8px rgba(26, 26, 26, 0.08);
  transition: box-shadow 0.5s cubic-bezier(0.19, 1, 0.22, 1),
              transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}
.gallery-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.19, 1, 0.22, 1),
              filter 0.7s cubic-bezier(0.19, 1, 0.22, 1),
              opacity 0.5s ease;
  filter: saturate(0.92) brightness(0.98);
}
.gallery-img .lazy-img { opacity: 0; background: var(--bg-alt); }
.gallery-img .lazy-img.is-loaded { opacity: 1; }
.gallery-item:hover .gallery-img {
  transform: translateY(-6px);
}
.gallery-item:hover .gallery-img img {
  transform: scale(1.06);
  filter: saturate(1.08) brightness(1.02);
}
.gallery-arrow {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.6);
  display: grid;
  place-items: center;
  color: var(--text);
  opacity: 0;
  transform: translateY(14px) scale(0.9);
  transition: opacity 0.4s cubic-bezier(0.19, 1, 0.22, 1),
              transform 0.4s cubic-bezier(0.19, 1, 0.22, 1),
              background 0.25s ease,
              color 0.25s ease,
              box-shadow 0.25s ease;
  z-index: 2;
  box-shadow:
    0 2px 6px rgba(26, 26, 26, 0.08),
    0 12px 28px -6px rgba(26, 26, 26, 0.18);
}
.gallery-arrow svg {
  width: 20px;
  height: 20px;
  transition: transform 0.35s cubic-bezier(0.19, 1, 0.22, 1);
}
.gallery-item:hover .gallery-arrow {
  opacity: 1;
  transform: translateY(0) scale(1);
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow:
    0 4px 12px rgba(255, 10, 128, 0.28),
    0 16px 36px -6px rgba(255, 10, 128, 0.32);
}
.gallery-item:hover .gallery-arrow svg {
  transform: translateX(2px);
}
.gallery-item .gallery-arrow::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--primary);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.19, 1, 0.22, 1);
  pointer-events: none;
}
.gallery-item:hover .gallery-arrow::after {
  opacity: 0.4;
  transform: scale(1);
}

.gallery-meta {
  padding: 0 0.25rem;
}
.gallery-meta h3 {
  font-size: 1.35rem;
  font-style: italic;
  margin-bottom: 0.2rem;
  transition: color 0.25s;
}
.gallery-item:hover .gallery-meta h3 { color: var(--primary); }
.gallery-meta p {
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ========== ABOUT TEASER ========== */
.about-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}
@media (max-width: 900px) {
  .about-teaser {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  /* photo empilee : plafonnee et centree, pas en plein ecran */
  .about-teaser .about-img {
    max-width: 440px;
    width: 100%;
    margin-inline: auto;
  }
}
.about-img {
  aspect-ratio: 3 / 4;
  background: var(--bg-alt);
  overflow: hidden;
  border-radius: 14px;
  box-shadow:
    0 4px 12px rgba(26, 26, 26, 0.08),
    0 20px 50px -12px rgba(26, 26, 26, 0.12);
  transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1),
              box-shadow 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}
.about-img:hover {
  transform: translateY(-4px);
  box-shadow:
    0 8px 20px rgba(26, 26, 26, 0.1),
    0 28px 70px -14px rgba(26, 26, 26, 0.18);
}
.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.5s cubic-bezier(0.19, 1, 0.22, 1);
}
.about-img:hover img { transform: scale(1.04); }
.about-text h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-style: italic;
  margin-bottom: 2rem;
}
.about-text p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

/* ========== CTA ========== */
.cta {
  text-align: center;
  padding: clamp(6rem, 12vw, 10rem) 0;
  background: var(--text);
  color: var(--bg);
}
.cta h2 {
  font-size: clamp(2rem, 6vw, 4rem);
  font-style: italic;
  margin-bottom: 1.5rem;
}
.cta p {
  color: rgba(250, 248, 245, 0.7);
  margin-bottom: 2.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.cta .btn {
  border-color: var(--bg);
  color: var(--bg);
}
.cta .btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* ========== CONTACT PAGE ========== */
.contact-wrap {
  max-width: 620px;
  margin: 0 auto;
  position: relative;
}
.contact-wrap::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -3rem;
  transform: translateX(-50%);
  width: 48px;
  height: 1px;
  background: var(--primary);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: white;
  padding: 3rem;
  border-radius: 16px;
  box-shadow:
    0 2px 8px rgba(26, 26, 26, 0.04),
    0 24px 60px -12px rgba(26, 26, 26, 0.1);
}
@media (max-width: 560px) {
  .contact-form { padding: 2rem 1.5rem; }
}

.form-field {
  display: flex;
  flex-direction: column;
  padding: 0.25rem 0;
}
.form-field input,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 1.1rem 0;
  border: none;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  transition: border-color 0.3s;
  resize: vertical;
}
.form-field:last-of-type input,
.form-field:last-of-type textarea {
  border-bottom: none;
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.65;
  font-style: italic;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-bottom-color: var(--primary);
}
.form-field textarea {
  min-height: 140px;
  line-height: 1.65;
}
.form-submit {
  align-self: flex-end;
  margin-top: 1.5rem;
}

.contact-socials {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 1.25rem;
}
.contact-socials a {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text);
  transition: all 0.25s;
}
.contact-socials a:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}
.contact-socials svg { width: 15px; height: 15px; }

/* ========== FOOTER ========== */
.footer {
  padding: 4rem 0 2rem;
  background: var(--primary-dark);
  color: white;
  font-size: 0.85rem;
  text-align: center;
}
.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.footer-brand {
  font-family: var(--font-display);
  color: white;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}
.footer-brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}
.footer-brand .brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}
.footer-brand .brand-name { font-size: 1.5rem; color: white; letter-spacing: 0.18em; }
.footer-brand .brand-subtitle { font-size: 0.85rem; color: white; font-weight: 700; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.footer-nav a {
  transition: opacity 0.25s;
  color: white;
}
.footer-nav a:hover { opacity: 0.75; }
.nav .brand-subtitle { color: white; font-weight: 700; font-size: 0.78rem; }
.footer-brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.footer-social {
  display: flex;
  gap: 1rem;
  justify-content: center;
}
.footer-social a {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  transition: all 0.25s;
}
.footer-social a:hover {
  background: white;
  border-color: white;
  color: var(--primary);
}
.footer-social svg { width: 16px; height: 16px; }
.footer-copy {
  text-align: center;
  font-size: 0.8rem;
  color: white;
  letter-spacing: 0.05em;
}
.footer-credit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding-top: 1.2rem;
  width: 100%;
  max-width: 320px;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: white;
  text-decoration: none;
  transition: letter-spacing 0.25s;
}
.footer-credit:hover { letter-spacing: 0.12em; }
.footer-credit img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.footer-credit strong {
  font-weight: 600;
  letter-spacing: 0.04em;
  color: white;
}

/* Letter-style contact form */
.letter-form {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem);
  background: white;
  border: 1px solid rgba(26, 26, 26, 0.08);
  border-radius: 18px;
  box-shadow:
    0 2px 8px rgba(26, 26, 26, 0.04),
    0 24px 50px -20px rgba(26, 26, 26, 0.12);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  line-height: 1.8;
  color: var(--text);
  position: relative;
}
.letter-form::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  bottom: 14px;
  border: 1px solid rgba(255, 10, 128, 0.1);
  border-radius: 12px;
  pointer-events: none;
}
.letter-line {
  margin-bottom: 1.6rem;
  font-weight: 400;
  font-style: italic;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
}
.letter-prefix { font-style: italic; }
.letter-fixed { font-style: italic; }

.letter-field {
  position: relative;
  display: inline-block;
  min-width: 220px;
  flex: 1 1 220px;
}
.letter-field input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(26, 26, 26, 0.2);
  padding: 0 0 0.3rem;
  font-family: inherit;
  font-size: inherit;
  font-style: italic;
  font-weight: 500;
  color: var(--primary);
  outline: none;
  transition: border-color 0.3s;
}
.letter-field input:focus {
  border-bottom-color: var(--primary);
}
.letter-placeholder {
  position: absolute;
  left: 0;
  top: 0;
  font-style: italic;
  color: var(--text-muted);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.3s;
  font-weight: 400;
}
.letter-field input:not(:placeholder-shown) + .letter-placeholder,
.letter-field input:focus + .letter-placeholder {
  opacity: 0;
  transform: translateY(-4px);
}
.letter-field input:invalid:not(:placeholder-shown) {
  border-bottom-color: #b00020;
}
.letter-field-email input {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.92em;
  letter-spacing: 0.01em;
}

.letter-message {
  margin: 2.2rem 0;
  position: relative;
}
.letter-message-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary-dark);
  margin-bottom: 0.6rem;
}
.letter-message textarea {
  width: 100%;
  min-height: 160px;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(26, 26, 26, 0.2);
  padding: 0.5rem 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  resize: vertical;
  outline: none;
  transition: border-color 0.3s;
}
.letter-message textarea:focus {
  border-bottom-color: var(--primary);
}
.letter-message textarea:invalid:not(:placeholder-shown) {
  border-bottom-color: #b00020;
}

.letter-actions {
  margin-top: 2.5rem;
  display: flex;
  justify-content: flex-end;
}
.letter-send {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  font-weight: 500;
  padding: 0.3rem 0.2rem;
  cursor: pointer;
  position: relative;
  transition: color 0.25s, gap 0.3s;
}
.letter-send-line {
  width: 40px;
  height: 1px;
  background: var(--text);
  transition: width 0.35s cubic-bezier(.19,1,.22,1), background 0.25s;
}
.letter-send svg {
  width: 22px;
  height: 22px;
  transition: transform 0.3s;
}
.letter-send:hover {
  color: var(--primary);
  gap: 1.3rem;
}
.letter-send:hover .letter-send-line {
  width: 70px;
  background: var(--primary);
}
.letter-send:hover svg {
  transform: translateX(4px);
}
.letter-send:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 6px;
  border-radius: 2px;
}

@media (max-width: 640px) {
  .letter-form { padding: 1.75rem 1.5rem; border-radius: 14px; }
  .letter-form::before { top: 10px; left: 10px; right: 10px; bottom: 10px; border-radius: 10px; }
  .letter-line { flex-direction: column; gap: 0.25rem; margin-bottom: 1.2rem; align-items: flex-start; }
  .letter-fixed { display: none; }
  .letter-field { width: 100%; min-width: 0; }
  .letter-actions { justify-content: center; }
}

/* Legal pages (mentions / privacy) */
.legal-container {
  max-width: 820px;
}
.legal-content {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: white;
  border: 1px solid rgba(26, 26, 26, 0.06);
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(26, 26, 26, 0.04);
}
.legal-content h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  color: var(--primary-dark);
  line-height: 1.2;
}
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content p,
.legal-content ul {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 1rem;
}
.legal-content ul { padding-left: 1.25rem; }
.legal-content li { margin-bottom: 0.4rem; }
.legal-content a {
  color: var(--primary-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.legal-content a:hover { color: var(--accent); }
.legal-intro {
  font-size: 1.05rem !important;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 2rem !important;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(26, 26, 26, 0.08);
}
.legal-updated {
  margin-top: 2.5rem !important;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(26, 26, 26, 0.08);
  font-size: 0.82rem !important;
  color: var(--text-muted);
  font-style: italic;
}
.legal-form {
  margin: 0.5rem 0 1.5rem;
  border: 1px solid rgba(26, 26, 26, 0.1);
  border-radius: 10px;
  background: rgba(26, 26, 26, 0.015);
}
.legal-form > summary {
  cursor: pointer;
  padding: 0.85rem 1.1rem;
  font-weight: 600;
  color: var(--primary-dark);
  list-style-position: inside;
}
.legal-form > summary:hover { color: var(--accent); }
.legal-form[open] > summary { border-bottom: 1px solid rgba(26, 26, 26, 0.08); }
.legal-form p { padding: 0 1.1rem 0.25rem; }

/* Consent checkbox on contact form */
.letter-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 1.5rem 0;
  padding: 0.9rem 1rem;
  background: var(--bg-alt);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text);
}
.letter-consent input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  accent-color: var(--primary-dark);
  margin-top: 0.15rem;
  cursor: pointer;
}
.letter-consent label {
  cursor: pointer;
  flex: 1;
}
.letter-consent a {
  color: var(--primary-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Footer legal links */
.footer-legal {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}
.footer-legal a {
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s;
  text-transform: uppercase;
}
.footer-legal a:hover { color: white; }

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.pagination-list {
  list-style: none;
  display: flex;
  gap: 0.3rem;
  align-items: center;
}
.pagination-page {
  min-width: 40px;
  height: 40px;
  padding: 0 0.85rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
.pagination-page:hover { color: var(--primary); background: var(--bg-alt); }
.pagination-page.is-current {
  background: var(--primary);
  color: white;
  font-weight: 600;
}
.pagination-ellipsis {
  color: var(--text-muted);
  padding: 0 0.25rem;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}
.pagination-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(26, 26, 26, 0.12);
  display: grid;
  place-items: center;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.pagination-arrow:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.pagination-arrow.is-disabled {
  opacity: 0.25;
  cursor: not-allowed;
  pointer-events: none;
}
.pagination-arrow svg { width: 18px; height: 18px; }

/* WIP step badge on grid card */
.wip-step-badge {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  z-index: 2;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--primary-dark);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(26, 26, 26, 0.08);
}

/* WIP detail timeline */
.wip-detail-hero { padding: 2rem 0 4rem; }
.wip-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 300px) 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.wip-hero-image {
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-alt);
  box-shadow:
    0 4px 14px rgba(26, 26, 26, 0.08),
    0 30px 60px -20px rgba(26, 26, 26, 0.2);
}
.wip-hero-image img { width: 100%; height: auto; display: block; }
.wip-hero-stage {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.wip-hero-stage strong {
  color: var(--accent);
  font-weight: 600;
  text-transform: capitalize;
}
.wip-hero-count {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-dark);
  font-weight: 600;
  margin-top: 1.5rem;
}

.wip-timeline { padding: 4rem 0; background: var(--bg-alt); }
.timeline {
  list-style: none;
  counter-reset: step;
  max-width: 600px;
  margin: 3rem auto 0;
  padding: 0;
}
.timeline-step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
  position: relative;
}
.timeline-step:last-child { margin-bottom: 0; }
.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  padding-top: 0.3rem;
}
.timeline-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  font-weight: 500;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}
.timeline-line {
  flex: 1;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), transparent);
  min-height: 40px;
}
.timeline-step:last-child .timeline-line { display: none; }
.timeline-content {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(26, 26, 26, 0.06);
}
.timeline-image {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--bg-alt);
}
.timeline-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.timeline-body { padding: 1.75rem 2rem; }
.timeline-date {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.timeline-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.4rem;
  margin-bottom: 0.9rem;
  line-height: 1.2;
}
.timeline-body p {
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 0.9rem;
  color: var(--text);
}
.timeline-body p:last-child { margin-bottom: 0; }

@media (max-width: 900px) {
  .wip-hero-grid { grid-template-columns: 1fr; }
  .wip-hero-image { max-width: 280px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .timeline-step { grid-template-columns: 44px 1fr; gap: 1rem; }
  .timeline-number { width: 36px; height: 36px; font-size: 1rem; }
  .timeline-body { padding: 1.25rem 1.4rem; }
  .timeline-title { font-size: 1.2rem; }
}

/* Creation detail page */
.detail-header {
  padding-top: 7rem;
  padding-bottom: 2rem;
}
.detail-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.detail-back svg { width: 16px; height: 16px; }
.detail-back:hover { color: var(--primary); }
.detail-counter {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.detail-main { padding: 2rem 0 6rem; }
.detail-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  margin-bottom: 6rem;
}
.detail-image {
  position: sticky;
  top: 6rem;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-alt);
  box-shadow:
    0 4px 14px rgba(26, 26, 26, 0.08),
    0 30px 60px -20px rgba(26, 26, 26, 0.2);
}
.detail-image img {
  width: 100%;
  height: auto;
  display: block;
}
.detail-info { padding-top: 1rem; }
.detail-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.05;
  margin: 0.8rem 0 0.4rem;
}
.detail-year {
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 2rem;
}
.detail-description {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 2.25rem;
  max-width: 52ch;
}
.detail-specs {
  display: grid;
  gap: 1rem;
  margin-bottom: 2.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-alt);
  border-radius: 12px;
}
.detail-specs div { display: flex; gap: 1rem; align-items: baseline; }
.detail-specs dt {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  min-width: 110px;
  font-weight: 600;
}
.detail-specs dd {
  font-size: 0.95rem;
  color: var(--text);
}
.detail-cta { margin-top: 0.5rem; }

.detail-story {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}
.detail-story-block .section-eyebrow {
  color: var(--primary-dark);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}
.detail-story-block h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 1.5rem;
  line-height: 1.15;
}
.detail-story-block p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 1.2rem;
  max-width: 64ch;
}
.detail-story-block p:last-child { margin-bottom: 0; }

.detail-nav {
  border-top: 1px solid rgba(26, 26, 26, 0.08);
  padding: 2.5rem 0;
  background: var(--bg-alt);
}
.detail-nav-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: center;
}
.detail-nav-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  background: white;
  border: 1px solid rgba(26, 26, 26, 0.06);
  transition: background 0.2s, border-color 0.2s, transform 0.3s;
  min-width: 0;
}
.detail-nav-link:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}
.detail-nav-link svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--primary);
}
.detail-nav-prev { justify-content: flex-start; }
.detail-nav-next { justify-content: flex-end; text-align: right; }
.detail-nav-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.detail-nav-meta small {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}
.detail-nav-meta strong {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 900px) {
  .detail-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
  }
  .detail-image { position: relative; top: auto; }
}
@media (max-width: 640px) {
  .detail-header { padding-top: 6rem; }
  .detail-main { padding: 1rem 0 4rem; }
  .detail-story { gap: 3rem; }
  .detail-nav-inner { grid-template-columns: 1fr; }
  .detail-nav-link { padding: 0.85rem 1rem; }
  .detail-nav-meta strong { font-size: 1rem; }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(10, 6, 12, 0.92);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
}
body.lightbox-open .lightbox {
  opacity: 1;
  pointer-events: auto;
}
body.lightbox-open { overflow: hidden; }

.lightbox-figure {
  max-width: min(1100px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  transform: scale(0.97);
  transition: transform 0.45s cubic-bezier(0.19, 1, 0.22, 1);
}
body.lightbox-open .lightbox-figure { transform: scale(1); }

.lightbox-img {
  max-width: 100%;
  max-height: calc(100vh - 160px);
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.6);
  background: #1a1a1a;
}

.lightbox-caption {
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.6rem);
  font-style: italic;
  text-align: center;
  line-height: 1.3;
}
.lightbox-caption small {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 0.4rem;
}

.lightbox-counter {
  position: absolute;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
  color: white;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.lightbox-close:hover,
.lightbox-nav:hover {
  background: white;
  border-color: white;
  color: var(--primary);
}
.lightbox-close {
  top: 1.2rem;
  right: 1.2rem;
  width: 48px;
  height: 48px;
}
.lightbox-close svg { width: 20px; height: 20px; }
.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
}
.lightbox-nav svg { width: 22px; height: 22px; }
.lightbox-nav:hover { transform: translateY(-50%) scale(1.08); }
.lightbox-prev { left: 1.2rem; }
.lightbox-next { right: 1.2rem; }
.lightbox-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

@media (max-width: 640px) {
  .lightbox-nav { width: 44px; height: 44px; }
  .lightbox-nav svg { width: 18px; height: 18px; }
  .lightbox-close { width: 40px; height: 40px; top: 0.8rem; right: 0.8rem; }
  .lightbox-close svg { width: 16px; height: 16px; }
  .lightbox-prev { left: 0.6rem; }
  .lightbox-next { right: 0.6rem; }
  .lightbox-img { max-height: calc(100vh - 200px); }
}

/* Flash messages */
.flash-wrap {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: min(90%, 520px);
}
.flash {
  padding: 0.85rem 1.4rem;
  border-radius: 10px;
  font-size: 0.9rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  background: var(--text);
  color: var(--bg);
}
.flash-success { background: var(--primary); color: white; }
.flash-error { background: #b00020; color: white; }
.flash-info { background: var(--accent); color: white; }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Events list */
.events-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 880px;
  margin: 0 auto;
}
.event-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: center;
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}
.event-card .event-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 14px 0 0 14px;
}
.event-card .event-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.event-body { padding: 2rem; }
.event-card:not(:has(.event-img)) { grid-template-columns: 1fr; }
.event-date {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
}
.event-body h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}
.event-location {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
@media (max-width: 720px) {
  .event-card {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .event-card .event-img { border-radius: 14px 14px 0 0; }
  .event-body { padding: 1.6rem; }
}
