/* Hero C1 : plein écran nocturne */
.hx { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; background: var(--night); isolation: isolate; }
.hx-media { position: absolute; inset: 0; z-index: -1; }
.hx-photo { position: absolute; left: 0; top: -2%; width: 100%; height: 136%; max-width: none; object-fit: cover; object-position: 50% 0; filter: contrast(1.03); }
/* Dégradé sombre neutre pour la lisibilité, légère vignette neutre */
.hx-shade { position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 50% 38%, #0000 55%, rgba(8, 7, 10, .45) 100%),
    linear-gradient(180deg, rgba(8, 7, 10, .38) 0%, rgba(8, 7, 10, 0) 13%, rgba(8, 7, 10, 0) 44%, rgba(8, 7, 10, .62) 64%, rgba(8, 7, 10, .9) 82%, #0A0610 100%); }
/* Reflets de boule à facettes, blancs et argent */
.hx-spots { position: absolute; inset: 0; opacity: .7;
  background:
    radial-gradient(7px 7px at 18% 20%, rgba(255, 255, 255, .5), #0000),
    radial-gradient(6px 6px at 64% 29%, rgba(255, 255, 255, .5), #0000),
    radial-gradient(10px 10px at 81% 16%, rgba(225, 228, 238, .35), #0000),
    radial-gradient(6px 6px at 9% 46%, rgba(225, 228, 238, .4), #0000),
    radial-gradient(8px 8px at 90% 70%, rgba(255, 255, 255, .35), #0000);
  animation: drift 9s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate3d(-14px, 10px, 0); opacity: .45; } }
.hx-glints i { position: absolute; left: var(--x); top: var(--y); width: 40px; height: 40px; margin: -20px 0 0 -20px; transform: scale(var(--s)); opacity: .9;
  background:
    radial-gradient(circle, #fff 0 1.4px, rgba(255, 255, 255, .7) 2.2px, rgba(220, 224, 236, .3) 5px, #0000 10px),
    linear-gradient(90deg, #0000 47%, rgba(255, 255, 255, .95) 50%, #0000 53%),
    linear-gradient(0deg, #0000 47%, rgba(255, 255, 255, .95) 50%, #0000 53%);
  -webkit-mask: radial-gradient(circle, #000 8%, #0000 68%); mask: radial-gradient(circle, #000 8%, #0000 68%);
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, .8));
  animation: glint 3.2s ease-in-out var(--d) infinite; }
@keyframes glint { 0%, 100% { opacity: .15; transform: scale(calc(var(--s) * .4)) rotate(0deg); } 50% { opacity: .9; transform: scale(var(--s)) rotate(45deg); } }

.hx-top { display: flex; justify-content: center; padding: 26px 20px 0; font-family: var(--wide); font-weight: 700; font-size: 11px; letter-spacing: .42em; text-transform: uppercase; color: var(--silver); text-shadow: 0 1px 12px rgba(0, 0, 0, .5); }
.hx-top span { padding-left: .42em; }

.hx-content { padding: 0 clamp(20px, 4.5vw, 72px) clamp(28px, 4vw, 52px); }
#site-title { text-align: center; font-family: var(--display); font-weight: 400; font-size: clamp(60px, 9.4vw, 150px); line-height: 1; word-spacing: .18em; white-space: nowrap; color: #fff;
  background: var(--chrome); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, .5)) drop-shadow(0 0 14px rgba(255, 79, 163, .75)) drop-shadow(0 0 36px rgba(255, 79, 163, .28)); }
#site-title .w { display: inline-block; }
.hx-row { margin-top: clamp(22px, 3vw, 40px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 24px; }
.couple { font-family: var(--wide); font-weight: 700; font-size: clamp(16px, 1.5vw, 22px); letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.dates { margin-top: 8px; font-family: var(--wide); font-size: 13px; letter-spacing: .26em; text-transform: uppercase; color: var(--pink-2); }
.tagline { text-align: center; font-size: clamp(17px, 1.4vw, 20px); font-weight: 500; color: var(--silver); padding-bottom: 4px; }
.countdown { justify-self: end; display: grid; grid-template-columns: repeat(4, 74px); gap: 8px; }
.countdown div { text-align: center; padding: 13px 4px 11px; border-radius: 14px; background: rgba(12, 10, 16, .5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.countdown b { display: block; font-family: var(--wide); font-weight: 700; font-size: 24px; line-height: 1; color: var(--pink); text-shadow: 0 0 14px rgba(255, 79, 163, .6); font-variant-numeric: tabular-nums; }
.countdown span { display: block; margin-top: 8px; font-family: var(--wide); font-size: 8.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .hx-spots, .hx-glints i { animation: none; }
  .hx-glints i { transform: scale(var(--s)) rotate(45deg); }
}

@media (max-width: 900px) {
  .hx-photo { top: 0; height: 100%; object-position: 50% 0; }
  .hx-top { padding-top: 22px; font-size: 10px; }
  .hx-content { padding: 0 20px 26px; }
  #site-title { white-space: normal; font-size: 21vw; line-height: .98; }
  #site-title .w { display: block; }
  .hx-row { margin-top: 18px; grid-template-columns: 1fr; gap: 0; text-align: center; }
  .couple { font-size: 17px; }
  .tagline { margin-top: 14px; font-size: 16px; }
  .countdown { justify-self: stretch; margin-top: 18px; grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .countdown div { padding: 11px 2px 9px; }
  .countdown b { font-size: 21px; }
  .countdown span { font-size: 7.5px; letter-spacing: .14em; }
}

/* Titre et bloc infos dans le fondu sombre du bas, sous le couple */
@media (min-width: 901px) {
  .hx-photo { top: 0; height: 112%; }
  .hx-shade { background:
    radial-gradient(120% 90% at 50% 38%, #0000 55%, rgba(8, 7, 10, .45) 100%),
    linear-gradient(180deg, rgba(8, 7, 10, .38) 0%, rgba(8, 7, 10, 0) 13%, rgba(8, 7, 10, 0) 52%, rgba(8, 7, 10, .66) 66%, rgba(8, 7, 10, .92) 80%, #0A0610 100%); }
  .hx-content { padding-bottom: clamp(24px, 3vw, 40px); }
  .hx-row { margin-top: clamp(18px, 2.2vw, 30px); }
}
@media (max-width: 900px) {
  .hx { min-height: 0; justify-content: flex-start; }
  .hx-photo { top: 0; height: 212vw; object-position: 50% 0; }
  .hx-shade { background:
    linear-gradient(180deg, rgba(8, 7, 10, .38) 0, rgba(8, 7, 10, 0) 16vw, rgba(8, 7, 10, 0) 116vw, rgba(8, 7, 10, .6) 136vw, rgba(8, 7, 10, .86) 158vw, #0A0610 200vw); }
  .hx-content { margin-top: 115vw; }
  #site-title { font-size: 19vw; }
}

/* "Save the date" plus grand et lisible ; la photo descend légèrement pour lui laisser la place, son bord haut se fond dans la fourrure */
.hx-top { padding-top: 24px; font-size: 20px; letter-spacing: .4em; color: #fff;
  text-shadow: 0 1px 2px rgba(10, 6, 16, .8), 0 0 14px rgba(10, 6, 16, .7), 0 0 26px rgba(255, 79, 163, .55); }
.hx-top span { padding-left: .4em; }
@media (min-width: 901px) {
  .hx-photo { top: 52px; -webkit-mask-image: linear-gradient(180deg, #0000 0, #000 70px); mask-image: linear-gradient(180deg, #0000 0, #000 70px); }
}
@media (max-width: 900px) {
  .hx-top { padding-top: 18px; font-size: min(16px, 4.3vw); letter-spacing: .34em; }
  .hx-top span { padding-left: .34em; }
  .hx-photo { top: 10vw; -webkit-mask-image: linear-gradient(180deg, #0000 0, #000 12vw); mask-image: linear-gradient(180deg, #0000 0, #000 12vw); }
  .hx-shade { background:
    linear-gradient(180deg, rgba(8, 7, 10, .42) 0, rgba(8, 7, 10, 0) 26vw, rgba(8, 7, 10, 0) 126vw, rgba(8, 7, 10, .6) 146vw, rgba(8, 7, 10, .86) 168vw, #0A0610 210vw); }
  .hx-content { margin-top: 125vw; }
}
