/* ================================================================
   LYDIE ROLET — STYLE
   Blanc · gris · encre. Les couleurs viennent des œuvres.
   Lent, contemplatif, immersif.
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&family=Inter:wght@300;400;500&display=swap');

/* ---- VARIABLES ---- */
:root {
  /* Palette : beige doux / brun chaud. Aucun doré. */
  --bg:           #f3ede2;        /* beige principal */
  --bg-soft:      #ebe3d4;        /* zones secondaires */
  --bg-deep:      #ddd0b9;        /* placeholders d'image */
  --ink:          #2a1f17;        /* brun très profond — contraste max sur beige */
  --ink-2:        #4d3c2c;        /* brun secondaire */
  --ink-3:        #8a7660;        /* brun tertiaire / méta */
  --ink-4:        #b8a489;        /* lignes / contours */
  --line:         #d3c4a9;        /* fines lignes */

  --font-serif:   'Cormorant Garamond', 'Garamond', Georgia, serif;
  --font-sans:    'Inter', system-ui, -apple-system, sans-serif;

  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  8rem;
  --space-2xl: 12rem;

  --ease:      cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out:  cubic-bezier(0, 0, 0.2, 1);
  --dur:       0.6s;
  --dur-slow:  1.1s;

  --max-text:  640px;
  --max-wide:  1180px;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.75;
  overflow-x: hidden;
}
img  { display: block; max-width: 100%; height: auto; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--bg); }


/* ================================================================
   NAVIGATION
   ================================================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.6rem;
  background: rgba(243, 237, 226, 0.85);
  backdrop-filter: blur(14px) saturate(110%);
  -webkit-backdrop-filter: blur(14px) saturate(110%);
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease), padding var(--dur) var(--ease);
}
.nav.is-scrolled {
  background: rgba(243, 237, 226, 0.94);
  box-shadow: 0 1px 0 var(--line);
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  transition: opacity 0.3s var(--ease);
}
.nav__logo:hover { opacity: 0.65; }

.nav__logo-img {
  height: 36px;
  width: auto;
  display: block;
  /* Dans la nav le logo reste sombre sur fond clair */
}

.nav__logo-text {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  color: var(--ink);
}

.nav__links {
  display: flex;
  gap: 2.6rem;
  align-items: center;
}
.nav__links a {
  position: relative;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-2);
  transition: color 0.35s;
  padding: 0.4rem 0;
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 50%; right: 50%;
  bottom: 0;
  height: 1px;
  background: var(--ink);
  transition: left 0.4s var(--ease), right 0.4s var(--ease);
}
.nav__links a:hover,
.nav__links a[aria-current="page"] { color: var(--ink); }
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after { left: 0; right: 0; }

/* Hamburger */
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 6px 4px;
}
.nav__burger span {
  display: block;
  width: 24px; height: 1px;
  background: var(--ink);
  transition: transform 0.35s var(--ease), opacity 0.35s;
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile overlay */
.nav__overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(243, 237, 226, 0.98);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.4rem;
}
.nav__overlay.is-open { display: flex; }
.nav__overlay a {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 7vw, 3.2rem);
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--ink);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease), color 0.3s;
}
.nav__overlay.is-open a { opacity: 1; transform: translateY(0); }
.nav__overlay.is-open a:nth-child(1) { transition-delay: 0.08s; }
.nav__overlay.is-open a:nth-child(2) { transition-delay: 0.16s; }
.nav__overlay.is-open a:nth-child(3) { transition-delay: 0.24s; }
.nav__overlay a:hover { color: var(--ink-3); }


/* ================================================================
   PAGE HEADER (toutes les pages internes ET accueil)
   ================================================================ */

.page-header {
  padding: calc(5rem + 80px) var(--space-md) var(--space-lg);
  text-align: center;
  position: relative;
}
.page-header__kicker {
  font-size: 0.65rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 1.2rem;
}
.page-header__title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  letter-spacing: 0.04em;
  line-height: 1.05;
  color: var(--ink);
}
.page-header__title em {
  font-style: italic;
  font-weight: 400;
}
.page-header__subtitle {
  margin-top: 1.2rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  color: var(--ink-2);
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}
.page-header__rule {
  display: block;
  width: 36px; height: 1px;
  background: var(--ink-3);
  margin: 1.8rem auto 0;
}


/* ================================================================
   ACCUEIL — un seul flux, vertical, contemplatif
   ================================================================ */

/* Logo central de la page d'accueil */
.brand {
  padding: calc(5rem + 80px) var(--space-md) var(--space-lg);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* Plus de min-height plein écran : enchainement fluide avec le manifeste */
}

.brand__mark {
  width: clamp(180px, 22vw, 260px);
  height: auto;
  margin-bottom: 2.4rem;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1.4s var(--ease-out), transform 1.4s var(--ease-out);
}
.brand__mark.is-visible { opacity: 0.92; transform: translateY(0); }

.brand__tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  color: var(--ink);
  max-width: 540px;
  margin-bottom: 2.6rem;
  line-height: 1.5;
}

.brand__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  transition: gap 0.4s var(--ease), opacity 0.3s;
}
.brand__cta::after { content: '→'; transition: transform 0.4s var(--ease); }
.brand__cta:hover { opacity: 0.7; gap: 1.2rem; }
.brand__cta:hover::after { transform: translateX(4px); }

.brand__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-3);
  animation: brandBob 2.6s ease-in-out infinite;
}
.brand__scroll::after {
  content: '';
  display: block;
  width: 1px; height: 32px;
  background: linear-gradient(to bottom, var(--ink-3), transparent);
}
@keyframes brandBob {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.7; }
  50%       { transform: translateX(-50%) translateY(6px); opacity: 1; }
}


/* ================================================================
   MANIFESTE — citation isolée
   ================================================================ */

.manifesto {
  padding: var(--space-2xl) var(--space-md);
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.manifesto__rule-top,
.manifesto__rule-bot {
  display: block;
  width: 1px;
  height: 60px;
  background: var(--ink-4);
  margin: 0 auto;
}
.manifesto__rule-top { margin-bottom: 3rem; }
.manifesto__rule-bot { margin-top: 3rem; }

.manifesto__text {
  font-family: var(--font-serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.35rem, 2.4vw, 1.95rem);
  line-height: 1.55;
  color: var(--ink);
}
.manifesto__text strong {
  font-weight: 500;
  font-style: normal;
}
.manifesto__sig {
  display: block;
  margin-top: 1.8rem;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-3);
}


/* ================================================================
   FEATURED — œuvres récentes (homepage)
   ================================================================ */

.featured {
  padding: 0 var(--space-md) var(--space-2xl);
}
.featured__head {
  text-align: center;
  margin-bottom: var(--space-lg);
}
.featured__kicker {
  font-size: 0.65rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.6rem;
}
.featured__title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-style: italic;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.featured__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  max-width: var(--max-wide);
  margin: 0 auto;
}
.featured__item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-deep);
  display: block;
}
.featured__img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease), filter var(--dur-slow) var(--ease);
  display: block;
  filter: grayscale(0);
}
.featured__item:hover .featured__img { transform: scale(1.04); }

.featured__caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2.6rem 1.4rem 1.2rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.featured__item:hover .featured__caption { opacity: 1; transform: translateY(0); }
.featured__caption-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.1rem;
}
.featured__caption-year {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  margin-top: 0.2rem;
  color: rgba(255, 255, 255, 0.78);
}

.featured__more {
  text-align: center;
  margin-top: var(--space-lg);
}


/* ================================================================
   FOOTER
   ================================================================ */

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.8rem 2.6rem;
  border-top: 1px solid var(--line);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--bg);
}
.footer a { transition: color 0.3s; }
.footer a:hover { color: var(--ink); }
.footer__sig {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-serif);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: 0.9rem;
  color: var(--ink-2);
}
.footer__mark {
  width: 22px;
  height: 22px;
  opacity: 0.7;
}


/* ================================================================
   GALLERY
   ================================================================ */

.gallery-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 2.8rem;
  padding: 0 var(--space-md);
  margin-bottom: var(--space-lg);
  border-bottom: 1px solid var(--line);
}
.gallery-tab {
  position: relative;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-bottom: 1rem;
  margin-bottom: -1px;
  transition: color 0.3s;
}
.gallery-tab::after {
  content: '';
  position: absolute;
  left: 50%; right: 50%;
  bottom: -1px;
  height: 1px;
  background: var(--ink);
  transition: left 0.4s var(--ease), right 0.4s var(--ease);
}
.gallery-tab.is-active { color: var(--ink); }
.gallery-tab.is-active::after { left: 0; right: 0; }
.gallery-tab:hover { color: var(--ink); }

.gallery-grid {
  padding: 0 var(--space-md) var(--space-2xl);
  columns: 3 280px;
  column-gap: 1.4rem;
  max-width: var(--max-wide);
  margin: 0 auto;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1.4rem;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  display: block;
  background: var(--bg-deep);
}
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--dur-slow) var(--ease);
}
.gallery-item:hover img { transform: scale(1.03); }

.gallery-item__caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 3.5rem 1.2rem 1.2rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
  color: #fff;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.gallery-item:hover .gallery-item__caption { opacity: 1; }

.gallery-item__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.3;
}
.gallery-item__year {
  margin-top: 0.2rem;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.gallery-empty {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  color: var(--ink-3);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-style: italic;
}


/* ================================================================
   LIGHTBOX
   ================================================================ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(28, 22, 16, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease);
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }

.lightbox__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 92vw;
  max-height: 92vh;
}
.lightbox__img {
  max-width: 88vw;
  max-height: 78vh;
  object-fit: contain;
  transform: scale(0.96);
  transition: transform 0.55s var(--ease-out);
  display: block;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
}
.lightbox.is-open .lightbox__img { transform: scale(1); }

.lightbox__info {
  margin-top: 1.6rem;
  text-align: center;
}
.lightbox__title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-style: italic;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.88);
  min-height: 1.4em;
}
.lightbox__year {
  margin-top: 0.3rem;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.lightbox__close {
  position: fixed;
  top: 1.4rem; right: 2rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 1.4rem;
  font-weight: 200;
  line-height: 1;
  padding: 0.6rem;
  transition: color 0.3s, transform 0.3s;
  z-index: 201;
}
.lightbox__close:hover { color: #fff; transform: rotate(90deg); }

.lightbox__nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.4);
  font-size: 2.2rem;
  font-weight: 200;
  line-height: 1;
  padding: 1rem 1.6rem;
  transition: color 0.3s;
  z-index: 201;
}
.lightbox__nav:hover { color: #fff; }
.lightbox__prev { left: 0.4rem; }
.lightbox__next { right: 0.4rem; }


/* ================================================================
   UNIVERS — récit fragmenté
   ================================================================ */

.univers {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--space-md) var(--space-2xl);
}

.fragment {
  position: relative;
  margin-bottom: var(--space-xl);
}

.fragment__head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.6rem;
}
.fragment__num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-3);
  letter-spacing: 0.18em;
}
.fragment__rule {
  flex: 1;
  height: 1px;
  background: var(--line);
}
.fragment__title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  color: var(--ink);
  letter-spacing: 0.01em;
  line-height: 1.2;
  margin-bottom: 1.6rem;
}
.fragment__title em { font-style: normal; font-weight: 400; }

.fragment__text {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 1.9vw, 1.4rem);
  font-weight: 300;
  line-height: 1.75;
  color: var(--ink);
}
.fragment__text + .fragment__text { margin-top: 1.2rem; }
.fragment__text em {
  font-style: italic;
  color: var(--ink-2);
}
.fragment__text strong {
  font-weight: 500;
  color: var(--ink);
}

.fragment__pull {
  margin: 2rem 0;
  padding: 1.4rem 0 1.4rem 1.6rem;
  border-left: 1px solid var(--ink);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  color: var(--ink);
  line-height: 1.55;
}

.fragment__sep {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  margin: var(--space-xl) auto;
}
.fragment__sep span {
  width: 4px; height: 4px;
  background: var(--ink-3);
  border-radius: 50%;
}
.fragment__sep span:nth-child(2) { width: 5px; height: 5px; background: var(--ink); }


/* ================================================================
   CONTACT
   ================================================================ */

.contact {
  min-height: calc(100svh - 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg) var(--space-md);
  text-align: center;
}

.contact__mark {
  width: 90px;
  height: auto;
  opacity: 0.5;
  margin-bottom: 2.4rem;
}

.contact__phrase {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.5;
  max-width: 540px;
  margin-bottom: var(--space-lg);
  color: var(--ink);
}

.contact__email {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-style: italic;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 6px;
  transition: opacity 0.3s, letter-spacing 0.4s var(--ease);
}
.contact__email:hover { opacity: 0.7; letter-spacing: 0.02em; }

.contact__social {
  margin-top: var(--space-md);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.contact__social a {
  color: var(--ink-2);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.3s, border-color 0.3s;
}
.contact__social a:hover { color: var(--ink); border-bottom-color: var(--ink); }


/* ================================================================
   SCROLL REVEAL
   ================================================================ */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }
.reveal-delay-4 { transition-delay: 0.48s; }

.gallery-item {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}
.gallery-item.is-visible { opacity: 1; transform: translateY(0); }


/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 900px) {
  :root { --space-xl: 5.5rem; --space-2xl: 9rem; }
  .nav { padding: 1.1rem 1.6rem; }
  .nav__logo-img { height: 32px; }
  .gallery-grid { columns: 2 200px; }
  .featured__grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .featured__grid .featured__item:nth-child(3) { display: none; }
}

@media (max-width: 680px) {
  :root { --space-xl: 4rem; --space-2xl: 6.5rem; }
  .nav { padding: 1rem 1.2rem; }
  .nav__logo-text { display: none; }
  .nav__links { display: none; }
  .nav__burger { display: flex; }

  .brand__mark { width: 160px; margin-bottom: 1.8rem; }

  .gallery-tabs { gap: 0.5rem 1.6rem; }
  .gallery-grid { columns: 2 150px; column-gap: 0.8rem; }
  .gallery-item { margin-bottom: 0.8rem; }

  .featured__grid { grid-template-columns: 1fr; }
  .featured__grid .featured__item:nth-child(2),
  .featured__grid .featured__item:nth-child(3) { display: none; }

  .footer { flex-direction: column; gap: 0.8rem; text-align: center; }
  .lightbox__nav { display: none; }
  .lightbox__close { top: 1rem; right: 1rem; }
}

@media (max-width: 420px) {
  .gallery-grid { columns: 1; }
}

@media print {
  .nav, .lightbox, .nav__overlay { display: none; }
  body { background: white; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
/* ================================================================
   LYDIE ROLET — STYLE PRINCIPAL
   Un prolongement de la peinture. Lent, contemplatif, immersif.
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Inter:wght@300;400&display=swap');

/* ---- VARIABLES ---- */
:root {
  --bg:           #f7f5f2;
  --bg-dark:      #1c1917;
  --text:         #1c1917;
  --text-muted:   #9c9289;
  --accent:       #c8b49a;
  --border:       #e4e0da;

  --font-serif:   'Cormorant Garamond', 'Garamond', Georgia, serif;
  --font-sans:    'Inter', system-ui, -apple-system, sans-serif;

  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  8rem;
  --space-2xl: 14rem;

  --ease:      cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out:  cubic-bezier(0, 0, 0.2, 1);
  --dur:       0.6s;
  --dur-slow:  1.1s;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.75;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }


/* ================================================================
   NAVIGATION
   ================================================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem 2.5rem;
  background: rgba(247, 245, 242, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow var(--dur) var(--ease);
}
.nav.is-scrolled {
  box-shadow: 0 1px 0 var(--border);
}

.nav__logo {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 1.05rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: opacity 0.3s;
}
.nav__logo:hover { opacity: 0.6; }

.nav__links {
  display: flex;
  gap: 2.8rem;
  align-items: center;
  list-style: none;
}
.nav__links a {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.35s;
}
.nav__links a:hover,
.nav__links a[aria-current="page"] { color: var(--text); }

/* Hamburger */
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 6px 4px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text);
  transition: transform 0.35s var(--ease), opacity 0.35s;
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile overlay */
.nav__overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(247, 245, 242, 0.98);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}
.nav__overlay.is-open { display: flex; }
.nav__overlay a {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--text);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease), color 0.3s;
}
.nav__overlay.is-open a { opacity: 1; transform: translateY(0); }
.nav__overlay.is-open a:nth-child(1) { transition-delay: 0.08s; }
.nav__overlay.is-open a:nth-child(2) { transition-delay: 0.16s; }
.nav__overlay.is-open a:nth-child(3) { transition-delay: 0.24s; }
.nav__overlay a:hover { color: var(--text-muted); }


/* ================================================================
   HERO
   ================================================================ */

.hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  background: var(--bg-dark);
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 2.2s var(--ease);
  will-change: opacity;
}
.hero__slide.is-active { opacity: 1; }

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.06);
  transition: transform 9s var(--ease);
}
.hero__slide.is-active img { transform: scale(1); }

.hero__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(28, 25, 23, 0.08) 0%,
    transparent 35%,
    rgba(28, 25, 23, 0.55) 100%
  );
  z-index: 1;
}

.hero__content {
  position: absolute;
  bottom: 12%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
  color: #f7f5f2;
  width: 90%;
}
.hero__name {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 1.2rem;
}
.hero__phrase {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(247, 245, 242, 0.55);
}

.hero__scroll {
  position: absolute;
  bottom: 2.8rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(247, 245, 242, 0.4);
  animation: heroBob 2.5s ease-in-out infinite;
}
.hero__scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 38px;
  background: rgba(247, 245, 242, 0.3);
}

@keyframes heroBob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}


/* ================================================================
   SECTIONS HOMEPAGE
   ================================================================ */

/* Intro */
.intro {
  padding: var(--space-2xl) var(--space-md);
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.intro__text {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.45;
  color: var(--text);
  margin-bottom: var(--space-lg);
}
.intro__link {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 3px;
  transition: color 0.3s, border-color 0.3s;
}
.intro__link:hover { color: var(--text); border-color: var(--text); }

/* Featured */
.featured {
  padding: 0 var(--space-md) var(--space-2xl);
}
.featured__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.featured__item {
  overflow: hidden;
  cursor: pointer;
}
.featured__img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
  display: block;
}
.featured__item:hover .featured__img { transform: scale(1.03); }


/* ================================================================
   FOOTER
   ================================================================ */

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 2.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.footer a { transition: color 0.3s; }
.footer a:hover { color: var(--text); }


/* ================================================================
   PAGE HEADER (used on all inner pages)
   ================================================================ */

.page-header {
  padding: calc(5.5rem + 80px) var(--space-md) var(--space-lg);
  text-align: center;
}
.page-header__title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1.1;
}
.page-header__subtitle {
  margin-top: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  text-transform: uppercase;
}


/* ================================================================
   GALLERY
   ================================================================ */

.gallery-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 3rem;
  padding: 0 var(--space-md) 0;
  margin-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border);
}
.gallery-tab {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-bottom: 1rem;
  border-bottom: 1px solid transparent;
  margin-bottom: -1px;
  transition: color 0.3s, border-color 0.3s;
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}
.gallery-tab.is-active { color: var(--text); border-bottom-color: var(--text); }
.gallery-tab:hover { color: var(--text); }

.gallery-grid {
  padding: 0 var(--space-md) var(--space-2xl);
  columns: 3 260px;
  column-gap: 1.2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1.2rem;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  display: block;
}
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--dur-slow) var(--ease);
}
.gallery-item:hover img { transform: scale(1.025); }

.gallery-item__caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 3.5rem 1.2rem 1.2rem;
  background: linear-gradient(transparent, rgba(28, 25, 23, 0.65));
  color: #f7f5f2;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.gallery-item:hover .gallery-item__caption { opacity: 1; }

.gallery-item__title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.3;
}
.gallery-item__year {
  margin-top: 0.2rem;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: rgba(247, 245, 242, 0.6);
}

.gallery-empty {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  color: var(--text-muted);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
}


/* ================================================================
   LIGHTBOX
   ================================================================ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20, 18, 16, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease);
}
.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox__img {
  max-width: 88vw;
  max-height: 80vh;
  object-fit: contain;
  transform: scale(0.96);
  transition: transform 0.55s var(--ease-out);
  display: block;
}
.lightbox.is-open .lightbox__img { transform: scale(1); }

.lightbox__info {
  margin-top: 1.4rem;
  text-align: center;
}
.lightbox__title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-style: italic;
  font-size: 1.15rem;
  color: rgba(247, 245, 242, 0.8);
  min-height: 1.4em;
}
.lightbox__year {
  margin-top: 0.25rem;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: rgba(247, 245, 242, 0.4);
}

.lightbox__close {
  position: fixed;
  top: 1.4rem;
  right: 2rem;
  color: rgba(247, 245, 242, 0.45);
  font-size: 2rem;
  font-weight: 200;
  line-height: 1;
  padding: 0.4rem;
  transition: color 0.3s;
  z-index: 201;
}
.lightbox__close:hover { color: rgba(247, 245, 242, 0.9); }

.lightbox__nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(247, 245, 242, 0.35);
  font-size: 2.5rem;
  font-weight: 200;
  line-height: 1;
  padding: 1rem 1.5rem;
  transition: color 0.3s;
  z-index: 201;
}
.lightbox__nav:hover { color: rgba(247, 245, 242, 0.85); }
.lightbox__prev { left: 0; }
.lightbox__next { right: 0; }


/* ================================================================
   UNIVERS
   ================================================================ */

.univers {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 var(--space-md) var(--space-2xl);
}

.univers__fragment {
  margin-bottom: var(--space-xl);
}

.univers__text {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.5vw, 1.8rem);
  font-weight: 300;
  line-height: 1.65;
  color: var(--text);
}
.univers__text em {
  font-style: italic;
  color: var(--text-muted);
}
.univers__text strong {
  font-weight: 400;
}

.univers__label {
  display: block;
  margin-top: 1.5rem;
  font-size: 0.63rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.univers__sep {
  display: block;
  width: 1px;
  height: 60px;
  background: var(--border);
  margin: var(--space-xl) auto;
}

.univers__figure {
  margin: var(--space-lg) 0;
}
.univers__figure img {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}
.univers__figure figcaption {
  margin-top: 0.85rem;
  font-size: 0.63rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
}


/* ================================================================
   CONTACT
   ================================================================ */

.contact {
  min-height: calc(100svh - 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg) var(--space-md);
  text-align: center;
}

.contact__phrase {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.5;
  max-width: 500px;
  margin-bottom: var(--space-lg);
  color: var(--text);
}

.contact__email {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 4px;
  transition: color 0.3s, border-color 0.3s;
}
.contact__email:hover { color: var(--text); border-color: var(--text); }

.contact__social {
  margin-top: var(--space-md);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.contact__social a {
  transition: color 0.3s;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.contact__social a:hover { color: var(--text); border-bottom-color: var(--border); }


/* ================================================================
   SCROLL REVEAL (Intersection Observer)
   ================================================================ */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for grouped reveals */
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

/* Gallery items fade in */
.gallery-item {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}
.gallery-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 900px) {
  :root {
    --space-xl:  5rem;
    --space-2xl: 9rem;
  }
  .nav { padding: 1.3rem 1.8rem; }
  .gallery-grid { columns: 2 200px; }
  .featured__grid { grid-template-columns: 1fr 1fr; }
  .featured__grid .featured__item:nth-child(3) { display: none; }
}

@media (max-width: 680px) {
  :root {
    --space-xl:  4rem;
    --space-2xl: 7rem;
  }
  .nav { padding: 1.2rem 1.4rem; }
  .nav__links { display: none; }
  .nav__burger { display: flex; }

  .gallery-tabs { gap: 0.5rem 1.8rem; }
  .gallery-grid { columns: 2 160px; column-gap: 0.7rem; }
  .gallery-item { margin-bottom: 0.7rem; }

  .featured__grid { grid-template-columns: 1fr; }
  .featured__grid .featured__item:nth-child(2),
  .featured__grid .featured__item:nth-child(3) { display: none; }

  .footer { flex-direction: column; gap: 0.7rem; text-align: center; }

  .lightbox__nav { display: none; }
  .lightbox__close { top: 1rem; right: 1rem; }
}

@media (max-width: 420px) {
  .gallery-grid { columns: 1; }
  .hero__name { letter-spacing: 0.15em; }
}

/* Print */
@media print {
  .nav, .lightbox, .hero__scroll { display: none; }
}
