:root {
  --noir: #0c0806;
  --brun: #1c120c;
  --or: #c9a15d;
  --or-clair: #e6c98f;
  --creme: #efe4cf;
  --creme-doux: rgba(239, 228, 207, .78);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { background: var(--noir); }

body {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--creme);
  font-family: var(--serif);
  background: radial-gradient(ellipse at 50% 30%, #23160e 0%, var(--noir) 70%);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.scene { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

.facade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .55;
  animation: facade 14s ease-in-out forwards;
}

.lumieres { animation: extinction 9s 2.5s ease-in-out forwards; }
.vitre { animation: vitres 10s 2s ease-in-out forwards; }
.four { animation: braise 11s 3s ease-in-out forwards; }
.reflet { animation: extinction 9s 2.5s ease-in-out forwards; }

.neon, .neon-halo {
  font-family: var(--serif);
  font-style: italic;
  font-size: 64px;
  font-weight: 500;
  fill: #ffd28a;
}
.neon-halo { fill: #ff9a3c; opacity: .9; }
.neon { animation: neon 7s 4s linear forwards; }
.neon-halo { animation: neonHalo 7s 4s linear forwards; }

.voile {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 8, 6, .55) 0%, rgba(12, 8, 6, .78) 45%, rgba(12, 8, 6, .96) 100%),
    radial-gradient(ellipse at 50% 50%, transparent 30%, rgba(0, 0, 0, .7) 100%);
}

.particules { position: absolute; inset: 0; width: 100%; height: 100%; }

.grain {
  position: absolute;
  inset: -50%;
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(4) infinite;
}

.contenu {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 44rem;
  padding: clamp(5rem, 14vh, 9rem) 1.5rem 3rem;
  text-align: center;
  flex: 1;
}

.sur-titre {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 300;
  letter-spacing: .45em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 1.8rem;
}

h1 {
  font-weight: 300;
  font-style: italic;
  font-size: clamp(2.3rem, 6.5vw, 4.2rem);
  line-height: 1.12;
  letter-spacing: -.005em;
  color: var(--creme);
  text-shadow: 0 0 40px rgba(201, 161, 93, .18);
}

.filet {
  width: 4.5rem;
  height: 1px;
  margin: 2.4rem auto;
  background: linear-gradient(90deg, transparent, var(--or), transparent);
}

.texte p {
  font-size: clamp(1.15rem, 2.6vw, 1.38rem);
  line-height: 1.75;
  font-weight: 400;
  color: var(--creme-doux);
  margin-bottom: 1.35rem;
}

.texte strong { font-weight: 500; color: var(--or-clair); }

.texte .citation {
  font-style: italic;
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  line-height: 1.55;
  color: var(--or-clair);
  margin: 2.6rem auto;
  max-width: 34rem;
  position: relative;
}

.texte .citation::before,
.texte .citation::after {
  content: "";
  display: block;
  width: 1.6rem;
  height: 1px;
  margin: 1.2rem auto;
  background: rgba(201, 161, 93, .5);
}

.bouton {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  margin-top: 1.6rem;
  padding: 1.05rem 2.1rem;
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--noir);
  background: linear-gradient(135deg, var(--or-clair), var(--or));
  border-radius: 999px;
  box-shadow: 0 10px 40px -12px rgba(201, 161, 93, .55);
  transition: transform .5s ease, box-shadow .5s ease, background .5s ease;
}

.bouton svg { width: 1.1rem; height: 1.1rem; transition: transform .5s ease; }

.bouton:hover,
.bouton:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 50px -12px rgba(201, 161, 93, .75);
}

.bouton:hover svg, .bouton:focus-visible svg { transform: translateX(4px); }

.bouton:focus-visible { outline: 1px solid var(--creme); outline-offset: 5px; }

.signature { margin-top: 4rem; }

.signature .nom {
  font-size: clamp(1.7rem, 4vw, 2.1rem);
  font-style: italic;
  font-weight: 400;
  color: var(--creme);
}

.signature .role {
  margin-top: .5rem;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 300;
  letter-spacing: .08em;
  color: var(--or);
}

.pied {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 2rem 1.5rem calc(2rem + env(safe-area-inset-bottom));
  text-align: center;
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 300;
  letter-spacing: .14em;
  color: rgba(239, 228, 207, .45);
  border-top: 1px solid rgba(201, 161, 93, .12);
}

.apparition {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(4px);
  animation: apparition 1.8s cubic-bezier(.22, .61, .36, 1) forwards;
}

[data-d="0"] { animation-delay: .6s; }
[data-d="1"] { animation-delay: 1.4s; }
[data-d="2"] { animation-delay: 2.6s; }
[data-d="3"] { animation-delay: 3.3s; }
[data-d="4"] { animation-delay: 4.1s; }
[data-d="5"] { animation-delay: 4.9s; }
[data-d="6"] { animation-delay: 5.9s; }
[data-d="7"] { animation-delay: 7s; }
[data-d="8"] { animation-delay: 8s; }
[data-d="9"] { animation-delay: 8.8s; }
[data-d="10"] { animation-delay: 9.6s; }

@keyframes apparition { to { opacity: 1; transform: none; filter: none; } }

@keyframes facade { from { opacity: .85; transform: scale(1.04); } to { opacity: .55; transform: scale(1); } }

@keyframes extinction { 0% { opacity: 1; } 100% { opacity: .12; } }

@keyframes vitres { 0% { opacity: 1; } 60% { opacity: .35; } 100% { opacity: .08; } }

@keyframes braise { 0% { opacity: 1; } 100% { opacity: .25; } }

@keyframes neon {
  0%, 18% { opacity: 1; }
  19% { opacity: .2; }
  21% { opacity: 1; }
  40% { opacity: .9; }
  41% { opacity: .1; }
  44% { opacity: .85; }
  46% { opacity: .15; }
  60% { opacity: .6; }
  62% { opacity: .08; }
  100% { opacity: .06; fill: #6b4a2a; }
}

@keyframes neonHalo {
  0%, 18% { opacity: .9; }
  19% { opacity: .1; }
  21% { opacity: .9; }
  41% { opacity: 0; }
  44% { opacity: .7; }
  46% { opacity: 0; }
  60% { opacity: .4; }
  62%, 100% { opacity: 0; }
}

@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); }
  75% { transform: translate(-2%, -1%); }
  100% { transform: translate(0, 0); }
}

@media (max-width: 600px) {
  .facade { opacity: .45; }
  .contenu { padding-top: 4.5rem; }
  .bouton { padding: 1rem 1.6rem; font-size: .74rem; letter-spacing: .16em; }
}

@media (prefers-reduced-motion: reduce) {
  .apparition { animation-duration: .01s; animation-delay: 0s !important; }
  .facade, .lumieres, .vitre, .four, .reflet, .neon, .neon-halo, .grain { animation: none; }
  .lumieres, .vitre, .reflet { opacity: .15; }
  .neon { opacity: .08; }
  .neon-halo { opacity: 0; }
}
