/* glass.css — Bibliothèque de Verres et Matériaux */

.ae-glass {
  background: var(--glass);
  border: 1px solid var(--glassborder);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.ae-glass:hover {
  background: var(--glass-hover);
  border-color: var(--glassborder-glow);
}

.ae-glass-frost {
  backdrop-filter: blur(30px) saturate(1.6) brightness(1.05);
  -webkit-backdrop-filter: blur(30px) saturate(1.6) brightness(1.05);
}

.ae-glass-givree {
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  position: relative;
  overflow: hidden;
}

.ae-glass-givree::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  mix-blend-mode: overlay;
  pointer-events: none;
  border-radius: inherit;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

.ae-glass-brume {
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  position: relative;
  overflow: hidden;
}

.ae-glass-brume::before {
  content: "";
  position: absolute;
  inset: -50%;
  pointer-events: none;
  background: radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.12), transparent 40%),
              radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.08), transparent 45%);
  animation: ae-fog 14s ease-in-out infinite alternate;
}

@keyframes ae-fog {
  to { transform: translate(6%, -5%); }
}

.ae-glass-fonte {
  backdrop-filter: blur(32px) saturate(1.6);
  -webkit-backdrop-filter: blur(32px) saturate(1.6);
  transition: backdrop-filter 0.8s, -webkit-backdrop-filter 0.8s, border-color 0.4s;
}

.ae-glass-fonte:hover,
.ae-glass-fonte.melting {
  backdrop-filter: blur(8px) saturate(1.1);
  -webkit-backdrop-filter: blur(8px) saturate(1.1);
  border-color: var(--gold-border);
}

.ae-rainbow {
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--ray-1), var(--ray-2), var(--ray-3), var(--ray-4), var(--ray-5), var(--ray-6));
  opacity: 0.6;
}

@media (prefers-reduced-motion: reduce) {
  .ae-glass-brume::before {
    animation: none;
  }
}
