/* ==========================================================================
   GoldLuxuryKing — page de maintenance (version production)
   Base : « couture ». Greffes : tokens or 4 paliers (vitrine),
   gold-foil métallique (artdeco), poussière d'or responsable (aurum).
   ========================================================================== */

:root {
  /* --- Tokens chromatiques or : source de vérité unique (4 paliers) --- */
  --or-clair: #f0d27a;
  --or: #d4af37;
  --or-fonce: #c5a028;
  --or-profond: #9b7d1f;

  --noir: #0a0a0a;
  --noir-panneau: #111418;
  --blanc-casse: #f5f5f0;

  /* Dégradés or réutilisés en background-clip:text ET en stroke SVG */
  --grad-or: linear-gradient(135deg, #c5a028 0%, #d4af37 38%, #f0d27a 62%, #d4af37 100%);
  /* Gold foil : reflet crème central (#fff6da) qui simule le métal poli */
  --grad-foil: linear-gradient(135deg, #9b7d1f 0%, #d4af37 22%, #f0d27a 48%, #fff6da 56%, #f0d27a 64%, #c5a028 82%, #9b7d1f 100%);

  --ligne: rgba(212, 175, 55, 0.28);
  --ligne-faible: rgba(212, 175, 55, 0.14);

  --serif-titre: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  --serif-corps: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html, body { height: 100%; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(ellipse 120% 80% at 50% -10%, rgba(212, 175, 55, 0.11), transparent 60%),
    radial-gradient(ellipse 90% 70% at 50% 115%, rgba(212, 175, 55, 0.06), transparent 60%),
    var(--noir);
  color: var(--blanc-casse);
  font-family: var(--sans);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Canvas poussière d'or — derrière tout le contenu */
#poussiere {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Vignette douce pour concentrer le regard */
.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 78% 78% at 50% 46%, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
}

/* --- Cadre couture (composant .cadre réutilisable, 100% CSS) --- */
.cadre {
  position: fixed;
  inset: clamp(14px, 3.2vw, 38px);
  border: 1px solid var(--ligne-faible);
  pointer-events: none;
  z-index: 2;
}
.cadre::before,
.cadre::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: clamp(20px, 4vw, 40px);
}
.cadre::before { top: -1px; background: linear-gradient(var(--or), transparent); }
.cadre::after { bottom: -1px; background: linear-gradient(transparent, var(--or)); }

main {
  position: relative;
  z-index: 3;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.8rem, 4vh, 3rem);
  padding: clamp(5rem, 12vh, 9rem) clamp(1.5rem, 6vw, 4rem);
  max-width: 720px;
  width: 100%;
}

/* --- Logo textuel haut de page --- */
.marque {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  opacity: 0;
  animation: monter 1.3s var(--ease) 0.15s forwards;
}
.marque .filet {
  width: clamp(28px, 6vw, 56px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--or));
}
.marque .filet.droite { background: linear-gradient(90deg, var(--or), transparent); }

.logo-texte {
  font-family: var(--serif-titre);
  font-weight: 500;
  font-size: clamp(0.95rem, 2.4vw, 1.15rem);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  background: var(--grad-foil);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  padding-left: 0.42em;
  white-space: nowrap;
  animation: foil 9s linear infinite;
}

/* --- Emblème SVG : couronne + diamant + anneau --- */
.embleme {
  width: clamp(76px, 18vw, 116px);
  height: auto;
  opacity: 0;
  filter: drop-shadow(0 6px 20px rgba(212, 175, 55, 0.3));
  animation: monter 1.4s var(--ease) 0.35s forwards;
}
.embleme .trait {
  fill: none;
  stroke: url(#orGrad);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.embleme .trait.fin { stroke-width: 1.1; opacity: 0.7; }
.embleme .anneau { transform-origin: 60px 60px; animation: tourner 28s linear infinite; }
.embleme .lueur {
  fill: url(#orGrad);
  opacity: 0.9;
  transform-origin: center;
  animation: scintille 3.6s ease-in-out infinite;
}
.embleme .gemme { stroke: var(--or-clair); stroke-width: 0.8; }

h1 {
  font-family: var(--serif-titre);
  font-weight: 500;
  font-size: clamp(2.6rem, 9vw, 5rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, #fbf3d8 0%, var(--or-clair) 45%, var(--or) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  animation: monter 1.5s var(--ease) 0.5s forwards;
}

.sous-titre {
  font-family: var(--serif-corps);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.25rem, 3.6vw, 1.75rem);
  color: var(--blanc-casse);
  opacity: 0;
  animation: monter 1.5s var(--ease) 0.65s forwards;
}

.description {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(0.92rem, 2.4vw, 1.02rem);
  line-height: 1.85;
  letter-spacing: 0.02em;
  color: rgba(245, 245, 240, 0.62);
  max-width: 46ch;
  margin: 0 auto;
  opacity: 0;
  animation: monter 1.6s var(--ease) 0.8s forwards;
}

/* --- Indicateur « Bientôt disponible » : badge pulsant + shimmer --- */
.indicateur {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  opacity: 0;
  animation: monter 1.6s var(--ease) 0.95s forwards;
}
.badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--ligne);
  border-radius: 100px;
  background: rgba(212, 175, 55, 0.04);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(0.66rem, 1.9vw, 0.74rem);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--or-clair);
  overflow: hidden;
  isolation: isolate;
}
/* balayage shimmer traversant le badge */
.badge::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 35%, rgba(240, 210, 122, 0.28) 50%, transparent 65%);
  transform: translateX(-100%);
  animation: balayage-badge 3.6s var(--ease) infinite;
}
.point {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--or-clair);
  box-shadow: 0 0 0 0 rgba(240, 210, 122, 0.55);
  animation: pulse 2.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  flex-shrink: 0;
}

.barre {
  position: relative;
  width: clamp(160px, 42vw, 240px);
  height: 1px;
  background: var(--ligne-faible);
  overflow: hidden;
}
.barre::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 40%;
  background: linear-gradient(90deg, transparent, var(--or-clair), transparent);
  animation: balayage 2.8s ease-in-out infinite;
}

footer {
  position: relative;
  z-index: 3;
  padding: clamp(1.6rem, 5vh, 2.6rem) 1.5rem;
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(0.66rem, 1.8vw, 0.74rem);
  letter-spacing: 0.18em;
  color: rgba(245, 245, 240, 0.34);
  opacity: 0;
  animation: monter 1.6s ease 1.15s forwards;
}

/* ===== Animations ===== */
@keyframes monter {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes foil {
  to { background-position: 220% center; }
}
@keyframes tourner {
  to { transform: rotate(360deg); }
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(240, 210, 122, 0.5); opacity: 1; }
  70%  { box-shadow: 0 0 0 10px rgba(240, 210, 122, 0); opacity: 0.6; }
  100% { box-shadow: 0 0 0 0 rgba(240, 210, 122, 0); opacity: 1; }
}
@keyframes balayage {
  0%   { transform: translateX(-120%); }
  100% { transform: translateX(360%); }
}
@keyframes balayage-badge {
  0%   { transform: translateX(-100%); }
  55%  { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}
@keyframes scintille {
  0%, 100% { opacity: 0.55; transform: scale(0.92); }
  50%      { opacity: 1; transform: scale(1.06); }
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
  .marque .filet { width: 22px; }
  .logo-texte { letter-spacing: 0.3em; font-size: 0.82rem; }
}

/* ===== Accessibilité : mouvement réduit ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .marque, .embleme, h1, .sous-titre, .description, .indicateur, footer {
    opacity: 1 !important;
    transform: none !important;
  }
  .logo-texte { background-position: 0 center; }
  #poussiere { display: none; }
}
