/* === Échec Royal — Bandeau identitaire persistant (toutes les pages) === */

/* Damier décoratif très discret en fond du body */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(45deg, rgba(244,215,123,0.025) 25%, transparent 25%, transparent 75%, rgba(244,215,123,0.025) 75%),
    linear-gradient(45deg, rgba(244,215,123,0.025) 25%, transparent 25%, transparent 75%, rgba(244,215,123,0.025) 75%);
  background-size: 80px 80px;
  background-position: 0 0, 40px 40px;
  pointer-events: none;
  z-index: 0;
}

#app, .card, .container { position: relative; z-index: 1; }

/* Bandeau compact */
.echecroyal-banner {
  position: relative;
  z-index: 1;
  margin: -24px -22px 16px;
  padding: 18px 20px 14px;
  text-align: center;
  background:
    radial-gradient(ellipse at 30% 0%, rgba(244,215,123,0.14) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 100%, rgba(154,123,28,0.12) 0%, transparent 50%),
    rgba(0,0,0,0.18);
  border-radius: 22px 22px 0 0;
  overflow: hidden;
}

/* Pièces décoratives flottantes */
.banner-pieces {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 6px;
}
.echecroyal-banner .piece-deco {
  font-size: 1.5rem;
  line-height: 1;
  color: #f4d77b;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
  animation: piece-banner-float 3s ease-in-out infinite;
  will-change: transform;
}
.echecroyal-banner .piece-deco:nth-child(2) { animation-delay: -1s; }
.echecroyal-banner .piece-deco:nth-child(3) { animation-delay: -2s; }
@keyframes piece-banner-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Titre-lien */
.banner-title {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  background: linear-gradient(90deg, #f4d77b, #c9a227, #9a7b1c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  letter-spacing: -0.3px;
  transition: opacity 0.2s;
}
.banner-title:hover { opacity: 0.8; }

@media (max-width: 480px) {
  .echecroyal-banner { padding: 14px 14px 10px; border-radius: 20px 20px 0 0; }
  .banner-title { font-size: 1.15rem; }
  .echecroyal-banner .piece-deco { font-size: 1.25rem; }
}
