/* ===== VARIABLES ===== */
:root {
    --bg-primary: #080810;
    --bg-secondary: #0e0e1a;
    --bg-card: #12121e;
    --text-primary: #ffffff;
    --text-secondary: #a0a0c0;
    --accent-bright: #e50914;
    --accent-gold: #ffd700;

    /* Palette mauve métallique */
    --purple-light: #d4b3ff;
    --purple: #a855f7;
    --purple-mid: #9333ea;
    --purple-dark: #7c3aed;
    --purple-deep: #5b21b6;
    --purple-metal-1: #e2c4ff;
    --purple-metal-2: #b07fff;
    --purple-metal-3: #7c3aed;
    --purple-metal-4: #4c1d95;
    --purple-shimmer: #f0d6ff;

    /* Animations timing */
    --ease-elastic: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ===== RESET & GLOBAL ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Work Sans', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 5px; height: 5px; background: transparent; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--purple), var(--purple-dark));
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--purple-light), var(--purple));
}
* { scrollbar-width: thin; scrollbar-color: var(--purple) transparent; }

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    gap: 20px;
    transition: all 0.4s ease;
    background: transparent !important;
    backdrop-filter: none !important;
}
.navbar.scrolled {
    background: rgba(8, 8, 16, 0.4) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(168, 85, 247, 0.06);
}
.logo {
    font-family: 'Bebas Neue', cursive;
    font-size: 38px;
    letter-spacing: 3px;
    color: var(--accent-bright);
    font-weight: 700;
    text-shadow: 2px 2px 10px rgba(229, 9, 20, 0.6);
    cursor: pointer;
    text-decoration: none;
}
.nav-links { display: flex; gap: 35px; list-style: none; }
.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px; left: 0;
    width: 0; height: 2px;
    background: var(--accent-bright);
    transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--accent-bright); }
.nav-right { display: flex; align-items: center; gap: 15px; }
.search-container { position: relative; }
.search-wrapper { position: relative; }
.search-input {
    width: 240px;
    padding: 10px 40px 10px 40px;
    border-radius: 25px;
    border: solid 1px rgba(255, 255, 255, 0.2);
    background: #000 !important;
    color: white;
    transition: all .3s ease-in-out;
    outline: none;
    font-family: 'Work Sans', sans-serif;
    font-size: 14px;
}
.search-icon {
    position: absolute;
    top: 50%; left: 12px;
    transform: translateY(-50%);
    fill: rgba(255, 255, 255, 0.7);
    width: 18px; height: 18px;
    transition: all 0.3s ease;
    pointer-events: none;
}
.search-clear {
    position: absolute;
    top: 50%; right: 12px;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 20px; height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.search-input:not(:placeholder-shown) + .search-icon + .search-clear { opacity: 1; }
.search-clear:hover { color: white; }
.search-input:focus { border-color: rgba(255, 255, 255, 0.4); width: 280px; }
.search-input:focus + .search-icon { fill: var(--accent-bright); }
.search-input::placeholder { color: rgba(255, 255, 255, 0.6); }
.search-results {
    display: none;
    position: absolute;
    top: 100%; left: 0;
    width: 100%;
    background: rgba(12, 12, 22, 0.98);
    backdrop-filter: blur(24px);
    border-radius: 0 0 12px 12px;
    margin-top: 5px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(168, 85, 247, 0.15);
    border-top: none;
    max-height: 600px;
    overflow-y: auto;
    z-index: 1001;
}
.search-results.active { display: block; }
.search-result-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.search-result-item:hover { background-color: rgba(168, 85, 247, 0.06); }
.search-result-poster { width: 50px; height: 75px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.search-result-info { flex: 1; min-width: 0; }
.search-result-title {
    font-size: 16px; font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    margin-bottom: 4px; color: white;
}
.search-result-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-secondary); }
.search-result-type { font-weight: 600; color: #888; }
.search-result-rating { color: var(--accent-gold); font-weight: 600; }
.search-result-year { color: var(--text-secondary); }
.search-show-all {
    padding: 15px;
    text-align: center;
    color: var(--accent-bright);
    font-weight: 600; font-size: 14px;
    cursor: pointer;
    transition: color 0.2s ease;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.search-show-all:hover { color: #ff0a16; background-color: rgba(229, 9, 20, 0.05); }
.btn-connexion {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px;
    background: transparent; color: white; text-decoration: none;
    border-radius: 50px; font-size: 14px; font-weight: 400;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer; white-space: nowrap;
}
.connexion-icon {
    width: 20px; height: 20px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/></svg>') no-repeat center;
    background-size: contain;
}
.connexion-text { margin-right: 4px; }
.connexion-arrow { font-size: 10px; opacity: 0.7; margin-top: 1px; }
.btn-connexion:hover { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.3); }
.burger {
    position: relative; width: 40px; height: 30px;
    background: transparent; cursor: pointer;
    display: none; flex-shrink: 0; z-index: 1001;
}
.burger input { display: none; }
.burger span {
    display: block; position: absolute;
    height: 4px; width: 100%;
    background: white; border-radius: 9px;
    opacity: 1; left: 0; transform: rotate(0deg);
    transition: .25s ease-in-out;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}
.burger span:nth-of-type(1) { top: 0px; transform-origin: left center; }
.burger span:nth-of-type(2) { top: 50%; transform: translateY(-50%); transform-origin: left center; }
.burger span:nth-of-type(3) { top: 100%; transform-origin: left center; transform: translateY(-100%); }
.burger input:checked ~ span:nth-of-type(1) { transform: rotate(45deg); top: 0px; left: 5px; }
.burger input:checked ~ span:nth-of-type(2) { width: 0%; opacity: 0; }
.burger input:checked ~ span:nth-of-type(3) { transform: rotate(-45deg); top: 28px; left: 5px; }
.mobile-menu {
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: rgba(8, 8, 16, 0.98);
    backdrop-filter: blur(24px);
    transform: translateY(-100%);
    opacity: 0; visibility: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    z-index: 999;
    border-bottom: 1px solid rgba(168, 85, 247, 0.12);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
}
.mobile-menu.active { transform: translateY(0); opacity: 1; visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; padding: 20px; }
.mobile-menu a {
    color: var(--text-primary); text-decoration: none;
    font-size: 18px; font-weight: 500;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}
.mobile-menu a:hover { background: rgba(229, 9, 20, 0.1); color: var(--accent-bright); padding-left: 30px; }
.mobile-menu .btn-connexion {
    margin: 20px; text-align: center; display: block;
    background: var(--accent-bright); border-radius: 8px;
    padding: 15px; font-weight: 600; border: none;
}
.mobile-menu .btn-connexion:hover { background: #c40812; border-color: transparent; }

@media (min-width: 1801px) { .nav-links { display: flex !important; } .burger { display: none !important; } }
@media (max-width: 1800px) {
    .navbar { padding: 15px 20px; gap: 15px; }
    .logo { font-size: 28px; flex-shrink: 0; }
    .nav-links { display: none !important; }
    .burger { display: block !important; }
    .navbar > .nav-right .btn-connexion { display: inline-flex !important; }
    .search-input { width: 220px; font-size: 13px; padding: 8px 35px 8px 35px; }
    .search-icon { width: 16px; height: 16px; left: 10px; }
}
@media (max-width: 480px) {
    .navbar { padding: 12px 15px; gap: 10px; }
    .logo { font-size: 24px; }
    .search-input { width: 100px; }
    .search-input:focus { width: 150px; }
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(to bottom, rgba(8, 8, 16, 0) 0%, #080810 15%);
    padding: 60px 60px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 100px;
}
.footer-main {
    max-width: 1400px; margin: 0 auto;
    display: grid; grid-template-columns: 2fr 1fr;
    gap: 80px; margin-bottom: 50px; align-items: start;
}
.footer-left { padding-right: 40px; }
.footer-right { display: flex; flex-direction: column; gap: 25px; }
.footer-title { font-size: 20px; font-weight: 700; color: var(--text-primary); margin-bottom: 20px; letter-spacing: 0.5px; }
.footer-text { color: var(--text-secondary); font-size: 14px; line-height: 1.8; }
.social-icons-wrapper { position: relative; }
.social-login-icons { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; position: relative; }
.footer-icons-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    justify-items: center;
    align-items: center;
}
.social-icons-wrapper::after {
    content: ''; position: absolute; top: 100%; left: 0; right: 0; height: 80px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.05) 0%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
    pointer-events: none; transform: scaleY(-1); margin-top: 5px;
}
.social-login-icons svg { width: 40px; }
.social-icon {
    display: flex; align-items: center; justify-content: center;
    width: 50px; height: 50px; border-radius: 50%;
    background-color: transparent;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
}
.social-icon:hover { transform: scale(1.1); }
.social-icon img { width: 30px; height: 30px; object-fit: contain; transition: filter 0.2s ease; }
.social-icon.github:hover    { background-color: #24292e; }
.social-icon.discord:hover   { background-color: #5865F2; }
.social-icon.telegram:hover  { background-color: #0088cc; }
.social-icon.link:hover      { background-color: #666666; }
.social-icon.trustpilot:hover{ background-color: #00B67A; }
.social-icon.coffee:hover    { background-color: #FFDD00; }
.social-icon.beacons:hover   { background-color: #8B5CF6; }
.social-icon.dmca:hover      { background-color: #e50914; }
.social-icon.extension:hover { background-color: #FF7139; }
.social-icon.info:hover      { background-color: #0078D7; }
.social-icon:hover img { filter: brightness(0) invert(1); }
.footer-copyright { color: var(--text-secondary); font-size: 13px; opacity: 0.9; }
.footer-author { color: var(--accent-bright); text-decoration: none; transition: color 0.3s ease; font-weight: 600; }
.footer-author:hover { color: #ff0a16; }
@media (max-width: 1024px) {
    .footer-main { grid-template-columns: 1fr; gap: 50px; }
    .footer-left { padding-right: 0; }
    .social-login-icons { justify-content: center; }
    .footer-icons-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 768px) {
    .footer { padding: 50px 25px 25px; }
    .footer-main { gap: 40px; }
    .footer-title { text-align: center; }
    .footer-text { text-align: center; }
    .social-login-icons { gap: 10px; justify-content: center; }
    .social-icons-wrapper::after { display: none; }
    .footer-icons-grid { grid-template-columns: repeat(5, 1fr); gap: 10px; }
}

/* =======================================================================
   KEYFRAMES
   ======================================================================= */

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33%       { transform: translateY(-14px) rotate(1.5deg); }
    66%       { transform: translateY(-7px) rotate(-1deg); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(32px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(50px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes metalShimmer {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(168,85,247,0.3), 0 0 60px rgba(168,85,247,0.1);
    }
    50% {
        box-shadow: 0 0 45px rgba(168,85,247,0.65), 0 0 100px rgba(168,85,247,0.28);
    }
}

@keyframes orbit {
    from { transform: rotate(0deg) translateX(58px) rotate(0deg); }
    to   { transform: rotate(360deg) translateX(58px) rotate(-360deg); }
}

@keyframes scanLine {
    0%   { transform: translateX(-200%) skewX(-15deg); opacity: 0.7; }
    100% { transform: translateX(600%) skewX(-15deg); opacity: 0; }
}

@keyframes cardReveal {
    from { opacity: 0; transform: translateY(45px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes iconShake {
    0%, 100% { transform: scale(1.12) rotate(0deg); }
    25%       { transform: scale(1.16) rotate(-9deg); }
    75%       { transform: scale(1.16) rotate(9deg); }
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%       { transform: scale(1.06); opacity: 0.88; }
}

@keyframes progressGlow {
    0%, 100% { box-shadow: 0 0 8px rgba(168,85,247,0.6); }
    50%       { box-shadow: 0 0 22px rgba(168,85,247,1), 0 0 45px rgba(168,85,247,0.4); }
}

@keyframes gridDrift {
    0%   { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}

@keyframes nebulaDrift {
    0%   { transform: translate(0, 0) scale(1); opacity: 0.16; }
    33%  { transform: translate(35px, -25px) scale(1.06); opacity: 0.22; }
    66%  { transform: translate(-22px, 32px) scale(0.96); opacity: 0.13; }
    100% { transform: translate(0, 0) scale(1); opacity: 0.16; }
}

@keyframes lineSlide {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Particles flottantes */
@keyframes particleDrift {
    0%   { transform: translateY(100vh) translateX(0) scale(0); opacity: 0; }
    10%  { opacity: 0.6; transform: translateY(90vh) translateX(8px) scale(1); }
    90%  { opacity: 0.3; }
    100% { transform: translateY(-10vh) translateX(-15px) scale(0.5); opacity: 0; }
}

/* Entrée de page principale */
@keyframes pageReveal {
    from { opacity: 0; transform: scale(0.97) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* Pulsation douce pour les options sélectionnées */
@keyframes selectedPulse {
    0%, 100% { box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.3), 0 8px 24px rgba(168, 85, 247, 0.2); }
    50%       { box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.5), 0 8px 32px rgba(168, 85, 247, 0.35); }
}

/* Shimmer résultats */
@keyframes resultShimmer {
    0%   { left: -100%; }
    100% { left: 200%; }
}

/* Bounce léger */
@keyframes gentleBounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-5px); }
}

/* Stagger apparition options quiz */
@keyframes optionSlideIn {
    from { opacity: 0; transform: translateX(-16px) scale(0.97); }
    to   { opacity: 1; transform: translateX(0) scale(1); }
}

/* =======================================================================
   FOND ANIMÉ ENRICHI
   ======================================================================= */

.grid-background {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image:
        linear-gradient(rgba(168, 85, 247, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(168, 85, 247, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    pointer-events: none;
    animation: gridDrift 12s linear infinite;
}

/* Nébuleuses ambiantes */
.grid-background::before,
.grid-background::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
}
.grid-background::before {
    width: 700px; height: 700px;
    top: 8%; left: 10%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.22) 0%, transparent 70%);
    animation: nebulaDrift 14s ease-in-out infinite;
}
.grid-background::after {
    width: 600px; height: 600px;
    bottom: 10%; right: 6%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.18) 0%, transparent 70%);
    animation: nebulaDrift 19s ease-in-out infinite reverse;
}

/* Particules décoratives flottantes */
.grid-background .particle {
    position: absolute;
    width: 3px; height: 3px;
    border-radius: 50%;
    background: var(--purple-shimmer);
    opacity: 0;
    animation: particleDrift linear infinite;
}

/* =======================================================================
   CONTAINER PRINCIPAL
   ======================================================================= */

.suggestion-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px;
    animation: pageReveal 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Bouton retour */
.back-button {
    position: absolute;
    top: 100px; left: 60px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.35s ease;
    z-index: 10;
    padding: 9px 18px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    background: rgba(255,255,255,0.03);
}
.back-button:hover {
    color: var(--text-primary);
    transform: translateX(-6px);
    border-color: rgba(168, 85, 247, 0.4);
    background: rgba(168, 85, 247, 0.08);
    box-shadow: 0 0 20px rgba(168,85,247,0.15);
}

/* =======================================================================
   ICÔNE FLOTTANTE PRINCIPALE
   ======================================================================= */

.icon-container {
    position: relative;
    width: 115px; height: 115px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.22), rgba(124, 58, 237, 0.10));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 38px;
    animation: float 4.5s ease-in-out infinite, glowPulse 3.5s ease-in-out infinite;
    box-shadow:
        0 0 35px rgba(168, 85, 247, 0.35),
        inset 0 0 25px rgba(168, 85, 247, 0.08),
        inset 0 1px 0 rgba(255,255,255,0.12);
}

/* Anneau tournant */
.icon-container::before {
    content: '';
    position: absolute;
    inset: -7px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        transparent 0%,
        rgba(168, 85, 247, 0.5) 20%,
        rgba(212, 179, 255, 0.95) 50%,
        rgba(168, 85, 247, 0.5) 80%,
        transparent 100%
    );
    animation: spin 3.5s linear infinite;
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), white calc(100% - 3px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 3px), white calc(100% - 3px));
}

/* Point orbital */
.icon-container::after {
    content: '';
    position: absolute;
    width: 9px; height: 9px;
    background: var(--purple-shimmer);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--purple-light), 0 0 25px var(--purple);
    animation: orbit 3.5s linear infinite;
    top: 50%; left: 50%;
    margin-top: -4.5px; margin-left: -4.5px;
}

.sparkle-icon {
    width: 54px; height: 54px;
    filter: drop-shadow(0 0 14px rgba(168, 85, 247, 0.75)) drop-shadow(0 0 35px rgba(168, 85, 247, 0.3));
    position: relative;
    z-index: 1;
}

/* =======================================================================
   TITRE — EFFET MAUVE MÉTALLIQUE SCINTILLANT
   ======================================================================= */

.suggestion-title {
    font-size: 60px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
    line-height: 1.08;
    background: linear-gradient(
        90deg,
        #ffffff         0%,
        #e8d5ff        8%,
        var(--purple-shimmer)  14%,
        var(--purple-metal-2)  24%,
        var(--purple-metal-1)  34%,
        var(--purple)          44%,
        var(--purple-metal-1)  54%,
        var(--purple-shimmer)  63%,
        #e8d5ff        72%,
        var(--purple-metal-2)  80%,
        var(--purple)          88%,
        #ffffff        94%,
        var(--purple-shimmer) 100%
    );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.7s ease-out, metalShimmer 5s ease-in-out 0.7s infinite;
}

.suggestion-title .highlight {
    background: linear-gradient(
        90deg,
        var(--purple-shimmer)  0%,
        var(--purple-metal-2)  12%,
        var(--purple-metal-1)  25%,
        var(--purple)          38%,
        var(--purple-metal-1)  50%,
        var(--purple-shimmer)  60%,
        var(--purple-metal-2)  72%,
        var(--purple)          84%,
        var(--purple-metal-1)  92%,
        var(--purple-shimmer) 100%
    );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: metalShimmer 3s ease-in-out infinite;
    display: inline-block;
    filter: drop-shadow(0 0 18px rgba(168, 85, 247, 0.55));
}

.suggestion-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 64px;
    animation: fadeInUp 0.7s ease-out 0.22s backwards;
    max-width: 540px;
    line-height: 1.65;
}

/* =======================================================================
   TEXTE QUESTION
   ======================================================================= */

.question-text {
    font-size: 25px; font-weight: 700;
    text-align: center;
    margin-bottom: 38px;
    background: linear-gradient(90deg,
        #fff 40%,
        var(--purple-light) 60%,
        var(--purple-shimmer) 75%,
        #fff 100%
    );
    background-size: 250% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: metalShimmer 6s ease-in-out infinite;
    line-height: 1.35;
}

/* =======================================================================
   CARTES DE CHOIX
   ======================================================================= */

.options-container {
    display: flex;
    gap: 28px;
    animation: fadeInUp 0.7s ease-out 0.44s backwards;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 880px;
}

@property --card-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}
@keyframes rotateBorder {
    to { --card-angle: 360deg; }
}

.option-card {
    flex: 1;
    min-width: 295px;
    background: rgba(12, 8, 22, 0.85);
    backdrop-filter: blur(22px);
    border-radius: 26px;
    padding: 46px 36px;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease, background 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* Bordure animée (conic-gradient tournant) */
.option-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 26px;
    padding: 2px;
    background: conic-gradient(
        from var(--card-angle),
        transparent 0deg,
        rgba(168, 85, 247, 0.7) 60deg,
        rgba(240, 214, 255, 1)  120deg,
        rgba(168, 85, 247, 0.7) 180deg,
        transparent 240deg
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: rotateBorder 4s linear infinite;
    pointer-events: none;
}

.option-card.random::before {
    background: conic-gradient(
        from var(--card-angle),
        transparent 0deg,
        rgba(229, 9, 20, 0.65) 60deg,
        rgba(255, 120, 120, 1)  120deg,
        rgba(229, 9, 20, 0.65) 180deg,
        transparent 240deg
    );
}
.option-card.quiz::before {
    background: conic-gradient(
        from var(--card-angle),
        transparent 0deg,
        rgba(37, 99, 235, 0.65) 60deg,
        rgba(130, 180, 255, 1)  120deg,
        rgba(37, 99, 235, 0.65) 180deg,
        transparent 240deg
    );
}

/* Scan lumineux au survol */
.option-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 40%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.07), transparent);
    transform: translateX(-200%) skewX(-18deg);
    pointer-events: none;
}
.option-card:hover::after {
    animation: scanLine 0.75s ease forwards;
}

/* Lueur centrale au hover */
.option-glow {
    position: absolute;
    inset: 0;
    border-radius: 26px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}
.option-card.random .option-glow {
    background: radial-gradient(ellipse at 50% 100%, rgba(229, 9, 20, 0.16) 0%, transparent 70%);
}
.option-card.quiz .option-glow {
    background: radial-gradient(ellipse at 50% 100%, rgba(37, 99, 235, 0.16) 0%, transparent 70%);
}
.option-card:hover .option-glow { opacity: 1; }

.option-card:hover {
    transform: translateY(-14px) scale(1.025);
}
.option-card.random:hover {
    background: rgba(20, 6, 10, 0.88);
    box-shadow: 0 30px 65px rgba(229, 9, 20, 0.28), 0 0 45px rgba(229, 9, 20, 0.18);
}
.option-card.quiz:hover {
    background: rgba(6, 10, 22, 0.88);
    box-shadow: 0 30px 65px rgba(37, 99, 235, 0.28), 0 0 45px rgba(37, 99, 235, 0.18);
}

/* Icône de la carte */
.option-icon {
    width: 82px; height: 82px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    position: relative;
    z-index: 1;
    transition: transform 0.4s var(--ease-elastic);
}
.option-card:hover .option-icon { animation: iconShake 0.5s ease; }
.option-icon svg { width: 50px; height: 50px; filter: drop-shadow(0 0 14px currentColor); stroke-width: 1.5; }
.option-card.random .option-icon {
    background: rgba(229, 9, 20, 0.14);
    color: #ff4444;
    box-shadow: 0 0 22px rgba(229, 9, 20, 0.22);
}
.option-card.quiz .option-icon {
    background: rgba(37, 99, 235, 0.14);
    color: #5b9cf6;
    box-shadow: 0 0 22px rgba(37, 99, 235, 0.22);
}

.option-title {
    font-size: 25px; font-weight: 700;
    margin-bottom: 12px;
    position: relative; z-index: 1;
    letter-spacing: 0.1px;
}
.option-card.random .option-title { color: #ff5555; }
.option-card.quiz .option-title   { color: #5b9cf6; }

.option-description {
    font-size: 15px;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.68;
    position: relative; z-index: 1;
}

/* =======================================================================
   MODAL DU QUESTIONNAIRE
   ======================================================================= */

.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(12px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
    padding: 20px;
}
.modal.active { display: flex; }

.modal-content {
    background: linear-gradient(145deg, rgba(10, 6, 20, 0.98), rgba(16, 12, 28, 0.98));
    backdrop-filter: blur(30px);
    border-radius: 28px;
    padding: 48px;
    max-width: 1000px;
    width: 100%;
    text-align: center;
    animation: slideUp 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(168, 85, 247, 0.24);
    box-shadow:
        0 0 0 1px rgba(168, 85, 247, 0.08),
        0 60px 120px rgba(0, 0, 0, 0.75),
        0 0 80px rgba(168, 85, 247, 0.16),
        inset 0 1px 0 rgba(255,255,255,0.06);
}

/* Ligne décorative en haut */
.modal-content::before {
    content: '';
    position: absolute;
    top: 0; left: 8%; right: 8%;
    height: 2px;
    background: linear-gradient(90deg,
        transparent,
        var(--purple-deep),
        var(--purple-metal-2),
        var(--purple-shimmer),
        var(--purple-metal-2),
        var(--purple-deep),
        transparent
    );
    background-size: 300% 100%;
    animation: metalShimmer 3.5s ease-in-out infinite;
    border-radius: 0 0 2px 2px;
}

/* Lueur d'ambiance en bas de la modal */
.modal-content::after {
    content: '';
    position: absolute;
    bottom: 0; left: 10%; right: 10%;
    height: 120px;
    background: radial-gradient(ellipse, rgba(168, 85, 247, 0.07) 0%, transparent 70%);
    pointer-events: none;
    border-radius: 0 0 28px 28px;
}

.close-modal {
    position: absolute;
    top: 18px; right: 18px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-secondary);
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    z-index: 10;
}
.close-modal:hover {
    color: white;
    background: rgba(229, 9, 20, 0.18);
    border-color: rgba(229, 9, 20, 0.4);
    transform: rotate(90deg);
}

/* Barre de progression */
.quiz-progress {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 46px;
    align-items: center;
}
.progress-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: default;
}
.progress-dot.active {
    background: linear-gradient(90deg, var(--purple-dark), var(--purple-light));
    width: 36px;
    border-radius: 5px;
    animation: progressGlow 2s ease-in-out infinite;
}
.progress-dot.done {
    background: rgba(168, 85, 247, 0.45);
    transform: scale(0.9);
}

/* Indicateur de progression texte */
.quiz-progress-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-left: 12px;
    opacity: 0.7;
}

.quiz-question {
    font-size: 22px; font-weight: 700;
    margin-bottom: 10px;
    color: white; line-height: 1.45;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Badge multi-sélection */
.quiz-multi-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--purple-light);
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.25);
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 22px;
    letter-spacing: 0.3px;
    opacity: 0.9;
}

/* Grille des options */
.quiz-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 11px;
    margin-bottom: 28px;
    text-align: left;
}

.quiz-option {
    background: rgba(255, 255, 255, 0.033);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    padding: 14px 16px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.25s var(--ease-smooth);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 11px;
    position: relative;
    overflow: hidden;
    font-family: 'Work Sans', sans-serif;
    animation: optionSlideIn 0.3s ease backwards;
}

/* Stagger pour les options */
.quiz-option:nth-child(1)  { animation-delay: 0.03s; }
.quiz-option:nth-child(2)  { animation-delay: 0.06s; }
.quiz-option:nth-child(3)  { animation-delay: 0.09s; }
.quiz-option:nth-child(4)  { animation-delay: 0.12s; }
.quiz-option:nth-child(5)  { animation-delay: 0.15s; }
.quiz-option:nth-child(6)  { animation-delay: 0.18s; }
.quiz-option:nth-child(7)  { animation-delay: 0.21s; }
.quiz-option:nth-child(8)  { animation-delay: 0.24s; }
.quiz-option:nth-child(9)  { animation-delay: 0.27s; }
.quiz-option:nth-child(10) { animation-delay: 0.30s; }
.quiz-option:nth-child(11) { animation-delay: 0.33s; }
.quiz-option:nth-child(12) { animation-delay: 0.36s; }
.quiz-option:nth-child(13) { animation-delay: 0.39s; }
.quiz-option:nth-child(14) { animation-delay: 0.42s; }
.quiz-option:nth-child(15) { animation-delay: 0.45s; }
.quiz-option:nth-child(16) { animation-delay: 0.48s; }
.quiz-option:nth-child(17) { animation-delay: 0.51s; }
.quiz-option:nth-child(18) { animation-delay: 0.54s; }

.quiz-option-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.15);
    transition: all 0.25s ease;
    color: var(--purple-light);
}

/* Overlay shimmer au hover */
.quiz-option::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.07), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.quiz-option:hover::after { opacity: 1; }
.quiz-option:hover {
    border-color: rgba(168, 85, 247, 0.45);
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.14);
    background: rgba(168, 85, 247, 0.06);
}
.quiz-option:hover .quiz-option-icon {
    background: rgba(168, 85, 247, 0.14);
    border-color: rgba(168, 85, 247, 0.3);
}
.quiz-option.selected {
    background: rgba(168, 85, 247, 0.14);
    border-color: var(--purple);
    animation: selectedPulse 2.5s ease-in-out infinite;
}
.quiz-option.selected .quiz-option-icon {
    background: rgba(168, 85, 247, 0.24);
    border-color: var(--purple);
    color: var(--purple-shimmer);
}
/* Checkmark pour les sélectionnées */
.quiz-option.selected::before {
    content: '✓';
    position: absolute;
    top: 8px; right: 10px;
    font-size: 11px;
    font-weight: 800;
    color: var(--purple-light);
    opacity: 0.9;
    line-height: 1;
}

/* Boutons navigation */
.quiz-buttons {
    display: flex;
    gap: 12px;
    margin-top: 26px;
}
.quiz-button {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    color: white;
    padding: 14px;
    border-radius: 13px;
    font-size: 15px; font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Work Sans', sans-serif;
    position: relative;
    overflow: hidden;
}
.quiz-button:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255,255,255,0.22);
    transform: translateY(-1px);
}
.quiz-button:disabled { opacity: 0.2; cursor: not-allowed; }
.quiz-button.primary {
    background: linear-gradient(135deg, var(--purple-dark), var(--purple));
    border-color: var(--purple);
    box-shadow: 0 4px 22px rgba(168, 85, 247, 0.32);
}
.quiz-button.primary:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--purple), var(--purple-light));
    box-shadow: 0 7px 32px rgba(168, 85, 247, 0.52);
    transform: translateY(-3px);
}
/* Shimmer sur le bouton primary */
.quiz-button.primary::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: none;
    pointer-events: none;
}
.quiz-button.primary:hover:not(:disabled)::after {
    animation: resultShimmer 0.6s ease forwards;
}

/* =======================================================================
   PAGE RÉSULTATS
   ======================================================================= */

.results-page {
    position: relative; z-index: 1;
    min-height: 100vh;
    padding: 120px 60px 60px;
    animation: pageReveal 0.6s ease-out;
}

.results-header {
    text-align: center;
    margin-bottom: 60px;
}

.results-title {
    font-size: 44px; font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -1px;
}
.results-title .highlight {
    background: linear-gradient(
        90deg,
        var(--purple-shimmer)  0%,
        var(--purple-metal-2) 15%,
        var(--purple-metal-1) 35%,
        var(--purple)          50%,
        var(--purple-metal-1) 65%,
        var(--purple-shimmer)  80%,
        var(--purple-metal-2) 100%
    );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: metalShimmer 4.5s ease-in-out infinite;
}

.results-container {
    max-width: 1200px; margin: 0 auto;
    display: flex; flex-direction: column;
    gap: 26px;
}

/* Carte de résultat */
.result-card {
    background: rgba(8, 5, 16, 0.8);
    backdrop-filter: blur(24px);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.38s var(--ease-smooth);
    border: 1px solid rgba(168, 85, 247, 0.16);
    display: flex;
    padding: 0;
    position: relative;
    animation: cardReveal 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}
.result-card:nth-child(1) { animation-delay: 0.05s; }
.result-card:nth-child(2) { animation-delay: 0.14s; }
.result-card:nth-child(3) { animation-delay: 0.23s; }
.result-card:nth-child(4) { animation-delay: 0.32s; }
.result-card:nth-child(5) { animation-delay: 0.41s; }
.result-card:nth-child(6) { animation-delay: 0.50s; }

/* Ligne en haut de chaque carte (shimmer au hover) */
.result-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--purple-deep) 15%,
        var(--purple-metal-1) 50%,
        var(--purple-deep) 85%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: metalShimmer 3s ease-in-out infinite;
    opacity: 0;
    transition: opacity 0.35s ease;
}
.result-card:hover::before { opacity: 1; }

.result-card:hover {
    transform: translateY(-6px);
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow:
        0 28px 60px rgba(0, 0, 0, 0.6),
        0 0 55px rgba(168, 85, 247, 0.2),
        inset 0 0 30px rgba(168, 85, 247, 0.03);
}

/* Affiche */
.result-poster-container {
    position: relative;
    width: 275px; min-width: 275px;
    overflow: hidden;
}
.result-poster {
    width: 100%; height: 100%;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.04);
    transition: transform 0.55s ease;
}
.result-card:hover .result-poster { transform: scale(1.06); }

/* Overlay gradient sur l'affiche au hover */
.result-poster-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        transparent 70%,
        rgba(8, 5, 16, 0.5) 100%
    );
    pointer-events: none;
}

/* Badge de type */
.result-type-badge {
    position: absolute;
    top: 14px; left: 14px;
    display: inline-flex;
    align-items: center; gap: 6px;
    background: rgba(168, 85, 247, 0.88);
    backdrop-filter: blur(14px);
    color: white;
    padding: 6px 14px;
    border-radius: 9px;
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    animation: badgePulse 3.5s ease-in-out infinite;
    border: 1px solid rgba(255,255,255,0.18);
    z-index: 2;
}
.result-type-badge.type-film    { background: rgba(229, 9, 20, 0.88); }
.result-type-badge.type-serie   { background: rgba(37, 99, 235, 0.88); }
.result-type-badge.type-anime   { background: rgba(236, 72, 153, 0.88); }
.result-type-badge.type-cartoon { background: rgba(234, 179, 8, 0.88); color: #111; }
.result-type-badge.type-docu    { background: rgba(20, 184, 166, 0.88); }
.result-type-badge.type-mini    { background: rgba(245, 158, 11, 0.88); }
.result-type-badge.type-concert { background: rgba(239, 68, 68, 0.88); }
.result-type-badge.type-sport   { background: rgba(16, 185, 129, 0.88); }

/* Contenu de la carte */
.result-content {
    flex: 1;
    padding: 30px 38px;
    display: flex; flex-direction: column;
    position: relative;
    z-index: 1;
}
.result-title {
    font-size: 34px; font-weight: 800;
    margin-bottom: 14px;
    color: white; line-height: 1.13;
    letter-spacing: -0.5px;
}
.result-genres {
    display: flex; flex-wrap: wrap;
    gap: 7px; margin-bottom: 14px;
}
.genre-tag {
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.22);
    color: var(--purple-light);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px; font-weight: 600;
    letter-spacing: 0.25px;
    transition: all 0.22s ease;
}
.genre-tag:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.48);
    transform: translateY(-1px);
}
.popular-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.28);
    color: var(--accent-gold);
    padding: 5px 14px; border-radius: 20px;
    font-size: 12px; font-weight: 700;
    width: fit-content; margin-bottom: 14px;
    letter-spacing: 0.25px;
    animation: gentleBounce 3s ease-in-out infinite;
}
.result-description {
    color: var(--text-secondary);
    line-height: 1.78; margin-bottom: 20px;
    font-size: 14.5px; flex: 1;
}
.result-meta {
    display: flex; align-items: center;
    gap: 18px; margin-bottom: 24px; flex-wrap: wrap;
}
.result-meta-item {
    display: flex; align-items: center;
    gap: 7px; font-size: 13.5px; color: var(--text-secondary);
}
.result-rating { display: flex; align-items: center; gap: 6px; color: white; }
.result-rating .star { color: var(--accent-gold); font-size: 17px; }
.result-rating .score { font-weight: 800; font-size: 16px; }
.result-rating .max  { color: var(--text-secondary); font-size: 13px; }
.result-votes { color: var(--text-secondary); }
.result-date  { color: var(--text-secondary); }

/* Boutons */
.result-actions { display: flex; gap: 12px; margin-top: auto; }
.action-button {
    padding: 13px 24px; border-radius: 13px;
    font-size: 14px; font-weight: 700;
    cursor: pointer;
    transition: all 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: none;
    display: flex; align-items: center; gap: 8px;
    font-family: 'Work Sans', sans-serif;
    letter-spacing: 0.15px;
    position: relative;
    overflow: hidden;
}
/* Shimmer effect sur primary */
.action-button.primary::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    pointer-events: none;
}
.action-button.primary:hover::before {
    animation: resultShimmer 0.55s ease forwards;
}
.action-button.primary {
    background: linear-gradient(135deg, var(--purple-dark), var(--purple));
    color: white;
    box-shadow: 0 4px 22px rgba(168, 85, 247, 0.36);
}
.action-button.primary:hover {
    background: linear-gradient(135deg, var(--purple), var(--purple-light));
    transform: translateY(-3px);
    box-shadow: 0 9px 32px rgba(168, 85, 247, 0.54);
}
.action-button.secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    color: white;
}
.action-button.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255,255,255,0.26);
    transform: translateY(-2px);
}
.action-button.tertiary {
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
}
.action-button.tertiary:hover {
    border-color: rgba(168, 85, 247, 0.4);
    color: var(--purple-light);
    transform: translateY(-2px);
}

/* Couleurs inline des types */
.result-type-film    { color: #e50914 !important; }
.result-type-serie   { color: #5b9cf6 !important; }
.result-type-anime   { color: #ec4899 !important; }
.result-type-cartoon { color: #eab308 !important; }
.result-type-docu    { color: #14b8a6 !important; }
.result-type-mini    { color: #f59e0b !important; }
.result-type-concert { color: #ef4444 !important; }
.result-type-sport   { color: #10b981 !important; }

/* =======================================================================
   SPINNER AMÉLIORÉ
   ======================================================================= */

.loading {
    text-align: center;
    padding: 70px 40px;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.loading-text {
    font-size: 16px;
    font-weight: 500;
    animation: gentleBounce 1.5s ease-in-out infinite;
}
.spinner-wrapper {
    position: relative;
    width: 56px; height: 56px;
}
.spinner {
    width: 56px; height: 56px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--purple-light);
    border-right-color: var(--purple);
    animation: spin 0.85s linear infinite;
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.45);
}
.spinner-inner {
    position: absolute;
    top: 50%; left: 50%;
    width: 30px; height: 30px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid transparent;
    border-bottom-color: var(--purple-shimmer);
    animation: spin 0.55s linear infinite reverse;
}

/* =======================================================================
   RESPONSIVE
   ======================================================================= */

@media (max-width: 1024px) {
    .results-page { padding: 100px 30px 50px; }
    .result-poster-container { width: 230px; min-width: 230px; }
    .result-title { font-size: 26px; }
    .results-title { font-size: 34px; }
}

@media (max-width: 768px) {
    .suggestion-title { font-size: 38px; letter-spacing: -0.8px; }
    .quiz-options { grid-template-columns: 1fr; }
    .back-button { left: 16px; top: 88px; font-size: 14px; padding: 7px 14px; }
    .results-page { padding: 100px 16px 40px; }
    .result-card { flex-direction: column; }
    .result-poster-container { width: 100%; min-width: 100%; height: 370px; }
    .result-poster-container::after { background: linear-gradient(to bottom, transparent 70%, rgba(8, 5, 16, 0.5) 100%); }
    .result-content { padding: 22px 20px; }
    .result-title { font-size: 22px; }
    .result-actions { flex-direction: column; }
    .action-button { width: 100%; justify-content: center; }
    .modal-content { padding: 28px 18px; }
    .quiz-buttons { flex-direction: column; }
    .options-container { gap: 18px; }
    .option-card { min-width: 100%; padding: 34px 24px; }
    .results-title { font-size: 28px; }
    .suggestion-subtitle { font-size: 16px; }
}

@media (max-width: 480px) {
    .suggestion-title { font-size: 30px; letter-spacing: -0.5px; }
    .suggestion-subtitle { font-size: 14px; margin-bottom: 44px; }
    .icon-container { width: 92px; height: 92px; }
    .sparkle-icon { width: 44px; height: 44px; }
    .result-poster-container { height: 290px; }
    .result-title { font-size: 20px; }
    .modal-content { padding: 22px 14px; }
    .quiz-question { font-size: 19px; }
}