:root {
  --couleur-fond: #0A1128;
  --couleur-surface: #1C2541;
  --couleur-texte: #F4F4F6;
  --couleur-accent: #D4AF37;
}

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

body {
  font-family: Arial, sans-serif;
  background: var(--couleur-fond);
  color: var(--couleur-texte);
}

/* ---------------- Font custom ---------------- */
@font-face {
  font-family: 'Lemon';
  src: url('lemon.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* Loader plein écran */
#loader {
  position: fixed;
  inset: 0;
  background: var(--couleur-fond);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.4s ease;
}

/* Texte avec animation des lettres */
.loader-text {
  position: absolute;
  top: 659px;
  font-size: 4rem;
  font-weight: bold;
  color: var(--couleur-accent);
  letter-spacing: 2px;
  font-family: 'Lemon', Arial, sans-serif !important;
}

.loader-text span {
  display: inline-block;
  animation: bounce 1s infinite ease-in-out;
}

/* Animation verticale */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Décalage pour chaque lettre */
.loader-text span:nth-child(1)  { animation-delay: 0s; }
.loader-text span:nth-child(2)  { animation-delay: 0.1s; }
.loader-text span:nth-child(3)  { animation-delay: 0.2s; }
.loader-text span:nth-child(4)  { animation-delay: 0.15s; }
.loader-text span:nth-child(5)  { animation-delay: 0.05s; }
.loader-text span:nth-child(6)  { animation-delay: 0.18s; }
.loader-text span:nth-child(7)  { animation-delay: 0.12s; }
.loader-text span:nth-child(8)  { animation-delay: 0.08s; }
.loader-text span:nth-child(9)  { animation-delay: 0.2s; }
.loader-text span:nth-child(10) { animation-delay: 0.1s; }
.loader-text span:nth-child(11) { animation-delay: 0.16s; }
.loader-text span:nth-child(12) { animation-delay: 0.05s; }

/* 3D Cube */
.scene {
  width: 120px;
  height: 120px;
  perspective: 600px;
}

.cube {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: rotateCube 2s linear infinite;
}

.face {
  position: absolute;
  width: 120px;
  height: 120px;
  background: var(--couleur-surface);
  border: 2px solid var(--couleur-accent);
}

.front  { transform: rotateY(0deg) translateZ(60px); }
.back   { transform: rotateY(180deg) translateZ(60px); }
.right  { transform: rotateY(90deg) translateZ(60px); }
.left   { transform: rotateY(-90deg) translateZ(60px); }
.top    { transform: rotateX(90deg) translateZ(60px); }
.bottom { transform: rotateX(-90deg) translateZ(60px); }

@keyframes rotateCube {
  from { transform: rotateX(0deg) rotateY(0deg); }
  to   { transform: rotateX(360deg) rotateY(360deg); }
}

/* Contenu du site masqué au départ */
#content {
  opacity: 0;
  transition: opacity 0.4s ease;
}