/* adrienblt.com — style commun « liquid glass » */
:root {
  --bg: #04050a;
  --text: #f5f5f7;
  --muted: rgba(235, 235, 245, 0.62);
  --faint: rgba(235, 235, 245, 0.38);
  --glass: rgba(255, 255, 255, 0.055);
  --glass-strong: rgba(255, 255, 255, 0.09);
  --edge: rgba(255, 255, 255, 0.14);
  --edge-hi: rgba(255, 255, 255, 0.42);
  --blue: #3d7bff;
  --violet: #8b5cff;
  --teal: #2fd6c3;
  --pink: #ff4f8b;
  --amber: #ffb547;
  --radius: 28px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, sans-serif;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
::selection { background: rgba(61, 123, 255, 0.45); }

/* ---------- Fond : nappes de couleur floues ---------- */
.aurora {
  position: fixed;
  inset: -20vmax;
  z-index: -2;
  pointer-events: none;
  filter: blur(80px) saturate(140%);
  transform: translate3d(0, var(--aurora-y, 0px), 0);
}
.aurora span {
  position: absolute;
  width: 55vmax;
  height: 55vmax;
  border-radius: 50%;
  opacity: 0.55;
  mix-blend-mode: screen;
  animation: drift 26s var(--ease) infinite alternate;
}
.aurora span:nth-child(1) { background: radial-gradient(circle, var(--blue), transparent 62%); top: 5%; left: 0%; }
.aurora span:nth-child(2) { background: radial-gradient(circle, var(--violet), transparent 62%); top: 25%; right: -5%; animation-duration: 32s; animation-delay: -8s; }
.aurora span:nth-child(3) { background: radial-gradient(circle, var(--teal), transparent 62%); bottom: -10%; left: 20%; opacity: 0.35; animation-duration: 38s; animation-delay: -16s; }
.aurora span:nth-child(4) { background: radial-gradient(circle, var(--pink), transparent 62%); bottom: 10%; right: 25%; opacity: 0.28; animation-duration: 44s; animation-delay: -4s; }
@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(6vmax, -4vmax, 0) scale(1.12); }
  100% { transform: translate3d(-5vmax, 5vmax, 0) scale(0.94); }
}
/* grain léger, évite les bandes dans les dégradés */
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Verre liquide ---------- */
.glass {
  --mx: 50%;
  --my: 0%;
  position: relative;
  background:
    radial-gradient(120% 80% at var(--mx) var(--my), rgba(255, 255, 255, 0.13), transparent 55%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.025) 45%, rgba(255, 255, 255, 0.05));
  -webkit-backdrop-filter: blur(26px) saturate(185%);
  backdrop-filter: blur(26px) saturate(185%);
  border-radius: var(--radius);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.07),
    0 24px 70px -20px rgba(0, 0, 0, 0.65);
  isolation: isolate;
}
/* liseré lumineux qui suit le pointeur */
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(60% 60% at var(--mx) var(--my), var(--edge-hi), var(--edge) 45%, rgba(255, 255, 255, 0.05));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px; font-weight: 500;
  color: var(--text);
}

.gradient-text {
  background: linear-gradient(100deg, #fff 10%, #b9ccff 40%, #c8b5ff 65%, #9ff0e4 95%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ---------- Apparitions au défilement ---------- */
.reveal {
  opacity: 0;
  transform: translate3d(0, 40px, 0) scale(0.98);
  filter: blur(8px);
  transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aurora span { animation: none; }
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
}
