/* =========================================================
   REYAL STUDIO — Feuille de style partagée
   Couleurs : fond blanc, encre noire, gris discret
   Polices  : Cormorant (titres, esprit fashion) + Inter (texte)
   ========================================================= */

:root {
  --gutter: 8px;            /* gouttière fine de la galerie */
  --bg: #fffcf4;
  --ink: #111111;
  --muted: #6b6b6b;
  --hairline: #e8e8e8;
  --error: #a3352b;        /* brique sourde, accordée au fond ivoire */
  --max: 1100px;           /* largeur de lecture confortable */
  --nav-h: 68px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

.serif { font-family: "Cormorant", serif; }

/* ---------- EN-TÊTE / NAVIGATION ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 clamp(18px, 4vw, 44px);
  z-index: 30;
  color: #fff;
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}

/* état "défilé" ou pages de contenu : juste un voile flouté très léger, pas de fond ni de filet */
.site-header.solid,
.page .site-header {
  background: rgba(255, 252, 244, 0.05);
  color: var(--ink);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  /* fondu en bas : pas de ligne de démarcation nette avec le contenu qui défile dessous */
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 100%);
}

/* les deux moitiés qui encadrent le wordmark, pour le garder centré quel que soit leur contenu */
.header-side {
  flex: 1 1 0;
  display: flex;
  align-items: center;
}
.header-side:last-child { justify-content: flex-end; }

.menu-trigger {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-family: "Anton", sans-serif;
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 2px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  height: 40px;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.wordmark img {
  height: 100%;
  width: auto;
  display: block;
}

/* le logo n'apparaît qu'une fois la bannière passée en blanc (ou sur les pages de contenu) */
.site-header.solid .wordmark,
.page .site-header .wordmark {
  opacity: 1;
}

/* ...et seulement quand on remonte : on le cache dès qu'on défile vers le bas */
.site-header.hide-logo .wordmark {
  opacity: 0;
}

/* ---------- MENU PLEIN ÉCRAN ---------- */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: clamp(100px, 16vw, 160px) clamp(18px, 4vw, 44px) 0;
  overflow: hidden;
  background-color: #17140f;
  transform: translateY(-100%);
  transition: transform 0.7s cubic-bezier(0.76, 0, 0.24, 1);
  pointer-events: none;
}
.menu-overlay.open {
  transform: translateY(0);
  pointer-events: auto;
}
/* grain subtil sur le fond noir */
.menu-overlay::before {
  content: "";
  position: absolute;
  inset: -20%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.06;
  pointer-events: none;
}
.menu-close {
  position: absolute;
  top: clamp(18px, 4vw, 34px);
  right: clamp(18px, 4vw, 44px);
  background: none;
  border: none;
  cursor: pointer;
  font-family: "Anton", sans-serif;
  color: #f2ede2;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px;
  z-index: 1;
}
.menu-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(8px, 1.4vw, 12px);
  z-index: 1;
}
.menu-list a {
  font-family: "Cormorant", serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  color: #f2ede2;
  position: relative;
  padding-bottom: 4px;
}
.menu-list a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}
.menu-list a:hover::after { width: 100%; }

/* ---------- HERO VIDÉO ---------- */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background: #000;
}
.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.22);
}
.hero__title {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  text-align: center;
}
.hero__logo-wrap { line-height: 0; }
.hero__logo {
  width: clamp(150px, 18vw, 300px);
  height: auto;
  display: block;
}
.hero__subtitle {
  margin-top: clamp(2px, 0.6vw, 6px);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  padding-left: 0.32em;
}

/* ---------- GALERIE ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
  padding: var(--gutter) clamp(20px, 9vw, 160px);
  background: var(--bg);
}
.gallery figure {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  cursor: pointer;
  background: #f2f2f2;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.gallery figure:hover img { transform: scale(1.03); }

/* ---------- PAGE GALERIE (index des mariages) ---------- */
.wedding-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 4vw, 56px);
}
.wedding-card { display: block; }
.wedding-card figure {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #f2f2f2;
}
.wedding-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.wedding-card:hover img { transform: scale(1.03); }
.wedding-card figcaption { margin-top: 18px; }
.wedding-card .couple-name {
  font-family: "Cormorant", serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--ink);
}
.wedding-card .wedding-date {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- PAGE MARIAGE (intro + galerie complète) ---------- */
.wedding-intro {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  min-height: 100vh;
  background: var(--bg);
}
.wedding-intro__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 60px) clamp(24px, 6vw, 90px) 60px;
}
.wedding-intro__names {
  font-family: "Cormorant", serif;
  font-weight: 700;
  text-align: left;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
  color: var(--ink);
}
.wedding-intro__meta {
  margin-top: 14px;
  text-align: left;
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.wedding-intro__story {
  margin-top: 32px;
  font-family: "Cormorant", serif;
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.7;
  color: #333;
  max-width: 44ch;
}
.wedding-intro__photo {
  position: relative;
  overflow: hidden;
  background: #000;
}
.wedding-intro__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 900px) {
  .wedding-grid { grid-template-columns: 1fr; }
  .wedding-intro { grid-template-columns: 1fr; }
  .wedding-intro__photo { min-height: 55vh; order: -1; }
  .wedding-intro__text { padding-top: calc(var(--nav-h) + 40px); }
}

/* ---------- CRÉDITS (fin de galerie mariage) ---------- */
.credits {
  padding: clamp(60px, 10vw, 120px) clamp(20px, 6vw, 80px);
  text-align: center;
  background: var(--bg);
}
.credits__kicker {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 30px;
}
.credits__list {
  max-width: 920px;
  margin: 0 auto;
  line-height: 2.6;
}
.credits__item {
  display: inline-block;
  margin: 0 16px;
  white-space: nowrap;
}
.credits__label {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  margin-right: 7px;
}
.credits__value {
  font-family: "Cormorant", serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.3rem;
  color: var(--ink);
}

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(255, 252, 244, 0.98);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 60;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* ---------- BULLE "NOUS CONTACTER" ---------- */
.contact-bubble {
  position: fixed;
  left: 50%;
  bottom: clamp(28px, 5vw, 48px);
  transform: translateX(-50%);
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  padding: 14px 26px;
  border-radius: 6px;
  font-family: "Anton", sans-serif;
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  /* glassmorphism sur la vidéo, devient noir plein une fois qu'on a défilé */
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.14);
  transition: background 0.35s ease, border-color 0.35s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.contact-bubble.solid {
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.22);
}
.contact-bubble:hover {
  transform: translateX(-50%) scale(1.07);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.26);
}

/* ---------- PIED DE PAGE ---------- */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--hairline);
  padding: 56px clamp(18px, 4vw, 44px) 34px;
  color: var(--muted);
  font-size: 0.82rem;
}
.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.site-footer h4 {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--ink);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  margin-bottom: 14px;
}
.site-footer .brand-name {
  display: inline-block;
  height: 46px;
  margin-bottom: 14px;
}
.site-footer .brand-name img {
  height: 100%;
  width: auto;
  display: block;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a:hover { color: var(--ink); }
.footer-bottom {
  max-width: var(--max);
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
}

/* ---------- PAGES DE CONTENU (contact + légal) ---------- */
.page main {
  max-width: var(--max);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 60px) clamp(18px, 5vw, 40px) 80px;
}
.page-narrow main { max-width: 760px; }

.page h1.title {
  font-family: "Cormorant", serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  margin-bottom: 10px;
  transform: scaleX(0.9);
  transform-origin: left;
}
/* variante forte, réservée au titre de la page Contact */
.page h1.title.title--anton {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  transform: none;
}
.page .subtitle {
  color: var(--muted);
  margin-bottom: 48px;
  font-size: 0.95rem;
}
.page h2 {
  font-family: "Cormorant", serif;
  font-weight: 600;
  font-size: 1.35rem;
  margin: 40px 0 12px;
  letter-spacing: 0.02em;
}
.page p, .page li { color: #333; font-size: 0.95rem; }
.page p { margin-bottom: 14px; }
.page ul, .page ol { margin: 0 0 14px 20px; }
.page li { margin-bottom: 6px; }
.placeholder {
  background: #fff6e5;
  border-bottom: 1px solid #f0c96b;
  padding: 0 4px;
  font-style: italic;
  color: #8a6d1f;
}
.page .notice {
  background: #f7f7f5;
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--ink);
  padding: 16px 18px;
  font-size: 0.88rem;
  color: #444;
  margin: 24px 0 40px;
}
.page .updated { color: var(--muted); font-size: 0.8rem; margin-top: 48px; }

/* ---------- FORMULAIRE ---------- */
.form-intro { color: var(--muted); margin-bottom: 40px; font-size: 0.95rem; }
.contact-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 56px;
  align-items: start;
}
.wed-form { display: grid; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input, .field textarea {
  border: none;
  border-bottom: 1px solid var(--hairline);
  background: transparent;
  padding: 9px 2px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.25s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-bottom-color: var(--ink);
}
.field textarea { resize: vertical; min-height: 90px; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] {
  border-bottom-color: var(--error);
}
.field-error {
  font-size: 0.78rem;
  color: var(--error);
  margin-top: -1px;
}
/* Piège à robots : retiré du flux visuel sans être masqué pour les scripts. */
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.btn {
  justify-self: start;
  background: var(--ink);
  color: #fff;
  border: none;
  padding: 14px 34px;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.25s ease;
}
.btn:hover { opacity: 0.85; }
.btn:disabled { opacity: 0.4; cursor: default; }
.form-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
}
.form-status {
  font-size: 0.9rem;
  color: var(--ink);
  padding: 12px 0;
  display: none;
}
.form-status.show { display: block; }
.form-status--error { color: var(--error); }
.form-status--success { border-left: 2px solid var(--ink); padding-left: 14px; }

.contact-aside h3 {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 1rem;
  margin-bottom: 14px;
}
.contact-aside p { color: #333; font-size: 0.92rem; margin-bottom: 10px; }
.contact-aside a { border-bottom: 1px solid var(--hairline); }
.contact-aside a:hover { border-bottom-color: var(--ink); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 768px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .wordmark { height: 30px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  .gallery { grid-template-columns: 1fr; }
}
