/* ============================================================
   Donna & Ance — Wedding Web Experience
   Design System (from Figma: Lsb0PaxtwBhEhTfpTHpakb)
   ============================================================ */

:root {
  /* Primary palette — terracotta & gold */
  --terracotta:       #9A452E;
  --terracotta-dark:  #713022;
  --terracotta-light: #C87558;
  --copper:           #B66A4D;
  --gold:             #C79A52;

  /* Neutral & canvas */
  --cream:  #F8F1E8;
  --ivory:  #FCF9F4;
  --beige:  #E8D8C7;
  --ink:    #38251F;
  --white:  #FFFFFF;

  /* Derived tints */
  --ink-60: rgba(56, 37, 31, .60);
  --ink-45: rgba(56, 37, 31, .45);
  --terracotta-08: rgba(154, 69, 46, .08);
  --terracotta-14: rgba(154, 69, 46, .14);

  /* Typography */
  --font-head:   "Cormorant Garamond", Georgia, serif;
  --font-body:   "Inter", system-ui, -apple-system, sans-serif;
  --font-script: "Parisienne", cursive;

  /* Radius */
  --r-sm: 4px;  --r-md: 8px;  --r-lg: 12px;
  --r-xl: 16px; --r-2xl: 24px; --r-full: 99px;

  /* Spacing scale */
  --s-2xs: 4px; --s-xs: 8px;  --s-sm: 12px; --s-md: 16px;
  --s-lg: 24px; --s-xl: 32px; --s-2xl: 48px; --s-3xl: 64px; --s-4xl: 80px;

  /* Elevation */
  --sh-subtle:   0 2px 8px  rgba(56, 37, 31, .04);
  --sh-card:     0 4px 16px rgba(56, 37, 31, .08);
  --sh-elevated: 0 8px 32px rgba(56, 37, 31, .12);

  --maxw: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ivory);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.1;
  margin: 0;
  color: var(--ink);
}

.script { font-family: var(--font-script); font-weight: 400; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s-lg); }

/* ---------- Section headings ---------- */
.section-head { text-align: center; margin-bottom: var(--s-2xl); }
.section-head h2 {
  font-size: 42px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--terracotta); font-weight: 500;
}
.section-head .subtitle {
  font-family: var(--font-head); font-style: italic; font-size: 18px;
  color: var(--ink-60); margin-top: var(--s-xs);
}
.section-head .rule {
  width: 56px; height: 2px; background: var(--gold);
  margin: var(--s-md) auto 0; border: 0;
}

.eyebrow {
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--terracotta); font-weight: 600;
}

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(252, 249, 244, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(56, 37, 31, .06);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s-md) var(--s-lg);
}
.brand {
  font-family: var(--font-head); font-size: 24px; letter-spacing: 3px;
  color: var(--ink); font-weight: 600;
}
.brand .amp { font-family: var(--font-script); color: var(--terracotta); letter-spacing: 0; }

.nav-links { display: flex; align-items: center; gap: var(--s-xl); list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--ink-60); font-weight: 500; padding: 6px 0; position: relative;
  transition: color .2s;
}
.nav-links a:hover { color: var(--terracotta); }
.nav-links a.active { color: var(--terracotta); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--terracotta);
}

.live-pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--terracotta); color: var(--white);
  padding: 8px 16px; border-radius: var(--r-full);
  font-size: 12px; letter-spacing: 1.5px; font-weight: 600;
}
.live-pill .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--white);
  animation: pulse 1.4s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; color: var(--ink); }
.nav-toggle svg { width: 26px; height: 26px; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: 12px; letter-spacing: 1.5px;
  text-transform: uppercase; font-weight: 600; cursor: pointer;
  border-radius: var(--r-full); padding: 12px 22px; border: 0;
  transition: all .2s; white-space: nowrap;
}
.btn-primary { background: var(--terracotta); color: var(--white); }
.btn-primary:hover { background: var(--terracotta-dark); }
.btn-secondary { background: transparent; color: var(--terracotta); border: 1.5px solid var(--terracotta); }
.btn-secondary:hover { background: var(--terracotta); color: var(--white); }
.btn-ghost { background: transparent; color: var(--terracotta); padding: 8px 4px; letter-spacing: 1px; }
.btn-ghost:hover { color: var(--terracotta-dark); }
.btn-ondark { background: var(--white); color: var(--terracotta); }

/* ============================================================
   Badges
   ============================================================ */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; letter-spacing: 1px; text-transform: uppercase; font-weight: 600;
  padding: 5px 12px; border-radius: var(--r-full);
}
.badge-status { background: var(--terracotta); color: var(--white); }
.badge-counter { background: var(--terracotta-08); color: var(--terracotta); }
.badge-outline { background: transparent; color: var(--terracotta); border: 1px solid var(--terracotta); }
.badge-soft { background: var(--beige); color: var(--terracotta-dark); }

/* ============================================================
   Cards
   ============================================================ */
.card {
  background: var(--white); border-radius: var(--r-xl);
  box-shadow: var(--sh-card); padding: var(--s-lg);
}
.card-filled { background: var(--terracotta); color: var(--white); }
.card-filled h3, .card-filled h4 { color: var(--white); }
.card-outline { background: transparent; border: 1px solid rgba(56,37,31,.10); box-shadow: none; }

/* ============================================================
   Timeline
   ============================================================ */
.dot {
  flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--white); border: 2px solid var(--beige);
}
.dot-completed { width: 32px; height: 32px; background: var(--terracotta); border-color: var(--terracotta); color: var(--white); }
.dot-active {
  width: 40px; height: 40px; border: 3px solid var(--terracotta); background: var(--white);
  box-shadow: 0 0 0 5px var(--terracotta-14);
}
.dot-active::after { content:""; width: 16px; height: 16px; border-radius: 50%; background: var(--terracotta); }
.dot-upcoming { width: 32px; height: 32px; background: var(--white); border-color: var(--beige); }
.dot-completed svg { width: 15px; height: 15px; }

/* ============================================================
   Icon chip
   ============================================================ */
.icon-chip {
  flex: none; width: 44px; height: 44px; border-radius: var(--r-lg);
  display: grid; place-items: center; background: var(--terracotta-08);
  color: var(--terracotta);
}
.icon-chip svg { width: 20px; height: 20px; }
.icon-chip.filled { background: var(--terracotta); color: var(--white); }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--terracotta-dark); color: var(--cream);
  text-align: center; padding: var(--s-4xl) var(--s-lg);
}
.footer .script-big {
  font-family: var(--font-script); color: var(--gold);
  font-size: 38px; line-height: 1.3;
}
.footer .heart { color: var(--gold); margin: var(--s-md) 0; font-size: 18px; }
.footer .mono {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  font-family: var(--font-head); letter-spacing: 6px; color: var(--cream);
  margin: var(--s-md) 0 var(--s-2xl);
}
.footer .mono::before, .footer .mono::after {
  content: ""; width: 40px; height: 1px; background: rgba(248,241,232,.4);
}
.footer-nav { display: flex; flex-wrap: wrap; gap: var(--s-lg); justify-content: center; margin-bottom: var(--s-2xl); }
.footer-nav a {
  font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(248,241,232,.85);
}
.footer-nav a:hover { color: var(--white); }
.footer-legal {
  display: flex; justify-content: space-between; gap: var(--s-md); flex-wrap: wrap;
  border-top: 1px solid rgba(248,241,232,.15); padding-top: var(--s-lg);
  font-size: 12px; color: rgba(248,241,232,.55); max-width: var(--maxw); margin: 0 auto;
}

/* ============================================================
   Utility
   ============================================================ */
.section { padding: var(--s-4xl) 0; }
.text-center { text-align: center; }
.muted { color: var(--ink-60); }
.small { font-size: 14px; }
.tiny { font-size: 12px; }

/* ============================================================
   Responsive
   ============================================================ */
/* ============================================================
   Icons
   ============================================================ */
.icon { display: inline-flex; }
.icon svg { display: block; }

/* ============================================================
   HOME — Hero
   ============================================================ */
/* Split hero (fallback / non-home) */
.hero {
  background: var(--cream);
  position: relative; overflow: hidden;
}
.hero-inner {
  max-width: var(--maxw); margin: 0 auto; padding: var(--s-3xl) var(--s-lg);
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2xl); align-items: center;
}
.hero-copy .eyebrow { margin-bottom: var(--s-md); display: block; }
.hero-title {
  font-size: clamp(56px, 8vw, 104px); line-height: .95; letter-spacing: 1px;
  text-transform: uppercase; font-weight: 600;
}
.hero-title .amp { color: var(--terracotta); }
.hero-date {
  font-family: var(--font-head); font-style: italic; letter-spacing: 4px;
  font-size: 20px; color: var(--ink); margin: var(--s-lg) 0 var(--s-sm); text-transform: uppercase;
}
.hero-heart { color: var(--terracotta); font-size: 18px; }
.hero-quote { font-family: var(--font-head); font-style: italic; font-size: 18px; color: var(--ink-60); margin-top: var(--s-xs); }
.hero-inner > * { position: relative; z-index: 1; }

/* ---------- Full-bleed hero (home) ---------- */
.home .hero {
  min-height: 92vh;
  background-size: cover;
  background-position: 58% 20%;
  background-repeat: no-repeat;
  display: flex; align-items: center; overflow: hidden;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(105deg,
      rgba(93,38,26,.95) 0%,
      rgba(101,42,29,.86) 26%,
      rgba(113,48,34,.55) 46%,
      rgba(113,48,34,.12) 66%,
      rgba(113,48,34,0) 82%),
    linear-gradient(to bottom, rgba(56,25,17,.35) 0%, rgba(56,25,17,0) 22%);
}
.home .hero-inner { grid-template-columns: 1fr; padding-top: 132px; padding-bottom: var(--s-3xl); }
.home .hero-copy { max-width: 620px; }
.home .eyebrow { color: var(--gold); margin-bottom: var(--s-md); display: block; }
.home .hero-title {
  font-size: clamp(64px, 10vw, 118px); line-height: .9; color: var(--cream);
}
.home .hero-title .amp {
  display: block; font-family: var(--font-script); color: var(--gold);
  text-transform: none; letter-spacing: 0; font-size: .72em; line-height: 1;
  margin: 2px 0; font-weight: 400;
}
.home .hero-date { color: var(--cream); margin-top: var(--s-lg); }
.home .hero-heart { color: var(--gold); }
.home .hero-quote { color: rgba(248,241,232,.82); }

/* ---------- Transparent → solid nav over home hero ---------- */
.home .nav {
  position: fixed; top: 0; left: 0; right: 0;
  background: transparent; backdrop-filter: none; border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.home .nav .brand,
.home .nav .nav-links > li > a { color: var(--cream); }
.home .nav .nav-links > li > a:hover,
.home .nav .nav-links > li > a.active { color: #fff; }
.home .nav .nav-links > li > a.active::after { background: var(--gold); }
.home .nav .nav-toggle { color: var(--cream); }
.home .nav.solid {
  background: rgba(252,249,244,.94); backdrop-filter: blur(10px);
  border-bottom-color: rgba(56,37,31,.06); box-shadow: var(--sh-subtle);
}
.home .nav.solid .brand,
.home .nav.solid .nav-links > li > a { color: var(--ink-60); }
.home .nav.solid .brand { color: var(--ink); }
.home .nav.solid .nav-links > li > a:hover,
.home .nav.solid .nav-links > li > a.active { color: var(--terracotta); }
.home .nav.solid .nav-links > li > a.active::after { background: var(--terracotta); }
.home .nav.solid .nav-toggle { color: var(--ink); }

/* ---------- Countdown ---------- */
.countdown { background: var(--cream); padding: var(--s-3xl) 0; }
.countdown-label {
  text-align: center; letter-spacing: 3px; text-transform: uppercase; font-size: 12px;
  color: var(--terracotta); font-weight: 600; margin-bottom: var(--s-lg);
}
.countdown-grid {
  display: flex; justify-content: center; align-items: flex-start; gap: var(--s-lg);
  flex-wrap: wrap; max-width: 640px; margin: 0 auto;
}
.cd-unit { text-align: center; min-width: 84px; }
.cd-unit .num { font-family: var(--font-head); font-size: 56px; color: var(--terracotta); font-weight: 500; line-height: 1; }
.cd-unit .lbl { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-60); margin-top: 6px; }
.cd-sep { font-family: var(--font-head); font-size: 40px; color: var(--beige); padding-top: 8px; }

/* ---------- Live "en ce moment" strip ---------- */
.now-card { margin: 0 auto; max-width: var(--maxw); }
.now-head { display: flex; align-items: center; gap: 8px; margin-bottom: var(--s-md); }
.now-head .badge { }
.now-timeline { display: flex; align-items: flex-start; gap: var(--s-sm); overflow-x: auto; padding-bottom: var(--s-xs); }
.now-step { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 92px; text-align: center; position: relative; }
.now-step .t { font-size: 12px; font-weight: 600; color: var(--ink); }
.now-step .lab { font-size: 11px; color: var(--ink-45); line-height: 1.25; }
.now-step.is-active .t { color: var(--terracotta); }
.now-connector { flex: 1; height: 2px; background: var(--beige); margin-top: 15px; min-width: 12px; }
.now-connector.done { background: var(--terracotta); }
.progress-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-md); margin-top: var(--s-md); flex-wrap: wrap; }
.progress-bar { flex: 1; height: 6px; background: var(--beige); border-radius: var(--r-full); overflow: hidden; min-width: 160px; }
.progress-bar > span { display: block; height: 100%; background: var(--terracotta); border-radius: inherit; }

/* ---------- Next-step cards ---------- */
.next-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-lg); max-width: var(--maxw); margin: var(--s-lg) auto 0; }
.next-card { display: flex; flex-direction: column; gap: var(--s-md); }
.next-card .top { display: flex; align-items: center; justify-content: space-between; }
.next-card .lab { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; font-weight: 600; opacity: .8; }
.next-card .body { display: flex; align-items: center; gap: var(--s-md); }
.next-card h3 { font-size: 24px; }
.next-card .meta { font-size: 13px; opacity: .85; margin-top: 4px; }

/* ---------- Home photo grid ---------- */
.home-photos-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-md); margin-bottom: var(--s-lg); flex-wrap: wrap; }
.home-photos-head .title { display: flex; align-items: center; gap: 12px; }
.home-photos-head h2 { font-size: 30px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink); font-weight: 500; }
.photo-mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: var(--s-md); }
.photo-mosaic .tile { overflow: hidden; border-radius: var(--r-lg); cursor: pointer; position: relative; background: var(--beige); }
.photo-mosaic .tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.photo-mosaic .tile:hover img { transform: scale(1.05); }
.photo-mosaic .wide { grid-column: span 2; }
.tile-count { position: absolute; right: 10px; bottom: 10px; background: rgba(56,37,31,.65); color: #fff; font-size: 12px; padding: 4px 10px; border-radius: var(--r-full); display: flex; align-items: center; gap: 6px; }

/* ---------- Home 3-column summary ---------- */
.summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-lg); }
.summary-grid h4 { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--terracotta); margin-bottom: var(--s-md); font-family: var(--font-body); font-weight: 700; }
.mot { font-family: var(--font-head); font-style: italic; font-size: 16px; line-height: 1.7; color: var(--ink); }
.mot-sign { font-family: var(--font-script); font-size: 26px; color: var(--terracotta); margin-top: var(--s-md); }
.venue-list { list-style: none; margin: var(--s-md) 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.venue-list li { display: flex; gap: 12px; align-items: flex-start; }
.venue-num { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--terracotta); color: #fff; font-size: 11px; display: grid; place-items: center; font-weight: 600; }
.venue-list b { font-size: 14px; }
.venue-list span { font-size: 12px; color: var(--ink-60); display: block; }
.info-line { display: flex; gap: 12px; align-items: flex-start; margin-bottom: var(--s-md); }
.info-line .icon-chip { width: 36px; height: 36px; border-radius: var(--r-md); }
.info-line .icon-chip svg { width: 16px; height: 16px; }
.info-line .k { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-45); }
.info-line .v { font-size: 14px; }
.mini-map { border-radius: var(--r-md); overflow: hidden; margin-bottom: var(--s-md); border: 1px solid var(--beige); }

/* ============================================================
   PROGRAMME — timeline
   ============================================================ */
.prog-section { margin-bottom: var(--s-2xl); }
.prog-section > h3 {
  font-size: 30px; letter-spacing: 2px; text-transform: uppercase; color: var(--terracotta);
  font-weight: 500; margin-bottom: 4px;
}
.prog-venue {
  display: flex; align-items: center; gap: 7px; margin: 0 0 var(--s-lg);
  font-size: 13px; letter-spacing: .5px; color: var(--ink-60);
}
.prog-venue i { color: var(--terracotta); }
.timeline { position: relative; }
.tl-item { display: grid; grid-template-columns: 40px 110px 1fr 60px; gap: var(--s-md); align-items: center; padding: var(--s-md) 0; position: relative; }
.tl-rail { display: flex; flex-direction: column; align-items: center; align-self: stretch; }
.tl-line { width: 2px; flex: 1; background: repeating-linear-gradient(var(--beige) 0 4px, transparent 4px 8px); min-height: 20px; }
.tl-time { font-family: var(--font-body); font-weight: 700; font-size: 15px; color: var(--ink); }
.tl-body h4 { font-size: 20px; }
.tl-body p { margin: 2px 0 0; font-size: 14px; color: var(--ink-60); }
.tl-item.is-active { background: var(--white); border-radius: var(--r-lg); box-shadow: var(--sh-card); padding: var(--s-md) var(--s-lg); }
.tl-item.is-active .tl-body h4 { color: var(--terracotta); }
.tl-icon { display: grid; place-items: center; }

/* ============================================================
   LIEUX
   ============================================================ */
.lieux-layout { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-lg); align-items: start; }
.venue-cards { display: flex; flex-direction: column; gap: var(--s-md); }
.venue-card { display: grid; grid-template-columns: 44px 1fr auto; gap: var(--s-md); align-items: center; }
.venue-card .idx { width: 44px; height: 44px; border-radius: 50%; background: var(--cream); display: grid; place-items: center; font-family: var(--font-head); font-size: 18px; color: var(--terracotta); }
.venue-card .cat { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--terracotta); font-weight: 600; }
.venue-card h4 { font-size: 20px; margin: 2px 0; }
.venue-card .addr { font-size: 13px; color: var(--ink-60); }
.map-panel { position: relative; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-card); min-height: 520px; background: var(--beige); }
.map-panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.map-overlay { position: absolute; top: 16px; left: 16px; background: var(--white); border-radius: var(--r-lg); padding: 12px 16px; box-shadow: var(--sh-card); }
.map-overlay .eyebrow { display: flex; align-items: center; gap: 6px; }
.map-overlay b { display: block; font-family: var(--font-head); font-size: 18px; margin-top: 4px; }
.map-marker { position: absolute; width: 30px; height: 30px; border-radius: 50% 50% 50% 0; background: var(--terracotta); transform: rotate(-45deg); display: grid; place-items: center; box-shadow: var(--sh-card); }
.map-marker span { transform: rotate(45deg); color: #fff; font-size: 12px; font-weight: 700; }
.leaflet-num-pin { background: none; border: 0; }
.leaflet-num-pin .pin {
  display: grid; place-items: center; width: 30px; height: 30px;
  background: var(--terracotta); border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg); box-shadow: 0 2px 6px rgba(0,0,0,.35); border: 2px solid #fff;
}
.leaflet-num-pin .pin b { transform: rotate(45deg); color: #fff; font-weight: 700; font-size: 13px; }

/* ============================================================
   PHOTOS
   ============================================================ */
.filter-bar { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: var(--s-2xl); }
.filter-bar button {
  font-family: var(--font-body); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; font-weight: 600;
  padding: 9px 18px; border-radius: var(--r-full); border: 1px solid var(--beige); background: var(--white); color: var(--ink-60); cursor: pointer; transition: all .2s;
}
.filter-bar button:hover { border-color: var(--terracotta); color: var(--terracotta); }
.filter-bar button.active { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }
.masonry { columns: 3; column-gap: var(--s-md); }
.masonry .card-photo { break-inside: avoid; margin-bottom: var(--s-md); border-radius: var(--r-lg); overflow: hidden; background: var(--white); box-shadow: var(--sh-subtle); cursor: pointer; }
.masonry .card-photo img { width: 100%; display: block; transition: transform .4s; }
.masonry .card-photo:hover img { transform: scale(1.04); }
.card-photo .cap { padding: 12px 14px 14px; }
.card-photo .cap .row { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.card-photo .cap .cat { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--terracotta); font-weight: 700; }
.card-photo .cap .date { font-size: 10px; color: var(--ink-45); letter-spacing: .5px; }
.card-photo .cap h4 { font-family: var(--font-head); font-size: 18px; margin-top: 4px; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(30,18,14,.9); display: none; align-items: center; justify-content: center; gap: 16px; padding: 24px; }
.lightbox.open { display: flex; }
.lb-figure { margin: 0; max-width: 620px; }
.lb-figure img { max-height: 74vh; border-radius: var(--r-md); box-shadow: var(--sh-elevated); }
.lb-figure figcaption { color: var(--cream); margin-top: 14px; }
.lb-cat { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.lb-title { font-family: var(--font-head); font-size: 22px; margin-top: 4px; }
.lb-close { position: absolute; top: 20px; right: 24px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 22px; cursor: pointer; }
.lb-nav { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 18px; cursor: pointer; flex: none; }
.lb-nav:hover, .lb-close:hover { background: rgba(255,255,255,.3); }

/* ============================================================
   INFOS PRATIQUES
   ============================================================ */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-lg); }
.info-card h3 { font-size: 22px; margin: var(--s-md) 0 8px; }
.info-card p { font-size: 14px; color: var(--ink-60); margin: 0; }
.info-card .icon-chip { margin-bottom: 4px; }
.quote-block { text-align: center; max-width: 760px; margin: var(--s-2xl) auto 0; }
.quote-block .qmark { font-family: var(--font-head); font-size: 60px; color: var(--gold); line-height: .4; }
.quote-block p { font-family: var(--font-head); font-style: italic; font-size: 22px; line-height: 1.6; color: var(--ink); }
.quote-block .sign { font-family: var(--font-script); font-size: 34px; color: var(--terracotta); margin-top: var(--s-md); }
.quote-block .role { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-45); }

/* ============================================================
   LIVE
   ============================================================ */
.live-title { display: inline-flex; align-items: center; gap: 12px; }
.live-title .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--terracotta); animation: pulse 1.4s infinite; }
.live-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--s-lg); align-items: start; }
.live-now .head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: var(--s-md); flex-wrap: wrap; }
.live-now .head .prog { font-size: 12px; color: var(--ink-60); display: flex; align-items: center; gap: 10px; }
.live-now .head .prog .bar { width: 90px; height: 5px; background: var(--beige); border-radius: 99px; overflow: hidden; }
.live-now .head .prog .bar span { display: block; height: 100%; background: var(--terracotta); }
.live-now .cur { display: flex; align-items: center; gap: var(--s-md); }
.live-now .cur h3 { font-size: 26px; }
.live-now .cur .time { color: var(--terracotta); font-weight: 600; font-size: 14px; margin-top: 2px; }
.info-feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-md); }
.info-feed li { display: flex; gap: 12px; align-items: flex-start; }
.info-feed .icon-chip { width: 34px; height: 34px; border-radius: 50%; }
.info-feed .icon-chip svg { width: 15px; height: 15px; }
.info-feed .txt { font-size: 14px; }
.info-feed .ago { font-size: 12px; color: var(--ink-45); }
.day-list { list-style: none; margin: 0; padding: 0; }
.day-list li { display: grid; grid-template-columns: 60px 24px 1fr; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(56,37,31,.06); }
.day-list li:last-child { border-bottom: 0; }
.day-list .dtime { font-weight: 700; font-size: 14px; }
.day-list.is .name { font-family: var(--font-head); font-size: 18px; }
.day-list .sub { font-size: 12px; color: var(--ink-45); }
.day-list li.done .dtime { color: var(--ink-45); }
.day-list li.active .name { color: var(--terracotta); }

/* ============================================================
   ADMIN
   ============================================================ */
.admin { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-side { background: var(--terracotta-dark); color: var(--cream); padding: var(--s-lg); }
.admin-side .logo { font-family: var(--font-head); letter-spacing: 3px; font-size: 20px; color: #fff; }
.admin-side .logo small { display: block; font-family: var(--font-body); font-size: 10px; letter-spacing: 2px; color: var(--gold); margin-top: 4px; }
.admin-nav { list-style: none; margin: var(--s-2xl) 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.admin-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: var(--r-md); font-size: 14px; color: rgba(248,241,232,.8); }
.admin-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-nav a.active { background: rgba(255,255,255,.12); color: #fff; }
.admin-main { padding: var(--s-2xl); background: var(--ivory); }
.admin-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: var(--s-xl); flex-wrap: wrap; }
.admin-head h1 { font-size: 34px; }
.admin-head p { color: var(--ink-60); margin: 4px 0 0; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-md); margin-bottom: var(--s-lg); }
.stat .k { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-45); }
.stat .n { font-family: var(--font-head); font-size: 40px; color: var(--terracotta); line-height: 1.1; margin: 6px 0 2px; }
.stat .d { font-size: 12px; color: var(--ink-60); }
.admin-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--s-lg); align-items: start; }
.admin-cur .bar { height: 8px; background: var(--beige); border-radius: 99px; overflow: hidden; margin: var(--s-md) 0 6px; }
.admin-cur .bar span { display: block; height: 100%; width: 75%; background: var(--terracotta); }
.admin-cur .bar-lbls { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-45); }
.alert-form textarea { width: 100%; border: 1px solid var(--beige); border-radius: var(--r-md); padding: 12px; font-family: inherit; font-size: 14px; resize: vertical; min-height: 70px; margin-bottom: 12px; }
.alert-sent { padding: 12px 0; border-bottom: 1px solid rgba(56,37,31,.06); }
.alert-sent strong { display: block; font-weight: 600; font-size: 14px; }
.alert-sent span { font-size: 12px; color: var(--ink-45); }
.upload-cat {
  font-family: var(--font-body); font-size: 13px; color: var(--ink);
  padding: 10px 14px; border: 1px solid var(--beige); border-radius: var(--r-full);
  background: var(--white); cursor: pointer;
}
.live-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: var(--s-md); }
.live-thumbs img { border-radius: var(--r-md); aspect-ratio: 1; object-fit: cover; }

/* ---------- Admin: login overlay + toasts ---------- */
.login-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: linear-gradient(135deg, var(--terracotta-dark), var(--terracotta));
  display: grid; place-items: center; padding: var(--s-lg);
}
.login-card {
  background: var(--ivory); border-radius: var(--r-xl); box-shadow: var(--sh-elevated);
  padding: var(--s-2xl); width: 100%; max-width: 380px; text-align: center;
}
.login-brand { font-family: var(--font-head); letter-spacing: 3px; font-size: 22px; color: var(--ink); }
.login-brand span { font-family: var(--font-script); color: var(--terracotta); letter-spacing: 0; }
.login-card h2 { font-size: 26px; margin: var(--s-lg) 0 6px; }
.login-card input {
  width: 100%; padding: 13px 16px; margin-top: var(--s-lg);
  border: 1px solid var(--beige); border-radius: var(--r-md); font-family: inherit; font-size: 15px;
}
.login-card input:focus { outline: none; border-color: var(--terracotta); }
.login-card .btn { width: 100%; justify-content: center; margin-top: var(--s-md); }
.login-error { color: #c0392b; font-size: 13px; min-height: 18px; margin-top: 8px; }

.admin-toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  background: var(--ink); color: var(--cream); padding: 12px 20px; border-radius: var(--r-full);
  font-size: 14px; box-shadow: var(--sh-elevated); z-index: 210; opacity: 0;
  transition: opacity .25s, transform .25s; pointer-events: none; max-width: 90vw;
}
.admin-toast.show { opacity: 1; transform: translate(-50%, 0); }
.admin-toast.err { background: #b23b2e; }

/* ---------- État vide de galerie ---------- */
.gallery-empty {
  text-align: center; padding: var(--s-3xl) var(--s-lg); color: var(--ink-45);
  border: 1.5px dashed var(--beige); border-radius: var(--r-xl); background: var(--ivory);
}
.gallery-empty i { display: inline-flex; font-size: 34px; color: var(--terracotta-light); margin-bottom: var(--s-sm); }
.gallery-empty p { font-family: var(--font-head); font-style: italic; font-size: 19px; margin: 0; }

/* ---------- Modale d'upload (admin) ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 205; background: rgba(30,18,14,.55);
  display: grid; place-items: center; padding: var(--s-lg);
}
.modal-card {
  background: var(--ivory); border-radius: var(--r-xl); box-shadow: var(--sh-elevated);
  padding: var(--s-xl); width: 100%; max-width: 540px; max-height: 88vh; overflow: auto;
}
.modal-card h2 { font-size: 26px; margin-bottom: var(--s-md); }
.up-catline { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-60); }
.up-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: var(--s-lg); }
.up-row { display: flex; gap: 12px; align-items: center; }
.up-thumb { width: 64px; height: 64px; border-radius: var(--r-md); object-fit: cover; flex: none; background: var(--beige); }
.up-fields { flex: 1; min-width: 0; }
.up-title { width: 100%; padding: 9px 12px; border: 1px solid var(--beige); border-radius: var(--r-md); font-family: inherit; font-size: 14px; }
.up-title:focus { outline: none; border-color: var(--terracotta); }
.up-name { font-size: 11px; color: var(--ink-45); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* ---------- Grille de gestion des photos (admin) ---------- */
.live-thumbs { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.ph-card { margin: 0; background: var(--white); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--sh-subtle); }
.ph-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.ph-card figcaption { padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.ph-title { width: 100%; padding: 6px 8px; border: 1px solid var(--beige); border-radius: var(--r-sm); font-family: inherit; font-size: 12px; }
.ph-title:focus { outline: none; border-color: var(--terracotta); }
.ph-actions { display: flex; gap: 6px; }
.ph-actions button { flex: 1; border: 1px solid var(--beige); background: var(--ivory); border-radius: var(--r-sm); padding: 5px; cursor: pointer; color: var(--ink-60); display: grid; place-items: center; }
.ph-actions .ph-save:hover { background: var(--terracotta); color: #fff; border-color: var(--terracotta); }
.ph-actions .ph-del:hover { background: #b23b2e; color: #fff; border-color: #b23b2e; }
.ph-actions svg { width: 15px; height: 15px; }

/* ---------- Admin : gestion des infos pratiques ---------- */
.info-admin-list { display: flex; flex-direction: column; gap: 12px; }
.info-admin-row { display: flex; gap: 12px; align-items: flex-start; background: var(--ivory); border: 1px solid var(--beige); border-radius: var(--r-md); padding: 12px; }
.info-ico { flex: none; width: 40px; height: 40px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--terracotta-08); color: var(--terracotta); }
.info-ico svg { width: 20px; height: 20px; }
.info-fields { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.info-row-top { display: flex; gap: 8px; }
.info-icon-sel { flex: none; width: 110px; padding: 8px; border: 1px solid var(--beige); border-radius: var(--r-sm); font-family: inherit; font-size: 12px; background: var(--white); }
.info-title { flex: 1; padding: 8px 10px; border: 1px solid var(--beige); border-radius: var(--r-sm); font-family: inherit; font-size: 14px; font-weight: 600; }
.info-body { width: 100%; padding: 8px 10px; border: 1px solid var(--beige); border-radius: var(--r-sm); font-family: inherit; font-size: 13px; resize: vertical; min-height: 48px; }
.info-title:focus, .info-body:focus, .info-icon-sel:focus { outline: none; border-color: var(--terracotta); }
.info-actions { flex: none; display: flex; flex-direction: column; gap: 6px; }
.info-actions button { width: 34px; height: 34px; border: 1px solid var(--beige); background: var(--white); border-radius: var(--r-sm); cursor: pointer; color: var(--ink-60); display: grid; place-items: center; }
.info-actions .info-save:hover { background: var(--terracotta); color: #fff; border-color: var(--terracotta); }
.info-actions .info-del:hover { background: #b23b2e; color: #fff; border-color: #b23b2e; }
.info-actions svg { width: 15px; height: 15px; }
@media (max-width: 600px) { .info-row-top { flex-direction: column; } .info-icon-sel { width: 100%; } }

/* Generic page header band */
.page-head { background: var(--ivory); padding: var(--s-3xl) 0 var(--s-xl); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 62px 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--ivory); padding: var(--s-md) var(--s-lg);
    box-shadow: var(--sh-card); transform: translateY(-120%);
    transition: transform .25s; max-height: calc(100vh - 62px); overflow: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 0; width: 100%; border-bottom: 1px solid rgba(56,37,31,.06); }
  .nav-links a.active::after { display: none; }
  /* mobile dropdown sits on an opaque panel → force dark links even on home */
  .home .nav .nav-links > li > a { color: var(--ink-60); }
  .home .nav .nav-links > li > a.active { color: var(--terracotta); }
  .section-head h2 { font-size: 30px; }
  .section { padding: var(--s-2xl) 0; }
  .footer .script-big { font-size: 30px; }

  .hero-inner { grid-template-columns: 1fr; gap: var(--s-xl); }
  .home .hero { min-height: 82vh; background-position: 62% 18%; }
  .home .hero-inner { padding-top: 108px; }
  .home .hero-title { font-size: clamp(52px, 15vw, 72px); }
  .home .hero-date { font-size: 15px; letter-spacing: 2px; margin-top: var(--s-md); }
  .home .hero-quote { font-size: 15px; }
  .next-grid, .summary-grid, .info-grid, .lieux-layout, .live-layout, .admin-cols, .stat-grid { grid-template-columns: 1fr; }
  .photo-mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .photo-mosaic .wide { grid-column: span 2; }
  .masonry { columns: 2; }
  .cd-unit .num { font-size: 40px; }
  .cd-unit { min-width: 64px; }
  .tl-item { grid-template-columns: 34px 82px 1fr; }
  .tl-item .tl-icon { display: none; }
  .live-thumbs { grid-template-columns: repeat(3, 1fr); }
  .map-panel { min-height: 340px; }
}

@media (max-width: 600px) {
  .masonry { columns: 1; }
  .photo-mosaic { grid-template-columns: 1fr; }
  .photo-mosaic .wide { grid-column: span 1; }
  .admin { grid-template-columns: 1fr; }
  .admin-side { display: none; }
  .filter-bar { gap: 6px; }
  .cd-sep { display: none; }
  .countdown-grid { gap: 6px; }
  .cd-unit { min-width: 0; flex: 1; }
  .cd-unit .num { font-size: 34px; }
  .cd-unit .lbl { font-size: 9px; letter-spacing: 1px; }
}

/* ============================================================
   Admin mobile top-nav fallback handled by hiding sidebar
   ============================================================ */
