/* Mariage Fabienne & Christian — styles locaux */
@import url("../../css/fonts.css");

:root {
  --cream: #f6f1e8;
  --cream-2: #ece2d5;
  --paper: #fffaf2;
  --ink: #191713;
  --ink-soft: #3d362f;
  --muted: #81766d;
  --line: #ddd2c5;
  --gold: #b08d57;
  --white: #ffffff;
  --serif: "Cormorant Garamond", "Cormorant Fallback", Georgia, serif;
  --sans: "Jost", "Jost Fallback", "Helvetica Neue", Arial, sans-serif;
  --container: 1100px;
  --nav-offset: 88px;
  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: auto;
  scroll-padding-top: 72px;
  overflow-x: hidden;
}

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink-soft);
  background: var(--cream);
  line-height: 1.7;
  font-size: 17px;
}

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

a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

.story-header {
  position: sticky;
  top: 0;
  z-index: 10001;
}

.story-sitebar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 14px clamp(16px, 4vw, 28px);
  background: rgba(246, 241, 232, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.story-sitebar__logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}

.story-sitebar__logo-mark {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.story-sitebar__logo-sub {
  font-size: 0.6rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}

.story-sitebar__logo:hover { color: var(--gold); }

.story-sitebar__text {
  margin: 0;
  flex: 1 1 220px;
  text-align: center;
  line-height: 1.4;
}

.story-sitebar__text-lead {
  display: block;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.story-sitebar__text-sub {
  display: block;
  margin-top: 2px;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.story-sitebar__text-link {
  font-family: var(--serif);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-soft);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.story-sitebar__text-link:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.story-sitebar__cta {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.story-sitebar__cta:hover {
  border-color: var(--gold);
  color: var(--gold);
}

@media (max-width: 720px) {
  .story-sitebar {
    justify-content: center;
    text-align: center;
  }

  .story-sitebar__text {
    flex-basis: 100%;
    order: 3;
  }
}

.story-hero {
  position: relative;
  min-height: clamp(320px, 58vh, 560px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.story-hero__media {
  position: absolute;
  inset: 0;
}

.story-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(25, 23, 19, 0.08) 0%, rgba(25, 23, 19, 0.62) 100%);
}

.story-hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
  padding: clamp(48px, 8vw, 80px) 24px clamp(36px, 6vw, 56px);
  max-width: 900px;
}

.story-hero__eyebrow {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 12px;
}

.story-hero__title {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 500;
  line-height: 1.05;
  margin-bottom: 14px;
  color: var(--white);
}

.story-hero__sub {
  font-size: clamp(0.92rem, 2vw, 1.05rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.92;
}

.story-body {
  max-width: var(--container);
  margin: 0 auto;
}

.story-intro {
  max-width: 720px;
  margin: clamp(40px, 6vw, 56px) auto;
  padding: 0 24px;
}

.story-body > .story-intro:first-child {
  margin-top: clamp(40px, 6vw, 64px);
}

.story-gallery + .story-intro,
.story-intro + .story-gallery {
  margin-top: clamp(28px, 4.5vw, 44px);
}

.story-body > .story-gallery:last-child {
  padding-bottom: clamp(20px, 3vw, 32px);
}

.story-intro__title {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.2vw, 1.55rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin: 0 0 0.65rem;
}

.story-intro__title:not(:first-child) {
  margin-top: 1.6rem;
}

.story-intro p {
  margin-bottom: 1.1rem;
  font-size: 1.05rem;
  color: var(--ink-soft);
}

.story-intro p:last-child { margin-bottom: 0; }

.story-vendors {
  max-width: 720px;
  margin: clamp(36px, 5vw, 52px) auto clamp(40px, 6vw, 56px);
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}

.story-vendors__label {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.story-vendors ul {
  list-style: none;
  font-size: 0.95rem;
}

.story-vendors li + li { margin-top: 6px; }

.story-gallery {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  gap: clamp(10px, 1.8vw, 16px);
}

.story-gallery__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(10px, 1.8vw, 16px);
}

.story-gallery__item {
  margin: 0;
  border: 0;
  padding: 0;
  background: none;
  cursor: zoom-in;
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
  width: 100%;
}

.story-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.story-gallery__item:hover img { transform: scale(1.02); }

.story-gallery__item--wide {
  grid-column: 1 / -1;
}

.story-video {
  max-width: min(980px, 94vw);
  margin: clamp(20px, 3vw, 32px) auto 0;
  padding: 0 24px;
}

.story-video__label {
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2rem);
  color: var(--ink);
  margin-bottom: clamp(18px, 3vw, 28px);
}

.story-video__media {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 20px 48px rgba(25, 23, 19, 0.14);
}

.story-video__media iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.story-cta {
  text-align: center;
  max-width: var(--container);
  margin: 0 auto clamp(56px, 8vw, 88px);
  padding: 0 24px;
}

.story-cta p {
  max-width: 52ch;
  margin: 0 auto 22px;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.story-cta__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.story-btn {
  display: inline-block;
  padding: 11px 24px;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.story-btn--dark {
  background: var(--ink);
  color: var(--white);
}

.story-btn--dark:hover {
  background: var(--gold);
  color: var(--white);
}

.story-btn--ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
}

.story-btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.story-footer {
  border-top: 1px solid var(--line);
  padding: 28px 24px 36px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}

.story-footer a { color: var(--ink-soft); }

.story-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(25, 23, 19, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.story-lightbox.is-open { display: flex; }

.story-lightbox__img {
  max-width: min(1200px, 96vw);
  max-height: 90vh;
  object-fit: contain;
}

.story-lightbox__close,
.story-lightbox__nav {
  position: absolute;
  border: 0;
  background: transparent;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  padding: 8px 12px;
}

.story-lightbox__close { top: 16px; right: 16px; }
.story-lightbox__nav--prev { left: 12px; top: 50%; transform: translateY(-50%); }
.story-lightbox__nav--next { right: 12px; top: 50%; transform: translateY(-50%); }

@media (max-width: 680px) {
  .story-gallery__row { grid-template-columns: 1fr; }
}
