/* ─── Grid background ───────────────────────────────── */
body {
  background-color: #050505;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ─── Ambient blobs (répartis sur toute la page) ────── */
body::before,
body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(120px);
}
/* Blob violet — haut gauche */
body::before {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124,58,237,0.12) 0%, transparent 70%);
  top: 10%;
  left: -10%;
  animation: blob-drift-a 20s ease-in-out infinite alternate;
}
/* Blob fuchsia — bas droite */
body::after {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(217,70,239,0.09) 0%, transparent 70%);
  bottom: 5%;
  right: -8%;
  animation: blob-drift-b 25s ease-in-out infinite alternate;
}

/* Blobs supplémentaires via un wrapper fixe */
#ambient-blobs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
#ambient-blobs span {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}
#ambient-blobs .blob-1 {
  width: 450px; height: 450px;
  background: radial-gradient(circle, rgba(124,58,237,0.10) 0%, transparent 70%);
  top: 35%; right: -5%;
  animation: blob-drift-a 18s ease-in-out infinite alternate;
}
#ambient-blobs .blob-2 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(217,70,239,0.08) 0%, transparent 70%);
  top: 60%; left: -5%;
  animation: blob-drift-b 22s ease-in-out infinite alternate;
}
#ambient-blobs .blob-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(139,92,246,0.10) 0%, transparent 70%);
  top: 80%; left: 40%;
  animation: blob-drift-a 28s ease-in-out infinite alternate;
}

@keyframes blob-drift-a {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(40px, -30px) scale(1.08); }
}
@keyframes blob-drift-b {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-35px, 25px) scale(1.06); }
}

/* Garantir que le contenu passe au-dessus des blobs */
nav, main, footer { position: relative; z-index: 1; }

/* ─── Scrollbar ──────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #050505; }
::-webkit-scrollbar-thumb { background: #27272a; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #3f3f46; }

/* ─── Selection ──────────────────────────────────────── */
::selection { background: rgba(124, 58, 237, 0.35); color: #fff; }

/* ─── Smooth scroll ──────────────────────────────────── */
html { scroll-behavior: smooth; scroll-padding-top: 4rem; }

/* ─── Animations ─────────────────────────────────────── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.anim-fade-up {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
  transform: translateY(24px);
}
.anim-fade-in {
  opacity: 0;
  transition: opacity 0.8s ease 0.15s;
}
.anim-fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.anim-fade-in.visible {
  opacity: 1;
}

/* ─── Book mockup ────────────────────────────────────── */
.book-wrapper {
  position: relative;
  width: 220px;
  perspective: 800px;
}
.book-cover-img-link {
  display: block;
  position: relative;
  transform: rotateY(-8deg);
  transform-style: preserve-3d;
  transition: transform 0.4s ease;
}
.book-wrapper:hover .book-cover-img-link {
  transform: rotateY(-2deg);
}
.book-cover-img {
  width: 220px;
  height: auto;
  border-radius: 4px 10px 10px 4px;
  box-shadow:
    0 25px 60px rgba(0,0,0,0.7),
    0 0 40px rgba(251,191,36,0.1),
    -6px 0 12px rgba(0,0,0,0.5);
  display: block;
}
.book-shadow {
  position: absolute;
  bottom: -14px;
  left: 8%;
  right: 3%;
  height: 22px;
  background: rgba(0,0,0,0.55);
  filter: blur(14px);
  border-radius: 50%;
}

/* ─── Client logos ───────────────────────────────────── */
.client-logo-img {
  height: 64px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  /* grayscale + screen blend : fonds blancs deviennent transparents sur fond sombre */
  filter: grayscale(100%) brightness(1.4);
  mix-blend-mode: screen;
  opacity: 0.45;
  transition: opacity 0.25s ease, filter 0.25s ease;
}
.client-logo-img:hover {
  opacity: 0.85;
  filter: grayscale(80%) brightness(1.6);
}

/* ─── Nav active state ───────────────────────────────── */
nav a[href^="#"]:hover,
nav a[href^="http"]:hover { color: #fff; }

/* ─── Arbitrary Tailwind values (not compiled by standalone CLI) ─── */
.bg-\[\#050505\] { background-color: #050505; }
.bg-\[\#0E0E11\] { background-color: #0E0E11; }
.h-\[500px\]     { height: 500px; }
.w-\[500px\]     { width: 500px; }
.-inset-\[3px\]  { inset: -3px; }
.leading-\[1\.1\] { line-height: 1.1; }

/* Shadows */
.shadow-\[0_0_20px_rgba\(124\,58\,237\,0\.4\)\]   { box-shadow: 0 0 20px rgba(124,58,237,0.4); }
.shadow-\[0_0_20px_rgba\(124\,58\,237\,0\.5\)\]   { box-shadow: 0 0 20px rgba(124,58,237,0.5); }
.shadow-\[0_0_30px_rgba\(124\,58\,237\,0\.4\)\]   { box-shadow: 0 0 30px rgba(124,58,237,0.4); }
.shadow-\[0_0_30px_rgba\(16\,185\,129\,0\.1\)\]   { box-shadow: 0 0 30px rgba(16,185,129,0.1); }
.shadow-\[0_0_30px_rgba\(217\,70\,239\,0\.4\)\]   { box-shadow: 0 0 30px rgba(217,70,239,0.4); }
.shadow-\[0_0_30px_rgba\(251\,191\,36\,0\.3\)\]   { box-shadow: 0 0 30px rgba(251,191,36,0.3); }
.shadow-\[0_0_30px_rgba\(255\,255\,255\,0\.05\)\] { box-shadow: 0 0 30px rgba(255,255,255,0.05); }
.shadow-\[0_0_30px_rgba\(59\,130\,246\,0\.1\)\]   { box-shadow: 0 0 30px rgba(59,130,246,0.1); }
.shadow-\[0_0_40px_rgba\(124\,58\,237\,0\.08\)\]  { box-shadow: 0 0 40px rgba(124,58,237,0.08); }
.shadow-\[0_0_40px_rgba\(124\,58\,237\,0\.12\)\]  { box-shadow: 0 0 40px rgba(124,58,237,0.12); }
.shadow-\[0_0_40px_rgba\(217\,70\,239\,0\.08\)\]  { box-shadow: 0 0 40px rgba(217,70,239,0.08); }
.shadow-\[0_0_40px_rgba\(251\,191\,36\,0\.08\)\]  { box-shadow: 0 0 40px rgba(251,191,36,0.08); }
.shadow-\[0_0_60px_rgba\(124\,58\,237\,0\.25\)\]  { box-shadow: 0 0 60px rgba(124,58,237,0.25); }

/* Hover shadows — need JS or :hover equivalents */
.hover\:shadow-\[0_0_20px_rgba\(124\,58\,237\,0\.5\)\]:hover  { box-shadow: 0 0 20px rgba(124,58,237,0.5); }
.hover\:shadow-\[0_0_30px_rgba\(124\,58\,237\,0\.4\)\]:hover  { box-shadow: 0 0 30px rgba(124,58,237,0.4); }
.hover\:shadow-\[0_0_30px_rgba\(217\,70\,239\,0\.4\)\]:hover  { box-shadow: 0 0 30px rgba(217,70,239,0.4); }
.hover\:shadow-\[0_0_30px_rgba\(251\,191\,36\,0\.3\)\]:hover  { box-shadow: 0 0 30px rgba(251,191,36,0.3); }
.hover\:shadow-\[0_0_60px_rgba\(124\,58\,237\,0\.25\)\]:hover { box-shadow: 0 0 60px rgba(124,58,237,0.25); }
