/* ── RESET & TOKENS ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

:root {
  --green:  #0E2A19;
  --cream:  #FCEEB0;
  --olive:  #9A9F5F;
  --olive2: #6b7048;
  --ff-script: 'Pinyon Script', cursive;
  --ff-serif:  'Cormorant Garamond', Georgia, serif;
  --container: 1100px;
  --pad: clamp(4.5rem, 9vw, 8rem);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-serif);
  background: var(--green);
  color: var(--cream);
  overflow-x: hidden;
  cursor: default;
}

/* ── ESPERLUETTE — Tangerine ── */
.amp, .hero-amp, .script.hero-amp {
  font-family: 'Tangerine', cursive !important;
  font-weight: 700;
}

/* ── KETE PA — SVG inline via <use href="#kete-pa"> ── */
.ki {
  display: block;
  flex-shrink: 0;
  fill: currentColor;
  overflow: hidden;
  shape-rendering: crispEdges;
}
.ki-light { color: var(--cream); }
.ki-dark  { color: var(--green); }
.ki-olive { color: var(--olive); }
.ki-sm    { width: 56px; height: 56px; }
.ki-lg    { width: 88px; height: 88px; }
.mx-auto  { display: block; margin-inline: auto; }

/* ── SCROLL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.85s cubic-bezier(0.16,1,0.3,1), transform 0.85s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.26s; }
.reveal-delay-3 { transition-delay: 0.42s; }
.reveal-delay-4 { transition-delay: 0.58s; }

/* ── TYPE ── */
.script { font-family: var(--ff-script); font-weight: 400; }

h2 {
  font-family: var(--ff-serif);
  font-weight: 300;
  font-size: clamp(1.5rem, 4vw, 2.6rem);
  letter-spacing: 0.22em;
  text-align: center;
  color: var(--green);
  margin-block: 0 2.5rem;
  text-transform: uppercase;
}
h2.light { color: var(--cream); }

.section-header { display: flex; flex-direction: column; align-items: center; gap: 1.4rem; margin-bottom: 4rem; }
.divider { display: flex; align-items: center; gap: 1.2rem; width: 100%; justify-content: center; }
.divider-line { flex: 1; max-width: 100px; height: 1px; background: var(--olive); opacity: 0.4; }
.section-header h2 { margin-block: 0; }

/* ── LAYOUT ── */
.bg-cream { background: var(--cream); color: var(--green); }
.bg-dark  { background: var(--green); color: var(--cream); }

/* subtle noise texture on dark sections */
.bg-dark { position: relative; }
.bg-dark > * { position: relative; z-index: 1; }
.bg-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='250' height='250'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='250' height='250' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.035;
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding: var(--pad) clamp(1.5rem, 5vw, 4rem);
}

/* ── NAV ── */
#navbar {
  position: fixed;
  inset-block-start: 0; inset-inline: 0;
  z-index: 100;
  transition: background 0.4s, box-shadow 0.4s;
}
#navbar.scrolled {
  background: rgba(14, 42, 25, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(154, 159, 95, 0.18);
}
.nav-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 1.1rem clamp(1.5rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-brand { text-decoration: none; display: flex; align-items: center; }
.nav-logo { height: 44px; width: auto; mix-blend-mode: lighten; display: block; }
.nav-links { list-style: none; display: flex; gap: clamp(1.5rem,3vw,3rem); margin-left: auto; }
.nav-links a {
  font-size: 0.76rem; font-style: italic; letter-spacing: 0.22em;
  color: var(--cream); text-decoration: none; opacity: 0.72;
  transition: opacity 0.2s, color 0.2s; text-transform: uppercase;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0; right: 0;
  height: 1px; background: var(--olive); transform: scaleX(0);
  transition: transform 0.3s ease; transform-origin: center;
}
.nav-links a:hover { opacity: 1; color: var(--olive); }
.nav-links a:hover::after { transform: scaleX(1); }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; margin-left: auto; }
.burger span { display: block; width: 24px; height: 1.5px; background: var(--cream); transition: transform 0.3s, opacity 0.3s; }
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── HERO ── */
#hero {
  min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: var(--green);
  padding: 7rem 2rem 5rem;
  position: relative;
  text-align: center;
  overflow: hidden;
}

/* Large faded Kete Pa behind hero content — carrés solides */

/* Corner brackets */
#hero::after {
  content: '';
  position: absolute;
  inset: 4rem;
  border: 1px solid rgba(154, 159, 95, 0.15);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  display: flex; flex-direction: column;
  align-items: center; gap: 1rem;
  position: relative; z-index: 1;
}
.hero-tagline {
  font-style: italic; font-weight: 300;
  font-size: clamp(0.78rem, 1.3vw, 0.96rem);
  letter-spacing: 0.26em; color: var(--cream); opacity: 0.75;
  animation: fadeUp 1.1s ease both;
}
.hero-names {
  display: flex; flex-direction: column; align-items: center; gap: 0;
  animation: fadeUp 1.1s ease 0.18s both;
}
.hero-names .script { font-size: clamp(4.5rem, 14vw, 10rem); color: var(--cream); line-height: 1.05; }
.hero-amp { font-size: clamp(2.8rem, 7vw, 5.5rem) !important; color: var(--cream) !important; line-height: 1; }

.hero-date {
  font-weight: 500; font-style: italic;
  letter-spacing: 0.26em; font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  color: var(--cream); animation: fadeUp 1.1s ease 0.32s both;
}
.hero-location {
  font-style: italic; letter-spacing: 0.14em;
  font-size: clamp(0.92rem, 1.4vw, 1.1rem);
  color: var(--olive); animation: fadeUp 1.1s ease 0.42s both;
}
.hero-divider {
  width: 50px; height: 1px; background: var(--olive); opacity: 0.45;
  animation: fadeUp 1.1s ease 0.48s both;
}
.hero-countdown {
  font-style: italic; font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  color: var(--cream); opacity: 0.45; letter-spacing: 0.12em;
  animation: fadeUp 1.1s ease 0.54s both;
}
#cdays { font-weight: 500; font-style: normal; }

.kete-fig {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  margin-top: 0.6rem; animation: fadeUp 1.1s ease 0.65s both;
}
.kete-fig figcaption {
  font-style: italic; font-size: 0.7rem; letter-spacing: 0.26em;
  color: var(--cream); opacity: 0.45;
}

.scroll-cue {
  position: absolute; bottom: 2.2rem; left: 50%;
  transform: translateX(-50%);
  color: var(--olive); opacity: 0.55;
  animation: bounce 2.4s ease-in-out infinite;
  text-decoration: none; z-index: 1;
}

@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

/* ── NOTRE HISTOIRE ── */
#histoire { position: relative; overflow: hidden; }

/* PROPOSAL A: Large "10" watermark — unforgettable moment */
#histoire::after {
  content: '10';
  position: absolute;
  font-family: var(--ff-script);
  font-size: clamp(18rem, 38vw, 30rem);
  color: var(--olive);
  opacity: 0.07;
  bottom: -4rem; right: -2rem;
  pointer-events: none;
  user-select: none;
  line-height: 1;
  z-index: 0;
}
#histoire .container { position: relative; z-index: 1; }

.prose { max-width: 680px; margin-inline: auto; text-align: center; }
.prose p {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 2; font-style: italic; font-weight: 300;
  color: var(--green); margin-bottom: 1.8rem;
}
.prose em { font-style: normal; font-weight: 500; }
.prose .highlight {
  font-size: clamp(0.88rem, 1.4vw, 1rem);
  letter-spacing: 0.14em; color: var(--olive2);
  margin-top: 2rem; padding-top: 2rem;
  border-top: 1px solid rgba(154, 159, 95, 0.25);
}

/* PROPOSAL B: Photo frame placeholder */
.photo-placeholder {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 3/4;
  margin: 2.5rem auto 0;
  border: 1px solid rgba(14, 42, 25, 0.2);
  position: relative;
  overflow: hidden;
  background: rgba(154, 159, 95, 0.06);
}
.photo-placeholder::before,
.photo-placeholder::after {
  content: '';
  position: absolute;
  width: 28px; height: 28px;
  border-color: var(--olive);
  border-style: solid;
  opacity: 0.35;
}
.photo-placeholder::before {
  top: 12px; left: 12px;
  border-width: 1px 0 0 1px;
}
.photo-placeholder::after {
  bottom: 12px; right: 12px;
  border-width: 0 1px 1px 0;
}
.photo-placeholder-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-style: italic;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  color: var(--olive2);
  opacity: 0.5;
}
.photo-placeholder-text span {
  font-family: var(--ff-script);
  font-size: 2.5rem;
  opacity: 0.4;
  line-height: 1;
}

/* ── LE LIEU ── */
/* ── IMAGE DE FOND — Le Lieu ── */
#lieu::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('./domaine-rey2.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}

.lieu-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem; align-items: center;
}
.lieu-info h3 {
  font-family: var(--ff-script);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--cream); margin-bottom: 1.2rem;
}
.lieu-info address {
  font-style: italic; font-size: 1rem; line-height: 1.9;
  letter-spacing: 0.06em; color: var(--cream); opacity: 0.78;
  margin-bottom: 2rem;
  border-left: 2px solid var(--olive);
  padding-left: 1rem;
}
.btn-outline {
  display: inline-block; font-style: italic;
  font-size: 0.78rem; letter-spacing: 0.2em;
  color: var(--cream);
  border: 1px solid rgba(154, 159, 95, 0.5);
  padding: 0.8rem 1.8rem; text-decoration: none; text-transform: uppercase;
  transition: border-color 0.25s, background 0.25s, color 0.25s;
  position: relative; overflow: hidden; z-index: 0;
}
.btn-outline::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--olive);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
  z-index: -1;
}
.btn-outline:hover { color: var(--green); border-color: var(--olive); }
.btn-outline:hover::before { transform: scaleX(1); }

.lieu-map iframe { width: 100%; height: 400px; border: none; display: block; }

/* ── LE PROGRAMME ── */
/* PROPOSAL C: Large dramatic hour numbers */

.programme-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0 4rem;
  max-width: 860px;
  margin-inline: auto;
}
.programme-sep {
  background: linear-gradient(to bottom, transparent, rgba(154,159,95,0.35) 20%, rgba(154,159,95,0.35) 80%, transparent);
}

.jour-titre {
  font-family: var(--ff-script);
  font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--green); text-align: center;
  margin-bottom: 0.6rem;
}
.dresscode {
  display: block;
  width: 100%;
  text-align: center;
  font-style: italic;
  font-size: 0.92rem;
  letter-spacing: 0.18em;
  color: var(--olive2);
  margin-bottom: 2rem;
  opacity: 0.85;
  background: rgba(154, 159, 95, 0.28);
  padding: 0.55rem 1rem;
}

.timeline { display: flex; flex-direction: column; }
.tl-item { display: grid; grid-template-columns: 4rem 22px 1fr; gap: 0.8rem; align-items: start; }
.tl-left { text-align: right; padding-top: 4px; }
.tl-left time {
  font-style: normal; font-weight: 300;
  font-size: clamp(1rem, 1.8vw, 1.3rem);   /* dramatic large time */
  color: var(--green); opacity: 0.28;
  letter-spacing: -0.02em;
  line-height: 1;
}
.tl-mid { display: flex; flex-direction: column; align-items: center; }
.tl-dot {
  width: 12px; height: 12px; border-radius: 50%;
  border: 1.5px solid var(--olive);
  background: transparent;
  flex-shrink: 0; margin-top: 8px;
  transition: background 0.2s;
}
.tl-line { width: 1px; flex: 1; min-height: 2.8rem; background: rgba(154,159,95,0.25); margin-top: 4px; }
.tl-right { padding-bottom: 2.5rem; }
.tl-item.last .tl-right { padding-bottom: 0; }
.tl-right strong {
  display: block; font-weight: 500;
  font-size: 1.08rem; color: var(--green);
  letter-spacing: 0.04em; margin-top: 5px;
}
.tl-right span { display: block; font-style: italic; font-size: 0.95rem; color: var(--olive2); margin-top: 0.25rem; }
.tl-note { display: block; font-style: italic; font-size: 0.82rem; color: var(--olive); margin-top: 0.5rem; opacity: 0.85; }

/* ── RSVP ── */
.rsvp-intro {
  font-style: italic; text-align: center; line-height: 1.9;
  letter-spacing: 0.05em; opacity: 0.68; margin-bottom: 3rem; font-size: 1.05rem;
}
form {
  max-width: 560px; margin-inline: auto;
  display: flex; flex-direction: column; gap: 1.8rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form-group { display: flex; flex-direction: column; gap: 0.55rem; }
label {
  font-style: italic; font-size: 0.84rem;
  letter-spacing: 0.2em; color: var(--olive); text-transform: uppercase;
}
.optional { font-style: normal; opacity: 0.4; font-size: 0.72rem; text-transform: none; letter-spacing: 0; color: var(--cream); }

input[type="text"], input[type="email"], select, textarea {
  background: transparent; border: none;
  border-bottom: 1px solid rgba(154,159,95,0.3);
  padding: 0.65rem 0.2rem;
  font-family: var(--ff-serif); font-size: 1rem;
  color: var(--cream); outline: none;
  transition: border-color 0.25s; width: 100%;
  border-radius: 0; -webkit-appearance: none; appearance: none;
}
input:focus, select:focus, textarea:focus { border-bottom-color: var(--olive); }
input::placeholder, textarea::placeholder { color: rgba(252,238,176,0.22); }
select option { background: var(--green); color: var(--cream); }
textarea { resize: vertical; min-height: 80px; }

.radio-group { display: flex; flex-direction: column; gap: 0.85rem; margin-top: 0.3rem; }
.radio-opt {
  display: flex; align-items: center; gap: 0.75rem;
  cursor: pointer; font-style: italic; font-size: 0.95rem; letter-spacing: 0.03em;
}
.radio-opt input[type="radio"] { width: 15px; height: 15px; flex-shrink: 0; accent-color: var(--olive); cursor: pointer; }

.btn-submit {
  margin-top: 0.5rem; padding: 1rem 3rem;
  background: transparent; border: 1px solid rgba(154,159,95,0.55);
  color: var(--cream); font-family: var(--ff-serif);
  font-style: italic; font-size: 0.88rem;
  letter-spacing: 0.24em; cursor: pointer; text-transform: uppercase;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
  align-self: center; position: relative; overflow: hidden;
}
.btn-submit::before {
  content: ''; position: absolute; inset: 0;
  background: var(--olive);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease; z-index: -1;
}
.btn-submit:hover { color: var(--green); border-color: var(--olive); }
.btn-submit:hover::before { transform: scaleX(1); }
.btn-submit:disabled { opacity: 0.4; cursor: not-allowed; }
.form-note { font-size: 0.74rem; font-style: italic; opacity: 0.32; text-align: center; letter-spacing: 0.04em; }

.success-box {
  display: flex; flex-direction: column; align-items: center;
  gap: 1.5rem; padding: 3rem 2rem;
  text-align: center; max-width: 460px; margin-inline: auto;
}
.success-box p { font-style: italic; font-size: 1.1rem; line-height: 1.8; opacity: 0.88; }

/* ── FOOTER ── */
footer {
  background: var(--green); text-align: center;
  padding: 5rem 2rem 4rem;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  border-top: 1px solid rgba(154,159,95,0.12);
  position: relative; overflow: hidden;
}
/* Watermark "2027" in footer */
footer::before {
  content: '2027';
  position: absolute;
  font-family: var(--ff-serif);
  font-size: clamp(10rem, 25vw, 18rem);
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--cream);
  opacity: 0.025;
  bottom: -2rem; left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}
footer > * { position: relative; z-index: 1; }

.footer-kete-label {
  font-style: italic; font-size: 0.68rem; letter-spacing: 0.26em;
  color: var(--olive); opacity: 0.6; text-transform: uppercase;
}
.footer-names {
  font-family: var(--ff-script);
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--cream); line-height: 1.2;
}
.footer-date { font-style: italic; letter-spacing: 0.22em; font-size: 0.8rem; color: var(--olive); opacity: 0.65; }
.footer-logo { height: clamp(80px, 14vw, 140px); width: auto; max-width: 100%; mix-blend-mode: lighten; display: block; margin-inline: auto; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .programme-grid { grid-template-columns: 1fr; }
  .programme-sep { display: none; }
  .programme-grid .jour:last-child { margin-top: 3.5rem; }
}
@media (max-width: 768px) {
  .burger { display: flex; }
  .nav-links {
    position: fixed; top: 0; right: 0; height: 100vh;
    width: min(280px, 80vw); background: var(--green);
    border-left: 1px solid rgba(154,159,95,0.12);
    flex-direction: column; justify-content: center;
    gap: 2.5rem; padding: 2rem;
    transform: translateX(100%); transition: transform 0.32s ease; margin-left: 0;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.05rem; }
  .lieu-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-row { grid-template-columns: 1fr; }
  #hero::after { inset: 2rem; }
  #histoire::after { font-size: clamp(10rem, 45vw, 18rem); opacity: 0.05; }
  footer::before { font-size: clamp(6rem, 25vw, 12rem); }
}
@media (max-width: 480px) {
  .hero-names .script { font-size: clamp(3.5rem, 18vw, 5rem); }
  .hero-amp { font-size: clamp(2.2rem, 12vw, 3.5rem) !important; }
  #hero::after { display: none; }
}
