/* ── Tokens ── */
:root {
  --color-cream: #faf6f1;
  --color-blush: #f3e4dc;
  --color-rose: #c97b84;
  --color-rose-deep: #a85a63;
  --color-sage: #8a9a7b;
  --color-sage-light: #e8ede4;
  --color-ink: #3d2f2f;
  --color-ink-soft: #6b5858;
  --color-white: #ffffff;

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-soft: 0 4px 24px rgba(61, 47, 47, 0.08);
  --shadow-card: 0 8px 32px rgba(61, 47, 47, 0.1);

  --transition: 0.25s ease;
}

/* ── Reset & base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

.gate[hidden],
.site[hidden] {
  display: none !important;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-ink);
  background: var(--color-cream);
  min-height: 100dvh;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Gate (mot de passe) ── */
.gate {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: var(--space-md);
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(201, 123, 132, 0.15), transparent),
    radial-gradient(ellipse 60% 50% at 80% 90%, rgba(138, 154, 123, 0.12), transparent),
    var(--color-cream);
}

.gate__card {
  width: 100%;
  max-width: 400px;
  padding: var(--space-xl) var(--space-lg);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  text-align: center;
  border: 1px solid rgba(201, 123, 132, 0.12);
}

.gate__floral {
  color: var(--color-rose);
  width: 64px;
  margin: 0 auto var(--space-md);
}

.gate__floral svg {
  width: 100%;
  height: auto;
}

.gate__eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-sage);
  margin-bottom: var(--space-xs);
}

.gate__title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--color-ink);
  margin-bottom: var(--space-sm);
}

.gate__hint {
  font-size: 0.9375rem;
  color: var(--color-ink-soft);
  margin-bottom: var(--space-lg);
}

.gate__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.gate__form input {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.875rem 1rem;
  border: 1.5px solid var(--color-blush);
  border-radius: var(--radius-sm);
  background: var(--color-cream);
  color: var(--color-ink);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.gate__form input:focus {
  outline: none;
  border-color: var(--color-rose);
  box-shadow: 0 0 0 3px rgba(201, 123, 132, 0.2);
}

.gate__form button {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.875rem 1.5rem;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--color-rose);
  color: var(--color-white);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.gate__form button:hover {
  background: var(--color-rose-deep);
}

.gate__form button:active {
  transform: scale(0.98);
}

.gate__error {
  margin-top: var(--space-sm);
  font-size: 0.875rem;
  color: var(--color-rose-deep);
}

/* ── Site layout ── */
.site {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 246, 241, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 123, 132, 0.1);
}

.header__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: var(--space-sm) var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-rose-deep);
}

.header__logout {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-blush);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-ink-soft);
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}

.header__logout:hover {
  border-color: var(--color-rose);
  color: var(--color-rose-deep);
}

main {
  flex: 1;
}

/* ── Hero ── */
.hero {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-md) var(--space-xl);
  overflow: hidden;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.hero__eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-sage);
  margin-bottom: var(--space-md);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 8vw, 4.5rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--color-ink);
  margin-bottom: var(--space-md);
}

.hero__title em {
  font-style: italic;
  color: var(--color-rose-deep);
}

.hero__lead {
  font-size: 1.125rem;
  font-weight: 300;
  color: var(--color-ink-soft);
  max-width: 48ch;
  line-height: 1.7;
}

.hero__accent {
  position: absolute;
  top: 0;
  right: -10%;
  width: 320px;
  height: 320px;
  pointer-events: none;
}

.hero__petal {
  position: absolute;
  border-radius: 50% 50% 50% 0;
  opacity: 0.35;
}

.hero__petal--1 {
  width: 180px;
  height: 180px;
  background: var(--color-rose);
  top: 20%;
  right: 10%;
  transform: rotate(25deg);
  animation: float 8s ease-in-out infinite;
}

.hero__petal--2 {
  width: 120px;
  height: 120px;
  background: var(--color-sage);
  top: 50%;
  right: 40%;
  transform: rotate(-15deg);
  animation: float 10s ease-in-out infinite reverse;
}

.hero__petal--3 {
  width: 80px;
  height: 80px;
  background: var(--color-blush);
  top: 10%;
  right: 50%;
  transform: rotate(45deg);
  animation: float 7s ease-in-out infinite 1s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50% { transform: translateY(-12px) rotate(calc(var(--rot, 0deg) + 5deg)); }
}

.hero__petal--1 { --rot: 25deg; }
.hero__petal--2 { --rot: -15deg; }
.hero__petal--3 { --rot: 45deg; }

/* ── Intro quote ── */
.intro {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--space-md) var(--space-xl);
}

.intro__quote {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.625rem);
  font-style: italic;
  font-weight: 400;
  color: var(--color-ink-soft);
  text-align: center;
  max-width: 52ch;
  margin: 0 auto;
  padding: var(--space-lg);
  border-left: 3px solid var(--color-rose);
  background: linear-gradient(90deg, var(--color-blush) 0%, transparent 100%);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* ── Sections ── */
.section-head {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--space-md) var(--space-lg);
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-ink);
  margin-bottom: var(--space-xs);
}

.section-head p {
  color: var(--color-ink-soft);
  font-weight: 300;
}

/* ── Gallery grid ── */
.galleries {
  padding-bottom: var(--space-xl);
}

.gallery-grid {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

.gallery-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(201, 123, 132, 0.08);
  transition: transform var(--transition), box-shadow var(--transition);
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.gallery-card__visual {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-blush), var(--color-sage-light));
}

.gallery-card__visual--alt {
  background: linear-gradient(135deg, #f8e8ec, var(--color-blush));
}

.gallery-card__visual--warm {
  background: linear-gradient(135deg, #f5ebe0, var(--color-sage-light));
}

.gallery-card__icon {
  font-size: 2.5rem;
  opacity: 0.6;
}

.gallery-card__body {
  padding: var(--space-md);
}

.gallery-card__body h3 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.gallery-card__body p {
  font-size: 0.9375rem;
  color: var(--color-ink-soft);
  margin-bottom: var(--space-sm);
}

.gallery-card__badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  background: var(--color-sage-light);
  color: var(--color-sage);
}

.gallery-card--link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.gallery-card__visual--photo {
  height: 200px;
  padding: 0;
  overflow: hidden;
}

.gallery-card__visual--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.gallery-card--link:hover .gallery-card__visual--photo img {
  transform: scale(1.05);
}

.gallery-card__badge--live {
  background: rgba(201, 123, 132, 0.12);
  color: var(--color-rose-deep);
}

/* ── Album photo grid ── */
.album {
  padding-bottom: var(--space-2xl);
}

.photo-grid {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-sm);
}

.photo-grid__item {
  aspect-ratio: 1;
  padding: 0;
  border: none;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  background: var(--color-blush);
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition);
}

.photo-grid__item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.photo-grid__item:focus-visible {
  outline: 2px solid var(--color-rose);
  outline-offset: 2px;
}

.photo-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition);
}

.photo-grid__item:hover img {
  transform: scale(1.04);
}

/* ── Lightbox ── */
body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  background: rgba(61, 47, 47, 0.92);
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox__figure {
  max-width: min(920px, 100%);
  max-height: 90dvh;
  margin: 0;
}

.lightbox__figure img {
  display: block;
  max-width: 100%;
  max-height: calc(90dvh - 3rem);
  margin: 0 auto;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.lightbox__figure figcaption {
  margin-top: var(--space-sm);
  text-align: center;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.85);
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  cursor: pointer;
  transition: background var(--transition);
  line-height: 1;
}

.lightbox__close:hover,
.lightbox__nav:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.22);
}

.lightbox__close {
  top: var(--space-md);
  right: var(--space-md);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.75rem;
}

.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 2rem;
}

.lightbox__nav:disabled {
  opacity: 0.3;
  cursor: default;
}

.lightbox__nav--prev {
  left: var(--space-md);
}

.lightbox__nav--next {
  right: var(--space-md);
}

/* ── Extras ── */
.extras {
  padding-bottom: var(--space-2xl);
}

.extras__grid {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.extra-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.625rem 1.125rem;
  background: var(--color-white);
  border: 1px solid var(--color-blush);
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--color-ink-soft);
}

.extra-chip__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-rose);
}

/* ── Footer ── */
.footer {
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  border-top: 1px solid rgba(201, 123, 132, 0.1);
  background: var(--color-blush);
}

.footer p {
  font-size: 0.9375rem;
  color: var(--color-ink-soft);
}

.footer__heart {
  margin-top: var(--space-xs);
  font-size: 1.25rem;
  color: var(--color-rose);
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .hero {
    padding-top: var(--space-xl);
  }

  .hero__accent {
    opacity: 0.5;
    right: -30%;
  }

  .intro__quote {
    text-align: left;
    padding: var(--space-md);
  }

  .photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  .lightbox__nav--prev {
    left: var(--space-xs);
  }

  .lightbox__nav--next {
    right: var(--space-xs);
  }
}
