@font-face {
  font-family: "Syne";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url(../fonts/syne-700.woff2) format("woff2");
}
@font-face {
  font-family: "Syne";
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  src: url(../fonts/syne-800.woff2) format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  src: url(../fonts/instrument-sans.woff2) format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url(../fonts/cormorant-500.woff2) format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-weight: 500;
  font-style: italic;
  font-display: swap;
  src: url(../fonts/cormorant-500-italic.woff2) format("woff2");
}

/* Concept : les 3 couleurs de la marque sont les 3 temps de l'événement.
   Charbon = avant, Or = pendant, Blanc = après. Le scroll traverse les trois,
   et les pixels du QR du logo se recomposent jusqu'à former le prénom de l'invité. */
:root {
  --charbon: #2e2e2e;
  --or: #d5ac5d;
  --blanc: #ffffff;
  --charbon-2: #3a3936;
  --or-clair: #e7cd97;
  --or-fonce: #a98434;
  --display: "Syne", "Arial Black", sans-serif;
  --body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --carte: "Cormorant Garamond", Georgia, serif;
  --gutter: max(clamp(16px, 5vw, 72px), env(safe-area-inset-left, 0px));
  --gutter-r: max(clamp(16px, 5vw, 72px), env(safe-area-inset-right, 0px));
  color-scheme: dark;
}
html {
  scroll-behavior: smooth;
  background: var(--charbon);
}
body {
  margin: 0;
  background: var(--charbon);
  color: var(--blanc);
  font-family: var(--body);
  font-size: clamp(16px, 1.15vw, 18px);
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
* {
  box-sizing: border-box;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.06;
  text-wrap: balance;
}
h2 {
  font-size: clamp(1.9rem, 4.2vw, 3.6rem);
}
h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.2;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--or);
  outline-offset: 3px;
}
.band :focus-visible,
.tone-or :focus-visible {
  outline-color: var(--charbon);
}
.wrap {
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  max-width: 1500px;
  margin-inline: auto;
}
.lead {
  max-width: 56ch;
  font-size: 1.12em;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 30;
  background: var(--charbon);
}

/* Navigation */
.nav {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: calc(14px + env(safe-area-inset-top, 0px)) var(--gutter-r) 14px var(--gutter);
  color: var(--nav, var(--or));
  background: var(--nav-bg, transparent);
  transition:
    color 0.3s,
    background 0.3s;
  pointer-events: none;
}
.nav > * {
  pointer-events: auto;
}
.brand {
  position: relative;
  display: block;
  height: 52px;
  aspect-ratio: 810/262;
}
.logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.3s;
}
.logo-charbon {
  opacity: 0;
}
.nav[data-ink="charbon"] .logo-or {
  opacity: 0;
}
.nav[data-ink="charbon"] .logo-charbon {
  opacity: 1;
}
.nav .go {
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid currentColor;
  border-radius: 99px;
  padding: 0.42em 1em;
  transition:
    background 0.2s,
    color 0.2s;
}
.nav .go:hover {
  background: var(--nav, var(--or));
  color: var(--nav-inv, var(--charbon));
}

/* Portail */
.portal {
  position: relative;
}
.fx .portal {
  height: 230svh;
}
.portal-in {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 24px;
  overflow: clip;
  position: relative;
  padding-block: 96px 40px;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
}
.fx .portal-in {
  position: sticky;
  top: 0;
  height: 100svh;
}
.pitch {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 22px;
  justify-items: start;
  min-width: 0;
}
h1 {
  font-size: clamp(2.2rem, 5.1vw, 5rem);
  color: var(--blanc);
  max-width: 13.5em;
}
.pitch p {
  max-width: 50ch;
  font-size: 1.14em;
  color: #ece9e2;
}
.try {
  display: grid;
  gap: 8px;
  width: min(100%, 460px);
  margin-top: 4px;
}
.try label {
  font-weight: 600;
  color: var(--or);
}
.try-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.try input {
  flex: 1 1 150px;
  min-width: 0;
  font: inherit;
  font-size: 1.05em;
  color: var(--blanc);
  background: transparent;
  border: 1.5px solid var(--or);
  border-radius: 10px;
  padding: 0.68em 0.85em;
}
.btn {
  font: inherit;
  font-weight: 700;
  border: 0;
  border-radius: 10px;
  background: var(--or);
  color: var(--charbon);
  padding: 0.75em 1.15em;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s;
}
.btn:hover {
  background: var(--or-clair);
}
.markbox {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-width: 0;
}
.mark {
  width: min(100%, 62svh);
  height: auto;
  display: block;
  overflow: visible;
}
.mark .sp {
  fill: currentColor;
}
.mark {
  color: var(--or);
}
.mark rect {
  fill: var(--or);
  shape-rendering: crispEdges;
}
.fx .mark rect {
  animation: pop 0.5s both cubic-bezier(0.2, 0.9, 0.3, 1.3);
  animation-delay: calc(var(--d) * 1ms);
  transform-box: fill-box;
  transform-origin: center;
}
@keyframes pop {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}
.hint {
  position: absolute;
  left: var(--gutter);
  bottom: 20px;
  font-size: 0.9em;
  color: #d9d5cb;
  z-index: 2;
}
html:not(.fx) .hint {
  display: none;
}

/* Parcours */
.journey {
  position: relative;
  background: var(--charbon);
}
.fx .journey {
  height: 820svh;
}
.stage {
  --fg: var(--blanc);
  --soft: #ece9e2;
  --acc: var(--or);
  color: var(--fg);
}
.fx .stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: clip;
  background: var(--charbon);
  transition: color 0.3s;
}
.stage.t-or {
  --fg: var(--charbon);
  --soft: var(--charbon);
  --acc: var(--charbon);
}
.stage.t-blanc {
  --fg: var(--charbon);
  --soft: var(--charbon);
  --acc: var(--charbon);
}
.flood {
  display: none;
  position: absolute;
  inset: 0;
  clip-path: circle(0 at 70% 50%);
}
.fx .flood {
  display: block;
}
#fOr {
  background: var(--or);
}
#fBlanc {
  background: var(--blanc);
}
#px {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
}
.fx #px {
  display: block;
}
.stage-in {
  position: relative;
}
.fx .stage-in {
  height: 100%;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 32px;
  align-items: center;
  padding-block: calc(92px + env(safe-area-inset-top, 0px)) 28px;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
  max-width: 1500px;
  margin-inline: auto;
}
.left {
  display: grid;
  min-width: 0;
}
.fx .left {
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100%;
  gap: 18px;
}
html:not(.fx) .left {
  gap: 0;
  padding: 64px var(--gutter) 0 var(--gutter);
}
.times {
  display: none;
  gap: clamp(14px, 2.4vw, 32px);
  font-family: var(--display);
  font-weight: 700;
  list-style: none;
  margin: 0;
  padding: 0;
}
.fx .times {
  display: flex;
}
.times li {
  opacity: 0.48;
  transition: opacity 0.3s;
}
.times li.on {
  opacity: 1;
}
#slot {
  display: none;
}
.fx #slot {
  display: block;
  min-height: 0;
}
.steps {
  position: relative;
  min-height: 0;
}
.fx .steps {
  min-height: clamp(170px, 23svh, 240px);
}
.step {
  display: grid;
  gap: 10px;
}
.fx .step {
  position: absolute;
  inset: 0;
  align-content: start;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.28s,
    visibility 0.28s;
}
.fx .step.on {
  opacity: 1;
  visibility: visible;
}
.step-day {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3rem, 10vw, 6rem);
  line-height: 1;
  color: var(--or);
}
.fx .step-day {
  display: none;
}
.step h2 {
  font-size: clamp(1.65rem, 3.3vw, 3rem);
}
.step > p {
  max-width: 46ch;
  font-size: 1.1em;
  color: var(--soft);
}
html:not(.fx) .step {
  padding-block: 40px;
  border-top: 1px solid #6b6a66;
}
html:not(.fx) .step .phone-s {
  position: relative;
  width: min(280px, 100%);
  aspect-ratio: 9/18.5;
  border-radius: 30px;
  overflow: hidden;
  margin-top: 18px;
}
.phone {
  display: none;
}
.fx .phone {
  display: block;
  justify-self: center;
  position: relative;
  height: min(76svh, 660px);
  aspect-ratio: 9/18.5;
  max-width: 100%;
  border-radius: clamp(26px, 3.4svh, 38px);
  background: var(--charbon);
  border: 8px solid #1f1f1f;
  box-shadow: 0 0 0 1.5px var(--or);
  overflow: hidden;
}
.fx .phone .phone-s {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s;
}
.fx .phone .phone-s.on {
  opacity: 1;
}

/* Écrans invité */
.phone-s {
  background: var(--charbon);
  color: var(--blanc);
  padding: 14% 8% 8%;
  display: flex;
  flex-direction: column;
  gap: 1em;
  font-size: 15px;
  line-height: 1.35;
}
.fx .phone {
  container-type: size;
}
.fx .phone .phone-s {
  font-size: 5.1cqw;
}
.phone-s.white {
  background: var(--blanc);
  color: var(--charbon);
}
.phone-s.gold {
  background: var(--or);
  color: var(--charbon);
}
.phone-s .tag {
  font-size: 0.86em;
  font-weight: 600;
  color: var(--or);
}
.phone-s.white .tag,
.phone-s.gold .tag {
  color: var(--charbon);
}
.card-t {
  font-family: var(--carte);
  font-style: italic;
  font-weight: 500;
  font-size: 2.5em;
  line-height: 1.02;
  color: var(--or);
}
.card-t.dk {
  color: var(--charbon);
}
.card-p {
  font-family: var(--carte);
  font-weight: 500;
  font-size: 1.32em;
  line-height: 1.18;
}
.spacer {
  flex: 1;
}
.mini {
  font: inherit;
  font-weight: 700;
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 0.8em;
  background: var(--or);
  color: var(--charbon);
  cursor: pointer;
}
.mini[aria-pressed="true"] {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--or);
  color: var(--or);
}
.mini.dk {
  background: var(--charbon);
  color: var(--blanc);
}
.count {
  display: flex;
  gap: 0.9em;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.9em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.count small {
  display: block;
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.42em;
  margin-top: 0.35em;
}
.swatches {
  display: flex;
  gap: 0.5em;
  align-items: center;
}
.swatches i {
  width: 1.6em;
  height: 1.6em;
  border-radius: 50%;
  border: 1px solid var(--or);
}
.prog {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.42em;
}
.prog li {
  display: flex;
  gap: 0.8em;
}
.prog b {
  min-width: 3.4em;
  font-variant-numeric: tabular-nums;
}
.prog li.now {
  color: var(--charbon);
  font-weight: 700;
}
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.tiles canvas {
  width: 100%;
  aspect-ratio: 1/1.15;
  display: block;
  image-rendering: pixelated;
  border-radius: 3px;
}
.welcome {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.6em;
  height: 100%;
  text-align: left;
}
.fx #ecranScan .welcome {
  opacity: var(--w, 0);
  transition: opacity 0.25s;
}
.table-n {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.75em;
  line-height: 1;
  white-space: nowrap;
}

/* Bandes */
.band {
  padding-block: clamp(72px, 11vw, 150px);
}
.b-blanc {
  background: var(--blanc);
  color: var(--charbon);
}
.b-or {
  background: var(--or);
  color: var(--charbon);
}
.b-charbon {
  background: var(--charbon);
  color: var(--blanc);
}
.head {
  display: grid;
  gap: 16px;
  margin-bottom: clamp(32px, 5vw, 64px);
}
.head h2 {
  max-width: 20em;
}

.scrollx {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 640px;
  font-size: 0.98em;
}
th,
td {
  padding: 0.95em 0.9em;
  text-align: left;
  vertical-align: middle;
}
thead th {
  font-family: var(--display);
  font-weight: 700;
  border-bottom: 2px solid var(--charbon);
  vertical-align: bottom;
}
tbody th {
  font-weight: 600;
}
tbody tr + tr > * {
  border-top: 1px solid #dcd9d2;
}
td.no {
  color: #77756f;
}
.us {
  background: var(--charbon);
  color: var(--or);
  font-weight: 700;
}
thead .us {
  color: var(--or);
  border-bottom-color: var(--charbon);
  font-family: var(--display);
}
tbody tr + tr > .us {
  border-top-color: #4d4c49;
}

.cer {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}
.who {
  display: grid;
  gap: 8px;
}
.who p {
  font-weight: 600;
  color: var(--or);
}
.who button {
  font: inherit;
  text-align: left;
  background: transparent;
  color: var(--blanc);
  border: 1.5px solid #6b6a66;
  border-radius: 10px;
  padding: 0.8em 1em;
  cursor: pointer;
  display: grid;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}
.who button small {
  color: #d9d5cb;
  font-size: 0.86em;
}
.who button[aria-pressed="true"] {
  background: var(--or);
  border-color: var(--or);
  color: var(--charbon);
}
.who button[aria-pressed="true"] small {
  color: var(--charbon);
}
.cers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}
.cers li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 18px;
  padding: 1.05em 0;
  border-top: 1px solid #6b6a66;
  align-items: baseline;
  transition: opacity 0.3s;
}
.cers li:last-child {
  border-bottom: 1px solid #6b6a66;
}
.cers b {
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  line-height: 1.1;
  color: var(--or);
}
.cers span {
  color: #ece9e2;
}
.cers em {
  grid-column: 1/-1;
  font-style: normal;
  font-size: 0.9em;
  color: #d9d5cb;
}
.cers li.off {
  opacity: 0.4;
}
.cers li.off b {
  color: var(--blanc);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.back {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: center;
}
.back ul {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5em;
  font-weight: 500;
}
.back li {
  padding-left: 1.1em;
  background: linear-gradient(var(--charbon), var(--charbon)) 0 0.55em/.55em 0.55em no-repeat;
}
.board {
  background: var(--charbon);
  color: var(--blanc);
  padding: clamp(20px, 3vw, 36px);
  border-radius: 16px;
  display: grid;
  gap: 20px;
}
.board header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.board header b {
  font-family: var(--display);
}
.board header span {
  color: var(--or);
  font-size: 0.92em;
}
.m {
  display: grid;
  gap: 6px;
}
.m div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.m strong {
  font-family: var(--display);
  font-size: 1.5em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.bar {
  height: 10px;
  background: #4d4c49;
}
.bar i {
  display: block;
  height: 100%;
  background: var(--or);
}

.aud {
  display: grid;
}
.aud article {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 8px 32px;
  padding-block: clamp(20px, 3vw, 34px);
  border-top: 1.5px solid var(--charbon);
}
.aud h3 {
  font-size: clamp(1.3rem, 2.5vw, 2rem);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: start;
}
.contact h2 {
  color: var(--or);
}
#demo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.f {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.f label {
  font-weight: 600;
}
.f input,
.f select {
  font: inherit;
  width: 100%;
  color: var(--blanc);
  background: var(--charbon-2);
  border: 1.5px solid #6b6a66;
  border-radius: 10px;
  padding: 0.68em 0.8em;
}
form .btn,
#ok {
  grid-column: 1/-1;
}
#ok {
  color: var(--or);
  font-weight: 600;
}
footer {
  background: var(--charbon);
  padding-block: 0 40px;
  color: #d9d5cb;
}
.foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid #6b6a66;
  padding-top: 28px;
}
.foot img {
  width: 170px;
  height: auto;
}

@media (max-width: 820px) {
  .portal-in {
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    gap: 12px;
    padding-top: 84px;
  }
  .markbox {
    order: -1;
  }
  .mark {
    width: min(52vw, 27svh);
  }
  .pitch {
    gap: 12px;
  }
  .pitch p {
    font-size: 1em;
  }
  .fx .stage-in {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 10px;
    padding-top: calc(106px + 10svh + env(safe-area-inset-top, 0px));
    padding-bottom: 10px;
  }
  .fx .left {
    display: contents;
  }
  .brand {
    height: 42px;
  }
  .times {
    position: absolute;
    top: calc(70px + env(safe-area-inset-top, 0px));
    left: var(--gutter);
  }
  .fx #slot {
    position: absolute;
    top: calc(98px + env(safe-area-inset-top, 0px));
    left: var(--gutter);
    right: var(--gutter-r);
    height: 10svh;
  }
  .fx .phone {
    grid-row: 1;
    height: 100%;
    min-height: 0;
    border-width: 5px;
  }
  .fx .steps {
    grid-row: 2;
    min-height: clamp(136px, 20svh, 170px);
  }
  .step > p {
    font-size: 0.95em;
  }
  .step {
    gap: 4px;
  }
  .step h2 {
    font-size: 1.45rem;
  }
  .cer,
  .back,
  .contact {
    grid-template-columns: minmax(0, 1fr);
  }
  .aud article {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 460px) {
  #demo {
    grid-template-columns: minmax(0, 1fr);
  }
  .hint {
    display: none;
  }
  .nav .go {
    font-size: 0.9em;
  }
}
@media (max-height: 640px) and (max-width: 820px) {
  .try label {
    display: none;
  }
}
