/* Invitation: whole-page decor ("bleu-nuit"), families, moments, calendar, live countdown, photo viewer
   and opening screen. Art files come from /art/bleu-nuit (drawn by scripts/make-art.mjs). Loaded late. */

/* Photos open in a viewer */
.invite-gallery-item {
  display: block;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 5px;
  background: none;
  cursor: zoom-in;
}
.invite-gallery-item img {
  display: block;
  transition: transform 0.25s;
}
.invite-gallery-item:hover img {
  transform: scale(1.05);
}
.invite-gallery-item:focus-visible {
  outline: 3px solid var(--invite-accent);
  outline-offset: 2px;
}

/* Live countdown */
.invite-count-live {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 10px 0 0;
}
.invite-count-live b {
  font-size: 34px;
  font-variant-numeric: tabular-nums;
}
.invite-count-live span {
  margin-top: 6px;
  font-size: 10px;
  letter-spacing: 1.4px;
}

/* Families */
.invite-family-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 14px;
}
.invite-family-cols > div {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 4px 10px;
}
.invite-family-cols > div + div {
  border-left: 1px solid color-mix(in srgb, currentColor 35%, transparent);
}
.invite-family-cols small {
  font-size: 12px;
  opacity: 0.75;
}
.invite-family-cols b {
  font-size: 15px;
  line-height: 1.35;
}

/* Moments: one card per ceremony, reception… */
.invite-moments ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.invite-moments li {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 22px 18px;
  border: 1px solid color-mix(in srgb, var(--invite-accent) 30%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--invite-bg) 60%, #fff);
}
.invite-moments h3 {
  margin: 0;
}
.invite-moment-icon svg {
  width: 44px;
  height: 44px;
  color: var(--invite-accent);
}
.invite-moment-place {
  font-weight: 700;
}
.invite-moment-time {
  letter-spacing: 1px;
}
.invite-datebox {
  display: grid;
  justify-items: center;
  gap: 2px;
  margin: 8px 0 4px;
  padding: 8px 26px;
  border-top: 1px solid color-mix(in srgb, var(--invite-accent) 35%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--invite-accent) 35%, transparent);
}
.invite-datebox b {
  color: var(--invite-accent);
  font-size: 40px;
  line-height: 1;
}
.invite-datebox small {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Calendar */
.invite-cal {
  max-width: 320px;
  margin: 0 auto 16px;
}
.invite-cal > b {
  display: block;
  margin-bottom: 10px;
  font-size: 16px;
  text-transform: capitalize;
}
.invite-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.invite-cal-head {
  font-size: 11px;
  opacity: 0.6;
}
.invite-cal-day {
  font-size: 13px;
  line-height: 30px;
  border-radius: 50%;
}
.invite-cal-day.is-day {
  background: var(--invite-accent);
  color: var(--invite-on-accent);
  font-weight: 700;
}

/* Photo viewer */
.invite-lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 16px;
  background: rgb(3 12 30 / 92%);
}
.invite-lightbox figure {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-width: 0;
  margin: 0;
}
.invite-lightbox img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: 6px;
}
.invite-lightbox figcaption {
  color: #fff;
  font:
    13px/1 system-ui,
    sans-serif;
}
.lb-nav,
.lb-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 15%);
  color: #fff;
  font-size: 26px;
  line-height: 1;
}
.lb-close {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 18px;
}
.lb-nav:focus-visible,
.lb-close:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* Opening screen */
.invite-opening {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 20px;
  background: radial-gradient(
    circle at 50% 28%,
    color-mix(in srgb, var(--invite-accent) 72%, #fff),
    var(--invite-accent) 62%,
    color-mix(in srgb, var(--invite-accent) 55%, #000)
  );
  transition: opacity 0.5s;
}
/* A phone held sideways is short: the greeting screen shrinks to fit, and scrolls if it still does not */
@media (max-height: 520px) {
  .invite-opening {
    overflow-y: auto;
    overscroll-behavior: contain;
    zoom: 0.75;
  }
}
.invite-opening.is-leaving {
  opacity: 0;
  pointer-events: none;
}
.invitation .invite-opening-card {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 10px;
  width: min(360px, 100%);
  padding: 44px 24px 40px;
  overflow: hidden;
  border-radius: 12px;
  background: color-mix(in srgb, var(--invite-bg) 55%, #fff);
  color: var(--invite-accent);
  text-align: center;
  box-shadow: 0 24px 60px rgb(0 0 0 / 45%);
}
.invite-opening-card p {
  margin: 0;
  color: color-mix(in srgb, var(--invite-accent) 75%, #555);
  font-size: 16px;
}
.invite-opening-flower {
  position: absolute;
  width: 140px;
  pointer-events: none;
}
.invite-opening-flower.is-top {
  top: -26px;
  left: -34px;
}
.invite-opening-flower.is-bottom {
  right: -36px;
  bottom: -30px;
  transform: rotate(180deg);
}
.invite-opening-seal {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 30%,
    color-mix(in srgb, var(--invite-accent) 75%, #fff),
    var(--invite-accent)
  );
  color: var(--invite-on-accent);
  box-shadow: 0 8px 20px rgb(0 34 76 / 35%);
}
.invite-opening-seal svg {
  width: 24px;
  height: 24px;
}
.invitation .invite-opening-card h2 {
  margin: 14px 0 0;
  color: var(--invite-accent);
  font: 400 32px/1.15 var(--font-elegant, Georgia, serif);
}
.invite-opening-line {
  width: 130px;
}
.invitation .invite-opening-card .invite-opening-date {
  color: var(--invite-accent);
  font-size: 18px;
}
.invite-opening-btn {
  min-height: 48px;
  margin-top: 8px;
  padding: 0 38px;
  border: 0;
  border-radius: 999px;
  background: var(--invite-accent);
  color: var(--invite-on-accent);
  font: 600 18px var(--font-elegant, Georgia, serif);
  box-shadow: 0 8px 18px rgb(0 0 0 / 28%);
  cursor: pointer;
}
.invite-opening-btn:focus-visible {
  outline: 3px solid #86b6d2;
  outline-offset: 3px;
}

/* Decor: Bleu nuit (paper, hydrangeas, envelope, golden lines, navy cards) */
.invite-decor-bleu-nuit {
  border-radius: 0;
  background-color: var(--invite-bg);
  background-image:
    url('/art/bleu-nuit/papier.svg'), url('/art/bleu-nuit/batiment.svg'), url('/art/bleu-nuit/batiment.svg');
  background-repeat: repeat, no-repeat, no-repeat;
  background-size: 300px, 300px, 260px;
  background-position:
    0 0,
    right -70px top 60px,
    left -80px top 1500px;
}
.invite-has-decor .invite-section {
  border-top: 0;
  padding: 18px 16px;
}
.invite-decor-bleu-nuit h3 {
  font-size: 17px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.invite-has-decor .bn-card {
  margin: 10px 16px;
  padding: 26px 18px;
  border-radius: 14px;
  background: var(--card-bg, var(--invite-accent));
  color: var(--card-fg, var(--invite-on-accent));
}
.invite-has-decor .bn-card h3,
.invite-has-decor .bn-card b {
  color: var(--card-head, var(--card-fg, var(--invite-on-accent)));
}
.invite-has-decor .bn-card .invite-facts dt {
  opacity: 0.8;
}
.invite-has-decor .bn-card .invite-btn {
  background: transparent;
  border: 1px solid currentColor;
  color: inherit;
}
.bn-intro {
  padding-top: 26px;
}
.bn-line {
  display: block;
  width: 150px;
  margin: 0 auto 10px;
}
.invite-has-decor .bn-intro .invite-eyebrow {
  color: var(--invite-accent);
  font-size: 14px !important;
  font-weight: 700;
  letter-spacing: 0.24em;
}
.bn-hero {
  position: relative;
  width: min(100%, 340px);
  aspect-ratio: 1;
  margin: 6px auto 0;
}
.bn-env {
  position: absolute;
  left: 14%;
  bottom: 12%;
  width: 72%;
  height: auto;
}
.bn-env-back {
  z-index: 0;
}
.bn-env-front {
  z-index: 2;
}
.bn-photo {
  position: absolute;
  z-index: 1;
  box-sizing: border-box;
  width: 42%;
  aspect-ratio: 4 / 5;
  padding: 3% 3% 10%;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 6px 16px rgb(0 0 0 / 30%);
  object-fit: cover;
}
.bn-photo-0 {
  bottom: 38%;
  left: 20%;
  transform: rotate(-7deg);
}
.bn-photo-1 {
  bottom: 35%;
  left: 40%;
  transform: rotate(6deg);
}
.bn-flower {
  position: absolute;
  z-index: 3;
  width: 44%;
  pointer-events: none;
}
.bn-flower-l {
  bottom: 5%;
  left: -8%;
}
.bn-flower-r {
  right: -8%;
  bottom: 8%;
  width: 40%;
}
.invite-has-decor .bn-intro h2 {
  margin-top: 22px;
  font-size: 38px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.invite-has-decor .invite-moments li {
  background: rgb(255 255 255 / 55%);
}
@media (prefers-reduced-motion: reduce) {
  .invite-opening,
  .invite-gallery-item img {
    transition: none;
  }
}

.invite-has-decor .bn-gallery-title {
  margin: 22px 0 12px;
}
.invite-has-decor .invite-gallery {
  gap: 8px;
  margin: 0 16px 18px;
}
.invite-has-decor .invite-gallery img {
  height: auto;
  aspect-ratio: 1.05;
  border-radius: 8px;
}
.invite-has-decor .invite-gallery-item {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgb(0 34 76 / 18%);
}

/* ===================================================================================================
   Decor catalogue: shapes painted in the accent colour, heroes, galleries and pages
   =================================================================================================== */
.dc-mask {
  display: block;
  background: var(--invite-accent);
  -webkit-mask: var(--m) center / contain no-repeat;
  mask: var(--m) center / contain no-repeat;
}
.dc-m-coeur {
  --m: url('/art/forme/coeur.svg');
}
.dc-m-coeur-contour {
  --m: url('/art/forme/coeur-contour.svg');
}
.dc-m-guirlande-coeurs {
  --m: url('/art/forme/guirlande-coeurs.svg');
}
.dc-m-arche {
  --m: url('/art/forme/arche.svg');
}
.dc-m-arche-contour {
  --m: url('/art/forme/arche-contour.svg');
}
.dc-m-etoile {
  --m: url('/art/forme/etoile.svg');
}
.dc-m-palme-g {
  --m: url('/art/forme/palme-g.svg');
}
.dc-m-palme-d {
  --m: url('/art/forme/palme-d.svg');
}
.dc-m-pagne {
  --m: url('/art/forme/pagne.svg');
}
.dc-m-artdeco-eventail {
  --m: url('/art/forme/artdeco-eventail.svg');
}
.dc-m-artdeco-ligne {
  --m: url('/art/forme/artdeco-ligne.svg');
}
.dc-m-timbre {
  --m: url('/art/forme/timbre.svg');
}
.dc-m-cachet {
  --m: url('/art/forme/cachet.svg');
}
.invite-has-decor {
  isolation: isolate;
  overflow: hidden;
}
.dc-hero {
  position: relative;
  margin: 8px auto 0;
}
.dc-hero img {
  display: block;
}
.dc-blank {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 60px;
  background: color-mix(in srgb, var(--invite-accent) 14%, var(--invite-bg));
}
.dc-round-photo,
.dc-oval-photo,
.dc-heart-photo,
.dc-arch-photo {
  background: color-mix(in srgb, var(--invite-accent) 18%, var(--invite-bg));
}
.dc-round-photo img,
.dc-oval-photo img,
.dc-heart-photo img,
.dc-arch-photo img,
.dc-deco-photo img,
.dc-mail-letter img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.invite-decor-coeurs .bn-intro h2,
.invite-decor-aquarelle .bn-intro h2,
.invite-decor-tropical .bn-intro h2,
.invite-decor-arche .bn-intro h2,
.invite-decor-album .bn-intro h2 {
  font-size: 44px;
  letter-spacing: 0;
  text-transform: none;
}
.invite-decor-planche .bn-intro h2 {
  font-size: 30px;
  letter-spacing: 0.1em;
}

/* Cards: filled with the accent colour by default; light decors keep a paper card */
.invite-decor-enveloppe,
.invite-decor-coeurs,
.invite-decor-album,
.invite-decor-arche,
.invite-decor-tropical,
.invite-decor-aquarelle {
  --card-bg: color-mix(in srgb, var(--invite-bg) 45%, #fff);
  --card-fg: var(--invite-text);
  --card-head: var(--invite-accent);
}
.invite-decor-artdeco,
.invite-decor-planche {
  --card-bg: color-mix(in srgb, var(--invite-accent) 12%, transparent);
  --card-fg: var(--invite-text);
  --card-head: var(--invite-accent);
}
.invite-decor-enveloppe .bn-card,
.invite-decor-coeurs .bn-card,
.invite-decor-album .bn-card,
.invite-decor-arche .bn-card,
.invite-decor-tropical .bn-card,
.invite-decor-aquarelle .bn-card,
.invite-decor-artdeco .bn-card,
.invite-decor-planche .bn-card {
  border: 1px solid color-mix(in srgb, var(--invite-accent) 35%, transparent);
}
.invite-decor-artdeco .invite-moments li,
.invite-decor-planche .invite-moments li {
  background: color-mix(in srgb, var(--invite-accent) 10%, transparent);
}

/* Story and wedding party */
.invite-story-list {
  display: grid;
  gap: 18px;
  margin: 16px 0 0 10px;
  padding: 0 0 0 22px;
  border-left: 2px solid color-mix(in srgb, var(--invite-accent) 45%, transparent);
  list-style: none;
  text-align: left;
}
.invite-story-list li {
  position: relative;
}
.invite-story-list li::before {
  content: '';
  position: absolute;
  top: 5px;
  left: -29px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--invite-accent);
  box-shadow: 0 0 0 4px var(--invite-bg);
}
.invite-story-list small {
  color: var(--invite-accent);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.invite-story-list b {
  display: block;
  font-size: 17px;
}
.invite-story-list p {
  margin-top: 4px;
  font-size: 14px;
}
.invite-party-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.invite-party-list li {
  display: grid;
  gap: 2px;
}
.invite-party-list span {
  font-size: 12px;
  font-style: italic;
  opacity: 0.75;
}

/* --- Courrier: envelope with a letter, a stamp and a postmark, airmail edges ----------------------- */
.dc-mailer {
  width: min(100%, 340px);
  aspect-ratio: 300 / 250;
}
.dc-mail-back,
.dc-mail-front {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
}
.dc-mail-front {
  z-index: 2;
}
.dc-mail-letter {
  position: absolute;
  z-index: 1;
  bottom: 30%;
  left: 15%;
  width: 70%;
  aspect-ratio: 3 / 3.6;
  padding: 4%;
  background: #fffdf7;
  box-shadow: 0 6px 16px rgb(0 0 0 / 25%);
  transform: rotate(-2deg);
}
.dc-mail-letter .dc-mask {
  width: 30%;
  height: 100%;
  margin: auto;
}
.dc-stamp,
.dc-postmark {
  position: absolute;
  z-index: 3;
  background: #f4efe3;
}
.dc-stamp {
  right: 8%;
  bottom: 38%;
  width: 14%;
  aspect-ratio: 80 / 100;
  transform: rotate(4deg);
}
.dc-postmark {
  right: 19%;
  bottom: 33%;
  width: 24%;
  aspect-ratio: 2 / 1;
  opacity: 0.8;
}
.invite-decor-enveloppe::before,
.invite-decor-enveloppe::after {
  content: '';
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  height: 10px;
  background: repeating-linear-gradient(
    135deg,
    #c8343f 0 14px,
    #fff 14px 28px,
    #2a4f9b 28px 42px,
    #fff 42px 56px
  );
}
.invite-decor-enveloppe::before {
  top: 0;
}
.invite-decor-enveloppe::after {
  bottom: 0;
}

/* --- Cœurs ----------------------------------------------------------------------------------------- */
.dc-hearts {
  width: min(100%, 340px);
  height: 330px;
}
.dc-garland {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 56px;
  opacity: 0.85;
}
.dc-heart-photo {
  --m: url('/art/forme/coeur.svg');
  position: absolute;
  top: 66px;
  left: 50%;
  width: 78%;
  aspect-ratio: 100 / 90;
  overflow: hidden;
  transform: translateX(-50%);
  -webkit-mask: var(--m) center / contain no-repeat;
  mask: var(--m) center / contain no-repeat;
}
.dc-heart-ring {
  position: absolute;
  top: 55px;
  left: 50%;
  width: 84.2%;
  aspect-ratio: 108 / 98;
  transform: translateX(-50%);
}
.dc-float {
  position: absolute;
  opacity: 0.7;
}
.dc-float-1 {
  top: 26%;
  left: 4%;
  width: 22px;
  aspect-ratio: 1.1;
}
.dc-float-2 {
  top: 40%;
  right: 2%;
  width: 30px;
  aspect-ratio: 1.1;
}
.dc-float-3 {
  top: 66%;
  left: 8%;
  width: 28px;
  aspect-ratio: 1.1;
}
.dc-float-4 {
  top: 80%;
  right: 10%;
  width: 20px;
  aspect-ratio: 1.1;
}
.dc-float-5 {
  top: 18%;
  left: 24%;
  width: 16px;
  aspect-ratio: 1.1;
}
.dc-float-6 {
  top: 22%;
  right: 20%;
  width: 18px;
  aspect-ratio: 1.1;
}
@media (prefers-reduced-motion: no-preference) {
  .dc-float {
    animation: dc-rise 4.5s ease-in-out infinite alternate;
  }
  .dc-float-2,
  .dc-float-5 {
    animation-delay: -1.5s;
  }
  .dc-float-3,
  .dc-float-6 {
    animation-delay: -3s;
  }
}
@keyframes dc-rise {
  to {
    transform: translateY(-10px) rotate(8deg);
  }
}
.invite-decor-coeurs::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--invite-accent);
  opacity: 0.06;
  -webkit-mask: url('/art/forme/coeur.svg') 0 0 / 64px 58px repeat;
  mask: url('/art/forme/coeur.svg') 0 0 / 64px 58px repeat;
}

/* --- Album photo: polaroids held by tape ---------------------------------------------------------- */
.dc-album {
  width: min(100%, 340px);
  height: 310px;
}
.dc-polaroid {
  position: absolute;
  width: 44%;
  margin: 0;
  padding: 3% 3% 0;
  background: #fff;
  box-shadow: 0 6px 16px rgb(0 0 0 / 28%);
}
.dc-polaroid img,
.dc-polaroid .dc-blank {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.dc-polaroid figcaption {
  padding: 6px 0 9px;
  color: #3b3b3b;
  font: 600 15px var(--font-script, cursive);
}
.dc-polaroid-0 {
  top: 40px;
  left: 2%;
  transform: rotate(-8deg);
}
.dc-polaroid-1 {
  z-index: 2;
  top: 0;
  left: 28%;
  transform: rotate(3deg);
}
.dc-polaroid-2 {
  top: 54px;
  right: 2%;
  transform: rotate(9deg);
}
.dc-tape {
  position: absolute;
  top: -9px;
  left: 50%;
  width: 46%;
  height: 18px;
  background: color-mix(in srgb, var(--invite-accent) 38%, transparent);
  transform: translateX(-50%) rotate(-3deg);
}
.invite-decor-album {
  background-image: repeating-linear-gradient(0deg, transparent 0 3px, rgb(0 0 0 / 3.5%) 3px 4px);
}
.invite-decor-album .invite-gallery {
  gap: 12px 10px;
  margin: 0 16px 20px;
}
.invite-decor-album .invite-gallery-item {
  padding: 5px 5px 20px;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 4px 12px rgb(0 0 0 / 22%);
  transform: rotate(-2.5deg);
}
.invite-decor-album .invite-gallery-item:nth-child(even) {
  transform: rotate(2.5deg);
}
.invite-decor-album .invite-gallery img {
  height: auto;
  aspect-ratio: 1.15;
  border-radius: 0;
}

/* --- Planche photo: contact sheet and film ----------------------------------------------------------- */
.dc-film {
  width: min(100%, 360px);
}
.dc-film-strip {
  position: relative;
  display: flex;
  gap: 6px;
  padding: 22px 8px;
  border-radius: 3px;
  background: #101010;
}
.dc-film-strip::before,
.dc-film-strip::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 9px;
  background: radial-gradient(circle, #f3f3f3 0 2.6px, transparent 3px) 0 0 / 14px 9px repeat-x;
  opacity: 0.85;
}
.dc-film-strip::before {
  top: 6px;
}
.dc-film-strip::after {
  bottom: 6px;
}
.dc-film-frame {
  position: relative;
  flex: 1;
  margin: 0;
  aspect-ratio: 3 / 4;
  background: #222;
}
.dc-film-frame img,
.dc-film-frame .dc-blank {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dc-film-frame figcaption {
  position: absolute;
  right: 2px;
  bottom: -17px;
  color: #e8a63a;
  font:
    10px ui-monospace,
    monospace;
  letter-spacing: 1px;
}
.invite-has-decor .dc-film-label {
  margin: 6px 0 0;
  color: var(--invite-accent);
  font:
    11px ui-monospace,
    monospace !important;
  letter-spacing: 0.22em;
}
.invite-decor-planche .invite-gallery {
  gap: 6px;
  margin: 0 12px 20px;
  padding: 18px 8px;
  background: #101010;
  counter-reset: frame 6;
}
.invite-decor-planche .invite-gallery-item {
  position: relative;
  counter-increment: frame;
  border-radius: 0;
  background: #222;
}
.invite-decor-planche .invite-gallery-item::after {
  content: counter(frame) 'A';
  position: absolute;
  right: 3px;
  bottom: 2px;
  color: #e8a63a;
  font:
    10px ui-monospace,
    monospace;
  text-shadow: 0 0 3px #000;
}
.invite-decor-planche .invite-gallery img {
  height: auto;
  aspect-ratio: 1.1;
  border-radius: 0;
}

/* --- Arche ---------------------------------------------------------------------------------------- */
.dc-arch {
  width: min(100%, 300px);
  height: 370px;
}
.dc-arch-photo {
  --m: url('/art/forme/arche.svg');
  position: absolute;
  top: 16px;
  left: 50%;
  width: 62%;
  aspect-ratio: 100 / 130;
  overflow: hidden;
  transform: translateX(-50%);
  -webkit-mask: var(--m) center / contain no-repeat;
  mask: var(--m) center / contain no-repeat;
}
.dc-arch-ring {
  position: absolute;
  top: 9px;
  left: 50%;
  width: 66%;
  aspect-ratio: 106 / 136;
  transform: translateX(-50%);
}
.dc-arch-flower {
  position: absolute;
  bottom: 0;
  height: auto;
}
.dc-arch-flower-l {
  left: -8%;
  width: 46%;
}
.dc-arch-flower-r {
  right: -8%;
  width: 42%;
}
.invite-decor-arche::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--invite-accent);
  opacity: 0.07;
  -webkit-mask: url('/art/forme/arche-contour.svg') 0 0 / 84px 108px repeat;
  mask: url('/art/forme/arche-contour.svg') 0 0 / 84px 108px repeat;
}
.invite-decor-arche .invite-gallery img,
.invite-decor-arche .invite-gallery-item {
  border-radius: 999px 999px 8px 8px;
}
.invite-decor-arche .invite-gallery {
  gap: 10px;
  margin: 0 16px 20px;
}
.invite-decor-arche .invite-gallery img {
  height: auto;
  aspect-ratio: 0.9;
}

/* --- Palmes ----------------------------------------------------------------------------------------- */
.dc-tropical {
  width: min(100%, 360px);
  height: 300px;
}
.dc-palm {
  position: absolute;
  top: -8px;
  width: 38%;
  aspect-ratio: 2 / 3;
}
.dc-palm-l {
  left: -6%;
}
.dc-palm-r {
  right: -6%;
}
.dc-palm-l2,
.dc-palm-r2 {
  top: 70px;
  width: 30%;
  opacity: 0.4;
}
.dc-palm-l2 {
  left: 4%;
}
.dc-palm-r2 {
  right: 4%;
}
.dc-tropical .dc-round-photo {
  position: relative;
  z-index: 1;
  width: 54%;
  margin: 34px auto 0;
}
.dc-round-photo {
  width: min(60%, 220px);
  aspect-ratio: 1;
  margin: 0 auto;
  overflow: hidden;
  border: 6px solid var(--invite-accent);
  border-radius: 50%;
}
.invite-decor-tropical {
  background-image: linear-gradient(var(--invite-bg), color-mix(in srgb, var(--invite-bg) 75%, #fff));
}
.invite-decor-tropical::after {
  content: '';
  position: absolute;
  z-index: -1;
  bottom: -30px;
  left: -40px;
  width: 260px;
  aspect-ratio: 2 / 3;
  background: var(--invite-accent);
  opacity: 0.08;
  -webkit-mask: url('/art/forme/palme-g.svg') center / contain no-repeat;
  mask: url('/art/forme/palme-g.svg') center / contain no-repeat;
}
.invite-decor-tropical .invite-gallery img {
  border-radius: 40% 12px 40% 12px;
}

/* --- Pagne: wax-print bands ------------------------------------------------------------------------- */
.dc-pagne {
  width: 100%;
}
.dc-pagne-band {
  width: 100%;
  height: 54px;
  -webkit-mask: var(--m) left center / 54px 54px repeat-x;
  mask: var(--m) left center / 54px 54px repeat-x;
}
.dc-pagne .dc-round-photo {
  margin: 20px auto;
}
.invite-decor-pagne::after {
  content: '';
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: 0;
  left: 0;
  height: 54px;
  background: var(--invite-accent);
  -webkit-mask: url('/art/forme/pagne.svg') left center / 54px 54px repeat-x;
  mask: url('/art/forme/pagne.svg') left center / 54px 54px repeat-x;
}
.invite-decor-pagne .invite-section {
  padding-bottom: 22px;
}
.invite-decor-pagne h3::after {
  content: '';
  display: block;
  width: 90px;
  height: 14px;
  margin: 8px auto 0;
  background: var(--invite-accent);
  -webkit-mask: url('/art/forme/pagne.svg') left center / 14px 14px repeat-x;
  mask: url('/art/forme/pagne.svg') left center / 14px 14px repeat-x;
}

/* --- Art déco ---------------------------------------------------------------------------------------- */
.dc-deco {
  width: min(100%, 340px);
  padding-top: 8px;
}
.dc-fan {
  position: absolute;
  top: -8px;
  width: 34%;
  aspect-ratio: 1;
  opacity: 0.85;
}
.dc-fan-l {
  left: -18px;
}
.dc-fan-r {
  right: -18px;
  transform: scaleX(-1);
}
.dc-deco-photo {
  width: 62%;
  margin: 34px auto 0;
  padding: 5px;
  background: var(--invite-accent);
  clip-path: polygon(14% 0, 86% 0, 100% 7%, 100% 93%, 86% 100%, 14% 100%, 0 93%, 0 7%);
}
.dc-deco-photo img,
.dc-deco-photo .dc-blank {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  clip-path: polygon(14% 0, 86% 0, 100% 7%, 100% 93%, 86% 100%, 14% 100%, 0 93%, 0 7%);
}
.dc-deco-line {
  width: 70%;
  height: 16px;
  margin: 18px auto 0;
}
.invite-decor-artdeco {
  box-shadow:
    inset 0 0 0 10px var(--invite-bg),
    inset 0 0 0 11px var(--invite-accent),
    inset 0 0 0 14px var(--invite-bg),
    inset 0 0 0 15px color-mix(in srgb, var(--invite-accent) 50%, transparent);
}
.invite-decor-artdeco h3 {
  letter-spacing: 0.22em;
}
.invite-decor-artdeco .invite-gallery img {
  border-radius: 0;
  border: 1px solid var(--invite-accent);
}

/* --- Aquarelle --------------------------------------------------------------------------------------- */
.dc-wash {
  width: min(100%, 340px);
  height: 340px;
}
.dc-wash-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(18px);
}
.dc-wash-1 {
  top: 8px;
  left: 2%;
  width: 62%;
  height: 62%;
  background: color-mix(in srgb, var(--invite-accent) 32%, transparent);
}
.dc-wash-2 {
  right: 0;
  bottom: 6%;
  width: 56%;
  height: 56%;
  background: color-mix(in srgb, var(--invite-accent) 18%, transparent);
}
.dc-oval-photo {
  position: absolute;
  top: 30px;
  left: 50%;
  width: 60%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  transform: translateX(-50%);
  border-radius: 50%;
  -webkit-mask: radial-gradient(closest-side, #000 72%, transparent 100%);
  mask: radial-gradient(closest-side, #000 72%, transparent 100%);
}
.dc-wash-flower {
  position: absolute;
  height: auto;
}
.dc-wash-flower-l {
  top: 4px;
  left: -8%;
  width: 42%;
}
.dc-wash-flower-r {
  right: -8%;
  bottom: 0;
  width: 44%;
}
.invite-decor-aquarelle {
  background-image:
    radial-gradient(
      circle at 0 0,
      color-mix(in srgb, var(--invite-accent) 26%, transparent),
      transparent 46%
    ),
    radial-gradient(
      circle at 100% 38%,
      color-mix(in srgb, var(--invite-accent) 16%, transparent),
      transparent 42%
    ),
    radial-gradient(
      circle at 0 88%,
      color-mix(in srgb, var(--invite-accent) 20%, transparent),
      transparent 46%
    );
}
.invite-decor-aquarelle .invite-gallery img {
  border-radius: 18px;
}

/* --- Opening screens: envelope and curtain -------------------------------------------------------------- */
.invite-opening-envelope {
  background: radial-gradient(
    circle at 50% 30%,
    color-mix(in srgb, var(--invite-accent) 70%, #fff),
    var(--invite-accent) 70%
  );
}
.oe-wrap {
  display: grid;
  justify-items: center;
  gap: 12px;
  color: var(--invite-on-accent);
  text-align: center;
}
.invitation .oe-wrap h2 {
  margin: 0;
  color: var(--invite-on-accent);
  font: 400 34px/1.15 var(--font-elegant, Georgia, serif);
}
.invitation .oe-wrap .invite-opening-date {
  margin: 0;
  color: var(--invite-on-accent);
  font-size: 17px;
}
.oe-envelope {
  position: relative;
  width: min(78vw, 320px);
  aspect-ratio: 300 / 220;
  margin: 10px 0 6px;
}
.oe-back,
.oe-front {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.oe-letter {
  position: absolute;
  top: 12%;
  right: 12%;
  bottom: 22%;
  left: 12%;
  background: #fffdf7;
  box-shadow: 0 4px 10px rgb(0 0 0 / 25%);
  transition: transform 0.6s ease;
}
.invite-opening-envelope.is-leaving .oe-letter {
  transform: translateY(-70%);
}
.invite-opening-envelope .invite-opening-btn {
  background: #f4efe3;
  color: var(--invite-accent);
}
.invite-opening-curtain {
  background: transparent;
  transition: none;
}
.oc-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.5%;
  background:
    linear-gradient(90deg, rgb(0 0 0 / 18%), transparent 40%, rgb(255 255 255 / 8%) 70%, rgb(0 0 0 / 22%)) 0
      0 / 56px 100%,
    var(--invite-accent);
  transition: transform 0.8s cubic-bezier(0.7, 0, 0.3, 1);
}
.oc-left {
  left: 0;
}
.oc-right {
  right: 0;
}
.oc-center {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 10px;
  color: var(--invite-on-accent);
  text-align: center;
  transition: opacity 0.4s;
}
.oc-star {
  width: 34px;
  height: 34px;
  background: currentColor;
}
.invitation .oc-center h2 {
  margin: 4px 0 0;
  color: var(--invite-on-accent);
  font: 400 36px/1.15 var(--font-elegant, Georgia, serif);
}
.invitation .oc-center .invite-opening-date {
  margin: 0;
  color: var(--invite-on-accent);
  font-size: 17px;
}
.invite-opening-curtain .invite-opening-btn {
  background: var(--invite-on-accent);
  color: var(--invite-accent);
}
.invite-opening-curtain.is-leaving .oc-left {
  transform: translateX(-101%);
}
.invite-opening-curtain.is-leaving .oc-right {
  transform: translateX(101%);
}
.invite-opening-curtain.is-leaving .oc-center {
  opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
  .oc-panel,
  .oc-center,
  .oe-letter {
    transition: none;
  }
}

/* The celebration layout paints confetti behind its content: a decor brings its own look */
.invite-has-decor .invite-content {
  background: none;
}

/* Cover cropping point chosen by the organiser */
.dc-hero img,
.invite-cover {
  object-position: center;
}
