/* =========================================
   🎨 FORCEUR — Design Principal
   Dark Glassmorphism + Valentine Theme
   Mobile-First Responsive
   ========================================= */

/* === Google Fonts import === */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;700;800;900&family=Quicksand:wght@500;600;700&display=swap');

/* === Variables CSS === */
:root {
    --primary: #ff4d6d;
    --primary-light: #ff758f;
    --primary-dark: #c9184a;
    --secondary: #ff85a1;
    --accent: #ff9ebb;
    --bg-dark-1: #0a0515;
    --bg-dark-2: #1a0a2e;
    --bg-dark-3: #16082a;
    --bg-gradient: linear-gradient(145deg, #0a0515 0%, #1a0a2e 40%, #2d1b4e 70%, #1a0a2e 100%);
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-bg-hover: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(255, 255, 255, 0.15);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.65);
    --text-muted: rgba(255, 255, 255, 0.35);
    --glow-pink: 0 0 20px rgba(255, 77, 109, 0.4);
    --glow-pink-strong: 0 0 40px rgba(255, 77, 109, 0.6), 0 0 80px rgba(255, 77, 109, 0.3);
    --radius-card: 28px;
    --radius-btn: 50px;
    --font-display: 'Nunito', sans-serif;
    --font-body: 'Quicksand', sans-serif;
}

/* === Reset & Base === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    background: var(--bg-gradient);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 500;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === Background ambient glow === */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(255, 77, 109, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(157, 78, 221, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(255, 133, 161, 0.05) 0%, transparent 40%);
    z-index: 0;
    pointer-events: none;
    animation: ambientMove 20s ease-in-out infinite alternate;
}

@keyframes ambientMove {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(-3%, -3%) rotate(5deg);
    }
}

/* === Floating Hearts Container === */
#heartsContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.floating-heart {
    position: absolute;
    bottom: -50px;
    color: var(--primary);
    opacity: 0;
    pointer-events: none;
    font-size: 1.2rem;
    filter: blur(0.5px);
    animation: floatUp var(--duration) var(--delay) ease-in infinite;
}

/* === Glass Card Principal === */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-card);
    padding: 2rem 1.8rem;
    width: 92%;
    max-width: 400px;
    text-align: center;
    box-shadow: var(--glass-shadow);
    position: relative;
    z-index: 10;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    border-radius: var(--radius-card) var(--radius-card) 0 0;
}

/* === GIF Image === */
.cute-gif {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--primary);
    margin: 0 auto 1.5rem auto;
    display: block;
    /* Ensure it behaves as a block for margins to work */
    box-shadow: var(--glow-pink);
    transition: all 0.5s ease;
}

.cute-gif.shake {
    animation: shakeGif 0.5s ease;
}

/* === Question Text === */
.question-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1.35;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    min-height: 2.7rem;
}

/* === Refusal Counter === */
.refusal-counter {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    min-height: 1.2rem;
    transition: all 0.3s ease;
    opacity: 0;
}

.refusal-counter.visible {
    opacity: 1;
    color: var(--secondary);
}

/* === Button Container === */
.btn-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    position: relative;
}

/* === Base Button Style === */
.btn {
    border: none;
    outline: none;
    padding: 14px 36px;
    border-radius: var(--radius-btn);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    letter-spacing: 0.5px;
    min-width: 140px;
}

/* Shimmer effect on target button */
.btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
}

.btn:active {
    transform: scale(0.95);
}

/* === Target Button (le bon !) === */
.btn-target {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: var(--glow-pink);
    z-index: 20;
    font-size: 1.15rem;
    padding: 16px 42px;
}

.btn-target:hover {
    box-shadow: var(--glow-pink-strong);
    transform: scale(1.05);
}

.btn-target:hover::after {
    left: 120%;
}

.btn-target.pulse {
    animation: pulse 1.5s ease-in-out infinite;
}

/* === Avoid Button (le méchant !) === */
.btn-avoid {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    padding: 10px 24px;
    min-width: 100px;
}

.btn-avoid:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-avoid::after {
    display: none;
}

/* Quand le bouton avoid fuit */
.btn-avoid.fleeing {
    position: fixed;
    z-index: 9999 !important;
    min-width: 70px;
    min-height: 35px;
    opacity: 0.75;
    pointer-events: auto !important;
    transition: left 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        top 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        transform 0.3s ease;
}

/* === Ok Button (between questions) === */
.btn-ok {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 12px 36px;
    margin-top: 1rem;
    transition: all 0.4s ease;
}

.btn-ok:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

/* === Mock Popup (kkkkkk) === */
.mock-popup {
    position: fixed;
    z-index: 10000;
    background: rgba(255, 77, 109, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    pointer-events: none;
    transform: translate(-50%, -100%);
    animation: mockPopIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    box-shadow: 0 4px 15px rgba(255, 77, 109, 0.4);
}

.mock-popup.fade-out {
    animation: mockFadeOut 0.5s ease forwards;
}

@keyframes mockPopIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -80%) scale(0.5);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -120%) scale(1);
    }
}

@keyframes mockFadeOut {
    0% {
        opacity: 1;
        transform: translate(-50%, -120%) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -160%) scale(0.5);
    }
}

/* === Success Screen === */
.success-container {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.success-container.active {
    display: flex;
}

.success-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--accent), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
}

.success-message {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    white-space: pre-line;
}

/* === Footer === */
.footer {
    position: fixed;
    bottom: 12px;
    font-size: 0.7rem;
    color: var(--text-muted);
    z-index: 5;
    letter-spacing: 0.5px;
}

/* === Responsive Tweaks === */
@media (max-height: 680px) {
    .cute-gif {
        width: 110px;
        height: 110px;
    }

    .question-text {
        font-size: 1.3rem;
    }

    .glass-card {
        padding: 1.5rem 1.5rem;
    }
}

@media (min-width: 500px) {
    .glass-card {
        padding: 2.5rem 2rem;
    }

    .question-text {
        font-size: 1.6rem;
    }
}

/* === Progress Indicator (multi-questions) === */
.progress-indicator {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 1rem;
}

.progress-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transition: all 0.4s ease;
}

.progress-dot.done {
    background: var(--primary);
    box-shadow: 0 0 8px rgba(255, 77, 109, 0.5);
}

.progress-dot.active {
    background: var(--primary-light);
    box-shadow: 0 0 12px rgba(255, 77, 109, 0.6);
    transform: scale(1.3);
    animation: pulse 1.5s ease-in-out infinite;
}

/* === Scroll Lock Utility === */
body.locked {
    overflow: hidden;
    touch-action: none;
}