/* Page d'accueil : la nuit de la fête, un pagne tissé, un nom qui suit le visiteur. Mobile d'abord. */

:root {
  --home-ivory: var(--tch-bg);
  --home-night: var(--tch-primary-deep);
  --home-sand: #f1dcae;
  --home-on-dark: rgba(255, 247, 234, 0.84);
  --home-gutter: clamp(20px, 5vw, 72px);
  --home-rhythm: clamp(80px, 12vw, 168px);
  --home-radius: 4px;
  --home-nav: 82px;
  --home-serif: 'Cormorant Garamond', Georgia, serif;
  --home-lift: 0 34px 60px -24px rgba(5, 9, 30, 0.7);
  --home-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .36 0 0 0 0 .2 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23g)'/%3E%3C/svg%3E");
}

.home {
  overflow-x: clip;
  background: var(--home-night);
  color: var(--tch-primary);
  font-size: 1.0625rem;
  font-variant-numeric: lining-nums;
}

.home ::selection { background: var(--tch-accent); color: var(--tch-primary); }

.home :focus-visible {
  outline: 2px solid var(--tch-accent);
  outline-offset: 3px;
}

html:has(.home) {
  scrollbar-color: var(--tch-accent) var(--home-night);
  scroll-padding-top: var(--home-nav);
}

.home-container {
  width: min(100%, 1400px);
  margin-inline: auto;
  padding-inline: var(--home-gutter);
}

.home-title {
  max-width: 17ch;
  font-family: var(--home-serif);
  font-size: clamp(2.5rem, 5vw, 4.75rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.home-lead {
  max-width: 46ch;
  margin-top: 22px;
  font-size: clamp(1.0625rem, 1.5vw, 1.3125rem);
  line-height: 1.55;
}

.home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 30px;
  border: 1px solid var(--tch-accent);
  border-radius: var(--home-radius);
  background: var(--tch-accent);
  color: var(--tch-primary);
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s var(--ease-out-expo), color 0.18s var(--ease-out-expo), transform 0.18s var(--ease-out-expo);
}
.home-button:hover { background: #d4b271; transform: translateY(-2px); }
.home-button:active { transform: translateY(1px); }
.home-button:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.home-button--quiet {
  border-color: currentColor;
  background: transparent;
  color: inherit;
}
.home-button--quiet:hover {
  background: var(--tch-primary);
  border-color: var(--tch-primary);
  color: var(--home-ivory);
}
.home-button--full { width: 100%; }

.home-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--tch-primary);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: text-underline-offset 0.18s var(--ease-out-expo);
}
.home-link:hover { text-underline-offset: 8px; }
.home-link--light { color: var(--home-ivory); }

/* Lisière de pagne entre deux scènes */
.home-idea__names::before,
.home-idea__names::after,
.home-start::before {
  content: '';
  display: block;
  height: clamp(36px, 5vw, 72px);
  background: url('../images/pagne-bande.svg') repeat-x left center / auto 100%;
}

/* Téléphone : ses écrans se dimensionnent sur sa largeur */
.home-phone {
  position: relative;
  aspect-ratio: 9 / 19;
  overflow: hidden;
  container-type: inline-size;
  border: 7px solid #070b1f;
  border-radius: 36px;
  background: #070b1f;
  box-shadow: var(--home-lift);
}
.home-phone::before {
  content: '';
  position: absolute;
  top: 2.6cqw;
  left: 50%;
  z-index: 3;
  width: 26cqw;
  height: 5cqw;
  border-radius: 99px;
  background: #070b1f;
  transform: translateX(-50%);
}
.home-phone__video { display: block; width: 100%; height: 100%; object-fit: cover; }
.home-phone__toggle {
  position: absolute;
  right: 5cqw;
  bottom: 5cqw;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 247, 234, 0.5);
  border-radius: 50%;
  background: rgba(15, 26, 61, 0.72);
  color: var(--home-ivory);
  cursor: pointer;
}

/* Écrans : mêmes composants que l'application Tchefon */
.home-screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 2.6cqw;
  padding: 12cqw 4.4cqw 4.4cqw;
  overflow: hidden;
  background: var(--home-ivory);
  color: var(--tch-primary);
  font-size: 4cqw;
  line-height: 1.32;
  text-align: left;
}
.home-screen small {
  display: block;
  color: #8a6d33;
  font-size: 3cqw;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.home-screen__upper { text-transform: uppercase; }
.home-screen__bar {
  position: relative;
  margin-bottom: 1.4cqw;
  font-size: 4.6cqw;
  font-weight: 600;
  text-align: center;
}
.home-screen__bar i { position: absolute; left: 0; top: 0.8cqw; font-size: 3.8cqw; }
.home-screen__section {
  margin-top: 1cqw;
  font-family: var(--home-serif);
  font-size: 6cqw;
  font-weight: 500;
}
.home-screen__card {
  display: grid;
  gap: 1.2cqw;
  padding: 3.4cqw;
  border: 1px solid #ece1c9;
  border-radius: 3cqw;
  background: #fffdf8;
}
.home-screen__card--ticket { border-left: 0.9cqw solid var(--tch-accent); box-shadow: 0 2cqw 4cqw -2cqw rgba(30, 42, 90, 0.2); }
.home-screen__card--code { justify-items: center; text-align: center; }
.home-screen__card--code img { width: 40cqw; height: 40cqw; }
.home-screen__card--code b { font-size: 4.6cqw; font-weight: 600; }
.home-screen__strong { font-weight: 600; }
.home-screen__line { color: #5a6280; font-size: 3.6cqw; }
.home-screen__pair { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2cqw; font-weight: 600; font-size: 3.7cqw; }
.home-screen__seat { font-weight: 600; font-size: 3.7cqw; }
.home-screen__pill {
  justify-self: start;
  padding: 0.8cqw 2.6cqw;
  border-radius: 99px;
  background: #dcefe6;
  color: var(--tch-secondary);
  font-size: 3.5cqw;
  font-weight: 600;
}
.home-screen__quote {
  padding: 2.4cqw;
  border-radius: 2cqw;
  background: #f6ecd8;
  font-family: var(--home-serif);
  font-size: 4.6cqw;
  font-style: italic;
  text-align: center;
}
.home-screen__outline {
  padding: 2.2cqw;
  border: 1px solid var(--tch-primary);
  border-radius: 2cqw;
  font-size: 3.7cqw;
  font-weight: 600;
  text-align: center;
}
.home-screen__action {
  margin-top: auto;
  padding: 3.2cqw;
  border-radius: 2.4cqw;
  background: var(--tch-primary);
  color: #fff;
  font-size: 3.9cqw;
  font-weight: 600;
  text-align: center;
}
.home-screen__photo { flex: 1; min-height: 0; width: 100%; border-radius: 3cqw; object-fit: cover; object-position: center 40%; }
.home-screen--home { padding: 0 0 3.4cqw; }
.home-screen--home > .home-screen__card,
.home-screen--home > .home-screen__section,
.home-screen--home > .home-screen__action { margin-inline: 4.4cqw; }
.home-screen__head {
  display: grid;
  gap: 1.4cqw;
  padding: 12cqw 4.4cqw 8cqw;
  border-radius: 0 0 5cqw 5cqw;
  background: linear-gradient(170deg, #1e2a5a, var(--home-night));
  color: var(--home-ivory);
}
.home-screen__head small { color: var(--tch-accent); }
.home-screen__hello { font-family: var(--home-serif); font-size: 8.2cqw; font-weight: 500; line-height: 1.05; overflow-wrap: anywhere; }
.home-screen__head--board .home-screen__hello { color: #e8d3a0; }
.home-screen__space { justify-self: start; font-size: 3.6cqw; font-weight: 600; }
.home-screen__head--door .home-screen__space { justify-self: end; }
.home-screen__count { display: flex; gap: 3.4cqw; justify-self: start; padding: 2cqw 3.4cqw; border-radius: 3cqw; background: var(--home-ivory); color: var(--tch-primary); font-family: var(--home-serif); font-size: 6cqw; line-height: 1; text-align: center; }
.home-screen__count small { margin-top: 0.6cqw; color: var(--tch-primary); font-family: 'Inter', sans-serif; font-size: 2.4cqw; letter-spacing: 0.04em; }
.home-screen__big { font-family: var(--home-serif); font-size: 13cqw; line-height: 1; text-align: center; }
.home-screen__rows { display: flex; justify-content: space-between; font-size: 3.5cqw; }
.home-screen__card--invite { margin-top: -5cqw; padding: 0 0 3.4cqw; overflow: hidden; }
.home-screen__card--invite img { width: 100%; height: 36cqw; object-fit: cover; }
.home-screen__card--invite > :not(img) { margin-inline: 3.4cqw; }
.home-screen__date { justify-self: start; margin-top: -4.6cqw; padding: 0.8cqw 2.6cqw; border-radius: 99px; background: var(--tch-primary); color: #fff; font-size: 3.2cqw; font-weight: 600; }
.home-screen__names { font-family: var(--home-serif); font-size: 7cqw; line-height: 1.05; }
.home-screen__role { justify-self: start; padding: 0.8cqw 2.6cqw; border-radius: 99px; background: #f3e6c8; color: #7a5c1e; font-size: 3.4cqw; font-weight: 600; }
.home-screen__nav {
  display: flex;
  justify-content: space-around;
  margin: auto 3cqw 0;
  padding: 2cqw 1cqw;
  border-radius: 99px;
  background: #fffdf8;
  box-shadow: 0 1cqw 4cqw rgba(30, 42, 90, 0.18);
  font-size: 2.7cqw;
  font-weight: 500;
}
.home-screen__nav b, .home-screen__nav span { display: grid; justify-items: center; gap: 0.6cqw; color: #5a6280; font-weight: 500; }
.home-screen__nav b { color: var(--tch-primary); font-weight: 700; }
.home-screen__nav i { font-size: 4cqw; }

/* Hero : la table dressée, le soir de la fête */
.home-hero {
  --px: 0;
  --py: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  overflow: hidden;
  padding-top: var(--home-nav);
  background:
    linear-gradient(rgba(15, 26, 61, 0.92), rgba(15, 26, 61, 0.68) 22%, rgba(15, 26, 61, 0.62) 52%, rgba(15, 26, 61, 0.9)),
    linear-gradient(rgba(15, 26, 61, 0), rgba(15, 26, 61, 0.62) 52%, rgba(15, 26, 61, 0.9)),
    url('../images/nuit-de-fete.webp') center / cover,
    var(--home-night);
  color: var(--home-ivory);
}

.home-balloons { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.home-balloons__defs { position: absolute; }
.home-balloon {
  position: absolute;
  width: var(--balloon, clamp(46px, 7.4vw, 118px));
  height: auto;
  overflow: visible;
  transform-origin: 50% 100%;
  animation: home-balloon-rise 1.5s var(--balloon-delay, 0s) var(--ease-out-expo) both, home-balloon-sway var(--balloon-sway, 6s) var(--balloon-delay, 0s) ease-in-out infinite alternate;
}
.home-balloon__string { fill: none; stroke: rgba(255, 247, 234, 0.5); stroke-width: 1.4; }
.home-balloon--gold { color: var(--tch-accent); }
.home-balloon--ivory { color: #f7ead0; }
.home-balloon--emerald { color: var(--tch-secondary); }
.home-balloon--indigo { color: #3a4a9c; }
@keyframes home-balloon-rise {
  from { opacity: 0; translate: 0 70svh; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes home-balloon-sway {
  from { transform: rotate(-3.5deg) translateY(5px); }
  to { transform: rotate(3.5deg) translateY(-9px); }
}
.home-balloon--1 { top: 18%; left: -1%; --balloon-delay: 0.3s; --balloon-sway: 6.4s; }
.home-balloon--2 { top: 13%; left: 5%; --balloon-delay: 0.42s; --balloon-sway: 5.2s; }
.home-balloon--3 { top: 27%; left: 8%; --balloon: clamp(40px, 6vw, 94px); --balloon-delay: 0.5s; --balloon-sway: 7s; }
.home-balloon--4 { top: 17%; left: 12%; --balloon: clamp(36px, 5vw, 80px); --balloon-delay: 0.36s; --balloon-sway: 5.8s; }
.home-balloon--5 { top: 32%; left: 1%; --balloon: clamp(36px, 5.4vw, 86px); --balloon-delay: 0.6s; --balloon-sway: 6.8s; }
.home-balloon--6 { top: 12%; right: -1%; --balloon-delay: 0.34s; --balloon-sway: 6s; }
.home-balloon--7 { top: 6%; right: 5%; --balloon-delay: 0.46s; --balloon-sway: 5.4s; }
.home-balloon--8 { top: 22%; right: 8%; --balloon: clamp(40px, 6vw, 94px); --balloon-delay: 0.52s; --balloon-sway: 7.2s; }
.home-balloon--9 { top: 11%; right: 12%; --balloon: clamp(36px, 5vw, 80px); --balloon-delay: 0.4s; --balloon-sway: 5.6s; }
.home-balloon--10 { top: 27%; right: 1%; --balloon: clamp(36px, 5.4vw, 86px); --balloon-delay: 0.62s; --balloon-sway: 6.6s; }
.home-balloon--11, .home-balloon--12, .home-balloon--13, .home-balloon--14, .home-balloon--15, .home-balloon--16 { bottom: -34%; display: none; animation: none; }
.is-celebrating .home-balloon--11, .is-celebrating .home-balloon--12, .is-celebrating .home-balloon--13,
.is-celebrating .home-balloon--14, .is-celebrating .home-balloon--15, .is-celebrating .home-balloon--16 {
  display: block;
  animation: home-balloon-release var(--balloon-sway, 4s) var(--balloon-delay, 0s) cubic-bezier(0.3, 0.1, 0.5, 1) both;
}
@keyframes home-balloon-release {
  from { transform: translateY(0) rotate(-5deg); }
  to { transform: translateY(-170svh) rotate(7deg); }
}
.home-balloon--11 { left: 18%; --balloon-sway: 4.2s; }
.home-balloon--12 { left: 30%; --balloon-delay: 0.3s; --balloon-sway: 3.6s; }
.home-balloon--13 { left: 42%; --balloon-delay: 0.15s; --balloon-sway: 4.6s; }
.home-balloon--14 { right: 40%; --balloon-delay: 0.45s; --balloon-sway: 3.9s; }
.home-balloon--15 { right: 26%; --balloon-delay: 0.1s; --balloon-sway: 4.4s; }
.home-balloon--16 { right: 14%; --balloon-delay: 0.35s; --balloon-sway: 3.7s; }

.home-hero__bokeh i {
  position: absolute;
  width: clamp(80px, 13vw, 200px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 217, 138, 0.26), rgba(255, 217, 138, 0.07) 62%, transparent 70%);
  transform: translate3d(calc(var(--px) * -14px), calc(var(--py) * -8px), 0);
}
.home-hero__bokeh i:nth-child(1) { top: 18%; left: 6%; }
.home-hero__bokeh i:nth-child(2) { top: 34%; left: 22%; width: clamp(50px, 7vw, 110px); }
.home-hero__bokeh i:nth-child(3) { top: 14%; right: 9%; }
.home-hero__bokeh i:nth-child(4) { top: 38%; right: 24%; width: clamp(50px, 6vw, 96px); background: radial-gradient(circle, rgba(31, 122, 92, 0.42), rgba(31, 122, 92, 0.1) 62%, transparent 70%); }

.home-hero__table {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 40%;
  overflow: hidden;
  background: linear-gradient(#232e63, #0c1433 70%);
  box-shadow: 0 -1px 0 rgba(255, 231, 174, 0.34);
  perspective: 900px;
}
.home-hero__table::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 90% at 50% 34%, rgba(255, 214, 140, 0.26), transparent 70%), linear-gradient(transparent 60%, rgba(8, 13, 36, 0.72));
  pointer-events: none;
}
.home-hero__runner {
  position: absolute;
  right: 50%;
  bottom: -16%;
  width: min(84vw, 860px);
  height: 170%;
  margin-right: calc(min(84vw, 860px) / -2);
  background: url('../images/pagne-tissu.svg') center top / 620px auto;
  filter: brightness(0.82) saturate(0.95);
  transform: rotateX(62deg);
  transform-origin: bottom center;
}

.home-place {
  position: absolute;
  z-index: 1;
  padding: 0.62em 1.05em 0.56em;
  border-radius: 2px;
  background: linear-gradient(#fff9ee, #efdfbb);
  color: var(--tch-primary);
  font-family: var(--home-serif);
  font-size: var(--place-size, 1.125rem);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 18px 16px -10px rgba(5, 9, 30, 0.75), inset 0 0 0 1px rgba(198, 161, 91, 0.7);
  transform: translate3d(calc(var(--px) * var(--place-depth, 10px)), 0, 0) rotate(var(--place-tilt, 0deg));
  animation: home-place-in 0.8s 0.5s var(--ease-out-expo) both;
}
.home-place::before {
  content: '';
  position: absolute;
  inset: -5px 3px auto;
  z-index: -1;
  height: 12px;
  border-radius: 2px 2px 0 0;
  background: #cdb88c;
}
@keyframes home-place-in {
  from { opacity: 0; translate: 0 18px; }
  to { opacity: 1; translate: 0 0; }
}
.home-place--1 { --place-size: 1rem; --place-tilt: -3deg; --place-depth: 12px; bottom: 16px; left: 5%; }
.home-place--2 { --place-size: 1rem; --place-tilt: 3deg; --place-depth: 12px; right: 5%; bottom: 14px; }
.home-place--3,
.home-place--4,
.home-place--5,
.home-place--6 { display: none; }

.home-hero__lights {
  position: absolute;
  top: calc(var(--home-nav) - 16px);
  left: 0;
  width: 100%;
  height: clamp(64px, 7.6vw, 110px);
  pointer-events: none;
}
.home-hero__wire { fill: none; stroke: rgba(255, 247, 234, 0.3); stroke-width: 1.5; }
.home-hero__bulb { fill: #ffe7ae; }
.home-hero__lamp { animation: home-lamp-on 0.5s var(--ease-out-expo) both; }
@keyframes home-lamp-on {
  0% { opacity: 0; }
  55% { opacity: 1; }
  70% { opacity: 0.45; }
  100% { opacity: 1; }
}
.home-hero__lamp:nth-of-type(1) { animation-delay: 0.52s; }
.home-hero__lamp:nth-of-type(2) { animation-delay: 0.45s; }
.home-hero__lamp:nth-of-type(3) { animation-delay: 0.38s; }
.home-hero__lamp:nth-of-type(4) { animation-delay: 0.31s; }
.home-hero__lamp:nth-of-type(5) { animation-delay: 0.24s; }
.home-hero__lamp:nth-of-type(6) { animation-delay: 0.17s; }
.home-hero__lamp:nth-of-type(7) { animation-delay: 0.10s; }
.home-hero__lamp:nth-of-type(8) { animation-delay: 0.17s; }
.home-hero__lamp:nth-of-type(9) { animation-delay: 0.24s; }
.home-hero__lamp:nth-of-type(10) { animation-delay: 0.31s; }
.home-hero__lamp:nth-of-type(11) { animation-delay: 0.38s; }
.home-hero__lamp:nth-of-type(12) { animation-delay: 0.45s; }
.home-hero__lamp:nth-of-type(13) { animation-delay: 0.52s; }

.home-hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(100%, 1400px);
  margin-inline: auto;
  padding: clamp(56px, 8vw, 88px) var(--home-gutter) 84px;
  text-align: center;
}

.home-hero__title {
  font-family: var(--home-serif);
  font-size: min(14.2vw, 7rem);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.025em;
  text-shadow: 0 2px 34px rgba(255, 214, 140, 0.32);
  transform: translate3d(calc(var(--px) * -5px), calc(var(--py) * -3px), 0);
}
.home-hero__title span { display: block; animation: home-title-rise 0.9s var(--ease-out-expo) both; }
.home-hero__title span:nth-child(2) { animation-delay: 0.08s; }
.home-hero__title span:nth-child(3) { animation-delay: 0.16s; }
@keyframes home-title-rise {
  from { opacity: 0; translate: 0 26px; }
  to { opacity: 1; translate: 0 0; }
}

.home-hero__stage {
  position: relative;
  z-index: 2;
  width: min(100%, 320px);
  margin-top: 52px;
  transform: rotateY(calc(var(--px) * 5deg)) rotateX(calc(var(--py) * -3deg));
  transition: transform 0.25s ease-out;
}
.home-hero__stage::after {
  content: '';
  position: absolute;
  right: 4%;
  bottom: -14px;
  left: 4%;
  z-index: -1;
  height: 34px;
  border-radius: 50%;
  background: rgba(5, 9, 30, 0.62);
  filter: blur(12px);
}

.home-hero__offer {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 20px;
  margin-top: 16px;
}
.home-hero__stage.is-open + .home-hero__offer {
  display: flex;
  animation: home-offer-in 0.6s 0.7s var(--ease-out-expo) both;
}
@keyframes home-offer-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.home-hero__price { padding: 6px 12px; border-radius: var(--home-radius); background: rgba(15, 26, 61, 0.88); color: var(--home-ivory); font-size: 0.9375rem; font-weight: 600; }

/* L'enveloppe : celle de l'invitation réelle de Tinho et Tina */
.home-envelope {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  perspective: 1100px;
  animation: home-envelope-rise 1s var(--ease-out-expo) both;
}
@keyframes home-envelope-rise {
  from { opacity: 0; transform: translateY(46px) rotate(-3deg); }
  to { opacity: 1; transform: none; }
}
.home-envelope__back,
.home-envelope__front,
.home-envelope__flap { position: absolute; inset: 0; }
.home-envelope__back {
  border-radius: 6px;
  background: #e6d3aa;
  box-shadow: var(--home-lift), 0 0 90px rgba(198, 161, 91, 0.3);
}
.is-open .home-envelope__back { background: url('../images/pagne-tissu.svg') center top / 480px auto, var(--home-night); }
.home-envelope__front {
  z-index: 3;
  border-radius: 6px;
  background:
    var(--home-grain),
    linear-gradient(to top right, #fbf0da 49.7%, rgba(120, 92, 44, 0.3) 50%, transparent 50.6%) left bottom / 51% 100% no-repeat,
    linear-gradient(to top left, #f5e7ca 49.7%, rgba(120, 92, 44, 0.3) 50%, transparent 50.6%) right bottom / 51% 100% no-repeat,
    linear-gradient(to bottom right, transparent 49.8%, #fff7e8 50%) left bottom / 51% 62% no-repeat,
    linear-gradient(to bottom left, transparent 49.8%, #fff7e8 50%) right bottom / 51% 62% no-repeat;
  box-shadow: inset 0 0 0 1px rgba(198, 161, 91, 0.45);
  pointer-events: none;
}
.home-envelope__address {
  position: absolute;
  right: 0;
  bottom: 9%;
  left: 0;
  z-index: 3;
  color: var(--tch-primary);
  font-family: var(--home-serif);
  font-size: clamp(1.375rem, 2.6vw, 2.25rem);
  font-style: italic;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  pointer-events: none;
  transition: opacity 0.3s 0.5s;
}
.is-open .home-envelope__address { opacity: 0; transition-delay: 0s; }
.home-envelope__flap {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 4;
  height: 62%;
  filter: drop-shadow(0 7px 7px rgba(84, 62, 24, 0.34));
  transition: z-index 0s 0.6s;
}
.home-envelope__flap i {
  position: absolute;
  inset: 0;
  background: var(--home-grain), linear-gradient(172deg, #fffaf0, #eddcb6);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top;
  transition: transform 0.7s 0.45s var(--ease-out-expo), background 0s 0.8s;
}
.home-envelope__flap i::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--tch-accent);
  clip-path: polygon(0 0, 1.4% 0, 50% 96%, 98.6% 0, 100% 0, 50% 100%);
}
.is-open .home-envelope__flap { z-index: 1; transition: z-index 0s 0.3s; }
.is-open .home-envelope__flap i {
  background: url('../images/pagne-tissu.svg') center top / 480px auto, var(--home-night);
  transform: rotateX(180deg);
  transition: transform 0.8s var(--ease-out-expo), background 0s 0.3s;
}

.home-envelope__card {
  position: absolute;
  right: 5%;
  bottom: 5%;
  left: 5%;
  z-index: 2;
  display: grid;
  justify-items: center;
  height: 88%;
  overflow: hidden;
  padding: 14px 16px 18px;
  border: 1px solid var(--tch-accent);
  border-radius: 4px;
  background: linear-gradient(#fff7ea, #f7e6c4);
  color: var(--tch-primary);
  text-align: center;
  align-content: start;
  opacity: 0;
  transition: height 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo), opacity 0.2s 0.5s;
}
.is-open .home-envelope__card {
  transition: height 0.9s 0.25s var(--ease-out-expo), transform 0.9s 0.25s var(--ease-out-expo), opacity 0.2s 0.2s;
}
.home-envelope__close {
  position: absolute;
  top: 2px;
  right: 2px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  color: var(--tch-primary);
  font-size: 1.125rem;
  cursor: pointer;
}
.home-envelope__close:hover { color: var(--tch-secondary); }
.home-envelope__to { font-size: 0.8125rem; font-weight: 600; }
.home-envelope__name {
  width: 100%;
  min-height: 46px;
  padding: 0;
  border: 0;
  border-bottom: 2px dashed var(--tch-accent);
  border-radius: 0;
  background: none;
  color: inherit;
  font-family: var(--home-serif);
  font-size: calc(2.25rem * var(--name-fit, 1));
  font-weight: 600;
  text-align: center;
  caret-color: var(--tch-secondary);
}
.home-envelope__name:focus { outline: none; border-bottom-style: solid; }
.home-envelope__roles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}
.home-envelope__role {
  min-height: 34px;
  padding: 0 9px;
  border: 1px solid rgba(30, 42, 90, 0.4);
  border-radius: 99px;
  background: none;
  color: var(--tch-primary);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.18s var(--ease-out-expo), color 0.18s var(--ease-out-expo);
}
.home-envelope__role[aria-pressed="true"] { border-color: var(--tch-primary); background: var(--tch-primary); color: var(--home-ivory); }
.home-envelope__photo {
  width: 64px;
  height: 64px;
  margin-top: 12px;
  border: 2px solid var(--tch-accent);
  border-radius: 50%;
  object-fit: cover;
}
.home-envelope__couple { margin-top: 2px; font-family: var(--home-serif); font-size: 1.5rem; font-weight: 600; line-height: 1.1; }

.home-envelope__seal {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: var(--home-ivory);
  cursor: pointer;
  transition: opacity 0.35s 0.9s var(--ease-out-expo), transform 0.35s 0.9s var(--ease-out-expo);
}
.is-open .home-envelope__seal { transition: opacity 0.35s var(--ease-out-expo), transform 0.35s var(--ease-out-expo); }
.home-envelope__mark {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin-top: -30px;
  background: url('../images/sceau.svg') center / contain no-repeat;
  filter: drop-shadow(0 9px 8px rgba(84, 62, 24, 0.5));
  color: var(--home-night);
  font-family: var(--home-serif);
  font-size: 1.875rem;
  font-style: italic;
  font-weight: 600;
  transition: transform 0.25s var(--ease-out-expo);
}
.home-envelope__seal:hover .home-envelope__mark { transform: scale(1.07) rotate(-3deg); }
.home-envelope__open {
  position: absolute;
  top: calc(100% + 12px);
  padding: 12px 24px;
  border: 1px solid var(--tch-accent);
  border-radius: var(--home-radius);
  background: var(--tch-accent);
  color: var(--tch-primary);
  font-size: 1rem;
  white-space: nowrap;
  box-shadow: 0 14px 24px -12px rgba(5, 9, 30, 0.9);
  font-size: 0.9375rem;
  font-weight: 600;
}

.is-open .home-envelope__seal {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.25);
}
.is-open .home-envelope__card {
  right: -3%;
  left: -3%;
  z-index: 4;
  height: 300px;
  opacity: 1;
  transform: translateY(-20%);
}

/* L'idée */
.home-idea { background: var(--home-ivory); }
.home-idea > .home-container { padding-block: var(--home-rhythm); }
.home-idea__title {
  max-width: 14ch;
  font-family: var(--home-serif);
  font-size: clamp(2.875rem, 8vw, 7.5rem);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.025em;
}
.home-idea__layout { display: grid; gap: 40px; align-items: center; }
.home-idea__card {
  justify-self: center;
  width: min(100%, 420px);
  padding: 36px 28px 40px;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 34px 50px -30px rgba(15, 26, 61, 0.55), inset 0 0 0 1px rgba(198, 161, 91, 0.6), inset 0 0 0 7px #fff, inset 0 0 0 8px rgba(198, 161, 91, 0.4);
  text-align: center;
  transform: rotate(2.5deg);
}
.home-idea__crossed { font-family: var(--home-serif); font-size: clamp(1.75rem, 3vw, 2.25rem); color: #777d98; }
.home-idea__crossed span { position: relative; }
.home-idea__crossed span::after {
  content: '';
  position: absolute;
  top: 54%;
  right: -6px;
  left: -6px;
  height: 3px;
  background: var(--tch-accent);
  transform: scaleX(0) rotate(-2deg);
  transform-origin: left;
  transition: transform 0.7s 0.3s var(--ease-out-expo);
}
.is-seen .home-idea__crossed span::after { transform: scaleX(1) rotate(-2deg); }
.home-idea__name {
  margin-top: 14px;
  font-family: var(--home-serif);
  font-size: clamp(2.75rem, 5vw, 4rem);
  font-weight: 600;
  line-height: 1;
  overflow-wrap: anywhere;
}
.home-idea__role { margin-top: 10px; color: var(--tch-secondary); font-weight: 600; }
.home-idea__names { overflow: hidden; background: var(--home-night); color: var(--home-ivory); }
.home-idea__row {
  display: flex;
  gap: 0.8em;
  width: max-content;
  margin-block: clamp(14px, 2vw, 28px);
  font-family: var(--home-serif);
  font-size: clamp(2.75rem, 7.4vw, 7rem);
  line-height: 1.1;
  white-space: nowrap;
  transform: translate3d(var(--drift, 0), 0, 0);
  will-change: transform;
}
.home-idea__row:last-of-type { margin-inline-start: -30vw; }
.home-idea__row > span:nth-child(even) { color: transparent; -webkit-text-stroke: 1px var(--tch-accent); }

/* La soirée d'un invité : cinq moments, cinq lumières */
.home-day { padding-top: clamp(56px, 7vw, 96px); background: var(--home-ivory); color: var(--tch-primary); }
.home-day .home-title { max-width: none; text-align: center; }
.home-day__moments {
  display: grid;
  grid-auto-columns: min(74vw, 300px);
  grid-auto-flow: column;
  margin: clamp(32px, 5vw, 56px) 0 0;
  padding: 0;
  overflow-x: auto;
  list-style: none;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.home-day__moments::-webkit-scrollbar { display: none; }
.home-day__moment {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px 24px 0;
  overflow: hidden;
  scroll-snap-align: center;
  background: var(--home-ivory);
}
.home-day__moment:nth-child(1) { background: var(--tch-primary); color: var(--home-ivory); }
.home-day__moment:nth-child(2) { background: var(--home-sand); }
.home-day__moment:nth-child(3) { background: var(--tch-secondary); color: #fff; }
.home-day__moment:nth-child(4) { background: var(--home-night); color: var(--home-ivory); }
.home-day__moment:nth-child(5) { background: var(--tch-accent); }
.home-day__moment h3 {
  min-height: 2.1em;
  font-family: var(--home-serif);
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  font-weight: 500;
  line-height: 1.05;
}
.home-day__moment .home-phone { aspect-ratio: 9 / 16.4; margin-bottom: -9%; }

/* Application */
.home-app { background: var(--tch-secondary); color: #fff; }
.home-app__layout { display: grid; padding-top: var(--home-rhythm); }
.home-app__title {
  max-width: 12ch;
  font-family: var(--home-serif);
  font-size: clamp(3rem, 7.6vw, 7rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.home-app .home-lead { font-family: var(--home-serif); font-size: clamp(1.75rem, 3vw, 2.5rem); }
.home-app__stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.home-store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 0 22px;
  border-radius: var(--home-radius);
  background: var(--home-night);
  color: var(--home-ivory);
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.15;
  text-decoration: none;
  transition: transform 0.18s var(--ease-out-expo), background-color 0.18s var(--ease-out-expo);
}
.home-store:hover { background: var(--tch-primary); transform: translateY(-2px); }
.home-store i { font-size: 1.75rem; }
.home-store small { display: block; font-size: 0.75rem; font-weight: 400; }

.home-app__phones {
  position: relative;
  height: clamp(460px, 120vw, 620px);
  margin: 48px calc(var(--home-gutter) * -1) 0;
  overflow: hidden;
  background: url('../images/pagne-tissu.svg') center / 760px auto;
}
.home-app__phones .home-phone { position: absolute; bottom: -12%; }
.home-phone--front { left: 50%; z-index: 2; width: 46%; max-width: 250px; transform: translateX(-50%); }
.home-phone--back-left { left: 3%; bottom: -2% !important; width: 40%; max-width: 220px; transform: rotate(-7deg); }
.home-phone--back-right { right: 3%; bottom: -2% !important; width: 40%; max-width: 220px; transform: rotate(7deg); }

/* Preuve sociale : les faire-part de vrais mariages, posés sur la table de fête */
.home-proof {
  overflow: hidden;
  padding-block: clamp(64px, 9vw, 128px) clamp(24px, 4vw, 48px);
  background:
    radial-gradient(ellipse 70% 60% at 50% 62%, rgba(198, 161, 91, 0.2), transparent 72%),
    var(--home-night);
  color: var(--home-ivory);
}
.home-proof__title {
  max-width: 17ch;
  margin-inline: auto;
  font-family: var(--home-serif);
  font-size: clamp(2.75rem, 6.6vw, 5.5rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-align: center;
  text-wrap: balance;
}
.home-proof__list {
  display: grid;
  gap: clamp(48px, 7vw, 64px);
  margin: clamp(40px, 6vw, 80px) 0 0;
  padding: 0;
  list-style: none;
}
.home-proof__card {
  --tilt: -1.6deg;
  display: grid;
  justify-items: center;
  max-width: 660px;
  margin-inline: auto;
  color: inherit;
  text-align: center;
  text-decoration: none;
}
.home-proof__list li:nth-child(even) .home-proof__card { --tilt: 1.4deg; }
.home-proof__print {
  display: block;
  width: 100%;
  padding: clamp(7px, 1vw, 12px);
  border-radius: var(--home-radius);
  background: var(--home-grain), #fffaf0;
  box-shadow: var(--home-lift);
  transform: rotate(var(--tilt));
  transition: transform 0.4s var(--ease-out-expo);
}
.home-proof__card:hover .home-proof__print,
.home-proof__card:focus-visible .home-proof__print { transform: rotate(0) translateY(-8px); }
.home-proof__card:focus-visible { outline: 2px solid var(--tch-accent); outline-offset: 10px; }
.home-proof__print picture { display: block; }
.home-proof__print img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.home-proof__couple {
  margin-top: clamp(24px, 3vw, 34px);
  font-family: var(--home-serif);
  font-size: clamp(2.25rem, 4.2vw, 3.25rem);
  font-weight: 500;
  line-height: 1.05;
}
.home-proof__date { margin-top: 6px; color: var(--home-sand); }
.home-proof__open {
  min-height: 44px;
  margin-top: 6px;
  padding-top: 12px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: text-underline-offset 0.18s var(--ease-out-expo);
}
.home-proof__card:hover .home-proof__open { text-underline-offset: 8px; }

/* Occasions : une grande tuile illustrée par fête */
.home-occasions {
  padding-block: clamp(56px, 8vw, 104px) 0;
  background: var(--home-night);
  color: var(--home-ivory);
}
.home-occasions .home-title { max-width: none; margin-bottom: clamp(24px, 3vw, 40px); text-align: center; }
.home-occasions .home-container { width: 100%; padding-inline: 0; }
.home-occasions .home-title { padding-inline: var(--home-gutter); }
.home-occasions__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
.home-occasions__item { --tile: var(--tch-primary); --tile-ink: var(--home-ivory); }
.home-occasions__item--wedding { --tile: #e9d3a0; --tile-ink: var(--tch-primary); grid-column: 1 / -1; }
.home-occasions__item--traditional_dowry { --tile: var(--tch-secondary); }
.home-occasions__item--birthday { --tile: var(--home-sand); --tile-ink: var(--tch-primary); }
.home-occasions__item--baptism { --tile: var(--tch-primary); }
.home-occasions__item--gala_evening { --tile: #16224f; }
.home-occasions__item--private_party { --tile: var(--tch-accent); --tile-ink: var(--tch-primary); }
.home-occasions__item--conference { --tile: var(--home-ivory); --tile-ink: var(--tch-primary); }
.home-occasion {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  min-height: 230px;
  padding: 16px;
  overflow: hidden;
  background: var(--tile);
  color: var(--tile-ink);
  text-decoration: none;
}
.home-occasion__art {
  position: absolute;
  top: 6%;
  left: 50%;
  width: min(78%, 190px);
  height: auto;
  translate: -50% 0;
  transition: transform 0.4s var(--ease-spring, cubic-bezier(0.34, 1.56, 0.64, 1));
}
.home-occasion:hover .home-occasion__art { transform: scale(1.08) rotate(-3deg); }
.home-occasion__name {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--home-serif);
  font-size: clamp(1.625rem, 3.2vw, 2.75rem);
  font-weight: 600;
  line-height: 1.02;
}
.home-occasion__name i { flex: none; font-size: 0.5em; transition: transform 0.2s var(--ease-out-expo); }
.home-occasion:hover .home-occasion__name i { transform: translateX(5px); }

/* Thèmes : un présentoir, un thème à la fois dans sa couleur */
.home-themes {
  --showcase: #5c0d1e;
  position: relative;
  overflow: hidden;
  padding-top: clamp(64px, 8vw, 112px);
  background: color-mix(in srgb, var(--showcase) 62%, var(--home-night));
  color: var(--home-ivory);
  transition: background-color 0.6s var(--ease-out-expo);
}
.home-themes__layout { position: relative; display: grid; gap: 28px; }
.home-themes__hint { margin-top: 10px; color: var(--home-on-dark); }
.home-themes__universes { margin: 18px 0 0; }
.home-themes__universes .home-pricing__occasion { background: rgba(255, 247, 234, 0.12); color: var(--home-ivory); }
.home-themes__universes .home-pricing__occasion[aria-pressed="true"] { border-color: var(--tch-accent); background: var(--home-ivory); color: var(--tch-primary); }
.home-themes__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}
.home-themes__card {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 8px;
  border: 2px solid transparent;
  border-radius: 14px;
  background: rgba(255, 247, 234, 0.12);
  color: var(--home-ivory);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s var(--ease-out-expo), transform 0.2s var(--ease-out-expo), border-color 0.2s var(--ease-out-expo);
}
.home-themes__card[hidden] { display: none; }
.home-themes__card:hover { background: rgba(255, 247, 234, 0.2); transform: translateY(-3px); }
.home-themes__card[aria-selected="true"] {
  border-color: var(--tch-accent);
  background: var(--home-ivory);
  color: var(--tch-primary);
  box-shadow: 0 18px 30px -18px rgba(5, 9, 30, 0.8);
}
.home-themes__thumb {
  display: grid;
  place-items: center;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  background: var(--home-night);
  color: var(--home-ivory);
  font-family: var(--home-serif);
  font-size: 2rem;
  object-fit: cover;
  object-position: center 30%;
}
.home-themes__card-text { display: grid; gap: 1px; min-width: 0; }
.home-themes__card-name { font-family: var(--home-serif); font-size: clamp(1.375rem, 2.4vw, 2rem); font-weight: 600; line-height: 1.05; }
.home-themes__card-state { display: none; }
.home-theme {
  position: relative;
  display: grid;
  gap: 18px;
  justify-items: center;
  padding: 24px 20px;
  border-radius: 18px;
  background: var(--home-ivory);
  color: var(--tch-primary);
  box-shadow: 0 34px 60px -30px rgba(5, 9, 30, 0.85);
  animation: home-theme-in 0.5s var(--ease-out-expo) both;
}
.home-theme[hidden] { display: none; }
@keyframes home-theme-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.home-theme__text { display: contents; text-align: center; }
.home-theme__label { order: 0; margin-bottom: -16px; }
.home-theme__name { order: 1; text-align: center; }
.home-phone--theme { order: 2; }
.home-theme__label { color: #6f5a2a; font-size: 0.9375rem; font-weight: 600; }
.home-theme__name {
  font-family: var(--home-serif);
  font-size: clamp(3rem, 6vw, 5.25rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
}
.home-theme__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 22px;
  order: 3;
}
.home-phone--theme { width: min(64vw, 270px); margin: 0; }
.home-theme__fallback {
  display: grid;
  place-items: center;
  height: 100%;
  background: var(--atelier-primary, var(--home-night));
  color: var(--home-ivory);
  font-family: var(--home-serif);
  font-size: 40cqw;
}
.home-themes__stage { position: relative; }
.home-themes__sound {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(30, 42, 90, 0.35);
  border-radius: 50%;
  background: none;
  color: var(--tch-primary);
  cursor: pointer;
}
.home-button--choice i { display: none; }
.home-theme.is-chosen .home-button--choice { background: var(--tch-secondary); border-color: var(--tch-secondary); color: #fff; }
.home-theme.is-chosen .home-button--choice i { display: inline; }

.home-next {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 32px;
  padding-block: 44px;
  color: var(--home-ivory);
  font-family: var(--home-serif);
  font-size: clamp(1.625rem, 3vw, 2.5rem);
  line-height: 1.2;
}
.home-next .home-link { color: var(--tch-accent); font-family: 'Inter', sans-serif; font-size: 1rem; }

/* Origine : la photo à fond perdu */
.home-origin {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 92svh;
  background: var(--home-night);
  color: var(--home-ivory);
}
.home-origin__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}
.home-origin::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 26, 61, 0.97) 34%, rgba(15, 26, 61, 0.16) 72%);
}
.home-origin__layout {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 32px;
  align-items: center;
  padding-block: 64px 56px;
}
.home-origin__links { display: flex; flex-wrap: wrap; gap: 0 24px; margin-top: 12px; }
.home-phone--origin { justify-self: center; width: min(58vw, 230px); margin: 0; transform: rotate(3deg); }
.home-origin__title {
  max-width: 17ch;
  font-family: var(--home-serif);
  font-size: clamp(2.625rem, 7vw, 6.75rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
}
.home-origin__sign { margin-top: 14px; font-family: var(--home-serif); font-size: 1.375rem; }

.home-after,
.home-quote { padding-block: var(--home-rhythm); background: var(--home-ivory); }
.home-after__photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-block: 32px 20px;
}
.home-after__photos figure { margin: 0; }
.home-after__photos figure:first-child { grid-column: 1 / -1; }
.home-after__photos img { width: 100%; height: 100%; border-radius: var(--home-radius); object-fit: cover; }
.home-quote blockquote {
  max-width: 24ch;
  font-family: var(--home-serif);
  font-size: clamp(2.25rem, 5.4vw, 4.5rem);
  line-height: 1.08;
}
.home-quote figcaption { margin-top: 20px; color: #4a5478; }

/* Formules : trois billets */
.home-pricing { padding-block: var(--home-rhythm); background: var(--home-sand); }
.home-pricing .home-title { margin-inline: auto; text-align: center; }
.home-pricing__occasions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-width: 900px;
  margin: clamp(24px, 3vw, 36px) auto 0;
}
.home-pricing__occasion {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 10px 6px 12px;
  border: 2px solid transparent;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.5);
  color: var(--tch-primary);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.18s var(--ease-out-expo), transform 0.18s var(--ease-out-expo), box-shadow 0.18s var(--ease-out-expo);
}
.home-pricing__occasions--four { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 1040px; }
.home-pricing__occasion img { width: clamp(48px, 7vw, 76px); height: auto; }
.home-pricing__occasion small { display: block; font-size: 0.8125rem; font-weight: 500; opacity: 0.8; }
.home-pricing__occasion:hover { background: #fff; transform: translateY(-2px); }
.home-pricing__occasion[aria-pressed="true"] {
  border-color: var(--tch-primary);
  background: var(--tch-primary);
  color: var(--home-ivory);
  box-shadow: 0 16px 26px -16px rgba(15, 26, 61, 0.8);
}
.home-pricing__grid { display: grid; gap: 20px; margin-top: clamp(36px, 5vw, 72px); }
.home-plan {
  display: grid;
  border-radius: 10px;
  background: var(--tch-surface);
  box-shadow: 0 26px 44px -30px rgba(15, 26, 61, 0.6);
}
.home-plan__head { display: flex; flex-direction: column; padding: 28px 24px 24px; }
.home-plan__body {
  position: relative;
  padding: 8px 24px 20px;
  border-top: 2px dashed rgba(30, 42, 90, 0.28);
}
.home-plan__body::before,
.home-plan__body::after {
  content: '';
  position: absolute;
  top: -13px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--home-sand);
}
.home-plan__body::before { left: -12px; }
.home-plan__body::after { right: -12px; }
.home-plan--featured { background: var(--home-night); color: var(--home-ivory); }
.home-plan--featured .home-plan__head {
  padding-top: 62px;
  background: url('../images/pagne-bande.svg') left top / auto 34px repeat-x;
  border-radius: 10px 10px 0 0;
}
.home-plan--featured .home-plan__body { border-color: rgba(255, 247, 234, 0.34); }
.home-plan__name { font-family: var(--home-serif); font-size: 2.25rem; font-weight: 500; line-height: 1.05; }
.home-plan__flag { margin-top: 12px; font-size: 0.9375rem; font-weight: 600; text-align: center; }
.home-plan__price {
  margin-top: 12px;
  font-family: var(--home-serif);
  font-size: clamp(3.25rem, 6.4vw, 4.5rem);
  font-weight: 500;
  line-height: 1;
}
.home-plan__price span { font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 500; }
.home-plan .home-button { width: 100%; margin-top: 20px; }
.home-plan__more { margin-top: 8px; border-top: 1px solid rgba(30, 42, 90, 0.14); }
.home-plan--featured .home-plan__more { border-color: rgba(255, 247, 234, 0.2); }
.home-plan__more summary,
summary.home-base__title { cursor: pointer; }
.home-plan__more summary { min-height: 44px; padding-block: 11px; font-size: 0.9375rem; font-weight: 600; }
.home-plan__facts { margin: 12px 0 0; padding: 0; list-style: none; line-height: 1.4; }
.home-plan__facts li { padding-block: 7px; border-top: 1px solid rgba(30, 42, 90, 0.14); }
.home-plan__facts li:first-child { border-top: 0; }
.home-plan--featured .home-plan__facts li { border-color: rgba(255, 247, 234, 0.2); }

.home-base {
  position: relative;
  margin-top: clamp(48px, 7vw, 88px);
  padding: clamp(28px, 4vw, 56px);
  padding-top: calc(clamp(28px, 4vw, 56px) + 30px);
  overflow: hidden;
  border-radius: 10px;
  background: var(--home-night);
  color: var(--home-ivory);
}
.home-base::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 30px;
  background: url('../images/pagne-bande.svg') repeat-x left center / auto 100%;
}
.home-base__title { font-family: var(--home-serif); font-size: clamp(2.25rem, 4.4vw, 3.75rem); font-weight: 500; line-height: 1.02; }
.home-base__list { display: grid; gap: 14px 40px; margin: clamp(20px, 3vw, 32px) 0 0; padding: 0; list-style: none; }
.home-base__list li { display: flex; align-items: flex-start; gap: 12px; font-size: 1.0625rem; line-height: 1.35; }
.home-base__list i {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--tch-accent);
  color: var(--home-night);
  font-size: 0.75rem;
}
.home-base__more { margin-top: 14px; }
.home-base__more summary { min-height: 44px; padding-block: 10px; color: var(--tch-accent); font-weight: 600; cursor: pointer; }

.home-promises {
  display: grid;
  gap: 28px;
  margin: clamp(48px, 7vw, 80px) 0 0;
  padding: 0;
  list-style: none;
  text-align: center;
}
.home-promises li { display: grid; justify-items: center; gap: 12px; }
.home-promises__seal {
  display: grid;
  place-items: center;
  width: clamp(96px, 11vw, 132px);
  aspect-ratio: 1;
  background: url('../images/sceau.svg') center / contain no-repeat;
  color: var(--home-night);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  filter: drop-shadow(0 12px 12px rgba(84, 62, 24, 0.42));
  transition: transform 0.3s var(--ease-out-expo);
}
.home-promises li:hover .home-promises__seal { transform: rotate(-6deg) scale(1.05); }
.home-promises strong { font-family: var(--home-serif); font-size: clamp(1.75rem, 2.6vw, 2.5rem); font-weight: 600; line-height: 1.05; }
.home-payments {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 28px 0 12px;
  padding: 0;
  list-style: none;
}
.home-payments li {
  padding: 6px 16px;
  border-radius: 99px;
  background: var(--home-night);
  color: var(--home-ivory);
  font-size: 0.9375rem;
  font-weight: 600;
}
.home-pricing > .home-container > .home-link { display: flex; justify-content: center; }

/* Questions */
.home-faq { padding-block: var(--home-rhythm); background: var(--tch-primary); color: var(--home-ivory); }
.home-faq .home-lead { color: var(--home-on-dark); }
.home-faq__layout { display: grid; gap: 32px; }
.home-faq__intro a:not(.home-button) { color: inherit; text-underline-offset: 4px; }
.home-faq__intro .home-button { margin-top: 24px; }
.home-faq__item { border-bottom: 1px solid rgba(255, 247, 234, 0.22); }
.home-faq__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  padding-block: 14px;
  cursor: pointer;
  list-style: none;
}
.home-faq__trigger::-webkit-details-marker { display: none; }
.home-faq__question { font-weight: 600; line-height: 1.35; }
.home-faq__icon { transition: transform 0.2s var(--ease-out-expo); }
.home-faq__item[open] .home-faq__icon { transform: rotate(45deg); }
.home-faq__body { max-width: 62ch; padding-bottom: 20px; color: var(--home-on-dark); line-height: 1.6; }

/* Commencer : la nuit du hero, et le carton du visiteur qui s'écrit */
.home-start {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(15, 26, 61, 0.94), rgba(15, 26, 61, 0.7) 34%, rgba(15, 26, 61, 0.86)),
    url('../images/nuit-de-fete.webp') center / cover,
    var(--home-night);
  color: var(--home-ivory);
}
.home-start .home-hero__lights { top: clamp(36px, 5vw, 72px); }
.home-start__layout {
  position: relative;
  display: grid;
  gap: clamp(40px, 6vw, 56px);
  padding-block: clamp(112px, 13vw, 176px) var(--home-rhythm);
}
.home-start__intro { display: grid; justify-items: center; gap: clamp(32px, 4vw, 48px); text-align: center; }
.home-start__title {
  max-width: 11ch;
  font-family: var(--home-serif);
  font-size: min(13vw, 5.75rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-shadow: 0 2px 34px rgba(255, 214, 140, 0.32);
  text-wrap: balance;
}

.home-start__envelope { display: none; width: min(100%, 420px); margin-top: 20px; rotate: -2deg; }
.home-start__seal { cursor: default; }
.home-start__address { display: grid; gap: 4px; bottom: 6%; padding-inline: 10%; font-style: normal; }
.home-start__names { font-size: 1.875rem; overflow-wrap: anywhere; opacity: 0.62; transition: opacity 0.2s var(--ease-out-expo); }
.is-written .home-start__names { opacity: 1; }
.is-long .home-start__names { font-size: 1.5rem; }
.home-start__address small { color: #7a5d29; font-size: 1.0625rem; font-weight: 500; font-variant-numeric: lining-nums; }

.home-form {
  position: relative;
  display: grid;
  gap: 24px;
  padding: clamp(24px, 4vw, 48px);
  border-radius: var(--home-radius);
  background: var(--home-grain), linear-gradient(172deg, #fffaf0, #f6e7c8);
  box-shadow: var(--home-lift), inset 0 0 0 1px rgba(198, 161, 91, 0.6);
  color: var(--tch-primary);
}
.home-form.is-disabled { opacity: 0.7; }

.home-field { display: grid; gap: 2px; min-width: 0; }
.home-field label,
.home-form__plans legend { font-size: 0.9375rem; font-weight: 600; }

/* Champs : on écrit sur un carton, sur la ligne */
.home-field input,
.home-field select {
  width: 100%;
  min-height: 50px;
  padding: 0;
  border: 0;
  border-bottom: 1.5px solid rgba(30, 42, 90, 0.5);
  border-radius: 0;
  background-color: transparent;
  color: var(--tch-primary);
  font-family: var(--home-serif);
  font-size: 1.5rem;
  font-weight: 600;
  font-variant-numeric: lining-nums;
  transition: border-color 0.18s var(--ease-out-expo);
}
.home-field select {
  padding-right: 28px;
  appearance: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%231E2A5A' stroke-width='2'/%3E%3C/svg%3E") right 4px center no-repeat;
  cursor: pointer;
}
.home-field input::placeholder { color: #5f6887; font-weight: 500; }
.home-field input:hover,
.home-field select:hover { border-bottom-color: var(--tch-primary); }
.home-field input:focus,
.home-field select:focus { border-bottom-color: var(--tch-primary); outline: 2px solid #8a6d33; outline-offset: 3px; }
.home-field .iti { width: 100%; }

.home-form__row { display: grid; gap: 24px; }
.home-form__plans { min-width: 0; padding: 0; border: 0; container-type: inline-size; }

/* Formules : trois billets à détacher */
.home-form__options { display: grid; gap: 10px; margin-top: 10px; filter: drop-shadow(0 1px 1px rgba(30, 42, 90, 0.45)); }
.home-form__option {
  --stub: 116px;
  --cut-a: calc(100% - var(--stub)) 0;
  --cut-b: calc(100% - var(--stub)) 100%;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--stub);
  min-height: 84px;
  background: #fffdf8;
  color: var(--tch-primary);
  cursor: pointer;
  -webkit-mask-image: radial-gradient(circle 7px at var(--cut-a), transparent 96%, #000), radial-gradient(circle 7px at var(--cut-b), transparent 96%, #000);
  -webkit-mask-composite: source-in;
  mask-image: radial-gradient(circle 7px at var(--cut-a), transparent 96%, #000), radial-gradient(circle 7px at var(--cut-b), transparent 96%, #000);
  mask-composite: intersect;
  transition: background-color 0.18s var(--ease-out-expo), color 0.18s var(--ease-out-expo), transform 0.18s var(--ease-out-expo);
}
.home-form__option:hover { transform: translateY(-2px); }
.home-form__option input { position: absolute; opacity: 0; }
.home-form__stub { display: grid; align-content: center; gap: 2px; padding: 12px 34px 12px 16px; }
.home-form__name { font-family: var(--home-serif); font-size: 1.625rem; font-weight: 600; line-height: 1.05; }
.home-form__guests { color: #4a5478; font-size: 0.875rem; transition: color 0.18s var(--ease-out-expo); }
.home-form__flag { color: #7a5d29; font-size: 0.8125rem; font-weight: 600; transition: color 0.18s var(--ease-out-expo); }
.home-form__price {
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 10px 6px;
  border-left: 1.5px dashed rgba(30, 42, 90, 0.3);
  font-family: var(--home-serif);
  font-size: 1.625rem;
  font-weight: 600;
  font-variant-numeric: lining-nums;
  line-height: 1;
}
.home-form__price small { margin-top: 3px; font-family: 'Inter', system-ui, sans-serif; font-size: 0.75rem; font-weight: 600; }
.home-form__mark {
  position: absolute;
  top: 10px;
  right: calc(var(--stub) + 10px);
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1.5px solid rgba(30, 42, 90, 0.45);
  border-radius: 50%;
  color: transparent;
  font-size: 0.6875rem;
  transition: background-color 0.18s var(--ease-out-expo), border-color 0.18s var(--ease-out-expo);
}
.home-form__option:has(input:checked),
.home-form__option.is-checked { background: var(--tch-primary); color: var(--home-ivory); }
.home-form__option:has(input:checked) .home-form__guests,
.home-form__option.is-checked .home-form__guests { color: var(--home-on-dark); }
.home-form__option:has(input:checked) .home-form__flag,
.home-form__option:has(input:checked) .home-form__price,
.home-form__option.is-checked .home-form__flag,
.home-form__option.is-checked .home-form__price { border-color: rgba(255, 247, 234, 0.4); color: var(--home-sand); }
.home-form__option:has(input:checked) .home-form__mark,
.home-form__option.is-checked .home-form__mark { border-color: var(--tch-accent); background: var(--tch-accent); color: var(--tch-primary); }
/* Le masque du billet couperait un contour extérieur */
.home-form__option:has(input:focus-visible) { box-shadow: inset 0 0 0 3px var(--tch-accent); }

@container (min-width: 540px) {
  .home-form__options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-form__option {
    --head: 124px;
    --cut-a: 0 var(--head);
    --cut-b: 100% var(--head);
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: var(--head) auto;
  }
  .home-form__stub { align-content: start; padding: 16px 16px 10px; }
  .home-form__price { padding: 14px 6px 16px; border-top: 1.5px dashed rgba(30, 42, 90, 0.3); border-left: 0; }
  .home-form__mark { right: 10px; }
}

.home-form__theme { margin-top: 10px; font-size: 0.9375rem; }
.home-form__hint { color: #4a5478; font-size: 0.9375rem; text-align: center; }

/* Partenaires et sortie douce */
.home-partners { padding-block: clamp(56px, 8vw, 96px); background: var(--home-ivory); }
.home-partners__list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.home-partners__list a { margin-inline-start: 8px; color: var(--tch-secondary); }

.home-later {
  padding-block: clamp(56px, 8vw, 96px);
  background: var(--home-ivory);
  color: var(--tch-primary);
}
.home-later__layout { display: grid; gap: 24px; }
.home-later__title {
  max-width: 22ch;
  margin-bottom: 8px;
  font-family: var(--home-serif);
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 500;
  line-height: 1.1;
}
.home-later__form { display: grid; gap: 12px; }
.home-later__success { font-weight: 600; }
.home-later__error { margin-top: 10px; font-weight: 600; }

/* Navigation et guide, sur cette page */
.tch-nav__cta-shimmer,
.tch-nav__burger-ring,
.tch-nav__panel-eyebrow { display: none; }
.tch-nav__brand-mark,
.tch-nav__brand-mark svg { animation: none; filter: none; }
.tch-nav__panel { background: none; }
.tch-nav__panel::before,
.tch-nav__panel::after { display: none; }
.tch-nav {
  top: 12px;
  right: 0;
  left: 0;
  width: 100%;
  padding: 0;
  background: none;
  backdrop-filter: none;
  box-shadow: none;
  pointer-events: none;
}
.tch-nav--scrolled { background: none; box-shadow: none; }
.tch-nav__inner {
  width: min(calc(100% - 24px), 1180px);
  max-width: none;
  min-height: 60px;
  margin-inline: auto;
  padding: 6px 8px 6px 20px;
  border: 1px solid rgba(198, 161, 91, 0.42);
  border-radius: 99px;
  background: rgba(15, 26, 61, 0.74);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 14px 30px -18px rgba(5, 9, 30, 0.9);
  pointer-events: auto;
  transition: background-color 0.3s var(--ease-out-expo), min-height 0.3s var(--ease-out-expo);
}
.tch-nav--scrolled .tch-nav__inner { min-height: 52px; background: rgba(15, 26, 61, 0.94); }
.tch-nav__brand-name {
  color: var(--tch-bg);
  font-family: var(--home-serif);
  font-size: 1.625rem;
  font-weight: 600;
  letter-spacing: 0;
}
.tch-nav__links { position: relative; gap: 4px; }
.tch-nav__link {
  position: relative;
  z-index: 1;
  padding: 8px 14px;
  color: var(--tch-bg);
  font-size: 0.9375rem;
  font-weight: 500;
}
.tch-nav__link::before { display: none; }
.tch-nav__link:hover,
.tch-nav__link[aria-current] { color: var(--tch-bg); }
.tch-nav__link-dot { display: none; }
.tch-nav__link--login { margin-left: 8px; opacity: 0.86; }
.tch-nav__marker {
  position: absolute;
  bottom: 2px;
  left: 0;
  width: var(--marker-width, 0);
  height: 2px;
  background: var(--tch-accent);
  opacity: 0;
  transform: translateX(var(--marker-left, 0));
  transition: transform 0.3s var(--ease-out-expo), width 0.3s var(--ease-out-expo), opacity 0.2s;
}
.tch-nav__marker.is-visible { opacity: 1; }
.tch-nav__cta {
  border-radius: 99px;
  background: var(--tch-accent);
  background-image: none;
  box-shadow: none;
  color: var(--tch-primary);
  transition: background-color 0.18s var(--ease-out-expo), transform 0.18s var(--ease-out-expo);
}
.tch-nav__cta:hover { background: #d4b271; transform: translateY(-1px); }
.tch-nav__burger { z-index: 103; }

.journey-guide {
  right: 0;
  bottom: 0;
  left: 0;
  max-width: none;
  padding: 10px var(--home-gutter, 20px) calc(10px + env(safe-area-inset-bottom));
  border: 0;
  border-radius: 0;
  background: var(--tch-primary-deep);
  box-shadow: none;
  color: var(--tch-bg);
}
.journey-guide__step,
.journey-guide__label { color: var(--tch-bg); font-family: 'Inter', sans-serif; font-style: normal; letter-spacing: 0; text-transform: none; }
.journey-guide__next {
  border-radius: 4px;
  background: var(--tch-accent);
  color: var(--tch-primary);
}

[data-couple-only][hidden],
[data-single-only][hidden] { display: none; }

@media (max-width: 1023px) {
  .tch-nav__panel { width: 100vw; background: var(--tch-primary-deep) url('../images/pagne-bande.svg') repeat-x left bottom / auto 48px; border-left: 0; }
  .tch-nav__panel-header { padding-top: 88px; border: 0; }
  .tch-nav__panel-tagline { display: none; }
  .tch-nav__links { padding-inline: var(--home-gutter); }
  .tch-nav__link {
    padding: 10px 0;
    border: 0;
    font-family: var(--home-serif);
    font-size: 2.5rem;
    line-height: 1.1;
  }
  .tch-nav__marker { display: none; }
  .tch-nav__inner { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(15, 26, 61, 0.92); }
  .tch-nav__cta { margin: 24px var(--home-gutter) 72px; }
}

@media (min-width: 600px) {
  .home-form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-pricing__occasions--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .home-later__form { grid-template-columns: 1fr auto; align-items: end; }
  .home-after__photos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-after__photos figure:first-child { grid-column: span 2; grid-row: span 2; }
}

@media (min-width: 900px) {
  .home-hero__inner { padding-block: clamp(56px, 8svh, 84px) 22px; }
  .home-hero__title { font-size: min(8.8vw, 15svh, 8.75rem); line-height: 0.98; }
  .home-hero__title span:nth-child(n + 2) { display: inline-block; }
  .home-hero__stage { width: min(44vw, 50svh, 560px); margin-top: 52px; margin-bottom: 70px; }
  .home-hero__stage.is-open { margin-bottom: 70px; }
  .home-hero__stage.is-open + .home-hero__offer { position: absolute; bottom: 24px; }
  .home-hero__inner { padding-bottom: 22px; }
  .home-envelope__name { font-size: calc(clamp(2.25rem, 3vw, 2.875rem) * var(--name-fit, 1)); min-height: 56px; }
  .home-envelope__mark { width: 112px; height: 112px; margin-top: -44px; font-size: 2.25rem; }
  .is-open .home-envelope__card { right: -9%; left: -9%; height: 310px; transform: translateY(-16%); }
  .home-envelope__photo { width: 72px; height: 72px; }

  .home-hero__table { height: 44%; }
  .home-place--1 { --place-size: 1.5rem; --place-depth: 22px; bottom: 16%; left: 9%; }
  .home-place--2 { --place-size: 1.5rem; --place-depth: 22px; right: 9%; bottom: 14%; }
  .home-place--3 { --place-size: 1.125rem; --place-tilt: 2deg; --place-depth: 14px; display: block; bottom: 56%; left: 19%; }
  .home-place--4 { --place-size: 1.125rem; --place-tilt: -2deg; --place-depth: 14px; display: block; right: 19%; bottom: 58%; }
  .home-place--5 { --place-size: 0.9375rem; --place-tilt: -2deg; --place-depth: 8px; display: block; bottom: 74%; left: 7%; opacity: 0.86; }
  .home-place--6 { --place-size: 0.9375rem; --place-tilt: 2deg; --place-depth: 8px; display: block; right: 8%; bottom: 76%; opacity: 0.86; }

  .home-idea__layout { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; }

  .home-day__moment h3 { min-height: 3.2em; }
  .home-day__moments { grid-auto-columns: auto; grid-auto-flow: row; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: visible; }
  .home-app__layout {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(40px, 6vw, 96px);
    padding-top: 0;
    align-items: center;
  }
  .home-app__text { padding-block: var(--home-rhythm); }
  .home-app__phones {
    align-self: stretch;
    height: auto;
    min-height: 780px;
    margin: 0 calc((100vw - min(100vw, 1400px)) / -2 - var(--home-gutter)) 0 0;
    background-size: 960px auto;
  }
  .home-app__phones .home-phone { top: 10%; bottom: auto !important; }
  .home-app__phones .home-phone--back-left,
  .home-app__phones .home-phone--back-right { top: 16%; }
  .home-phone--front { max-width: 300px; }
  .home-phone--back-left,
  .home-phone--back-right { max-width: 260px; }
  .home-phone--back-left { left: 6%; }
  .home-phone--back-right { right: 6%; }

  .home-occasions__list { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(250px, 23vw, 340px); }
  .home-occasions__item--wedding { grid-column: span 2; grid-row: span 2; }
  .home-occasions__item--private_party,
  .home-occasions__item--conference { grid-column: span 2; }
  .home-occasion { padding: 24px 28px; }
  .home-pricing__occasion { font-size: 1rem; }
  .home-occasion__art { width: min(62%, 230px); }
  .home-occasions__item--wedding .home-occasion__art { top: 8%; width: min(66%, 440px); }
  .home-occasions__item--wedding .home-occasion__name { font-size: clamp(3rem, 5.4vw, 5.25rem); }
  .home-occasions__item--private_party .home-occasion__art,
  .home-occasions__item--conference .home-occasion__art { left: 68%; top: 8%; width: 40%; }

  .home-themes__layout { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
  .home-themes__cards { grid-template-columns: 1fr; gap: 12px; margin-top: 24px; }
  .home-themes__card { grid-template-columns: 112px 1fr; align-items: center; gap: 16px; padding: 10px; }
  .home-themes__card-state { font-size: 0.9375rem; font-weight: 600; }
  .home-themes__card[aria-selected="false"] .home-themes__card-state--off,
  .home-themes__card[aria-selected="true"] .home-themes__card-state--on { display: block; }
  .home-theme { grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: clamp(24px, 3vw, 40px); }
  .home-theme__text { display: grid; justify-items: start; text-align: left; }
  .home-theme__label { margin-bottom: 0; }
  .home-theme__name { text-align: left; }
  .home-theme__actions { justify-content: flex-start; margin-top: 16px; }
  .home-phone--theme { width: min(21vw, 37svh, 300px); }

  .home-origin { align-items: center; min-height: 90svh; }
  .home-origin__layout { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 56px; }
  .home-phone--origin { width: min(21vw, 300px); }
  .home-origin__photo { object-position: center 24%; }
  .home-origin::after { background: linear-gradient(to right, rgba(15, 26, 61, 0.96) 26%, rgba(15, 26, 61, 0.1) 74%); }

  .home-proof__list { grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: clamp(32px, 4vw, 64px); }
  .home-proof__list li:nth-child(even) { margin-top: 56px; }

  .home-pricing__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.14fr) minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: stretch;
  }
  .home-plan { grid-row: span 2; grid-template-rows: subgrid; }
  .home-plan__head { padding: 32px 28px 26px; }
  .home-plan--featured { margin-block: -18px; }
  .home-plan--featured .home-plan__head { padding-top: 66px; }
  .home-plan__body { padding: 10px 28px 26px; }
  .home-base__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-promises { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }

  .home-faq__layout { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
  .home-faq__intro { position: sticky; top: 112px; align-self: start; }

  .home-start__layout { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
  .home-start__intro { position: sticky; top: 112px; justify-items: start; text-align: left; }
  .home-start__envelope { display: block; justify-self: center; }

  .home-later__layout { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: center; gap: 64px; }
}

@media (min-width: 1280px) {
  .home-day__moment h3 { min-height: 2.1em; }
}

@media (prefers-reduced-motion: reduce) {
  .home-envelope { animation: none; }
  .home-envelope__card,
  .home-envelope__seal,
  .home-envelope__flap,
  .home-envelope__flap i,
  .home-envelope__address,
  .home-hero__stage,
  .home-idea__crossed span::after { transition: none; }
  .home-place,
  .home-hero__lamp,
  .home-balloon,
  .home-hero__title span { animation: none; }
  .is-celebrating .home-balloon--11, .is-celebrating .home-balloon--12, .is-celebrating .home-balloon--13,
  .is-celebrating .home-balloon--14, .is-celebrating .home-balloon--15, .is-celebrating .home-balloon--16 { display: none; }
  .home-hero__stage.is-open + .home-hero__offer { animation: none; }
  .home-idea__row { transform: none; }
  .home-screen,
  .home-day,
  .home-button,
  .home-link,
  .home-occasion,
  .home-store,
  .home-proof__print,
  .home-proof__open,
  .home-form__option,
  .home-theme__scene img { transition: none; }
}
