/* ============================================================
   Marie-Odette & David — 18 juillet 2026
   Feuille de style partagée
   ============================================================ */

:root {
  --cream:      #f4ece0;
  --cream-soft: #faf4ea;
  --cream-deep: #efe4d3;
  --ink:        #43392f;
  --ink-soft:   #5f5647;
  --ink-mute:   #8a7b6a;
  --gold:       #a8825b;
  --gold-deep:  #8a6842;
  --gold-soft:  #c9ac7d;
  --shadow:     rgba(67, 57, 47, 0.5);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--gold); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--gold-deep); }

::selection { background: #e3d3ba; color: var(--ink); }

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

.serif { font-family: 'Cormorant Garamond', serif; }

/* ---------- Animations ---------- */
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp  { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes riseIn  { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes floatIn { from { opacity: 0; transform: translateY(40px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes floaty  { 0%,100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
@keyframes pulse   { 0%,100% { opacity: .35; } 50% { opacity: .9; } }

/* Scroll reveal (JS toggles .is-visible) */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s ease, transform 1s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px clamp(20px, 4vw, 44px);
  transition: background .4s ease, backdrop-filter .4s ease, box-shadow .4s ease;
}
.nav--onphoto { background: linear-gradient(180deg, rgba(52,40,24,.42), rgba(52,40,24,0)); }
.nav--onphoto .nav__home,
.nav--onphoto .nav__mono,
.nav--onphoto .lang button { color: #fff; text-shadow: 0 1px 12px rgba(60,45,25,.55); }
.nav.is-stuck {
  background: rgba(244,236,224,.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(168,130,91,.18);
}
.nav.is-stuck .nav__home,
.nav.is-stuck .nav__mono,
.nav.is-stuck .lang button { color: var(--ink); text-shadow: none; }
.nav.is-stuck .nav__mono { color: var(--gold); }

.nav__home {
  font-size: 12px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--ink-soft); display: flex; align-items: center; gap: 8px;
}
.nav__mono {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 21px; letter-spacing: .04em; color: var(--gold);
}
.nav__right { display: flex; align-items: center; gap: 22px; }

/* Language toggle */
.lang { display: flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: .18em; }
.lang button {
  background: none; border: none; cursor: pointer; font: inherit;
  color: var(--ink-soft); padding: 2px 2px; opacity: .5;
  border-bottom: 1px solid transparent; transition: opacity .25s ease;
}
.lang button.is-active { opacity: 1; border-bottom-color: currentColor; }
.lang span { opacity: .4; }

/* Music button */
.music {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(168,130,91,.45);
  background: rgba(251,247,240,.5); backdrop-filter: blur(6px);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--gold); transition: transform .2s ease, background .3s ease;
}
.nav--onphoto:not(.is-stuck) .music { border-color: rgba(255,255,255,.6); color: #fff; background: rgba(255,255,255,.14); }
.music:hover { transform: scale(1.08); }
.music svg { display: block; }
.music.is-playing svg { animation: pulse 1.6s ease-in-out infinite; }

/* Floating music button (accueil) */
.music-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 60;
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(168,130,91,.4);
  background: rgba(251,247,240,.92); backdrop-filter: blur(6px);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--gold); box-shadow: 0 8px 22px -8px var(--shadow);
  transition: transform .2s ease;
}
.music-float:hover { transform: scale(1.08); }
.music-float.is-playing svg { animation: pulse 1.6s ease-in-out infinite; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; width: 100%;
  display: flex; align-items: center; justify-content: center; text-align: center;
  overflow: hidden;
}
.hero--full   { height: 100vh; min-height: 640px; }
.hero--sub    { height: 62vh;  min-height: 440px; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transform: scale(1.06); animation: heroZoom 9s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero__veil { position: absolute; inset: 0; pointer-events: none; }
.hero--full  .hero__veil { background: linear-gradient(180deg, rgba(52,40,24,.34) 0%, rgba(52,40,24,.05) 32%, rgba(52,40,24,.12) 68%, rgba(52,40,24,.55) 100%); }
.hero--sub   .hero__veil { background: linear-gradient(180deg, rgba(52,40,24,.4), rgba(52,40,24,.58)); }
.hero__inner { position: relative; z-index: 2; padding: 0 24px; pointer-events: none; }

.hero__kicker {
  font-size: 13px; letter-spacing: .42em; text-transform: uppercase;
  color: rgba(255,255,255,.9); margin-bottom: 24px;
  animation: fadeIn 1.5s ease both;
}
.hero__title {
  font-family: 'Cormorant Garamond', serif; font-weight: 500; color: #fff;
  line-height: .98; text-shadow: 0 2px 30px rgba(50,36,18,.4);
  animation: fadeUp 1.4s ease both;
}
.hero--full .hero__title { font-size: clamp(52px, 9.5vw, 128px); }
.hero--sub  .hero__title { font-size: clamp(46px, 8vw, 92px); }
.hero__title .amp { display: block; font-style: italic; font-weight: 400;
  font-size: .58em; color: var(--gold-soft); margin: 4px 0; }
.hero__date {
  margin-top: 28px; display: inline-flex; align-items: center; gap: 18px;
  color: rgba(255,255,255,.92); animation: fadeUp 1.4s .18s ease both;
}
.hero__date .rule { width: 34px; height: 1px; background: rgba(255,255,255,.7); }
.hero__date .txt { font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: clamp(19px, 2.4vw, 27px); letter-spacing: .08em; }
.hero__sub {
  margin-top: 18px; font-size: 13px; letter-spacing: .24em; text-transform: uppercase;
  color: rgba(255,255,255,.85); animation: fadeUp 1.4s .28s ease both;
}
.scrollcue {
  position: absolute; bottom: 30px; left: 0; right: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,.85); pointer-events: none;
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
  animation: floaty 2.6s ease-in-out infinite;
}

/* ============================================================
   SECTIONS DE TEXTE
   ============================================================ */
.intro { padding: clamp(80px,12vw,140px) 24px; text-align: center; }
.intro--soft { background: var(--cream-soft); }
.intro__wrap { max-width: 720px; margin: 0 auto; }
.intro__kicker {
  font-size: 12px; letter-spacing: .4em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 26px;
}
.intro__lead {
  font-family: 'Cormorant Garamond', serif; font-weight: 400;
  font-size: clamp(23px, 3.2vw, 34px); line-height: 1.5; color: var(--ink-soft);
  text-wrap: pretty;
}
.intro__rule { width: 56px; height: 1px; background: var(--gold-soft); margin: 30px auto; }
.intro__sub {
  font-size: 15px; line-height: 1.9; color: var(--ink-mute);
  font-style: italic; letter-spacing: .01em; text-wrap: pretty;
}

/* ============================================================
   LES 3 PARTIES (cartes)
   ============================================================ */
.parts { padding: 0 clamp(20px,5vw,64px) clamp(80px,12vw,130px); }
.parts--soft { background: var(--cream-soft); }
.parts__head { text-align: center; margin-bottom: clamp(44px,6vw,70px); }
.parts__head h2 { font-family: 'Cormorant Garamond', serif; font-weight: 500;
  font-size: clamp(28px,4vw,44px); }
.parts__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(20px, 2.5vw, 32px); max-width: 1240px; margin: 0 auto;
}
.card { display: block; position: relative; aspect-ratio: 3/4; overflow: hidden;
  border-radius: 3px; box-shadow: 0 18px 46px -22px var(--shadow); }
.card img { width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s cubic-bezier(.2,.7,.2,1); }
.card:hover img { transform: scale(1.07); }
.card__veil { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(50,38,22,.12) 0%, rgba(50,38,22,0) 42%, rgba(50,38,22,.66) 100%); }
.card__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 26px;
  text-align: center; color: #fff; }
.card__num { font-size: 11px; letter-spacing: .4em; text-transform: uppercase;
  opacity: .85; margin-bottom: 10px; }
.card__cap h3 { font-family: 'Cormorant Garamond', serif; font-weight: 500;
  font-size: 32px; line-height: 1; margin-bottom: 8px; }
.card__cap .s { font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 17px; opacity: .9; }

/* ============================================================
   GALERIE (masonry)
   ============================================================ */
.gallery { max-width: 1360px; margin: 0 auto; padding: 0 clamp(14px,3vw,24px) clamp(80px,10vw,120px); }
.gallery__masonry { columns: 4 260px; column-gap: 16px; }
.photo {
  position: relative; margin: 0 0 16px; break-inside: avoid;
  overflow: hidden; border-radius: 3px; background: var(--cream-deep);
  box-shadow: 0 10px 30px -18px var(--shadow); cursor: zoom-in;
}
.photo img { width: 100%; height: auto; display: block;
  transition: transform 1s cubic-bezier(.2,.7,.2,1), filter .5s ease; }
.photo::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(50,38,22,0) 60%, rgba(50,38,22,.28));
  opacity: 0; transition: opacity .4s ease; pointer-events: none; }
.photo:hover img { transform: scale(1.05); }
.photo:hover::after { opacity: 1; }

/* Section label inside full gallery */
.gallery__label { text-align: center; margin: clamp(56px,8vw,90px) 0 34px; }
.gallery__label .k { font-size: 12px; letter-spacing: .4em; text-transform: uppercase; color: var(--gold); }
.gallery__label h2 { font-family: 'Cormorant Garamond', serif; font-weight: 500;
  font-size: clamp(30px,5vw,50px); margin-top: 8px; }
.gallery__label .rule { width: 48px; height: 1px; background: var(--gold-soft); margin: 18px auto 0; }

/* ============================================================
   PIED DE PAGE + inter-nav
   ============================================================ */
.pagenav {
  display: flex; justify-content: center; gap: 26px;
  padding: 0 32px clamp(70px,9vw,100px);
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
}
.pagenav .dot { color: #cdbda6; }

.footer { padding: clamp(60px,9vw,110px) 24px; background: var(--cream-deep); text-align: center; }
.footer__heart { margin: 0 auto 18px; display: block; }
.footer__names { font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 27px; color: var(--ink-soft); margin-bottom: 12px; }
.footer__date { font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--ink-mute); }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center;
  background: rgba(40,33,26,.94); backdrop-filter: blur(4px);
}
.lightbox.is-open { display: flex; animation: fadeIn .3s ease both; }
.lightbox img { max-width: 90vw; max-height: 82vh; object-fit: contain;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.7); border-radius: 2px; }
.lb-btn { position: absolute; background: none; border: none; color: #f4ece0;
  cursor: pointer; line-height: 1; }
.lb-close { top: 22px; right: 28px; font-size: 32px; }
.lb-prev  { left: 14px; top: 50%; transform: translateY(-50%); font-size: 40px; padding: 16px; opacity: .8; }
.lb-next  { right: 14px; top: 50%; transform: translateY(-50%); font-size: 40px; padding: 16px; opacity: .8; }
.lb-prev:hover, .lb-next:hover, .lb-close:hover { opacity: 1; }
.lb-count { position: absolute; bottom: 26px; left: 0; right: 0; text-align: center;
  font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: rgba(244,236,224,.75); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 720px) {
  .gallery__masonry { columns: 2 150px; column-gap: 12px; }
  .photo { margin-bottom: 12px; }
  .lb-prev, .lb-next { font-size: 30px; padding: 10px; }
  .nav__home { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, .hero__img { animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
