/* ========================================
   MARIAGE SHANIE & ARIEL - Style
   Structure proche de l'exemple, theme sobre
   ======================================== */

@font-face {
  font-family: "ThistailsTitle";
  src: url("../font/thistails_sans/ThistailsSans_Demo-Regular.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "ShowcaseText";
  src: url("../font/Showcase/ShowcaseSans.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "RightNowDetail";
  src: url("../font/right-now-semi-bold-italic-maisfontes.ddb4/right-now-semi-bold-italic.ttf") format("truetype");
  font-weight: normal;
  font-style: italic;
}

:root {
  --nav-height: 72px;
  --palette-cream: #f6ece0;
  --palette-blush: #f8d8bf;
  --palette-peach: #f2c29e;
  --palette-apricot: #e69f73;
  --palette-clay: #d0774b;
  --palette-terracotta: #b94f35;
  --burgundy: var(--palette-terracotta);
  --burgundy-dark: #2b1f1a;
  --champagne: var(--palette-peach);
  --champagne-light: var(--palette-cream);
  --rose: var(--palette-blush);
  --mairie: var(--palette-cream);
  --houppa: var(--palette-apricot);
  --reponse: var(--palette-terracotta);
  --terracotta: var(--palette-clay);
  --terracotta-dark: var(--palette-terracotta);
  --ink: #2b1f1a;
  --white: #fff9f0;
  --line: rgba(255, 249, 240, 0.72);
  --font-title: "ThistailsTitle", Georgia, serif;
  --font-heading: "Cormorant Garamond", Georgia, serif;
  --font-text: "ShowcaseText", Arial, sans-serif;
  --font-detail: "RightNowDetail", cursive;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  margin: 0;
  padding: var(--nav-height) 0 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--champagne);
  color: var(--white);
  font-family: var(--font-text);
}

body.no-scroll {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

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

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

/* ==============================
   NAVIGATION EVENEMENTS
   ============================== */
.event-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  width: 100%;
  height: var(--nav-height);
  margin: 0;
  padding: 0 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--burgundy);
  border-bottom: 1px solid rgba(255, 249, 240, 0.42);
}

.event-nav::-webkit-scrollbar {
  display: none;
}

.event-nav a {
  flex: 0 0 auto;
  color: var(--white);
  padding: 7px 8px;
  border: 0;
  border-radius: 2px;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  -webkit-tap-highlight-color: transparent;
}

.event-nav a:focus,
.event-nav a:active {
  outline: 0;
}

/* ==============================
   OVERLAY
   ============================== */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(22px, 5vh, 44px) 22px;
  overflow: hidden;
  background: var(--terracotta);
  color: var(--white);
  isolation: isolate;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.section::after,
.countdown-section::after {
  display: none;
}

.overlay::before {
  display: none;
}

.overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse at 18% 16%, rgba(255, 231, 195, 0.2), transparent 36%),
    radial-gradient(ellipse at 84% 18%, rgba(118, 62, 37, 0.1), transparent 42%),
    radial-gradient(ellipse at 24% 82%, rgba(255, 238, 207, 0.16), transparent 40%),
    radial-gradient(ellipse at 78% 78%, rgba(90, 45, 27, 0.1), transparent 44%),
    radial-gradient(ellipse at center, rgba(255, 246, 225, 0.08), transparent 46%),
    linear-gradient(115deg, rgba(255, 249, 240, 0.08), rgba(81, 39, 24, 0.07));
  background-size: 120% 120%, 118% 118%, 125% 125%, 122% 122%, 100% 100%, 100% 100%;
  mix-blend-mode: soft-light;
  opacity: 0.86;
}

.overlay.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.overlay-content {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(560px, 100%);
  min-height: min(720px, 100%);
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.overlay-kicker,
.small-label,
.countdown-label,
.agenda-link,
.button-primary,
.button-secondary {
  font-family: var(--font-text);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.overlay-kicker {
  margin: 0 0 12px;
  color: var(--terracotta-dark);
  font-size: 13px;
}

.overlay-title {
  position: relative;
  isolation: isolate;
  display: flex;
  width: min(560px, 100%);
  min-height: clamp(390px, 75vh, 620px);
  margin: 0 auto clamp(4px, 1.4vh, 12px);
  padding: 0 0 clamp(72px, 11vh, 116px);
  align-items: flex-end;
  justify-content: center;
  color: #d4bfaa;
  font-family: var(--font-heading);
  font-size: clamp(25px, 7.1vw, 47px);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.overlay-title::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: clamp(28px, 5.8vh, 56px);
  z-index: 0;
  width: min(clamp(335px, 90vw, 560px), 62vh);
  max-width: 100%;
  aspect-ratio: 1664 / 1876;
  transform: translateX(-50%);
  background: url("../img/pal-no-bg.png") center bottom / contain no-repeat;
  opacity: 0.76;
  pointer-events: none;
}

.overlay-title > span {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 0.31em 0.25em 0.34em;
  background: var(--terracotta);
}

.overlay-date {
  margin: 0 0 12px;
  color: #d4bfaa;
  font-family: var(--font-heading);
  font-size: clamp(24px, 6.4vw, 34px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.04em;
}

.overlay .button-primary {
  width: min(250px, 72vw);
  margin-top: 12px;
  color: var(--burgundy-dark);
  background: #d4bfaa;
  border-color: #d4bfaa;
}

/* ==============================
   SECTIONS
   ============================== */
.section,
.countdown-section {
  width: 100%;
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 44px 22px;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

.section::before,
.countdown-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("../img/pal-no-bg.png");
  background-repeat: no-repeat;
  background-position: var(--palm-position, center bottom -115px);
  background-size: var(--palm-size, clamp(500px, 104vw, 835px) auto);
  opacity: var(--palm-opacity, 0.38);
}

.section > *,
.countdown-section > * {
  position: relative;
  z-index: 1;
}

#countdown {
  min-height: 106vh;
  min-height: 106svh;
  padding-top: 44px;
  padding-bottom: 44px;
}

.color-champagne {
  background: var(--champagne);
  color: var(--ink);
  --palm-opacity: 0.4;
  --texture-opacity: 0.4;
}

.color-rose {
  background: var(--rose);
  color: var(--ink);
  --palm-opacity: 0.4;
  --texture-opacity: 0.42;
}

.color-burgundy {
  background: var(--burgundy);
  color: var(--white);
  --palm-opacity: 0.34;
  --texture-opacity: 0.48;
}

.color-mairie {
  background: var(--mairie);
  color: #a87958;
  align-items: flex-start;
  min-height: auto;
  padding-top: 78px;
  padding-bottom: 78px;
  --palm-position: center bottom -145px;
  --palm-opacity: 0.36;
  --texture-opacity: 0.36;
}

#mairie {
  --mairie: #fcddc1;
  color: #b88957;
  padding-top: 40px;
}

#mairie::before {
  display: none;
}

.color-terracotta {
  background: var(--terracotta);
  color: var(--ink);
  --palm-opacity: 0.4;
  --texture-opacity: 0.44;
}

.color-reponse {
  background: var(--reponse);
  color: var(--white);
  --palm-opacity: 0.48;
  --texture-opacity: 0.5;
}

.card,
.countdown-wrapper {
  width: 100%;
  max-width: 440px;
  padding: 36px 22px 44px;
  text-align: center;
  border: 1px solid currentColor;
  border-radius: 0;
}

.event-card-inner {
  width: 100%;
}

.light-card {
  border-color: rgba(255, 249, 240, 0.7);
}

.main-logo {
  display: block;
  width: min(230px, 66vw);
  margin: 0 auto 24px;
}

.small-label {
  margin: 0 0 18px;
  font-size: 12px;
}

.names-title,
.section-title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0.04em;
}

.names-title {
  font-family: var(--font-title);
  color: var(--terracotta);
  font-size: clamp(44px, 13.5vw, 66px);
}

.names-title span {
  color: var(--burgundy);
  font-size: 0.62em;
}

.section-title {
  font-size: clamp(39px, 12.4vw, 60px);
}

.invitation-text {
  max-width: 29ch;
  margin: 24px auto 0;
  font-size: 18px;
  line-height: 1.55;
}

.detail-heading {
  margin: 0 0 24px;
  font-size: 18px;
  line-height: 1.1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.detail-word {
  display: inline-block;
  margin-right: 8px;
  color: currentColor;
  font-family: var(--font-detail);
  font-size: 2em;
  font-style: italic;
  letter-spacing: 0;
  line-height: 0.7;
  text-transform: none;
  vertical-align: -0.18em;
}

.countdown-heading {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.countdown-heading .detail-word {
  margin-right: 0;
  font-size: clamp(30px, 8.4vw, 40px);
  line-height: 0.9;
  vertical-align: baseline;
}

.countdown-title {
  font-family: var(--font-title);
  font-size: clamp(32px, 9.5vw, 50px);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 0.9;
}

.event-details {
  margin: 30px 0 24px;
}

.event-time {
  margin: 0 0 8px;
  font-family: var(--font-text);
  font-size: clamp(36px, 10vw, 48px);
  letter-spacing: 0.08em;
  line-height: 1;
}

.event-place {
  margin: 0;
  font-size: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ==============================
   MAIRIE
   ============================== */
.mairie-card {
  border: 0;
  padding: 12px 18px 34px;
}

.mairie-title {
  display: inline-grid;
  justify-items: center;
  margin: 0 0 34px;
  color: currentColor;
  line-height: 0.9;
}

.mairie-detail {
  justify-self: start;
  color: currentColor;
  font-family: var(--font-detail);
  font-size: clamp(30px, 8.4vw, 40px);
  font-style: italic;
  letter-spacing: 0;
  transform: translate(-24px, 0px) rotate(-4deg);
}

.mairie-main {
  transform: translateX(6px);
  font-family: var(--font-heading);
  font-size: clamp(48px, 15vw, 72px);
  font-weight: 400;
  letter-spacing: 0.04em;
}

#mairie .mairie-main,
#houppa .mairie-main,
#sunset .mairie-main {
  text-transform: uppercase;
}

.mairie-text {
  display: grid;
  gap: 12px;
  justify-items: center;
  color: currentColor;
  font-family: var(--font-text);
  font-size: 19px;
  line-height: 1.34;
}

.mairie-text p {
  margin: 0;
}

.mairie-names {
  font-size: clamp(27px, 7.8vw, 34px);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.yes-word {
  margin: 34px 0 44px;
  font-family: var(--font-title);
  font-size: clamp(40px, 13vw, 62px);
  line-height: 1;
}

.mairie-date {
  margin-top: 8px;
  font-size: clamp(27px, 8.5vw, 40px);
  line-height: 1.05;
}

.mairie-time {
  margin: 2px 0 0;
  color: currentColor;
}

.event-time-prefix {
  font-family: var(--font-heading);
}

.mairie-address {
  margin-top: 0;
  font-size: 19px;
  line-height: 1.42;
}

.mairie-illustration {
  position: relative;
  isolation: isolate;
  justify-self: center;
  width: min(calc(100% + 100px), 540px);
  margin: 28px auto 0;
  transform: translateX(-48px);
  overflow: hidden;
}

.mairie-illustration img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.94;
  filter: saturate(0.86) brightness(1.04) contrast(0.95);
}

.mairie-illustration::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to right, var(--mairie) 0%, transparent 18%, transparent 82%, var(--mairie) 100%),
    linear-gradient(to bottom, var(--mairie) 0%, transparent 20%, transparent 76%, var(--mairie) 100%);
}

.mairie-time + .mairie-address {
  padding-top: 14px;
}

.mairie-card .agenda-link {
  display: inline-block;
  width: auto;
  margin-top: 26px;
  font-size: 16px;
  line-height: 1.25;
}

.mairie-card .button-primary {
  width: min(230px, 78%);
  margin-top: 34px;
  margin-bottom: 0;
  background: #b88957;
  border-color: #b88957;
  color: var(--white);
}

/* ==============================
   HOUPPA
   ============================== */
#houppa .card {
  border: 0;
  padding: 25px 24px 58px;
}

#houppa {
  --houppa: #fcf5ef;
  background: var(--houppa);
  color: #a87958;
  align-items: flex-start;
  min-height: auto;
  padding-top: 48px;
  padding-bottom: 96px;
  --palm-position: center bottom -250px;
  --palm-size: clamp(660px, 138vw, 1160px) auto;
  --palm-opacity: 0.44;
  --texture-opacity: 0.48;
}

#houppa::before {
  display: none;
}

.houppa-bh {
  position: absolute;
  top: 18px;
  right: 22px;
  z-index: 3;
  font-family: "Times New Roman", serif;
  font-size: clamp(18px, 5vw, 24px);
  line-height: 1;
}

.houppa-title {
  position: relative;
  isolation: isolate;
  padding: clamp(220px, 56vw, 252px) 0 clamp(63px, 16vw, 79px);
  margin-bottom: 12px;
  transform: translateY(28px) scale(0.85);
  transform-origin: top center;
}

/* Decorative palms added only behind the Houppa heading. The section palms remain unchanged. */
.houppa-title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 0;
  width: min(255px, 74.8vw);
  height: 100%;
  transform: translateX(-50%);
  background: url("../img/pal-no-bg.png") center top / 100% auto no-repeat;
  opacity: 0.72;
  pointer-events: none;
}

.houppa-title > span {
  position: relative;
  z-index: 1;
}

/* Slightly smaller, while retaining the original two title typefaces. */
.houppa-title .mairie-detail {
  font-size: clamp(16px, 4.4vw, 21px);
  transform: translate(-24px, 26px) rotate(-4deg);
}

.houppa-title .mairie-main {
  padding: 0.13em 0.25em 0.16em;
  background: var(--houppa);
  font-size: clamp(28px, 8.9vw, 42px);
  transform: translate(6px, 26px);
}

.houppa-verse-arc {
  display: block;
  width: min(100%, 380px);
  margin: -8px auto 14px;
  overflow: visible;
}

.houppa-verse-text {
  fill: currentColor;
  font-family: "Times New Roman", serif;
  font-size: clamp(14px, 4vw, 20px);
  letter-spacing: 0;
  direction: ltr;
  unicode-bidi: bidi-override;
}

.houppa-families {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 0 0 42px;
}

.houppa-family {
  display: grid;
  gap: 10px;
  margin: 0;
  font-size: clamp(9px, 2.55vw, 11px);
  letter-spacing: 0.025em;
}

.houppa-family:first-child {
  text-align: left;
}

.houppa-family:last-child {
  text-align: right;
  align-self: end;
}

.houppa-parent-group {
  display: inline-flex;
  align-items: baseline;
  gap: 0.22em;
  max-width: 100%;
  white-space: nowrap;
}

.houppa-parent-title,
.houppa-parent-names {
  display: inline;
}

.houppa-parent-title {
  flex: 0 0 auto;
  line-height: 1.35;
}

.houppa-parent-names {
  min-width: 0;
  margin-top: 0;
  line-height: 1.35;
}

.houppa-parent-blessing {
  display: block;
  line-height: 1.35;
}

.houppa-family:first-child .houppa-parent-group {
  justify-content: flex-start;
}

.houppa-family:last-child .houppa-parent-group {
  justify-content: flex-end;
}

.houppa-family-label,
.houppa-family-name {
  display: block;
}

.houppa-family-label {
  line-height: 1.25;
}

.houppa-family-name {
  margin-top: 2px;
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  line-height: 1.25;
}

.houppa-announcement,
.houppa-honour,
.houppa-reception {
  max-width: 31ch;
  margin-right: auto;
  margin-left: auto;
  font-size: 17px;
  line-height: 1.55;
}

.houppa-announcement {
  margin-top: 0;
  margin-bottom: 0;
}

.houppa-names {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  margin: 34px 0 0;
}

.houppa-person {
  display: grid;
  justify-items: center;
}

.houppa-name-french {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(32px, 9.8vw, 47px);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 0.9;
}

.houppa-name-hebrew {
  margin: 9px 0 0;
  font-family: "Times New Roman", serif;
  font-size: clamp(16px, 5.2vw, 23px);
  line-height: 1.2;
  text-align: center;
}

.houppa-name-amp {
  margin-top: 1px;
  font-family: var(--font-text);
  font-size: clamp(31px, 9.8vw, 46px);
  line-height: 1;
}

.houppa-honour {
  margin-top: 36px;
  margin-bottom: 0;
}

.houppa-ceremony {
  margin-top: 28px;
}

.houppa-date {
  margin: 8px 0 0;
  font-family: var(--font-text);
  font-size: clamp(27px, 8.5vw, 40px);
  letter-spacing: normal;
  line-height: 1.05;
}

.houppa-time {
  margin: 6px 0 26px;
}

.houppa-reception {
  margin-top: 0;
  margin-bottom: 28px;
}

.houppa-memory {
  position: relative;
  left: 50%;
  width: min(calc(100% + 42px), 430px);
  max-width: none;
  margin: 18px 0 0;
  transform: translateX(-50%);
  font-size: 14.5px;
  line-height: 1.36;
}

.houppa-place {
  margin-top: 10px;
  font-family: var(--font-text);
  font-size: 19px;
  letter-spacing: normal;
  line-height: 1.42;
  text-transform: none;
}

.houppa-illustration {
  position: relative;
  left: 50%;
  isolation: isolate;
  width: 100vw;
  max-width: none;
  margin: 28px 0 0;
  transform: translateX(-50%);
  overflow: hidden;
}

.houppa-illustration img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.94;
  filter: saturate(0.86) brightness(1.04) contrast(0.95);
}

.houppa-illustration::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to right, var(--houppa) 0%, transparent 16%, transparent 84%, var(--houppa) 100%),
    linear-gradient(to bottom, var(--houppa) 0%, transparent 26%, transparent 70%, var(--houppa) 100%);
}

#houppa .agenda-link {
  display: inline-block;
  width: auto;
  margin-top: 38px;
  font-size: 16px;
  line-height: 1.25;
}

#houppa .button-primary {
  width: min(230px, 78%);
  margin-top: 28px;
  margin-bottom: 0;
  background: #a87958;
  border-color: #a87958;
}

/* ==============================
   SUNSET PARTY
   ============================== */
#sunset .card {
  border: 0;
  padding: 26px 18px 34px;
}

#sunset {
  align-items: flex-start;
  min-height: auto;
  padding-top: 86px;
  padding-bottom: 86px;
  overflow: hidden;
  --palm-position: center bottom -160px;
  --palm-opacity: 0.52;
  --texture-opacity: 0.46;
}

#sunset .card {
  position: relative;
  z-index: 2;
}

.sunset-title {
  margin-bottom: 34px;
}

.sunset-title .mairie-main {
  font-size: clamp(38px, 11.5vw, 58px);
}

/* The Mairie and Sunset Party headings use the same palm/title composition as Houppa. */
#mairie .mairie-title,
#sunset .sunset-title {
  position: relative;
  isolation: isolate;
  padding: clamp(220px, 56vw, 252px) 0 clamp(63px, 16vw, 79px);
  margin-bottom: 12px;
  transform: translateY(28px) scale(0.85);
  transform-origin: top center;
}

#mairie .mairie-title::before,
#sunset .sunset-title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 0;
  width: min(255px, 74.8vw);
  height: 100%;
  transform: translateX(-50%);
  background: url("../img/pal-no-bg.png") center top / 100% auto no-repeat;
  opacity: 0.72;
  pointer-events: none;
}

#mairie .mairie-title > span,
#sunset .sunset-title > span {
  position: relative;
  z-index: 1;
}

#houppa .houppa-title > span {
  position: relative;
  z-index: 1;
}

#mairie .mairie-title .mairie-detail,
#sunset .sunset-title .mairie-detail {
  font-size: clamp(20px, 5.5vw, 26px);
  transform: translate(-24px, 26px) rotate(-4deg);
}

#mairie .mairie-title .mairie-main,
#sunset .sunset-title .mairie-main {
  padding: 0.13em 0.25em 0.16em;
  transform: translate(6px, 26px);
}

#mairie .mairie-title .mairie-main {
  background: var(--mairie);
  font-size: clamp(33px, 10.6vw, 51px);
}

#sunset .sunset-title .mairie-main {
  background: var(--terracotta);
  font-size: clamp(27px, 8.2vw, 41px);
}

.sunset-invitation {
  max-width: 31ch;
  margin: 0 auto;
  font-size: 19px;
  line-height: 1.34;
}

.sunset-details {
  display: grid;
  gap: 16px;
  margin: 34px 0 0;
}

.sunset-date {
  margin: 0;
  font-family: var(--font-text);
  font-size: clamp(27px, 8.5vw, 40px);
  line-height: 1.05;
}

.sunset-time {
  margin: 0;
}

.sunset-henne {
  max-width: min(100%, 390px);
  margin: 6px auto 0;
  font-size: 18px;
  line-height: 1.34;
}

.sunset-place {
  margin: 22px 0 0;
  font-family: var(--font-text);
  font-size: 19px;
  letter-spacing: normal;
  line-height: 1.42;
  text-transform: none;
}

#sunset .agenda-link {
  display: inline-block;
  width: auto;
  margin-top: 42px;
  font-size: 16px;
  line-height: 1.25;
}

#sunset .button-primary {
  width: min(230px, 78%);
  margin-top: 34px;
  margin-bottom: 0;
}

/* ==============================
   CHAMBRES & RESERVATIONS
   ============================== */
#chambres.rooms-section {
  min-height: auto;
  padding-top: 80px;
  padding-bottom: 80px;
  background: var(--champagne-light);
  color: #a87958;
}

#chambres::before {
  display: none;
}

.rooms-content {
  width: min(100%, 760px);
  text-align: center;
}

.rooms-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.rooms-title {
  margin: 0;
  color: currentColor;
  font-family: var(--font-heading);
  font-size: clamp(38px, 10vw, 56px);
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 0.95;
}

.rooms-intro {
  max-width: 36ch;
  margin: 20px auto 34px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.45;
}

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  text-align: left;
}

.room-card {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(178, 137, 87, 0.38);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.28);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.room-card:hover,
.room-card:focus-visible {
  border-color: #b88957;
  box-shadow: 0 14px 32px rgba(111, 76, 43, 0.16);
  outline: 0;
  transform: translateY(-4px);
}

.room-card-image {
  position: relative;
  display: block;
  height: 170px;
  overflow: hidden;
  background: #ead7c0;
}

.room-card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(43, 31, 26, 0.44), transparent 50%);
}

.room-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.room-card:hover .room-card-image img,
.room-card:focus-visible .room-card-image img {
  transform: scale(1.06);
}

.room-card-image span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 1;
  padding: 5px 8px;
  background: rgba(43, 31, 26, 0.62);
  color: var(--white);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.room-card-content {
  display: grid;
  gap: 7px;
  padding: 17px 16px 18px;
}

.room-card-content strong {
  color: #9c6f42;
  font-family: var(--font-heading);
  font-size: 23px;
  font-weight: 500;
  line-height: 1;
}

.room-card-content small {
  font-size: 13px;
  line-height: 1.3;
}

.room-card-price {
  margin-top: 4px;
  color: #9c6f42;
  font-family: var(--font-heading);
  font-size: 20px;
  font-style: normal;
  font-weight: 600;
}

.rooms-booking-note {
  max-width: 550px;
  margin: 34px auto 0;
  padding: 20px;
  border-top: 1px solid rgba(178, 137, 87, 0.4);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
  text-align: left;
}

.rooms-booking-contact {
  margin-bottom: 20px;
}

.rooms-booking-contact p {
  margin: 0 0 3px;
  color: #9c6f42;
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 500;
}

.rooms-booking-note a {
  display: inline-block;
  border-bottom: 1px solid currentColor;
  color: #a87958;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.rooms-payment-terms {
  margin: 24px 0 18px;
  padding: 18px 0;
  border-top: 1px solid rgba(178, 137, 87, 0.28);
  border-bottom: 1px solid rgba(178, 137, 87, 0.28);
}

.rooms-payment-terms p {
  margin: 0 0 8px;
  color: #9c6f42;
  font-weight: 600;
}

.rooms-payment-terms ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 19px;
}

.rooms-important-note {
  margin: 0;
  padding-left: 13px;
  border-left: 2px solid #b88957;
  color: #725238;
  font-size: 14px;
}

.room-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 18px;
}

.room-modal[hidden] {
  display: none;
}

.room-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(43, 31, 26, 0.72);
  backdrop-filter: blur(4px);
}

.room-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 680px);
  max-height: min(90vh, 860px);
  overflow: auto;
  background: var(--champagne-light);
  box-shadow: 0 24px 80px rgba(20, 12, 8, 0.42);
  color: var(--ink);
}

.room-modal-close,
.room-modal-arrow {
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(43, 31, 26, 0.62);
  color: var(--white);
  cursor: pointer;
}

.room-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  width: 34px;
  height: 34px;
  font-size: 25px;
  line-height: 1;
}

.room-modal-gallery {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #d9c6ad;
}

.room-modal-gallery > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.room-modal-arrow {
  position: absolute;
  top: 50%;
  width: 38px;
  height: 38px;
  font-size: 31px;
  line-height: 1;
  transform: translateY(-50%);
}

.room-modal-previous {
  left: 14px;
}

.room-modal-next {
  right: 14px;
}

.room-modal-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  display: flex;
  gap: 7px;
  transform: translateX(-50%);
}

.room-modal-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 249, 240, 0.55);
  cursor: pointer;
}

.room-modal-dot[aria-current="true"] {
  background: var(--white);
}

.room-modal-thumbnails {
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  overflow-x: auto;
  border-bottom: 1px solid rgba(178, 137, 87, 0.22);
}

.room-modal-thumbnail {
  flex: 0 0 auto;
  width: 64px;
  height: 46px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  opacity: 0.58;
}

.room-modal-thumbnail[aria-current="true"] {
  border-color: #b88957;
  opacity: 1;
}

.room-modal-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.room-modal-details {
  padding: 24px;
}

.room-modal-kicker {
  margin: 0 0 4px;
  color: #a87958;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.room-modal-details h3 {
  margin: 0;
  color: #9c6f42;
  font-family: var(--font-heading);
  font-size: clamp(28px, 7vw, 39px);
  font-weight: 500;
  line-height: 1;
}

.room-modal-description {
  margin: 18px 0;
  font-size: 15px;
  line-height: 1.5;
}

.room-modal-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 14px 0;
  border-top: 1px solid rgba(178, 137, 87, 0.28);
  border-bottom: 1px solid rgba(178, 137, 87, 0.28);
}

.room-modal-specs div {
  padding: 0 9px;
  text-align: center;
}

.room-modal-specs div + div {
  border-left: 1px solid rgba(178, 137, 87, 0.24);
}

.room-modal-specs dt {
  margin-bottom: 4px;
  color: #a87958;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.room-modal-specs dd {
  margin: 0;
  font-size: 12px;
  line-height: 1.25;
}

.room-modal-rates {
  margin: 0 0 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(178, 137, 87, 0.28);
}

.room-modal-rates p {
  margin: 0 0 8px;
  color: #a87958;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.room-modal-rates ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #9c6f42;
  font-family: var(--font-text);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.2;
}

body.room-modal-open {
  overflow: hidden;
}

@media (max-width: 580px) {
  .overlay-content {
    transform: translateY(clamp(-78px, -9vh, -56px));
  }

  #chambres.rooms-section {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .rooms-grid {
    grid-template-columns: 1fr;
  }

  .room-card-image {
    height: 190px;
  }

  .room-modal {
    padding: 10px;
  }

  .room-modal-details {
    padding: 20px 17px 22px;
  }
}

/* ==============================
   REPONSE
   ============================== */
#reponse {
  align-items: flex-start;
  min-height: auto;
  padding-top: 64px;
  padding-bottom: 96px;
}

.reponse-card {
  border: 0;
  padding: 24px 22px 46px;
}

.reponse-logo {
  display: block;
  width: min(118px, 42vw);
  margin: 0 auto 22px;
}

.reponse-title {
  margin-bottom: 38px;
}

.reponse-title .mairie-main {
  transform: none;
  font-size: clamp(48px, 14vw, 69px);
}

.form-group,
.event-response-group {
  margin: 0 0 24px;
  text-align: left;
}

.form-group label,
.event-response-group legend {
  display: block;
  margin: 0 0 9px;
  color: currentColor;
  font-size: 14px;
  letter-spacing: 1.4px;
  line-height: 1.25;
  text-transform: uppercase;
}

.event-response-group {
  padding: 0;
  border: 0;
}

.form-group input,
.event-response-group input[type="number"],
.form-group textarea {
  width: 100%;
  padding: 13px 12px;
  color: var(--ink);
  background: rgba(255, 249, 240, 0.92);
  border: 1px solid rgba(75, 11, 16, 0.28);
  border-radius: 0;
  font-family: var(--font-text);
  font-size: 16px;
  outline: 0;
}

.form-group input:focus,
.event-response-group input[type="number"]:focus,
.form-group textarea:focus {
  border-color: var(--burgundy-dark);
  box-shadow: 0 0 0 2px rgba(255, 249, 240, 0.32);
}

.form-group textarea {
  min-height: 104px;
  resize: vertical;
}

.checkbox-group {
  display: flex;
  gap: 20px;
  margin-bottom: 12px;
}

.checkbox-group label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: currentColor;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: none;
}

.checkbox-group input[type="radio"] {
  width: 17px;
  height: 17px;
  accent-color: var(--burgundy-dark);
}

.event-response-group input[type="number"]:disabled {
  opacity: 0.54;
  cursor: not-allowed;
}

.form-submit {
  margin-top: 34px;
  text-align: center;
}

.form-submit .button-primary {
  width: min(230px, 78%);
  margin-top: 0;
}

#rsvp-status {
  margin: 0 0 24px;
  padding: 14px 16px;
  color: var(--burgundy-dark);
  background: rgba(255, 249, 240, 0.9);
  border: 1px solid rgba(75, 11, 16, 0.25);
  font-size: 15px;
  line-height: 1.4;
  text-align: center;
}

#rsvp-status[data-type="success"] {
  color: #315c35;
  background: #edf6eb;
}

#rsvp-status[data-type="warning"],
#rsvp-status[data-type="loading"] {
  color: #6f4b16;
  background: #fff1d6;
}

#rsvp-status[data-type="error"] {
  color: #7c171b;
  background: #f8ded8;
}

.music-toggle {
  position: fixed;
  right: calc(16px + env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  color: var(--white);
  background: var(--burgundy);
  border: 1px solid rgba(255, 249, 240, 0.45);
  border-radius: 14px;
  box-shadow: 0 16px 34px rgba(43, 31, 26, 0.24);
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.music-toggle[hidden] {
  display: none;
}

.music-toggle i {
  font-size: 18px;
  line-height: 1;
}

.music-toggle:hover,
.music-toggle:focus-visible {
  background: #a84630;
  transform: translateY(-1px);
}

.site-footer {
  display: flex;
  justify-content: center;
  padding: 26px 20px 34px;
  color: var(--white);
  background: var(--burgundy-dark);
}

.site-footer-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: currentColor;
  font-family: var(--font-heading);
  font-size: clamp(16px, 4vw, 19px);
  letter-spacing: 0.06em;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}

.site-footer-link i {
  font-size: 22px;
  line-height: 1;
}

.site-footer-link:hover,
.site-footer-link:focus-visible {
  opacity: 0.78;
}

.button-primary,
.button-secondary,
.agenda-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  margin-top: 12px;
  border-radius: 0;
  font-size: 13px;
  letter-spacing: 1.4px;
}

.button-primary {
  color: var(--white);
  background: var(--burgundy-dark);
  border: 1px solid var(--burgundy-dark);
}

.button-secondary {
  color: var(--burgundy-dark);
  background: transparent;
  border: 1px solid currentColor;
}

.agenda-link {
  color: currentColor;
  background: transparent;
  border: 0;
  min-height: auto;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* ==============================
   COUNTDOWN
   ============================== */
.countdown-wrapper {
  border: 0;
}

.countdown-date {
  margin: 0 0 24px;
  color: var(--burgundy);
  font-size: 19px;
}

.countdown-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.countdown-item {
  min-width: 0;
  padding: 12px 4px;
  border: 1px solid rgba(75, 11, 16, 0.32);
}

.countdown-number {
  display: block;
  color: var(--burgundy);
  font-family: var(--font-text);
  font-size: clamp(34px, 11vw, 54px);
  line-height: 0.9;
}

.countdown-label {
  display: block;
  margin-top: 7px;
  font-size: 10px;
}

/* ==============================
   FAIRMONT INTRO
   ============================== */
.fairmont-intro-section {
  min-height: 100vh;
}

.fairmont-intro-title {
  display: inline-grid;
  justify-items: center;
  margin: 0;
  color: var(--white);
  text-align: center;
  position: absolute;
  bottom: clamp(94px, 14vh, 142px);
  left: 50%;
  transform: translateX(-50%);
}

.fairmont-detail {
  justify-self: start;
  font-family: var(--font-detail);
  font-size: clamp(42px, 12vw, 58px);
  font-style: italic;
  letter-spacing: 0;
  line-height: 0.9;
  transform: translate(-50px, 0) rotate(-4deg);
}

.fairmont-main {
  transform: translate(28px, 34px);
  font-family: var(--font-title);
  font-size: clamp(30px, 8.6vw, 46px);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 0.9;
}

.fairmont-flight {
  position: absolute;
  top: 0;
  left: 50%;
  width: auto;
  max-width: min(88vw, 450px);
  height: calc(100% - clamp(185px, 29vh, 250px));
  aspect-ratio: 700 / 1080;
  pointer-events: none;
  transform: translateX(-50%);
}

.fairmont-flight {
  z-index: 0;
}

.fairmont-flight-guide {
  fill: none;
  stroke: #c6a988;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.5;
}

.fairmont-flight-progress {
  fill: none;
  stroke: #ffffff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 5.6;
}

.fairmont-flight-plane {
  filter: drop-shadow(0 3px 4px rgba(90, 57, 32, 0.2));
  transform-box: fill-box;
  transform-origin: center;
}

/* ==============================
   PALETTE
   ============================== */
.palette {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 28px;
}

.swatch {
  height: 48px;
  border: 1px solid rgba(43, 31, 26, 0.25);
}

.swatch.burgundy {
  background: var(--burgundy);
}

.swatch.champagne {
  background: var(--champagne-light);
}

.swatch.rose {
  background: var(--rose);
}

.swatch.terracotta {
  background: var(--terracotta);
}

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 380px) {
  :root {
    --nav-height: 68px;
  }

  .event-nav {
    padding: 0 8px;
  }

  .event-nav a {
    font-size: 12px;
    padding: 7px 6px;
  }

  .section,
  .countdown-section {
    min-height: calc(100vh - var(--nav-height));
    padding: 1px 1px;
  }

  .fairmont-intro-section {
    min-height: 100vh;
  }

  .card,
  .countdown-wrapper {
    padding: 30px 16px 38px;
  }

  .mairie-card {
    padding: 10px 14px 28px;
  }

  .color-mairie {
    align-items: flex-start;
    min-height: auto;
    padding: 24px 16px 28px;
  }

  #mairie {
    padding-top: 12px;
  }

  #sunset {
    align-items: flex-start;
    min-height: auto;
    padding: 36px 16px 30px;
  }

  #sunset .card {
    padding: 22px 14px 28px;
  }

  #houppa .card {
    padding: 38px 18px 46px;
  }

  #houppa {
    padding: 54px 16px 38px;
  }

  #reponse {
    padding: 24px 16px 42px;
  }

  .reponse-card {
    padding: 22px 16px 36px;
  }

  .checkbox-group {
    gap: 16px;
  }
}

@media (min-width: 700px) {
  body {
    background: var(--burgundy-dark);
  }

  .event-nav {
    max-width: 430px;
    left: 50%;
    transform: translateX(-50%);
  }

  .section,
  .countdown-section {
    max-width: 430px;
    margin: 0 auto;
  }
}

/* Only the words move upward onto the lower palm trunks; the palm artwork stays fixed. */
#mairie .mairie-title .mairie-detail,
#sunset .sunset-title .mairie-detail,
#houppa .houppa-title .mairie-detail {
  transform: translate(-24px, -52px) rotate(-4deg) !important;
}

#mairie .mairie-title .mairie-main,
#sunset .sunset-title .mairie-main,
#houppa .houppa-title .mairie-main {
  transform: translate(6px, -52px) !important;
}

/* Keep every palm/title composition 30px from the start of its section. */
#mairie,
#houppa,
#sunset {
  padding-top: 20px !important;
}

#mairie .mairie-card,
#houppa .card,
#sunset .card {
  padding-top: 0 !important;
}

#mairie {
  padding-bottom: 39px !important;
}

#mairie .mairie-card {
  padding-bottom: 17px !important;
}

#houppa {
  padding-bottom: 48px !important;
}

#houppa .card {
  padding-bottom: 29px !important;
}

#mairie .mairie-date,
#sunset .sunset-date,
#houppa .houppa-date {
  font-size: clamp(20px, 6.2vw, 29px);
}

#mairie .mairie-time,
#sunset .sunset-time,
#houppa .houppa-time {
  font-size: clamp(25px, 7.2vw, 34px);
}

#mairie .mairie-text,
#mairie .mairie-names,
#mairie .mairie-address,
#mairie .yes-word,
#mairie .agenda-link,
#mairie .button-primary,
#houppa .houppa-families,
#houppa .houppa-announcement,
#houppa .houppa-honour,
#houppa .houppa-reception,
#houppa .houppa-memory,
#houppa .houppa-name-french,
#houppa .houppa-name-amp,
#houppa .houppa-place,
#houppa .agenda-link,
#houppa .button-primary,
#sunset .sunset-invitation,
#sunset .sunset-henne,
#sunset .sunset-place,
#sunset .agenda-link,
#sunset .button-primary,
.event-nav a,
.button-primary,
.button-secondary,
.agenda-link,
.rooms-content,
.room-card,
.room-card-content,
.rooms-booking-note,
.room-modal-dialog,
.room-modal-rates ul,
.form-group label,
.event-response-group legend,
.form-group input,
.event-response-group input[type="number"],
.form-group textarea,
.checkbox-group label,
#rsvp-status {
  font-family: var(--font-heading);
}

#mairie .mairie-date,
#mairie .mairie-time,
#houppa .houppa-date,
#houppa .houppa-time,
#sunset .sunset-date,
#sunset .sunset-time {
  font-family: var(--font-text);
}

#mairie .yes-word {
  font-size: clamp(30px, 9.5vw, 45px);
}

/* Leave a compact 30px visual gap after each palm/title artwork. */
#mairie .mairie-title,
#houppa .houppa-title,
#sunset .sunset-title {
  padding-bottom: 0 !important;
  margin-bottom: 5px !important;
}
