/*
Theme Name: Cherrystone
Theme URI: https://www.cherrystone.fr/
Author: Studio Cherrystone
Author URI: https://www.cherrystone.fr/
Description: Thème sur mesure pour Cherrystone, photographe culinaire à Lyon. Léger, sans Divi. Charte sombre, typographie Fraunces.
Version: 1.8
Requires at least: 6.0
Requires PHP: 7.4
License: Tous droits réservés
Text Domain: cherrystone
*/

/* ============================================================
   CHERRYSTONE — Photographie culinaire studio Lyon
   Site premium standalone (sans Divi)
   Palette : #1e2127 fond · #eb8e50 H1 · #fff8ed H2
   Typo : Fraunces (display) · Oswald (sub/nav) · Manrope (corps)
   ============================================================ */
:root {
  --bg:        #1e2127;
  --bg-2:      #23272f;
  --bg-3:      #2a2f38;
  --h1:        #eb8e50;
  --h2:        #fff8ed;
  --text:      #cdd0d6;
  --text-dim:  #8b9099;
  --accent:    #eb8e50;
  --accent-2:  #f0a571;
  --line:      rgba(255,248,237,0.10);
  --line-2:    rgba(255,248,237,0.18);

  --font-display: 'Fraunces', 'Georgia', serif;
  --font-cond:    'Oswald', sans-serif;
  --font-body:    'Manrope', system-ui, sans-serif;

  --maxw: 1320px;
  --gap:  10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

::selection { background: var(--accent); color: var(--bg); }

/* Grain overlay subtil pour la texture premium */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 48px;
  transition: padding 0.4s var(--ease), background 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding: 16px 48px;
  background: rgba(30,33,39,0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 25px;
  letter-spacing: 4px;
  color: var(--h2);
  line-height: 1;
  text-transform: uppercase;
}
.nav-logo .dot { color: var(--accent); }
.nav-logo-text { white-space: nowrap; }
.nav-logo img { height: 34px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-cond);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1.5px;
  background: var(--accent);
  transition: width 0.35s var(--ease);
}
.nav-links a:hover { color: var(--h2); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--accent); }
.nav-links a.active::after { width: 100%; }

.nav-links a.nav-alt {
  color: var(--text-dim);
}
.nav-links a.nav-alt::after { background: var(--h2); }
.nav-links a.nav-alt:hover { color: var(--h2); }
.nav-links a.nav-alt[href*="location"] {
  position: relative;
}
.nav-links a.nav-alt[href*="location"]::before {
  content: "";
  position: absolute;
  left: -15px; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 16px;
  background: var(--line-2);
}

.nav-cta {
  font-family: var(--font-cond) !important;
  border: 1px solid var(--line-2);
  padding: 10px 22px !important;
  border-radius: 100px;
  transition: all 0.3s var(--ease);
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg) !important;
}

/* Burger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1100;
}
.nav-burger span {
  width: 26px; height: 2px;
  background: var(--h2);
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO PLEIN ÉCRAN — fixe, révélation au scroll
   ============================================================ */
.hero {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  z-index: 0;
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 40%;
  will-change: transform;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(30,33,39,0.25) 0%, rgba(30,33,39,0) 22%, rgba(30,33,39,0) 55%, rgba(30,33,39,0.55) 82%, rgba(30,33,39,0.95) 100%);
  z-index: 1;
}
.hero-content {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 0 48px 16vh;
  text-align: center;
}
.hero-kicker {
  font-family: var(--font-cond);
  font-weight: 300;
  font-size: clamp(13px, 1.4vw, 16px);
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
  padding-left: 6px;
  opacity: 0;
  animation: heroFade 1s var(--ease) 0.3s forwards;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(44px, 8vw, 124px);
  line-height: 1.05;
  letter-spacing: 0;
  color: var(--h2);
  margin-bottom: 26px;
  opacity: 0;
  animation: heroFade 1.1s var(--ease) 0.5s forwards;
}
.hero h1 .em {
  color: var(--accent);
  font-style: italic;
  font-weight: 400;
}
.hero-sub {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(15px, 1.6vw, 19px);
  color: var(--text);
  max-width: 560px;
  margin: 0 auto;
  opacity: 0;
  animation: heroFade 1.1s var(--ease) 0.7s forwards;
}
@keyframes heroFade {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-scroll {
  position: absolute;
  left: 0; right: 0; bottom: 26px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  opacity: 0;
  animation: heroFade 1s var(--ease) 1s forwards;
}
.hero-scroll-txt {
  font-family: var(--font-cond);
  font-size: 12px;
  letter-spacing: 3px;
  padding-left: 3px;
  text-transform: uppercase;
  color: var(--text-dim);
}
.hero-scroll-line {
  width: 1px; height: 46px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  position: relative;
  overflow: hidden;
}
.hero-scroll-line::after {
  content: "";
  position: absolute;
  top: -50%; left: 0;
  width: 100%; height: 50%;
  background: var(--h2);
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0%   { top: -50%; }
  100% { top: 120%; }
}

/* ============================================================
   CONTENU qui glisse par-dessus le hero
   ============================================================ */
.page {
  position: relative;
  z-index: 10;
  margin-top: 100vh;
  margin-top: 100svh;
  background: var(--bg);
  box-shadow: 0 -40px 80px rgba(0,0,0,0.5);
}

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

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: clamp(70px, 11vh, 140px) 0 clamp(40px, 6vh, 80px);
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: 48px;
  padding-right: 48px;
}
.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 38px;
  max-width: 920px;
  margin-bottom: 56px;
  align-items: start;
}
.section-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 5vw, 76px);
  line-height: 1;
  color: var(--bg-3);
  -webkit-text-stroke: 1px var(--line-2);
  letter-spacing: 0;
  margin-top: -0.12em;
}
.kicker {
  display: block;
  font-family: var(--font-cond);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 4.4vw, 60px);
  line-height: 1.1;
  letter-spacing: 0;
  color: var(--h2);
  margin-bottom: 24px;
}
.section h2 em, .section h2 .em, .h2-word.em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.lede {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(19px, 2.1vw, 25px);
  line-height: 1.45;
  color: var(--h2);
  margin-bottom: 28px;
  padding-left: 18px;
  border-left: 2px solid var(--accent);
}
.section-head-text p {
  color: var(--text);
  font-weight: 300;
  margin-bottom: 16px;
  max-width: 680px;
}
.section-head-text p strong {
  font-weight: 600;
  color: var(--h2);
}

/* ============================================================
   GALLERY — justified (flexbox), ratios via PHP --cs-ratio
   ============================================================ */
.gallery {
  --row-h: 340px;
  --g-gap: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: var(--g-gap);
  margin-top: 8px;
}
.g-item {
  --cs-ratio: 0.8;
  position: relative;
  height: var(--row-h);
  flex: var(--cs-ratio) 1 calc(var(--row-h) * var(--cs-ratio));
  overflow: hidden;
  background: var(--bg-2);
  cursor: zoom-in;
  border-radius: 2px;
  outline: none;
}
.g-item:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
.g-imgwrap { width: 100%; height: 100%; overflow: hidden; }
.g-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.5s var(--ease);
  filter: saturate(0.96);
}
.g-item:hover img { transform: scale(1.05); filter: saturate(1.08); }
.gallery::after { content: ""; flex-grow: 9999; }

.g-cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 30px 16px 16px;
  background: linear-gradient(to top, rgba(20,22,27,0.92) 0%, rgba(20,22,27,0.5) 55%, transparent 100%);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  pointer-events: none;
}
.g-item:hover .g-cap, .g-item:focus-visible .g-cap { opacity: 1; transform: translateY(0); }
.g-title {
  display: block;
  font-family: var(--font-cond);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--h2);
  margin-bottom: 3px;
}
.g-sub {
  display: block;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 12px;
  color: var(--accent-2);
  font-style: italic;
}

/* ============================================================
   REVEAL au scroll
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }

.section-head.reveal { transform: none; transition: opacity 0.9s var(--ease); }
.section-head.reveal.in { transform: none; }

.h2-anim {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}
.h2-anim .h2-word {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.7s var(--ease);
  will-change: transform;
}
.section-head.in .h2-anim .h2-word {
  transform: translateY(0);
}
.section-head.in .h2-anim:nth-child(1) .h2-word { transition-delay: 0.05s; }
.section-head.in .h2-anim:nth-child(2) .h2-word { transition-delay: 0.13s; }
.section-head.in .h2-anim:nth-child(3) .h2-word { transition-delay: 0.21s; }
.section-head.in .h2-anim:nth-child(4) .h2-word { transition-delay: 0.29s; }
.section-head.in .h2-anim:nth-child(5) .h2-word { transition-delay: 0.37s; }
.section-head.in .h2-anim:nth-child(6) .h2-word { transition-delay: 0.45s; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  z-index: 10;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding: 80px 48px 40px;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 0.9fr 0.9fr 1.1fr;
  gap: 44px;
  margin-bottom: 60px;
}
.footer h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 30px;
  letter-spacing: 4px;
  color: var(--h2);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer h3 .dot { color: var(--accent); }
.footer p { color: var(--text-dim); font-weight: 300; font-size: 15px; max-width: 320px; }
.footer-col h4 {
  font-family: var(--font-cond);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.footer-col a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.5;
  padding: 6px 0;
  transition: color 0.3s var(--ease);
}
.footer-col a:hover { color: var(--accent); }
.footer-col a .ico {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: var(--accent);
  transition: transform 0.3s var(--ease);
}
.footer-col a:hover .ico { transform: translateX(2px); }
.footer-col a .ico svg { width: 100%; height: 100%; display: block; }

.footer-address {
  font-style: normal;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
}
.footer-address .addr-ico {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  color: var(--accent);
  transition: transform 0.3s var(--ease);
}
.footer-address .addr-ico svg { width: 100%; height: 100%; display: block; }
.footer-address:hover .addr-ico { transform: translateY(-2px); }
.footer-address .addr-body { display: block; }
.footer-address .addr-name {
  display: block;
  font-family: var(--font-cond);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 2px;
  color: var(--h2);
  text-transform: uppercase;
  transition: color 0.3s var(--ease);
}
.footer-address .addr-line {
  display: block;
  color: var(--text-dim);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.55;
  transition: color 0.3s var(--ease);
}
.footer-address:hover .addr-name { color: var(--accent); }
.footer-address:hover .addr-line { color: var(--text); }

.footer-bottom {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-bottom span,
.footer-bottom a {
  font-family: var(--font-cond);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--text-dim);
  text-transform: uppercase;
}
.footer-bottom a {
  position: relative;
  transition: color 0.3s var(--ease);
}
.footer-bottom a:hover { color: var(--accent); }
.footer-bottom a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}
.footer-bottom a:hover::after { width: 100%; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lb {
  position: fixed; inset: 0; z-index: 99999;
  background: rgba(20,22,27,0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.35s var(--ease);
}
.lb.open { display: flex; opacity: 1; }
body.lb-lock { overflow: hidden; }
.lb-stage { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 68px 88px; }
.lb-img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  object-fit: contain;
  transition: opacity 0.3s var(--ease);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  border-radius: 2px;
}
.lb-img.loading { opacity: 0.25; }
.lb-btn {
  position: absolute;
  background: rgba(255,248,237,0.04);
  border: 1px solid var(--line-2);
  color: var(--h2);
  cursor: pointer;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s var(--ease);
  z-index: 2;
  font-family: var(--font-cond);
}
.lb-close { top: 24px; right: 28px; width: 46px; height: 46px; font-size: 24px; }
.lb-close:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); transform: rotate(90deg); }
.lb-nav { top: 50%; transform: translateY(-50%); width: 56px; height: 56px; font-size: 28px; }
.lb-nav:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.lb-prev { left: 28px; }
.lb-next { right: 28px; }
.lb-nav:disabled { opacity: 0.2; cursor: not-allowed; pointer-events: none; }
.lb-counter {
  position: absolute; top: 30px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-cond); font-size: 13px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--accent); z-index: 2;
}
.lb-cap {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  text-align: center; max-width: 80%; z-index: 2;
}
.lb-cap .lb-t {
  display: block; font-family: var(--font-cond); font-weight: 500;
  font-size: 15px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--h2); margin-bottom: 4px;
}
.lb-cap .lb-s { display: block; font-family: var(--font-body); font-weight: 300; font-size: 13px; color: var(--accent-2); font-style: italic; }
@keyframes lbIn { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: scale(1); } }
.lb.open .lb-img { animation: lbIn 0.4s var(--ease); }

/* ============================================================
   BOUTON RETOUR HAUT
   ============================================================ */
.to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 900;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(235,142,80,0.12);
  border: 1px solid var(--accent);
  color: var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--accent); color: var(--bg); transform: translateY(-3px); }
.to-top svg { width: 20px; height: 20px; display: block; }
@media (max-width: 768px) {
  .to-top { bottom: 22px; right: 22px; width: 46px; height: 46px; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .nav { padding: 22px 32px; }
  .nav.scrolled { padding: 14px 32px; }
  .gallery { --row-h: 280px; }
  .section { padding-left: 32px; padding-right: 32px; }
  .container { padding: 0 32px; }

  /* Désactive le backdrop-filter sur la nav en mode mobile/tablette,
     sinon il piège .nav-links position:fixed à l'intérieur de la nav (bug iOS). */
  .nav.scrolled {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Menu en burger : couvre tout l'écran iPhone (zone barre d'adresse incluse),
     fond opaque, prioritaire sur tout <style> inline restant dans les pages. */
  .nav-links {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: #1e2127 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    z-index: 1050 !important;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    transform: translateX(100%);
    transition: transform 0.5s var(--ease);
  }
  .nav-links.open { transform: translateX(0) !important; }
  .nav-links a { font-size: 22px; }
  .nav-links a.nav-alt[href*="location"]::before { display: none; }
  .nav-burger { display: flex; }
  .nav-cta { font-size: 18px !important; }

  /* Footer : 2 colonnes sur tablette */
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  .nav { padding: 20px 22px; }
  .nav.scrolled { padding: 14px 22px; }
  .nav-links a { font-size: 22px; }
  .nav-cta { font-size: 18px !important; }

  .section-head { grid-template-columns: 1fr; gap: 14px; margin-bottom: 40px; }
  .section-num { font-size: 54px; }

  .gallery { flex-direction: column; --g-gap: 12px; }
  .g-item {
    height: auto; flex: 1 1 100%; width: 100%;
    aspect-ratio: var(--cs-ratio);
  }
  .gallery::after { display: none; }
  .g-cap { opacity: 1; transform: none; background: linear-gradient(to top, rgba(20,22,27,0.9), transparent); }

  .footer-inner { grid-template-columns: 1fr; gap: 36px; }

  .lb-stage { padding: 56px 14px 76px; }
  .lb-nav { width: 44px; height: 44px; font-size: 22px; }
  .lb-prev { left: 10px; } .lb-next { right: 10px; }
  .lb-close { top: 12px; right: 12px; width: 40px; height: 40px; }
  .hero-content { padding: 0 24px 12vh; }

  /* ── Filet de sécurité iOS/mobile ──
     Sur petit écran tactile, on abandonne le hero "fixed" (capricieux
     avec la barre d'adresse Safari) au profit d'un hero qui défile
     normalement avec la page. */
  .hero {
    position: relative;
    height: 100vh;
    height: 100svh;
  }
  .hero-img {
    transform: none !important;
  }
  .page {
    margin-top: 0;
  }
}

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

/* ============================================================
   GALERIE — mur façon Pinterest, ratios réels conservés
   ============================================================ */
.gallery {
  display: block !important;
  column-count: 3;
  column-gap: 14px;
}
.gallery::after { display: none !important; }
.g-item {
  height: auto !important;
  width: 100% !important;
  flex: none !important;
  display: inline-block !important;
  margin: 0 0 14px !important;
  break-inside: avoid;
  aspect-ratio: auto !important;
}
.g-imgwrap { height: auto !important; aspect-ratio: auto !important; }
.g-item img {
  height: auto !important;
  width: 100% !important;
  object-fit: contain !important;
  aspect-ratio: auto !important;
}
@media (max-width: 900px) { .gallery { column-count: 2; } }
@media (max-width: 600px) { .gallery { column-count: 1; } }