/* Karmatic — page d'attente (v1, 2026-12)
   Recréée d'après une vidéo de référence.
   Couleurs ESTIMÉES sur une vidéo compressée.
   Polices : propositions libres (OFL), la police d'origine n'est pas connue. */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --nuit: #0b0605;
  --or-clair: #ffe1a3;
  --or: #f2b35a;
  --orange: #ff7a1a;
  --blanc: #f4efe9;
  --serif: "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
}

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

html, body {
  margin: 0;
  height: 100%;
  background: var(--nuit);
  color: var(--blanc);
  overflow: hidden;
}

body {
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Fond ---------- */
.fond {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.orbe {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  will-change: transform;
}
.orbe-orange {
  width: 52vmax; height: 52vmax;
  left: -8vmax; top: 18vh;
  background: radial-gradient(circle, rgba(214, 92, 8, .85) 0%, rgba(170, 62, 6, .45) 40%, rgba(120, 40, 4, 0) 70%);
  animation: derive-a 22s ease-in-out infinite alternate;
}
.orbe-violet {
  width: 36vmax; height: 36vmax;
  left: 46vw; top: 40vh;
  background: radial-gradient(circle, rgba(120, 26, 84, .8) 0%, rgba(90, 20, 70, .35) 45%, rgba(60, 10, 50, 0) 70%);
  animation: derive-b 18s ease-in-out infinite alternate;
}
.orbe-or {
  width: 38vmax; height: 38vmax;
  right: -16vmax; top: -12vmax;
  background: radial-gradient(circle, rgba(160, 120, 20, .75) 0%, rgba(120, 90, 10, .3) 45%, rgba(80, 60, 0, 0) 70%);
  animation: derive-c 26s ease-in-out infinite alternate;
}

@keyframes derive-a { to { transform: translate(4vw, -3vh) scale(1.06); } }
@keyframes derive-b { to { transform: translate(-5vw, 4vh) scale(.94); } }
@keyframes derive-c { to { transform: translate(-3vw, 5vh) scale(1.08); } }

.grille {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 150, 70, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 150, 70, .045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 50%, #000 0%, transparent 75%);
          mask-image: radial-gradient(ellipse 60% 55% at 50% 50%, #000 0%, transparent 75%);
}

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

.coin {
  position: absolute;
  width: 34px; height: 34px;
  border-color: rgba(255, 255, 255, .22);
  border-style: solid;
  border-width: 0;
}
.coin-hg { top: 18px; left: 18px; border-top-width: 1px; border-left-width: 1px; }
.coin-hd { top: 18px; right: 18px; border-top-width: 1px; border-right-width: 1px; }
.coin-bg { bottom: 18px; left: 18px; border-bottom-width: 1px; border-left-width: 1px; }
.coin-bd { bottom: 18px; right: 18px; border-bottom-width: 1px; border-right-width: 1px; }

/* ---------- Scène ---------- */
.scene {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

.arc {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(260px, 25vw, 520px);
  height: clamp(260px, 25vw, 520px);
  margin-left: calc(clamp(260px, 25vw, 520px) / -2 + 1.5vw);
  margin-top: calc(clamp(260px, 25vw, 520px) / -2 + 1vh);
  animation: tourne 14s linear infinite;
  pointer-events: none;
}
@keyframes tourne { to { transform: rotate(360deg); } }

.devise {
  margin: 0 0 .4em;
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(9px, .72vw, 14px);
  letter-spacing: .45em;
  text-transform: uppercase;
  color: var(--or);
  padding-left: .45em; /* compense l'espacement de la dernière lettre */
}

.titre {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(54px, 8.6vw, 180px);
  line-height: 1;
  letter-spacing: .03em;
  text-transform: uppercase;
  /* halo posé sur le parent : évite un bug Safari (filter + background-clip:text sur le même élément) */
  filter: drop-shadow(0 0 22px rgba(255, 130, 30, .38));
}
.titre-texte {
  display: inline-block;
  background-image: linear-gradient(100deg,
    var(--or-clair) 0%, #ffbf5a 22%, var(--orange) 45%,
    #ffbf5a 68%, var(--or-clair) 85%, #ffbf5a 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: reflet 9s ease-in-out infinite alternate;
}
@keyframes reflet {
  from { background-position: 100% 0; }
  to   { background-position: 0% 0; }
}

.etat {
  margin: .9em 0 0;
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(16px, 1.8vw, 36px);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--blanc);
  padding-left: .3em;
}

.trait {
  display: block;
  width: clamp(180px, 18vw, 360px);
  height: 1px;
  margin: 1.6em auto 1.4em;
  background: linear-gradient(90deg, transparent, rgba(255, 220, 180, .25) 20%, rgba(255, 240, 220, .85) 70%, transparent);
  background-size: 200% 100%;
  animation: balaye 7s ease-in-out infinite alternate;
}
@keyframes balaye {
  from { background-position: 100% 0; }
  to   { background-position: 0% 0; }
}

.signature {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(19px, 1.65vw, 34px);
  letter-spacing: .07em;
}
.sig-adldb { color: var(--blanc); }
.sig-voie  { color: var(--or); }

/* ---------- Petits écrans ---------- */
@media (max-width: 600px) {
  .devise { letter-spacing: .28em; padding-left: .28em; font-size: 9.5px; }
  .etat { letter-spacing: .24em; padding-left: .24em; }
  .titre { font-size: clamp(44px, 13vw, 86px); }
  .arc {
    width: 78vw; height: 78vw;
    margin-left: -39vw; margin-top: -39vw;
  }
  .coin { width: 22px; height: 22px; }
  .coin-hg, .coin-hd { top: 12px; }
  .coin-bg, .coin-bd { bottom: 12px; }
  .coin-hg, .coin-bg { left: 12px; }
  .coin-hd, .coin-bd { right: 12px; }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  .orbe, .arc, .titre-texte, .trait { animation: none; }
}
