/* ============================================
   SPARRING PARTNER — Styles dédiés
   Page dark full-screen, design Insuffle
   v1.0.0
   ============================================ */


/* ── PAGE-LEVEL PROTECTION — beat parent theme .bg-white rules ── */
.sp-page {
    background-color: #02040a !important;
    color: #F8FAFC !important;
}
.sp-page h1,
.sp-page h2,
.sp-page h3,
.sp-page h4,
.sp-page p,
.sp-page span,
.sp-page blockquote,
.sp-page a,
.sp-page li,
.sp-page td,
.sp-page th,
.sp-page label,
.sp-page div,
.sp-page button {
    color: inherit !important;
}
/* Restore specific Tailwind colors inside sp-page */
.sp-page .text-slate-50 { color: #F8FAFC !important; }
.sp-page .text-slate-400 { color: #94a3b8 !important; }
.sp-page .text-gray-300 { color: #d1d5db !important; }
.sp-page .text-gray-400 { color: #9ca3af !important; }
.sp-page .text-gray-500 { color: #6b7280 !important; }
.sp-page .text-brand-accent { color: #ffde59 !important; }
.sp-page .text-brand-dark { color: #02040a !important; }
.sp-page .text-red-400 { color: #f87171 !important; }
.sp-page .text-green-400 { color: #4ade80 !important; }
.sp-page .text-blue-400 { color: #60a5fa !important; }
.sp-page .text-white { color: #ffffff !important; }

/* Gradient text protection */
.sp-page .bg-clip-text {
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
}

/* Table text colors */
.sp-page table th { color: inherit !important; }
.sp-page table td { color: inherit !important; }
.sp-page table .text-brand-accent { color: #ffde59 !important; }


/* ── SCROLL REVEAL ── */
.sp-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.sp-reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.sp-anim-fallback .sp-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}


/* ── CARDS ── */
.sp-card {
    background: #0c1629;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
}
.sp-card:hover {
    border-color: rgba(255,222,89,0.25);
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.15);
}


/* ── GLOW BUTTON ── */
.sp-btn-glow {
    position: relative;
    overflow: hidden;
}
.sp-btn-glow::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(45deg, #ffde59, #fbbf24, #ffde59, #fbbf24);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}
.sp-btn-glow:hover::before {
    opacity: 1;
}


/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .sp-page h1 {
        font-size: 3rem !important;
    }
    .sp-page table {
        font-size: 0.875rem;
    }
    .sp-page table td,
    .sp-page table th {
        padding: 0.75rem 0.5rem;
    }
}


/* ── PRINT ── */
@media print {
    .sp-reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    section {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}
