/* =====================================================
   redactionavecia.fr - Custom CSS
   Animations modernes, gradient mesh, custom cursor, 3D tilt
   ===================================================== */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --accent: #ec4899;
    --accent-2: #8b5cf6;
}

* { -webkit-font-smoothing: antialiased; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #fafaff;
    overflow-x: hidden;
}

/* =====================================================
   CUSTOM CURSOR PLUME (desktop only)
   ===================================================== */
@media (hover: hover) and (pointer: fine) {
    /* Halo derriere la plume */
    .cursor-halo {
        position: fixed;
        top: 0; left: 0;
        width: 36px; height: 36px;
        background: radial-gradient(circle, rgba(99,102,241,0.45), rgba(236,72,153,0.25) 45%, transparent 70%);
        border-radius: 50%;
        pointer-events: none;
        z-index: 9998;
        filter: blur(4px);
        transform: translate(-50%, -50%);
        transition: width 0.25s cubic-bezier(0.22, 1, 0.36, 1),
                    height 0.25s cubic-bezier(0.22, 1, 0.36, 1),
                    background 0.3s ease, filter 0.25s;
        will-change: transform, width, height;
    }
    .cursor-halo.hover-interactive {
        width: 70px; height: 70px;
        background: radial-gradient(circle, rgba(99,102,241,0.55), rgba(236,72,153,0.35) 50%, transparent 75%);
        filter: blur(6px);
    }
    .cursor-halo.hover-cta {
        width: 100px; height: 100px;
        background: radial-gradient(circle, rgba(236,72,153,0.65), rgba(245,158,11,0.4) 50%, transparent 75%);
        filter: blur(8px);
    }

    /* Plume SVG (tournée vers le bas-droite par défaut) */
    .cursor-pen {
        position: fixed;
        top: 0; left: 0;
        width: 28px; height: 28px;
        pointer-events: none;
        z-index: 9999;
        transform: translate(-100px, -100px);
        transform-origin: 10% 90%;
        transition: filter 0.3s ease;
        filter: drop-shadow(0 2px 6px rgba(99,102,241,0.45));
        will-change: transform;
    }
    .cursor-pen.hover-interactive {
        filter: drop-shadow(0 3px 10px rgba(236,72,153,0.6));
    }
    .cursor-pen.hover-cta {
        filter: drop-shadow(0 3px 14px rgba(245,158,11,0.8));
    }

    /* Gouttes d'encre qui fadent derriere */
    .ink-drop {
        position: fixed;
        pointer-events: none;
        z-index: 9997;
        width: 8px; height: 8px;
        border-radius: 50%;
        transform: translate(-50%, -50%);
        animation: ink-fade 900ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
        will-change: transform, opacity;
    }
    @keyframes ink-fade {
        0%   { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
        100% { opacity: 0;   transform: translate(-50%, 50%) scale(0.3); }
    }

    /* Etincelles autour des CTA */
    .ink-spark {
        position: fixed;
        pointer-events: none;
        z-index: 9997;
        width: 6px; height: 6px;
        border-radius: 50%;
        background: currentColor;
        color: #f59e0b;
        transform: translate(-50%, -50%);
        animation: spark-pop 700ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
        will-change: transform, opacity;
    }
    @keyframes spark-pop {
        0%   { opacity: 1; transform: translate(-50%, -50%) scale(0.2); }
        60%  { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
        100% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    }

    /* Le curseur systeme reste visible (accessibilite) */
}
@media (hover: none), (pointer: coarse) {
    .cursor-halo, .cursor-pen, .ink-drop, .ink-spark { display: none; }
}

/* =====================================================
   Gradient mesh background (hero)
   ===================================================== */
.gradient-mesh {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}
.gradient-mesh::before,
.gradient-mesh::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: mesh-float 20s ease-in-out infinite;
}
.gradient-mesh::before {
    background: radial-gradient(circle, #8b5cf6, transparent);
    top: -200px;
    left: -100px;
}
.gradient-mesh::after {
    background: radial-gradient(circle, #ec4899, transparent);
    top: 50%;
    right: -100px;
    animation-delay: -10s;
}
@keyframes mesh-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(100px, -50px) scale(1.1); }
    66% { transform: translate(-50px, 100px) scale(0.9); }
}

/* =====================================================
   Gradient animated text
   ===================================================== */
.gradient-text {
    background: linear-gradient(120deg, #6366f1 0%, #8b5cf6 40%, #ec4899 70%, #f59e0b 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 6s ease infinite;
}
@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* =====================================================
   Floating shapes
   ===================================================== */
.float-shape {
    position: absolute;
    opacity: 0.4;
    animation: float 8s ease-in-out infinite;
}
.float-shape.delay-1 { animation-delay: -2s; }
.float-shape.delay-2 { animation-delay: -4s; }
.float-shape.delay-3 { animation-delay: -6s; }
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(10deg); }
}

/* =====================================================
   Reveal on scroll
   ===================================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* =====================================================
   H1 Text reveal letter-by-letter
   ===================================================== */
.text-reveal {
    display: inline-block;
}
.text-reveal .word {
    display: inline-block;
    opacity: 0;
    filter: blur(12px);
    transform: translateY(20px);
    animation: word-reveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes word-reveal {
    to {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
}

/* =====================================================
   Magnetic button + shimmer
   ===================================================== */
.btn-magnetic {
    position: relative;
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}
.btn-magnetic::after {
    content: '';
    position: absolute;
    inset: -4px;
    background: linear-gradient(135deg, #6366f1, #ec4899);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    filter: blur(14px);
    transition: opacity 0.3s;
}
.btn-magnetic:hover::after { opacity: 0.8; }

.btn-shimmer {
    position: relative;
    overflow: hidden;
}
.btn-shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.7s;
}
.btn-shimmer:hover::before { left: 100%; }

/* =====================================================
   Glass card
   ===================================================== */
.glass {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.08);
}

/* =====================================================
   Benefit cards with gradient border on hover + 3D tilt
   ===================================================== */
.benefit-card {
    position: relative;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s;
    transform-style: preserve-3d;
    will-change: transform;
}
.benefit-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, #6366f1, #ec4899, #f59e0b);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s;
}
.benefit-card:hover {
    box-shadow: 0 30px 60px rgba(99, 102, 241, 0.2);
}
.benefit-card:hover::before { opacity: 1; }

.icon-wrap {
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.benefit-card:hover .icon-wrap {
    transform: rotate(-8deg) scale(1.1);
}

/* =====================================================
   Sparkle animation
   ===================================================== */
.sparkle {
    animation: sparkle 2s ease-in-out infinite;
    transform-origin: center;
}
.sparkle-2 { animation-delay: 0.5s; }
.sparkle-3 { animation-delay: 1s; }
@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1); }
}

/* =====================================================
   Marquee
   ===================================================== */
.marquee {
    display: flex;
    gap: 2rem;
    animation: marquee 30s linear infinite;
    width: max-content;
}
.marquee:hover { animation-play-state: paused; }
@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* =====================================================
   Typewriter cursor
   ===================================================== */
.typewriter-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background: currentColor;
    vertical-align: middle;
    animation: blink 1s step-end infinite;
    margin-left: 4px;
    border-radius: 2px;
}
@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* =====================================================
   Grid pattern background
   ===================================================== */
.grid-pattern {
    background-image:
        linear-gradient(rgba(99,102,241,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99,102,241,0.04) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* =====================================================
   Pulse ring
   ===================================================== */
.pulse-ring::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: inherit;
    border: 2px solid currentColor;
    opacity: 0;
    animation: pulse-ring 2.5s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}
@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* =====================================================
   Scroll progress bar
   ===================================================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #ec4899, #f59e0b);
    transform-origin: left;
    z-index: 100;
    transition: transform 0.1s;
}

/* =====================================================
   Fade-in for hero
   ===================================================== */
.fade-in { animation: fadeInUp 1s cubic-bezier(0.22, 1, 0.36, 1) both; }
.fade-in-delay-1 { animation-delay: 0.15s; }
.fade-in-delay-2 { animation-delay: 0.3s; }
.fade-in-delay-3 { animation-delay: 0.45s; }
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =====================================================
   Floating sticky CTA (appears after scroll)
   ===================================================== */
.sticky-cta {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 60;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.sticky-cta.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.sticky-cta .btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #6366f1, #ec4899);
    color: white;
    padding: 14px 20px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.4);
    transition: transform 0.3s;
}
.sticky-cta .btn:hover { transform: scale(1.05); }
.sticky-cta .pulse-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    position: relative;
}
.sticky-cta .pulse-dot::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: white;
    opacity: 0.4;
    animation: pulse-ring 2s ease-out infinite;
}

/* =====================================================
   Hover reveal card content
   ===================================================== */
.card-reveal {
    position: relative;
    overflow: hidden;
}
.card-reveal-extra {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
    margin-top: 0;
}
.card-reveal:hover .card-reveal-extra {
    max-height: 200px;
    opacity: 1;
    margin-top: 1rem;
}

/* Focus for accessibility */
a:focus-visible, button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-radius: 4px;
}

/* =====================================================
   MENU MOBILE (hamburger + overlay fullscreen)
   ===================================================== */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 10px;
    border-radius: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}
.hamburger:hover { background: rgba(99,102,241,0.1); }
.hamburger span {
    display: block;
    width: 20px;
    height: 2.5px;
    background: #0f172a;
    border-radius: 3px;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-menu-close {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 50;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transform: rotate(-180deg) scale(0.3);
    transition: opacity 0.3s, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s;
    padding: 0;
}
.mobile-menu.visible ~ .mobile-menu-close,
.mobile-menu-close.visible {
    opacity: 1;
    pointer-events: auto;
    transform: rotate(0) scale(1);
    transition-delay: 0.15s;
}
.mobile-menu-close:hover {
    background: rgba(255,255,255,0.22);
    transform: rotate(90deg) scale(1.08);
    transition-delay: 0s;
}
.mobile-menu-close:active {
    transform: rotate(90deg) scale(0.95);
}
.mobile-menu-close svg {
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.mobile-menu-close:hover svg {
    transform: scale(1.15);
}

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 45;
    background: linear-gradient(135deg, rgba(15,23,42,0.97), rgba(49,46,129,0.97));
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    padding: 90px 24px 40px;
    overflow-y: auto;
}
.mobile-menu.visible {
    opacity: 1;
    pointer-events: auto;
}
.mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 2rem;
}
.mobile-menu nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    color: white;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    transition: all 0.2s;
    transform: translateX(-12px);
    opacity: 0;
    animation: mobile-menu-item 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.mobile-menu.visible nav a:nth-child(1) { animation-delay: 0.1s; }
.mobile-menu.visible nav a:nth-child(2) { animation-delay: 0.15s; }
.mobile-menu.visible nav a:nth-child(3) { animation-delay: 0.2s; }
.mobile-menu.visible nav a:nth-child(4) { animation-delay: 0.25s; }
.mobile-menu.visible nav a:nth-child(5) { animation-delay: 0.3s; }
.mobile-menu nav a:hover,
.mobile-menu nav a:active {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.2);
}
.mobile-menu nav a::after {
    content: '→';
    color: rgba(255,255,255,0.4);
    font-size: 18px;
}
@keyframes mobile-menu-item {
    to { transform: translateX(0); opacity: 1; }
}
.mobile-menu-cta {
    display: block;
    text-align: center;
    padding: 18px 24px;
    background: linear-gradient(135deg, #6366f1, #ec4899);
    color: white !important;
    font-size: 18px;
    font-weight: 800;
    border-radius: 16px;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(236,72,153,0.35);
    margin-top: auto;
}

/* Empêche le scroll body quand menu ouvert */
body.menu-open { overflow: hidden; }

/* Cache les elements decoratifs sur mobile quand menu ouvert */
body.menu-open .mascot,
body.menu-open .sticky-cta,
body.menu-open .cursor-pen,
body.menu-open .cursor-halo { display: none !important; }

/* Mobile CTA dans la nav (visible seulement sous md) */
.nav-mobile-cta {
    display: none;
    background: linear-gradient(135deg, #6366f1, #ec4899);
    color: white;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(236,72,153,0.3);
}
@media (max-width: 767px) {
    .nav-mobile-cta { display: inline-block; }
}

/* =====================================================
   MASCOTTE (sorcier flottant bas-gauche)
   ===================================================== */
.mascot {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 55;
    cursor: pointer;
    display: block;
    animation: mascot-bounce 3.5s ease-in-out infinite;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), filter 0.3s;
    filter: drop-shadow(0 10px 20px rgba(99, 102, 241, 0.35));
    text-decoration: none;
    will-change: transform;
}
.mascot:hover {
    transform: scale(1.12) rotate(-3deg);
    filter: drop-shadow(0 14px 28px rgba(236, 72, 153, 0.5));
}
@keyframes mascot-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
.mascot .hat {
    animation: hat-wiggle 4s ease-in-out infinite;
    transform-origin: 50% 100%;
    transform-box: fill-box;
}
@keyframes hat-wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-6deg); }
    75% { transform: rotate(6deg); }
}
.mascot .wand-tip {
    animation: wand-glow 1.8s ease-in-out infinite;
    transform-origin: center;
    transform-box: fill-box;
}
@keyframes wand-glow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.25); }
}
.mascot-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: linear-gradient(135deg, #6366f1, #ec4899);
    color: white;
    padding: 8px 14px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    margin-bottom: 12px;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}
.mascot-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 7px solid transparent;
    border-top-color: #ec4899;
}
.mascot:hover .mascot-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Sparkle animation reuse pour mascotte */
.mascot .sparkle-m {
    animation: sparkle-m 2.2s ease-in-out infinite;
    transform-origin: center;
    transform-box: fill-box;
}
.mascot .sparkle-m-2 { animation-delay: 0.6s; }
.mascot .sparkle-m-3 { animation-delay: 1.2s; }
@keyframes sparkle-m {
    0%, 100% { opacity: 0; transform: scale(0.3); }
    50% { opacity: 1; transform: scale(1); }
}

/* =====================================================
   QUIZ INTERACTIF DANS ARTICLES
   ===================================================== */
[data-quiz] {
    font-family: 'Inter', -apple-system, sans-serif;
    background: linear-gradient(135deg, rgba(99,102,241,0.05), rgba(236,72,153,0.05));
    border: 2px solid rgba(99,102,241,0.2);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    margin: 2.5rem 0;
}
[data-quiz] h3 {
    font-family: 'Inter', sans-serif !important;
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    margin: 0 0 1.5rem 0 !important;
    color: #0f172a !important;
    text-align: center;
}
[data-quiz-step] {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: border-left 0.3s;
    border-left: 4px solid transparent;
}
[data-quiz-step] p {
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    margin: 0 0 0.75rem 0 !important;
    color: #0f172a !important;
}
[data-quiz-step] label {
    display: block;
    padding: 10px 14px;
    margin: 6px 0;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #334155;
}
[data-quiz-step] label:hover {
    border-color: #a5b4fc;
    background: #eef2ff;
}
[data-quiz-step] input[type="radio"] {
    margin-right: 10px;
    accent-color: #6366f1;
}
[data-quiz-step] label:has(input:checked) {
    border-color: #6366f1;
    background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(236,72,153,0.08));
    color: #3730a3;
    font-weight: 600;
}
[data-quiz-submit] {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #6366f1, #ec4899);
    color: white;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    margin-top: 1rem;
    transition: transform 0.2s, box-shadow 0.3s;
}
[data-quiz-submit]:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99,102,241,0.3);
}
[data-quiz-missing] {
    display: none;
    background: #fef2f2;
    color: #991b1b;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 1rem;
    border-left: 4px solid #ef4444;
}
@keyframes quiz-pop {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    .cursor-follower { display: none; }
}
