/* === Roi du Clavier — Bandeau identitaire persistant (toutes les pages) === */

/* Motif grille/circuit en fond du body */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(14, 165, 233, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 233, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* Bandeau compact */
.clavier-banner {
  position: relative;
  z-index: 1;
  margin: -28px -24px 16px;
  padding: 18px 20px 14px;
  text-align: center;
  background:
    radial-gradient(ellipse at 30% 0%, rgba(103, 232, 249, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 100%, rgba(14, 165, 233, 0.08) 0%, transparent 50%),
    rgba(0, 0, 0, 0.15);
  border-radius: 22px 22px 0 0;
  overflow: hidden;
}

/* Mini-motifs décoratifs dans les coins */
.clavier-banner::before {
  content: '';
  position: absolute;
  top: -15px; right: -20px;
  width: 120px; height: 120px;
  background-image:
    linear-gradient(rgba(103, 232, 249, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103, 232, 249, 0.08) 1px, transparent 1px);
  background-size: 18px 18px;
  border-radius: 14px;
  transform: rotate(15deg);
  opacity: 0.7;
  pointer-events: none;
}
.clavier-banner::after {
  content: '';
  position: absolute;
  bottom: -10px; left: -15px;
  width: 100px; height: 100px;
  background-image:
    linear-gradient(rgba(14, 165, 233, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 233, 0.08) 1px, transparent 1px);
  background-size: 14px 14px;
  border-radius: 12px;
  transform: rotate(-10deg);
  opacity: 0.6;
  pointer-events: none;
}

/* Touches décoratives flottantes */
.banner-touches {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}
.clavier-banner .touche-deco {
  width: 30px; height: 30px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  color: #e0f2fe;
  background: linear-gradient(145deg, #0f172a, #1e293b);
  border: 1px solid rgba(103, 232, 249, 0.3);
  box-shadow:
    0 3px 6px rgba(14, 165, 233, 0.3),
    inset 0 -2px 0 rgba(8, 145, 178, 0.5);
  animation: touche-float 3s ease-in-out infinite;
  will-change: transform;
  text-shadow: 0 0 6px rgba(103, 232, 249, 0.5);
}
.clavier-banner .touche-deco:nth-child(2) { animation-delay: -1s; }
.clavier-banner .touche-deco:nth-child(3) { animation-delay: -2s; }
@keyframes touche-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.3rem;
  font-weight: 800;
  background: linear-gradient(90deg, #7dd3fc, #38bdf8, #0ea5e9);
  -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;
}

/* Responsive */
@media (max-width: 480px) {
  .clavier-banner { padding: 14px 14px 10px; border-radius: 20px 20px 0 0; }
  .banner-title { font-size: 1.1rem; }
  .clavier-banner .touche-deco { width: 24px; height: 24px; font-size: 0.72rem; }
}
