/* ── Variables ──────────────────────────────────────────────────────────── */
:root {
  --white:    #ffffff;
  --ivory:    #faf7f2;
  --ivory2:   #f2ede4;
  --dark:     #181410;
  --dark2:    #2c2620;
  --text:     #3a3228;
  --muted:    #9a9080;
  --gold:     #b8924a;
  --gold2:    #d4ac6a;
  --gold3:    #8a6c30;
  --gold-light: rgba(184,146,74,0.12);
  --border:   rgba(184,146,74,0.25);
  --border2:  rgba(184,146,74,0.12);
  --trans:    0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--white);
  color: var(--text);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 17px;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Typographie ────────────────────────────────────────────────────────── */
h1, h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--dark);
}
em { font-style: italic; color: var(--gold); }

/* ── Vidéo intro ────────────────────────────────────────────────────────── */
#video-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#intro-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

#skip-btn {
  position: absolute;
  bottom: max(1.8rem, env(safe-area-inset-bottom, 1.8rem));
  right: 1.8rem;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.4);
  color: rgba(255,255,255,0.8);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.65rem 1.5rem;
  cursor: pointer;
  border-radius: 0;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.3s;
  backdrop-filter: blur(4px);
  /* Zone de tap élargie sur mobile */
  min-height: 44px;
  min-width: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#skip-btn:hover, #skip-btn:active {
  background: rgba(0,0,0,0.55);
  border-color: rgba(255,255,255,0.7);
  color: #fff;
}

.video-fade-out { animation: fadeOut 1s ease forwards; }
@keyframes fadeOut { to { opacity: 0; pointer-events: none; } }

/* ── Contenu principal ──────────────────────────────────────────────────── */
#main-content {
  opacity: 0;
  transition: opacity 1.2s ease;
  background: var(--white);
}
#main-content.visible { opacity: 1; }

/* ── Sections génériques ────────────────────────────────────────────────── */
.section {
  display: none;
  min-height: 100svh;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.2rem 3rem;
  animation: sectionIn 0.7s ease forwards;
}
.section.active { display: flex; }

@keyframes sectionIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.section-inner {
  width: 100%;
  max-width: 580px;
  text-align: center;
}

/* ── Filet doré ─────────────────────────────────────────────────────────── */
.gold-rule {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 1.6rem auto;
  width: fit-content;
}
.gold-rule::before,
.gold-rule::after {
  content: '';
  display: block;
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.gold-rule::after {
  background: linear-gradient(90deg, var(--gold), transparent);
}
.rule-diamond {
  color: var(--gold);
  font-size: 0.45rem;
  letter-spacing: 0.4em;
  opacity: 0.8;
}

.hero-fleur {
  margin: 1.4rem auto 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fleur-de-lys-img {
  width: clamp(36px, 8vw, 54px);
  height: auto;
  opacity: 0.9;
}

/* ══ HERO ════════════════════════════════════════════════════════════════ */
#section-hero {
  flex-direction: column;
  text-align: center;
  padding: 5rem 1.5rem 4rem;
  background: var(--white);
  position: relative;
}

/* Coin décoratif */
#section-hero::before,
#section-hero::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 80px;
  border-color: var(--border);
  border-style: solid;
  opacity: 0.6;
}
#section-hero::before {
  top: 2rem; left: 2rem;
  border-width: 1px 0 0 1px;
}
#section-hero::after {
  bottom: 2rem; right: 2rem;
  border-width: 0 1px 1px 0;
}

.hero-eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2.2rem;
}

.monogram-wrap {
  margin: 0 auto 2rem;
  width: min(220px, 55vw);
  height: auto;
  aspect-ratio: 1.37;
}

.monogram-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-names {
  font-size: clamp(1.5rem, 5.5vw, 3.2rem);
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--dark);
  line-height: 1.1;
  margin-bottom: 0.6rem;
  white-space: nowrap;
}

.hero-amp {
  color: var(--gold);
  font-style: italic;
  font-size: 0.85em;
}

.hero-date {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.hero-location {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1rem;
  font-style: italic;
  color: var(--gold);
  letter-spacing: 0.12em;
  margin-bottom: 2.2rem;
}

.hero-subtitle {
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  color: var(--muted);
  max-width: 360px;
  margin: 0 auto 3rem;
  line-height: 1.9;
  font-style: italic;
}

/* ── Boutons ────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--dark);
  border: 1px solid var(--dark);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  padding: 1.1rem 2.8rem;
  cursor: pointer;
  transition: all 0.35s;
  min-height: 52px;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
}
.btn-primary:hover, .btn-primary:active {
  background: var(--gold);
  border-color: var(--gold);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--gold);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 0.9rem 2.4rem;
  cursor: pointer;
  transition: all 0.3s;
  min-height: 48px;
  -webkit-tap-highlight-color: transparent;
}
.btn-ghost:hover { background: var(--gold-light); border-color: var(--gold); }

.btn-text {
  background: none;
  border: none;
  color: var(--muted);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.3s;
  -webkit-tap-highlight-color: transparent;
  min-height: 44px;
}
.btn-text:hover { color: var(--text); }

/* ── Recherche ──────────────────────────────────────────────────────────── */
#section-search {
  background: var(--ivory);
}

.section-title {
  font-size: clamp(1.8rem, 5.5vw, 2.8rem);
  font-weight: 300;
  margin-bottom: 0.3rem;
  line-height: 1.15;
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
  line-height: 1.85;
  font-style: italic;
}

.search-wrapper {
  display: flex;
  align-items: center;
  border-bottom: 1.5px solid var(--gold3);
  margin: 0 auto 2.5rem;
  max-width: 380px;
  transition: border-color 0.3s;
}
.search-wrapper:focus-within { border-color: var(--gold2); }

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--dark);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.25rem;
  padding: 0.7rem 0;
  letter-spacing: 0.04em;
  /* Fix zoom auto sur iOS */
  font-size: max(1.1rem, 16px);
}
.search-input::placeholder { color: var(--muted); font-style: italic; }

.search-btn {
  background: transparent;
  border: none;
  color: var(--gold);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.5rem 0 0.5rem 1rem;
  transition: transform 0.2s;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.search-btn:hover { transform: translateX(3px); }

/* ── Cartes famille ─────────────────────────────────────────────────────── */
#search-results { text-align: left; }

.family-card {
  background: var(--white);
  border: 1px solid var(--border2);
  padding: 1.8rem 1.5rem 1.2rem;
  margin-bottom: 1.2rem;
  box-shadow: 0 2px 24px rgba(184,146,74,0.06);
}

.family-header {
  margin-bottom: 1.4rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border2);
}

.family-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}

.family-members-hint {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1rem;
  font-style: italic;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ── Sélecteur de groupe ────────────────────────────────────────────────── */
.family-select-hint {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin-bottom: 1.4rem;
}

.family-selector {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border: 1px solid var(--border2);
  padding: 1.2rem 1.4rem;
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: all 0.22s;
  -webkit-tap-highlight-color: transparent;
  min-height: 64px;
}
.family-selector:hover,
.family-selector:active {
  border-color: var(--gold);
  background: var(--ivory);
}
.family-selector .family-name { margin-bottom: 0.2rem; }

.family-selector-arrow {
  color: var(--gold);
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-left: 1rem;
  transition: transform 0.2s;
}
.family-selector:hover .family-selector-arrow { transform: translateX(4px); }

.guest-row {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(0,0,0,0.05);
}
.guest-row:first-of-type { border-top: none; padding-top: 0; }

.guest-identity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.guest-name {
  font-size: 1.1rem;
  color: var(--dark);
  font-weight: 400;
  letter-spacing: 0.03em;
}

.attendance-toggle {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

.toggle-btn {
  background: transparent;
  border: 1px solid rgba(0,0,0,0.12);
  color: var(--muted);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.56rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: all 0.22s;
  min-height: 40px;
  min-width: 80px;
  -webkit-tap-highlight-color: transparent;
}
.toggle-btn.selected-yes {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--white);
}
.toggle-btn.selected-no {
  background: transparent;
  border-color: rgba(180,80,80,0.4);
  color: #b05050;
}

.dietary-row {
  display: none;
  flex-direction: column;
  gap: 0.7rem;
  padding-top: 0.2rem;
  animation: slideDown 0.3s ease;
}
.dietary-row.visible { display: flex; }

.child-menu-row {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.2rem;
  border-top: 1px solid var(--border);
  margin-top: 0.3rem;
  animation: slideDown 0.3s ease;
}
.child-menu-row.visible { display: flex; }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dietary-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.dietary-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.diet-chip {
  background: transparent;
  border: 1px solid rgba(0,0,0,0.1);
  color: var(--muted);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
  min-height: 36px;
  -webkit-tap-highlight-color: transparent;
}
.diet-chip.selected {
  background: var(--gold-light);
  border-color: var(--gold);
  color: var(--gold3);
}

.dietary-note {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  color: var(--text);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: max(1rem, 16px);
  padding: 0.4rem 0;
  width: 100%;
  outline: none;
  font-style: italic;
  transition: border-color 0.3s;
}
.dietary-note::placeholder { color: var(--muted); }
.dietary-note:focus { border-color: var(--gold3); }

/* ── Zone soumission ────────────────────────────────────────────────────── */
#submit-area {
  margin-top: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* ── Email ──────────────────────────────────────────────────────────────── */
#section-email { background: var(--ivory); }

/* ── Confirmation ───────────────────────────────────────────────────────── */
#section-confirmation {
  background: var(--white);
  position: relative;
}
#section-confirmation::before,
#section-confirmation::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 60px;
  border-color: var(--border);
  border-style: solid;
  opacity: 0.5;
}
#section-confirmation::before { top: 2rem; left: 2rem; border-width: 1px 0 0 1px; }
#section-confirmation::after  { bottom: 2rem; right: 2rem; border-width: 0 1px 1px 0; }

.confirmation-monogram {
  width: min(120px, 32vw);
  margin: 0 auto 1.6rem;
}
.confirmation-monogram .monogram-img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.success-title {
  font-size: clamp(2.4rem, 7vw, 3.6rem);
  font-weight: 300;
  color: var(--dark);
  margin-bottom: 0.4rem;
  letter-spacing: 0.08em;
}

.confirmation-email-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border);
  background: var(--ivory);
  padding: 0.7rem 1.4rem;
  margin-top: 1rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--gold3);
}

.success-text {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.9;
  max-width: 340px;
  margin: 0 auto 1.2rem;
}

.success-details {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1.9;
  margin: 0 auto 1.8rem;
}

.success-sign {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.9;
  max-width: 340px;
  margin: 1.2rem auto 0;
  font-style: italic;
}

.success-signature {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  color: var(--muted);
  font-style: italic;
  line-height: 1.9;
  text-align: center;
  margin: 1.8rem auto 0;
}
.success-signature-names {
  font-style: normal;
  color: var(--dark);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.confirmation-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

/* ── Compte à rebours ───────────────────────────────────────────────────── */
#section-countdown {
  flex-direction: column;
  min-height: 100svh;
  background: var(--white);
  text-align: center;
  padding: 5rem 1.5rem 4rem;
  position: relative;
}
#section-countdown::before,
#section-countdown::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 60px;
  border-color: var(--border);
  border-style: solid;
  opacity: 0.5;
}
#section-countdown::before { top: 2rem; left: 2rem; border-width: 1px 0 0 1px; }
#section-countdown::after  { bottom: 2rem; right: 2rem; border-width: 0 1px 1px 0; }

.countdown-eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
}

.countdown-monogram {
  width: min(140px, 38vw);
  height: auto;
  object-fit: contain;
  margin: 0 auto 2rem;
  display: block;
  opacity: 0.9;
}

.countdown-title {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 300;
  color: var(--dark);
  margin-bottom: 0.4rem;
}

.countdown-subtitle {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 340px;
  margin: 0 auto 3rem;
  line-height: 1.85;
  font-style: italic;
}

.countdown-grid {
  display: flex;
  gap: clamp(1rem, 4vw, 2.5rem);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  min-width: 60px;
}

.countdown-number {
  font-size: clamp(2.8rem, 9vw, 5rem);
  font-weight: 300;
  color: var(--dark);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.countdown-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.5rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

.countdown-sep {
  font-size: clamp(2rem, 6vw, 3rem);
  color: var(--gold2);
  padding-top: 0.4rem;
  font-weight: 200;
  opacity: 0.5;
}

/* Venue reveal */
.venue-box {
  border: 1px solid var(--border);
  padding: 2rem 1.5rem;
  max-width: 460px;
  margin: 0 auto 3rem;
  background: var(--ivory);
}

.venue-name {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 300;
  color: var(--dark);
  margin-bottom: 0.7rem;
}

.venue-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.8;
  font-style: italic;
}

/* ── Bouton admin discret ───────────────────────────────────────────────── */
.admin-link {
  position: fixed;
  bottom: max(1.2rem, env(safe-area-inset-bottom, 1.2rem));
  right: 1.4rem;
  color: var(--muted);
  font-size: 0.7rem;
  text-decoration: none;
  opacity: 0.2;
  transition: opacity 0.3s;
  -webkit-tap-highlight-color: transparent;
  padding: 0.6rem;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
}
.admin-link:hover, .admin-link:active { opacity: 0.6; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
footer {
  text-align: center;
  padding: 2rem 1rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.56rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--border2);
}

/* ── Toast ──────────────────────────────────────────────────────────────── */
#notif {
  position: fixed;
  bottom: max(1.5rem, env(safe-area-inset-bottom, 1.5rem));
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--dark);
  color: rgba(255,255,255,0.9);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  padding: 0.9rem 1.8rem;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s;
  z-index: 500;
  white-space: nowrap;
  max-width: calc(100vw - 2rem);
}
#notif.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Responsive mobile-first ────────────────────────────────────────────── */
@media (max-width: 480px) {
  .section { padding: 4rem 1rem 2.5rem; }
  #section-hero { padding: 4rem 1.2rem 3rem; }
  #section-hero::before, #section-hero::after,
  #section-countdown::before, #section-countdown::after { width: 40px; height: 40px; }

  .family-card { padding: 1.4rem 1rem 1rem; }
  .guest-identity { flex-direction: column; align-items: flex-start; }
  .attendance-toggle { align-self: stretch; }
  .toggle-btn { flex: 1; }

  .dietary-options { gap: 0.35rem; }
  .diet-chip { font-size: 0.52rem; padding: 0.4rem 0.7rem; }

  .countdown-sep { display: none; }
  .countdown-grid { gap: 1.2rem; }
  .btn-primary { width: 100%; max-width: 300px; }
}

@media (max-width: 360px) {
  .hero-names { font-size: 1.9rem; }
  .monogram-wrap { width: 48vw; }
}

/* ══════════════════════════════════════════════════════════════════════════ */
/* ══ PHASE 3 — Informations pratiques                                    ══ */
/* ══════════════════════════════════════════════════════════════════════════ */

/* ── Animations phase 3 ──────────────────────────────────────────────────── */
@keyframes p3FadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes p3GoldGlow {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(184,146,74,0.4)); }
  50%       { filter: drop-shadow(0 0 24px rgba(184,146,74,0.85)); }
}
@keyframes p3Shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes p3MonogramIn {
  0%   { opacity: 0; transform: scale(0.82) translateY(12px);
         filter: drop-shadow(0 0 0px rgba(184,146,74,0)); }
  55%  { opacity: 1; transform: scale(1.06) translateY(-3px);
         filter: drop-shadow(0 0 22px rgba(184,146,74,0.65)); }
  80%  { transform: scale(0.97) translateY(0); }
  100% { opacity: 1; transform: scale(1) translateY(0);
         filter: drop-shadow(0 0 12px rgba(184,146,74,0.4)); }
}
@keyframes p3OperaBg {
  from { opacity: 0; transform: scale(1.04); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes p3LineGrow {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}

/* ── Navigation sticky ───────────────────────────────────────────────────── */
.p3-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,247,242,0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.p3-nav::-webkit-scrollbar { display: none; }
.p3-nav a {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.5rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding: 1.1rem 1.2rem;
  white-space: nowrap;
  transition: color 0.25s;
  position: relative;
}
.p3-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; right: 50%;
  height: 1px;
  background: var(--gold);
  transition: left 0.25s, right 0.25s;
}
.p3-nav a:hover { color: var(--gold2); }
.p3-nav a:hover::after { left: 1.2rem; right: 1.2rem; }

/* ── Hero phase 3 ────────────────────────────────────────────────────────── */
.p3-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 1.5rem 3rem;
  background: var(--white);
  position: relative;
  overflow: hidden;
}
.p3-hero::before, .p3-hero::after {
  content: '';
  position: absolute;
  width: 90px; height: 90px;
  border-color: var(--border);
  border-style: solid;
  opacity: 0.5;
  pointer-events: none;
}
.p3-hero::before { top: 2rem; left: 2rem; border-width: 1px 0 0 1px; }
.p3-hero::after  { bottom: 2rem; right: 2rem; border-width: 0 1px 1px 0; }

/* Filigrane opéra — arrière-plan absolu */
.p3-opera-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  animation: p3OperaBg 2s cubic-bezier(0.22,1,0.36,1) 0.2s both;
}
.p3-opera-bg img {
  width: min(820px, 140vw);
  height: auto;
  opacity: 0.12;
  filter: brightness(0) saturate(100%)
          invert(68%) sepia(38%) saturate(520%)
          hue-rotate(4deg) brightness(88%) contrast(90%);
}

/* Wrapper contenu hero — au-dessus du filigrane */
.p3-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Monogramme animé */
.p3-monogram-wrap {
  position: relative;
  margin: 0 auto 1rem;
  width: min(180px, 44vw);
  animation: p3MonogramIn 1.6s cubic-bezier(0.22,1,0.36,1) forwards,
             p3GoldGlow 5s ease-in-out 1.8s infinite;
}
.p3-monogram-wrap img {
  width: 100%;
  display: block;
  mix-blend-mode: multiply;
}

/* Titre lieu */
.p3-venue-reveal {
  margin: 0.8rem 0 0.5rem;
  animation: p3FadeUp 0.9s cubic-bezier(0.22,1,0.36,1) 0.6s both;
}
.p3-venue-eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.52rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.p3-venue-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.6rem, 7.5vw, 4.6rem);
  font-weight: 300;
  color: var(--dark);
  letter-spacing: 0.04em;
  line-height: 1.05;
  margin-bottom: 0.8rem;
}
/* Effet shimmer doré animé sur le titre */
.p3-venue-name em {
  background: linear-gradient(90deg,
    var(--gold3) 0%, var(--gold2) 30%,
    #f0d090 50%, var(--gold2) 70%, var(--gold3) 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: p3Shimmer 5s linear 1.8s infinite;
}
.p3-venue-address {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.55rem;
  letter-spacing: 0.28em;
  color: var(--gold);
  text-transform: uppercase;
  margin-top: 0.5rem;
}
.p3-venue-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 300;
  font-style: italic;
  color: var(--muted);
  letter-spacing: 0.03em;
  margin-top: 0.9rem;
}
.p3-date-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.52rem;
  letter-spacing: 0.4em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 2.2rem;
}
/* Countdown dans hero */
.p3-hero .countdown-grid {
  animation: p3FadeUp 0.9s cubic-bezier(0.22,1,0.36,1) 0.9s both;
}
/* Indicateur scroll */
.p3-scroll-hint {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  animation: p3FadeUp 1s ease 1.6s both;
}
.p3-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  transform-origin: top;
  animation: p3LineGrow 1.2s ease 2.2s both;
}
.p3-scroll-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.46rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Sections communes ───────────────────────────────────────────────────── */
.p3-section {
  padding: 6rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--white);
}
.p3-section-alt { background: var(--ivory); }

.p3-eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.5rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.p3-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-weight: 300;
  color: var(--dark);
  letter-spacing: 0.05em;
  line-height: 1.15;
  margin-bottom: 0;
}
.p3-section-note {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  color: var(--muted);
  max-width: 460px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  font-style: italic;
}

/* ── Timeline programme ──────────────────────────────────────────────────── */
.p3-timeline {
  width: 100%;
  max-width: 440px;
  margin-top: 2.5rem;
  position: relative;
}
/* Ligne verticale — ancrée sur la colonne centrale */
.p3-timeline::before {
  content: '';
  position: absolute;
  left: calc(5rem + 1.2rem);   /* fin col-temps + centre col-dot */
  top: 0.8rem;
  bottom: 0.8rem;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold) 10%, var(--gold) 90%, transparent);
  opacity: 0.35;
}
/* Grille 3 colonnes : heure | point | texte */
.p3-timeline-item {
  display: grid;
  grid-template-columns: 5rem 2.4rem 1fr;
  align-items: center;
  padding: 1rem 0;
}
/* Heure */
.p3-time {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-align: right;
  padding-right: 0.2rem;
}
/* Point sur la frise */
.p3-tl-dot {
  display: flex;
  align-items: center;
  justify-content: center;
}
.p3-tl-dot::after {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--white);
  border: 1px solid var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 7px rgba(184,146,74,0.35);
  flex-shrink: 0;
}
/* Texte événement */
.p3-event {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--dark);
  text-align: left;
  line-height: 1.35;
  padding-left: 0.4rem;
}
/* Dernière ligne atténuée */
.p3-timeline-end .p3-time  { color: var(--muted); }
.p3-timeline-end .p3-event { color: var(--muted); font-style: italic; font-size: 0.95rem; }
.p3-timeline-end .p3-tl-dot::after {
  border-color: var(--border);
  box-shadow: none;
  background: var(--ivory);
}

/* ── Tenue (dress code) ──────────────────────────────────────────────────── */
.p3-dress-wrap {
  margin-top: 2.8rem;
  text-align: center;
  max-width: 480px;
}
.p3-dress-main {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 300;
  color: var(--dark);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.p3-dress-note {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--muted);
  font-style: italic;
  line-height: 1.8;
}

/* ── Infos pratiques ─────────────────────────────────────────────────────── */
.p3-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  width: 100%;
  max-width: 560px;
  margin-top: 2.5rem;
  text-align: left;
  border: 1px solid var(--border);
  background: var(--border);
}
.p3-info-block {
  padding: 1.8rem 1.6rem;
  background: var(--white);
  transition: background 0.25s;
}
.p3-info-block:hover { background: var(--ivory); }
.p3-info-block-link {
  text-decoration: none;
  cursor: pointer;
  display: block;
}
.p3-info-block-link:hover { background: var(--ivory); }
.p3-info-block-link .p3-info-text { color: var(--text); }
/* Bloc pleine largeur (Parking) */
.p3-info-block-full { grid-column: 1 / -1; }
.p3-info-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.48rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}
.p3-info-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.75;
}
.p3-info-text strong { color: var(--dark); font-weight: 400; }
.p3-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.8rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.5rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s, gap 0.2s;
}
.p3-link:hover { color: var(--gold3); gap: 0.5rem; }

/* ── Carousel hôtels ─────────────────────────────────────────────────────── */
.p3-carousel-wrap {
  width: 100%;
  max-width: 800px;
}
.p3-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 1.4rem;
  padding: 0.5rem 0.2rem 1rem;
}
.p3-carousel::-webkit-scrollbar { display: none; }
.p3-carousel .p3-hotel-card {
  min-width: min(260px, 78vw);
  flex-shrink: 0;
  scroll-snap-align: start;
}
.p3-carousel-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  margin-top: 0.8rem;
}
.p3-carousel-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--gold);
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
  line-height: 1;
}
.p3-carousel-btn:hover {
  background: var(--gold-light);
  border-color: rgba(184,146,74,0.5);
  transform: scale(1.07);
}

/* ── Cartes hôtels ───────────────────────────────────────────────────────── */
.p3-hotel-card {
  border: 1px solid var(--border);
  padding: 1.8rem 1.6rem;
  text-align: left;
  background: var(--white);
  position: relative;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  overflow: hidden;
}
.p3-hotel-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold3), var(--gold2));
  transition: width 0.4s ease;
}
.p3-hotel-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(184,146,74,0.1);
}
.p3-hotel-card:hover::before { width: 100%; }
.p3-hotel-featured {
  border-color: rgba(184,146,74,0.4);
  background: var(--ivory2);
}
.p3-hotel-featured::before { width: 100%; }
.p3-hotel-tier {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.47rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}
.p3-hotel-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--dark);
  line-height: 1.25;
  margin-bottom: 0.25rem;
}
.p3-hotel-stars {
  font-size: 0.65rem;
  color: var(--gold2);
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}
.p3-hotel-addr {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.58rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 1rem;
}

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.p3-faq {
  width: 100%;
  max-width: 600px;
  margin-top: 2.5rem;
  text-align: left;
}
.p3-faq-item { border-bottom: 1px solid var(--border); }
.p3-faq-item:first-child { border-top: 1px solid var(--border); }
.p3-faq-q {
  width: 100%;
  background: transparent;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.4rem 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--dark);
  cursor: pointer;
  text-align: left;
  line-height: 1.4;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s;
}
.p3-faq-q:hover { color: var(--gold); }
.p3-faq-icon {
  width: 20px; height: 20px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform 0.3s, border-color 0.2s, background 0.2s;
  font-weight: 300;
  font-family: 'Montserrat', sans-serif;
}
.p3-faq-item.open .p3-faq-icon {
  transform: rotate(45deg);
  background: var(--gold-light);
  border-color: var(--gold);
}
.p3-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.22,1,0.36,1);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.85;
}
.p3-faq-item.open .p3-faq-a { max-height: 260px; }
.p3-faq-a-inner { padding-bottom: 1.4rem; }

/* ── Formulaire contact ──────────────────────────────────────────────────── */
.p3-form {
  width: 100%;
  max-width: 500px;
  margin: 2.5rem auto 0;
  text-align: left;
}
.p3-form-field { margin-bottom: 1.8rem; }
.p3-form-label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.48rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}
.p3-form-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  padding: 0.55rem 0;
  outline: none;
  transition: border-color 0.3s;
  -webkit-appearance: none;
}
.p3-form-input::placeholder { color: var(--border); font-style: italic; }
.p3-form-input:focus { border-bottom-color: var(--gold); }
.p3-form-textarea { resize: none; min-height: 100px; line-height: 1.7; }
.p3-form-submit { text-align: center; margin-top: 0.8rem; }
.p3-form-btn { width: min(100%, 320px); }
.p3-contact-status {
  margin-top: 1.2rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem;
  text-align: center;
  color: var(--gold);
  font-style: italic;
  line-height: 1.6;
}

/* ── Footer phase 3 ──────────────────────────────────────────────────────── */
.p3-footer-admin {
  display: block;
  margin-top: 1.2rem;
  color: var(--border);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.p3-footer-admin:hover { color: var(--gold); }
.p3-footer {
  text-align: center;
  padding: 2.5rem 1rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.5rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: var(--ivory);
}

/* ── Mobile phase 3 ──────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .p3-nav a { padding: 0.9rem 0.7rem; font-size: 0.43rem; letter-spacing: 0.18em; }
  .p3-section { padding: 4.5rem 1.2rem; }
  .p3-hero::before, .p3-hero::after { display: none; }
  /* Timeline mobile */
  .p3-timeline { max-width: 100%; }
  .p3-timeline::before { left: calc(4rem + 1.2rem); }
  .p3-timeline-item { grid-template-columns: 4rem 2.4rem 1fr; }
  .p3-time { font-size: 0.55rem; }
  /* Info grid mobile */
  .p3-info-grid { grid-template-columns: 1fr; }
  .p3-info-block-full { grid-column: auto; }
  /* Carousel mobile */
  .p3-carousel .p3-hotel-card { min-width: min(240px, 82vw); }
}
