/* ============================================================
   Chat GPT Prompt — Thème Premium 2026 (overlay)
   Chargé après le CSS Tailwind compilé : n'altère aucun layout,
   uniquement typographie, profondeur, lumière et micro-interactions.
   ============================================================ */

/* ---------- Typographie ---------- */
body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, .font-bold {
  font-family: 'Space Grotesk', 'Inter', ui-sans-serif, system-ui, sans-serif !important;
}
h1 { letter-spacing: -0.03em !important; }
h2 { letter-spacing: -0.02em !important; }

/* ---------- Sélection & scrollbar ---------- */
::selection { background: rgba(99, 102, 241, .25); }
* { scrollbar-width: thin; scrollbar-color: rgba(99,102,241,.4) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #6366f1, #8b5cf6);
  border-radius: 8px; border: 2px solid transparent; background-clip: padding-box;
}

/* ---------- Héros : aurora + grille ---------- */
html:not(.dark) [class*="from-primary-50"] {
  background-image:
    radial-gradient(60rem 32rem at 15% -10%, rgba(99,102,241,.14), transparent 60%),
    radial-gradient(50rem 28rem at 85% 0%, rgba(249,115,22,.10), transparent 55%),
    radial-gradient(40rem 24rem at 50% 110%, rgba(139,92,246,.08), transparent 60%),
    url('/grid.svg'),
    linear-gradient(180deg, #eef2ff 0%, #ffffff 100%) !important;
  background-size: auto, auto, auto, 32px 32px, auto;
}
html.dark [class*="from-primary-50"] {
  background-image:
    radial-gradient(60rem 32rem at 15% -10%, rgba(99,102,241,.22), transparent 60%),
    radial-gradient(50rem 28rem at 85% 0%, rgba(249,115,22,.12), transparent 55%),
    url('/grid.svg'),
    linear-gradient(180deg, #0b1020 0%, #05070f 100%) !important;
  background-size: auto, auto, 32px 32px, auto;
}

/* ---------- Boutons ---------- */
.btn-primary {
  background-image: linear-gradient(120deg, #6366f1, #8b5cf6 55%, #a855f7) !important;
  background-size: 180% 180% !important;
  box-shadow: 0 10px 32px -10px rgba(99,102,241,.55), inset 0 1px 0 rgba(255,255,255,.18) !important;
  transition: transform .2s ease, box-shadow .25s ease, background-position .4s ease !important;
  will-change: transform;
}
.btn-primary:hover {
  transform: translateY(-2px);
  background-position: 90% 50% !important;
  box-shadow: 0 18px 44px -12px rgba(99,102,241,.65), inset 0 1px 0 rgba(255,255,255,.22) !important;
}
.btn-primary:active { transform: translateY(0); }
.btn-outline {
  transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease, background .2s ease !important;
  backdrop-filter: blur(4px);
}
.btn-outline:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -14px rgba(99,102,241,.35);
}

/* ---------- Gradient de marque animé ---------- */
.gradient-bg {
  background-image: linear-gradient(120deg, #6366f1, #8b5cf6 45%, #d946ef 80%, #f97316) !important;
  background-size: 240% 240% !important;
  animation: cgp-pan 9s ease-in-out infinite;
}
@keyframes cgp-pan {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ---------- Cartes : profondeur au survol ---------- */
a[class*="rounded-2xl"], div[class*="rounded-2xl"][class*="border"] {
  transition: transform .25s ease, box-shadow .3s ease, border-color .25s ease !important;
}
a[class*="rounded-2xl"]:hover, div[class*="rounded-2xl"][class*="border"]:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px -18px rgba(15, 23, 42, .18), 0 0 0 1px rgba(99,102,241,.22);
}
html.dark a[class*="rounded-2xl"]:hover, html.dark div[class*="rounded-2xl"][class*="border"]:hover {
  box-shadow: 0 22px 48px -18px rgba(0,0,0,.6), 0 0 0 1px rgba(139,92,246,.35);
}

/* ---------- Header : verre dépoli ---------- */
header.fixed {
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
}

/* ---------- Blocs de prompts (pre) ---------- */
main pre {
  border-left: 3px solid #8b5cf6 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  border-radius: 0 .75rem .75rem 0 !important;
}

/* ---------- Badges / pills ---------- */
[class*="rounded-full"][class*="bg-primary-100"] {
  box-shadow: inset 0 0 0 1px rgba(99,102,241,.25);
}

/* ---------- Apparition douce du héros ---------- */
@keyframes cgp-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
main h1 { animation: cgp-rise .6s cubic-bezier(.2,.7,.2,1) both; }
main h1 + p { animation: cgp-rise .6s .12s cubic-bezier(.2,.7,.2,1) both; }

/* ---------- Liens du contenu ---------- */
main p a { text-underline-offset: 3px; }
main p a:hover { text-decoration: underline; }

/* ---------- Accessibilité : réduire les animations ---------- */
@media (prefers-reduced-motion: reduce) {
  .gradient-bg { animation: none; }
  main h1, main h1 + p { animation: none; }
  .btn-primary, .btn-outline, a[class*="rounded-2xl"], div[class*="rounded-2xl"][class*="border"] { transition: none !important; }
}
