/* ============================================
   Faire-part Ariel & Eden — styles
   ============================================ */

:root {
  --ivory: #faf6f1;
  --ivory-2: #f3ece2;
  --rose: #e8b4bc;
  --rose-deep: #c47670;
  --gold: #b89249;
  --gold-soft: #d4af6a;
  --ink: #3d2b2e;
  --mute: #7c5b5e;
  --script: 'Allura', cursive;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: 'Cormorant Garamond', 'Frank Ruhl Libre', serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  background:
    radial-gradient(circle at 50% 50%, rgba(184, 146, 73, 0.04), transparent 60%),
    var(--ivory);
}

#root { min-height: 100vh; }

.app {
  position: relative;
  width: 100%;
  min-height: 100vh;
  scroll-behavior: smooth;
}

.he {
  font-family: 'David Libre', 'Frank Ruhl Libre', serif;
  font-feature-settings: "kern" 1;
  letter-spacing: 0;
}

/* ============= HERO ============= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 8px;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 100%;
  width: 100%;
  padding: 24px 16px;
  background: transparent;
  animation: fadeUp 1.4s cubic-bezier(.2,.7,.2,1) both;
}

/* "se marient le" + date sur 2 lignes empilées, gros et chic */
.hero-marie-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 16px auto 36px;
  font-family: 'Cormorant Garamond', serif;
  max-width: 100%;
  padding: 0 8px;
}
.hero-sub-inline {
  font-style: italic;
  color: var(--mute);
  font-size: clamp(20px, 5.5vw, 28px);
  line-height: 1.2;
}
.hero-date-inline {
  color: var(--gold);
  font-size: clamp(26px, 7vw, 36px);
  letter-spacing: 0.18em;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-size: 26px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 40px;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
}
.hero-tag .he { letter-spacing: 0.1em; font-size: 13px; }
.tag-sep { opacity: 0.5; }

.hero-names {
  display: block;
  text-align: center;
  margin: 24px 0 0;
  padding: 0;
  overflow: visible;
  width: 100%;
}

.hero-names .name-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow: visible;
}

.amp {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.amp svg { display: block; }

.name-fr {
  font-family: var(--script);
  font-size: clamp(76px, 11vw, 150px);
  font-weight: 400;
  background: linear-gradient(135deg, var(--rose-deep) 0%, var(--gold) 55%, var(--gold-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  line-height: 1.5;
  letter-spacing: 0.01em;
  font-style: normal;
  padding: 0.15em 0.25em 0.3em 0.25em;
  filter: drop-shadow(0 2px 1px rgba(184, 146, 73, 0.18));
  overflow: visible;
  white-space: nowrap;
  display: inline-block;
}

.amp-text {
  font-family: var(--script);
  font-size: clamp(56px, 8.5vw, 110px);
  color: var(--gold);
  line-height: 1.5;
  padding: 0 0.1em;
  display: inline-block;
  align-self: center;
  font-style: italic;
}

@media (max-width: 480px) {
  .name-fr {
    font-size: clamp(60px, 15vw, 100px);
    padding: 0.1em 0.15em 0.25em 0.15em;
  }
  .amp svg { width: 56px; height: 56px; }
}

.amp-old-removed { display: none; }

.hero-names-he {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-family: 'David Libre', 'Frank Ruhl Libre', serif;
  font-size: clamp(28px, 4.5vw, 44px);
  color: var(--rose-deep);
  font-weight: 300;
  margin: 4px 0 18px;
  letter-spacing: 0.04em;
}
.amp-he { color: var(--gold); font-style: italic; }

.hero-sub {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-style: italic;
  color: var(--mute);
  font-size: 22px;
  margin: 0 0 12px;
}
.hero-sub .he { font-style: normal; font-size: 20px; }

.hero-date {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  letter-spacing: 0.5em;
  color: var(--gold);
  margin: 8px 0 36px;
  font-weight: 500;
}

/* Compte à rebours */
.countdown {
  display: flex;
  width: max-content;
  align-items: stretch;
  gap: 6px;
  padding: 18px 28px;
  margin: 0 auto 36px;
  background: rgba(255, 252, 247, 0.6);
  border: 1px solid var(--gold-soft);
  border-radius: 2px;
  position: relative;
  box-shadow: 0 0 0 1px rgba(184, 146, 73, 0.15) inset, 0 6px 22px rgba(184, 146, 73, 0.08);
}
.countdown::before, .countdown::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1px solid var(--gold);
}
.countdown::before { top: 5px; left: 5px; border-right: none; border-bottom: none; }
.countdown::after { bottom: 5px; right: 5px; border-left: none; border-top: none; }

.cd-cell {
  min-width: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.cd-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.cd-lbl {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
  gap: 1px;
}
.cd-lbl .he { letter-spacing: 0.08em; font-size: 11px; text-transform: none; color: var(--gold); }

.cd-sep {
  align-self: center;
  color: var(--gold-soft);
  font-size: 22px;
  margin: 0 4px;
}

/* === Reveal animation pour les sections après clic "Voir la carte" === */
.revealed-content {
  display: none;
}
.revealed-content.is-revealed {
  display: block;
  animation: revealCard 1.4s cubic-bezier(.25,.8,.25,1) both;
}
@keyframes revealCard {
  0%   { opacity: 0; transform: translateY(40px); filter: blur(6px); }
  60%  { opacity: 0.85; filter: blur(1px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* Bouton primary — animations douces et chic */
.btn-primary {
  display: inline-flex;
  align-items: center;
  margin: 0 auto;
  gap: 14px;
  padding: 18px 36px;
  background: linear-gradient(135deg, #d4af6a 0%, #b89249 50%, #8c6b32 100%);
  color: #ffffff;
  border: 1px solid #b89249;
  border-radius: 2px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .55s cubic-bezier(.2,.8,.2,1),
              box-shadow .55s cubic-bezier(.2,.8,.2,1),
              letter-spacing .45s cubic-bezier(.2,.8,.2,1);
  box-shadow: 0 0 0 1px rgba(212, 175, 106, 0.4), 0 8px 24px rgba(184, 146, 73, 0.25);
  position: relative;
  overflow: hidden;
  will-change: transform;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #e8c887, #b89249);
  opacity: 0;
  transition: opacity .6s cubic-bezier(.2,.8,.2,1);
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-25deg);
  transition: left .9s cubic-bezier(.2,.8,.2,1);
  pointer-events: none;
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover::after { left: 220%; }
.btn-primary > * { position: relative; z-index: 1; }
.btn-primary:hover {
  transform: translateY(-3px);
  letter-spacing: 0.28em;
  box-shadow: 0 0 0 1px rgba(212, 175, 106, 0.5), 0 16px 36px rgba(184, 146, 73, 0.4);
}
.btn-primary:active {
  transform: translateY(-1px);
  transition-duration: .12s;
}

.btn-line { line-height: 1.2; }
.btn-line.he { letter-spacing: 0.1em; font-size: 14px; opacity: 0.92; border-left: 1px solid rgba(255,255,255,0.35); padding-left: 12px; }

.btn-primary svg { transition: transform .35s; }
.btn-primary:hover svg { transform: translateY(3px); }

/* Coins aquarelle — appliqués via pseudo-éléments sur sections + hero + footer */
.hero::before,
.hero::after,
.section::before,
.section::after,
.footer::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
  background-repeat: no-repeat;
  z-index: 1;
}

/* Hero — 4 coins (taille généreuse) */
.hero::before {
  top: 0;
  height: 420px;
  background-image: url('assets/leaves-tl.png'), url('assets/leaves-tr.png');
  background-position: top left, top right;
  background-size: 380px auto, 380px auto;
}
.hero::after {
  bottom: 0;
  height: 420px;
  background-image: url('assets/leaves-bl.png'), url('assets/leaves-br.png');
  background-position: bottom left, bottom right;
  background-size: 380px auto, 380px auto;
}

/* Pas de fond générique — chaque section a son propre décor */

/* === Section HOUPPA — cadre floral en 2 parties (haut + bas), blanc au milieu === */
.section.houppa {
  background-image: url('assets/bg-floral-top.png'), url('assets/bg-floral-bot.png');
  background-position: top center, bottom center;
  background-size: 100% auto, 100% auto;
  background-repeat: no-repeat, no-repeat;
}
.section.houppa::before,
.section.houppa::after { display: none; }

/* === Section PLAN — line-art doré minimaliste 4 coins === */
.section.plan::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 240px;
  background-image: url('assets/gold-branch.png'), url('assets/gold-branch-m.png');
  background-position: top -20px left -10px, top -20px right -10px;
  background-size: 180px auto, 180px auto;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 1;
  opacity: 0.85;
}
.section.plan::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 240px;
  background-image: url('assets/gold-branch.png'), url('assets/gold-branch-m.png');
  background-position: bottom -20px left -10px, bottom -20px right -10px;
  background-size: 180px auto, 180px auto;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 1;
  opacity: 0.85;
  transform: scaleY(-1);
}

/* === Section RSVP — petite rose dorée centrée en accent === */
.section.rsvp::before {
  content: '';
  position: absolute;
  top: 60px; left: 50%;
  width: 140px; height: 140px;
  margin-left: -70px;
  background: url('assets/gold-rose.png') no-repeat center / contain;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}
.section.rsvp::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0; right: 0;
  height: 200px;
  background-image: url('assets/leaves-bl.png'), url('assets/leaves-br.png');
  background-position: bottom -20px left -20px, bottom -20px right -20px;
  background-size: 200px auto, 200px auto;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 1;
  opacity: 0.85;
}

/* === Footer — couronne de feuilles aquarelle en haut === */
.footer { position: relative; }
.footer::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0; right: 0;
  height: 260px;
  background-image: url('assets/leaves-tl.png'), url('assets/leaves-tr.png');
  background-position: top left, top right;
  background-size: 240px auto, 240px auto;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 1;
  opacity: 0.9;
}

/* === Mobile === */
@media (max-width: 720px) {
  .hero::before, .hero::after { height: 200px; background-size: 150px auto, 150px auto; }

  /* Houppa mobile : m\u00eame strat\u00e9gie (top + bot), c'est responsive nativement */
  .section.plan::before, .section.plan::after { height: 130px; background-size: 100px auto, 100px auto; }
  .section.rsvp::before { width: 100px; height: 100px; margin-left: -50px; top: 40px; }
  .section.rsvp::after { height: 120px; background-size: 110px auto, 110px auto; }
  .footer::before { height: 160px; background-size: 150px auto, 150px auto; }

  .countdown { padding: 14px 16px; gap: 4px; }
  .cd-cell { min-width: 52px; }
  .cd-num { font-size: 30px; }
  .cd-lbl { font-size: 9px; letter-spacing: 0.14em; }
  .cd-sep { font-size: 18px; margin: 0 2px; }
  .section { padding: 90px 20px; }
}

/* ============= SECTIONS COMMUNES ============= */
.section {
  position: relative;
  padding: 120px 24px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s cubic-bezier(.2,.7,.2,1), transform 1.2s cubic-bezier(.2,.7,.2,1);
}
.section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.section-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}
.eyebrow .he { letter-spacing: 0.1em; font-size: 13px; text-transform: none; }
.eyebrow .dot { opacity: 0.5; }

.script-title {
  font-family: var(--script);
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 400;
  background: linear-gradient(135deg, var(--rose-deep) 0%, var(--gold) 70%, var(--gold-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin: 0 0 8px;
  line-height: 1;
  filter: drop-shadow(0 1px 0 rgba(184, 146, 73, 0.12));
}
.script-title.he {
  font-family: 'David Libre', 'Frank Ruhl Libre', serif;
  font-size: clamp(28px, 4vw, 42px);
  color: var(--ink);
  margin: 4px 0 32px;
  font-weight: 300;
  letter-spacing: 0.04em;
}

.prose {
  font-size: 19px;
  line-height: 1.7;
  color: var(--ink);
  max-width: 580px;
  margin: 28px auto;
  font-style: italic;
  text-wrap: pretty;
}
.prose.he { font-style: normal; font-size: 18px; line-height: 1.9; color: var(--mute); }
.prose.center { text-align: center; }

.signature {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sig-script {
  font-family: var(--script);
  font-size: 44px;
  background: linear-gradient(135deg, var(--rose-deep) 0%, var(--gold) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  line-height: 1;
}
.sig-he {
  font-family: 'David Libre', 'Frank Ruhl Libre', serif;
  font-size: 22px;
  color: var(--gold);
  letter-spacing: 0.08em;
}

/* Side flora */
.side-flora {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.side-flora.left { left: -40px; top: 50%; transform: translateY(-50%); }
.side-flora.right { right: -40px; top: 50%; transform: translateY(-50%) scaleX(-1); }
.side-flora.top { top: 40px; transform: none; }
.side-flora.left.top { left: -20px; }
.side-flora.right.top { right: -20px; transform: scaleX(-1); }

@media (max-width: 900px) {
  .side-flora { opacity: 0.45; transform: scale(0.6); transform-origin: left center; }
  .side-flora.right { transform: scaleX(-1) scale(0.6); transform-origin: right center; }
}
@media (max-width: 720px) {
  .side-flora { display: none; }
}

/* ============= HOUPPA ET SOIRÉE ============= */
.parents-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 80px;
  row-gap: 18px;
  margin: 36px auto 32px;
  max-width: 720px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  color: var(--gold);
  line-height: 1.4;
  font-weight: 500;
}
.parents-grid p { margin: 0; }
.parents-grid .parent-l { text-align: right; }
.parents-grid .parent-r { text-align: left; }
@media (max-width: 600px) {
  .parents-grid {
    column-gap: 16px;
    row-gap: 14px;
    font-size: 16px;
    line-height: 1.35;
  }
}

.invite-prose {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  line-height: 1.55;
  color: var(--ink);
  margin: 16px auto;
  max-width: 640px;
  font-style: normal;
  text-align: center;
  text-wrap: pretty;
}
.invite-prose .gold-em {
  color: var(--gold);
  font-weight: 500;
}
.invite-prose strong {
  color: var(--gold);
  font-weight: 600;
  font-style: italic;
}
.invite-prose.grandparents {
  font-style: italic;
  color: var(--mute);
  font-size: 20px;
  margin-top: 30px;
  line-height: 1.7;
}

.invite-he {
  font-family: 'David Libre', 'Frank Ruhl Libre', serif;
  font-size: 22px;
  color: var(--ink);
  margin: 22px auto;
  direction: rtl;
  text-align: center;
}

.couple-block { margin: 38px auto 28px; }
.couple-names {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  justify-items: center;
  gap: 8px;
  font-family: var(--script);
  max-width: 640px;
  margin: 0 auto;
}
.couple-name {
  font-size: clamp(56px, 9vw, 100px);
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-soft) 60%, #b89249 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  line-height: 1.2;
  filter: drop-shadow(0 1px 0 rgba(184, 146, 73, 0.18));
}
.couple-amp {
  font-size: clamp(36px, 5vw, 54px);
  color: var(--gold);
  font-style: italic;
  align-self: end;
  padding-bottom: 12px;
}
.couple-he {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  justify-items: center;
  gap: 8px;
  margin-top: -4px;
  font-family: 'David Libre', 'Frank Ruhl Libre', serif;
  font-size: clamp(20px, 3vw, 30px);
  color: var(--gold);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ============= DATE & LIEU ============= */
.date-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin: 40px 0;
  text-align: left;
}

.date-card {
  text-align: center;
  padding: 32px 24px;
  border: 1px solid var(--gold-soft);
  background: rgba(255, 252, 247, 0.6);
  position: relative;
}
.date-card::before, .date-card::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  border: 1px solid var(--gold);
}
.date-card::before { top: 6px; left: 6px; border-right: none; border-bottom: none; }
.date-card::after { bottom: 6px; right: 6px; border-left: none; border-top: none; }

.dc-eyebrow {
  font-family: var(--script);
  font-size: 32px;
  color: var(--rose-deep);
  line-height: 1;
}
.dc-day {
  font-size: 84px;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  margin: 8px 0 4px;
}
.dc-month {
  font-size: 18px;
  letter-spacing: 0.5em;
  color: var(--gold);
  margin-left: 0.5em;
}
.dc-year {
  font-size: 16px;
  letter-spacing: 0.4em;
  color: var(--mute);
  margin-top: 8px;
}
.dc-he {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(184, 146, 73, 0.3);
  font-family: 'David Libre', 'Frank Ruhl Libre', serif;
  font-size: 16px;
  color: var(--mute);
}

.schedule {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.sched-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 0;
}
.sched-time {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.05em;
  min-width: 70px;
  font-variant-numeric: tabular-nums;
}
.sched-evt { display: flex; flex-direction: column; gap: 2px; }
.se-fr {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 20px;
  color: var(--ink);
}
.se-he {
  font-family: 'David Libre', 'Frank Ruhl Libre', serif;
  font-size: 16px;
  color: var(--mute);
}
.sched-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-soft), transparent);
  opacity: 0.6;
}

.venue {
  margin-top: 32px;
  text-align: center;
}
.venue-label {
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.venue-name {
  font-family: var(--script);
  font-size: 64px;
  background: linear-gradient(135deg, var(--rose-deep) 0%, var(--gold) 70%, var(--gold-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  line-height: 1;
}
.venue-loc {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 22px;
  color: var(--ink);
  margin-top: 8px;
}
.venue-loc.he { font-style: normal; color: var(--mute); font-size: 18px; }

@media (max-width: 720px) {
  .date-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ============= RSVP FORM ============= */
.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 520px;
  margin: 36px auto 0;
  text-align: left;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field > span {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.field input,
.field textarea {
  border: none;
  border-bottom: 1px solid var(--gold-soft);
  background: transparent;
  padding: 12px 4px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  color: var(--ink);
  outline: none;
  transition: border-color .3s;
  font-style: italic;
}
.field input:focus, .field textarea:focus {
  border-bottom-color: var(--rose-deep);
}
.field textarea { resize: vertical; font-style: italic; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
}
@media (max-width: 600px) {
  .field-row { grid-template-columns: 1fr; }
}

.radio-row { display: flex; gap: 10px; }
.radio-pill {
  flex: 1;
  padding: 12px 14px;
  background: transparent;
  border: 1px solid var(--gold-soft);
  cursor: pointer;
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  color: var(--mute);
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
  transition: background-color .45s cubic-bezier(.2,.8,.2,1),
              color .45s cubic-bezier(.2,.8,.2,1),
              border-color .45s cubic-bezier(.2,.8,.2,1),
              transform .35s cubic-bezier(.2,.8,.2,1),
              box-shadow .45s cubic-bezier(.2,.8,.2,1);
  font-style: italic;
}
.radio-pill:hover {
  border-color: var(--rose-deep);
  color: var(--rose-deep);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(196, 118, 112, 0.15);
}

/* Effet pulse au clic — même si déjà sélectionné */
.radio-pill.is-pulse {
  animation: pillPulse 0.42s cubic-bezier(.2,.8,.2,1);
}
@keyframes pillPulse {
  0%   { transform: scale(1);    box-shadow: 0 0 0 0 rgba(196, 118, 112, 0.5); }
  45%  { transform: scale(1.07); box-shadow: 0 0 0 10px rgba(196, 118, 112, 0); }
  100% { transform: scale(1);    box-shadow: 0 0 0 0 rgba(196, 118, 112, 0); }
}
.radio-pill .he { font-style: normal; font-size: 13px; }
.radio-pill.is-on {
  background: var(--rose-deep);
  color: var(--ivory);
  border-color: var(--rose-deep);
}

.btn-primary.submit {
  align-self: center;
  margin-top: 12px;
}

.rsvp-error {
  text-align: center;
  color: #c47670;
  font-size: 14px;
  font-style: italic;
  margin-top: 12px;
  padding: 10px 14px;
  border: 1px solid rgba(196, 118, 112, 0.3);
  background: rgba(232, 180, 188, 0.08);
}

.btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none !important;
}

.thanks {
  text-align: center;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: fadeUp .8s ease both;
}
.thanks h3 {
  font-family: var(--script);
  font-size: 48px;
  color: var(--rose-deep);
  margin: 16px 0 4px;
  font-weight: 400;
}
.thanks p { font-style: italic; color: var(--mute); margin: 4px 0; }

/* ============= PLAN ============= */
.map-wrap {
  margin: 36px auto;
  max-width: 600px;
  border: 1px solid var(--gold-soft);
  background: var(--ivory-2);
  position: relative;
}
.map-svg { display: block; width: 100%; height: auto; }

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 32px 0;
}
@media (max-width: 720px) {
  .plan-grid { grid-template-columns: 1fr; }
}

.plan-card {
  padding: 24px 18px;
  border: 1px solid rgba(184, 146, 73, 0.3);
  background: rgba(255, 252, 247, 0.6);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: transform .3s, border-color .3s;
}
.plan-card:hover {
  transform: translateY(-3px);
  border-color: var(--rose-deep);
}
.pc-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}
.pc-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 4px;
  font-weight: 500;
}
.pc-text {
  font-size: 14px;
  color: var(--mute);
  line-height: 1.5;
}
.pc-text.he { font-size: 13px; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  text-decoration: none;
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition: color .55s cubic-bezier(.2,.8,.2,1),
              letter-spacing .55s cubic-bezier(.2,.8,.2,1),
              transform .55s cubic-bezier(.2,.8,.2,1),
              box-shadow .55s cubic-bezier(.2,.8,.2,1);
}
.btn-secondary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: bottom center;
  transition: transform .55s cubic-bezier(.2,.8,.2,1);
  z-index: 0;
}
.btn-secondary > * { position: relative; z-index: 1; }
.btn-secondary:hover {
  color: var(--ivory);
  letter-spacing: 0.28em;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(184, 146, 73, 0.25);
}
.btn-secondary:hover::before { transform: scaleY(1); }
.btn-secondary:active { transform: translateY(0); }
.btn-secondary .he { letter-spacing: 0.1em; font-size: 14px; text-transform: none; }

/* ============= FOOTER ============= */
.footer {
  padding: 60px 24px 80px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background: linear-gradient(180deg, transparent, rgba(232, 180, 188, 0.08));
}
.foot-names {
  font-family: var(--script);
  font-size: 36px;
  background: linear-gradient(135deg, var(--rose-deep) 0%, var(--gold) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.foot-names .dot { color: var(--gold); font-size: 24px; }
.foot-date {
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mute);
}
.foot-heart { margin-top: 4px; }

.foot-credit {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid rgba(184, 146, 73, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  color: var(--mute);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  width: min(260px, 80%);
}
.foot-credit-tel {
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.08em;
  transition: color .3s;
}
.foot-credit-tel:hover { color: var(--rose-deep); }

/* ============= PÉTALES QUI TOMBENT ============= */
.petals-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}
.petal-fall {
  position: absolute;
  top: -40px;
  animation: fall linear infinite;
  will-change: transform;
}
@keyframes fall {
  0% { transform: translate3d(0, -40px, 0) rotate(0deg); opacity: 0; }
  10% { opacity: 0.85; }
  100% {
    transform: translate3d(var(--sway), 110vh, 0) rotate(var(--rot));
    opacity: 0.4;
  }
}

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

/* ============= B"H — pastille religieuse ============= */
.bsd {
  position: absolute;
  top: 14px;
  right: 18px;
  font-family: 'David Libre', 'Frank Ruhl Libre', serif;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--gold);
  opacity: 0.6;
  z-index: 4;
  pointer-events: none;
  user-select: none;
}
[dir="rtl"] .bsd { right: auto; left: 18px; }

/* ============= Toggle langue FR / HE ============= */
.lang-toggle {
  position: fixed;
  top: 14px;
  left: 18px;
  z-index: 50;
  padding: 8px 16px;
  background: rgba(255, 252, 247, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--gold-soft);
  border-radius: 24px;
  font-family: 'Cormorant Garamond', 'Frank Ruhl Libre', serif;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--gold);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(184, 146, 73, 0.18);
  transition: transform .45s cubic-bezier(.2,.8,.2,1),
              box-shadow .45s cubic-bezier(.2,.8,.2,1),
              background-color .45s cubic-bezier(.2,.8,.2,1),
              color .45s cubic-bezier(.2,.8,.2,1);
}
.lang-toggle:hover {
  background: var(--gold);
  color: var(--ivory);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(184, 146, 73, 0.32);
}
[dir="rtl"] .lang-toggle { left: auto; right: 18px; }

/* ============= Texte hébreu en arc (Hero) ============= */
.arc-text {
  width: min(560px, 90vw);
  height: clamp(70px, 12vw, 130px);
  margin: 0 auto 12px;
  pointer-events: none;
  filter: drop-shadow(0 1px 0 rgba(184, 146, 73, 0.18));
}

/* ============= Bloc "À la mémoire de" ============= */
.memory-block {
  margin: 36px auto 0;
  padding: 18px 20px;
  max-width: 520px;
  text-align: center;
  border-top: 1px solid rgba(184, 146, 73, 0.25);
  border-bottom: 1px solid rgba(184, 146, 73, 0.25);
}
.memory-title {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  opacity: 0.85;
}
.memory-list {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 17px;
  line-height: 1.6;
  color: var(--mute);
  opacity: 0.85;
}
[dir="rtl"] .memory-title,
[dir="rtl"] .memory-list { font-family: 'David Libre', 'Frank Ruhl Libre', serif; font-style: normal; }

/* ============= Plan grid en 2 colonnes (Navette + Adresse) ============= */
.plan-grid-2 {
  grid-template-columns: repeat(2, 1fr) !important;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 720px) {
  .plan-grid-2 { grid-template-columns: 1fr !important; }
}

/* ============= RTL : ajustements globaux ============= */
[dir="rtl"] body {
  font-family: 'David Libre', 'Frank Ruhl Libre', 'Cormorant Garamond', serif;
}
/* Force David Libre sur tous les éléments en mode HE (sinon fallback Pinyon Script ou Cormorant qui n'ont pas de glyphes hébreu) */
[dir="rtl"] .script-title,
[dir="rtl"] .name-fr,
[dir="rtl"] .couple-name,
[dir="rtl"] .foot-names,
[dir="rtl"] .thanks h3,
[dir="rtl"] .venue-name,
[dir="rtl"] .invite-prose,
[dir="rtl"] .prose,
[dir="rtl"] .hero-tag,
[dir="rtl"] .hero-tag span,
[dir="rtl"] .hero-sub,
[dir="rtl"] .hero-sub span,
[dir="rtl"] .hero-date,
[dir="rtl"] .hero-date span,
[dir="rtl"] .eyebrow,
[dir="rtl"] .eyebrow span,
[dir="rtl"] .cd-num,
[dir="rtl"] .cd-lbl span,
[dir="rtl"] .pc-title,
[dir="rtl"] .pc-text,
[dir="rtl"] .foot-date,
[dir="rtl"] .field > span,
[dir="rtl"] .field input,
[dir="rtl"] .field textarea,
[dir="rtl"] .radio-pill,
[dir="rtl"] .btn-primary,
[dir="rtl"] .btn-secondary,
[dir="rtl"] .parents-grid,
[dir="rtl"] .parents-grid p,
[dir="rtl"] .invite-he,
[dir="rtl"] .memory-title,
[dir="rtl"] .memory-list {
  font-family: 'David Libre', 'Frank Ruhl Libre', serif !important;
}
[dir="rtl"] .name-row {
  flex-direction: row-reverse;
}
[dir="rtl"] .parents-grid .parent-l { text-align: left; }
[dir="rtl"] .parents-grid .parent-r { text-align: right; }
[dir="rtl"] .invite-prose,
[dir="rtl"] .prose,
[dir="rtl"] .invite-he { direction: rtl; }
[dir="rtl"] .hero-tag,
[dir="rtl"] .hero-date,
[dir="rtl"] .eyebrow {
  letter-spacing: 0.08em;
}
[dir="rtl"] .countdown { direction: ltr; }
[dir="rtl"] .field { text-align: right; }
[dir="rtl"] .field input,
[dir="rtl"] .field textarea { text-align: right; }
