@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --bg-page: #FFFFFF;
    --primary-magenta: #FF2A85;
    --primary-purple: #8B2FC9;
    --primary-coral: #FF6B4A;
    --btn-gradient: linear-gradient(90deg, #FF5E62 0%, #E91E63 50%, #8E24AA 100%);
    --btn-gradient-hover: linear-gradient(90deg, #FF7074 0%, #F0286F 50%, #9C27B0 100%);
    --btn-passkey: linear-gradient(90deg, #00B09B 0%, #10B981 100%);
    --text-heading: #0F172A;
    --text-body: #334155;
    --text-muted: #64748B;
    --card-bg: rgba(255, 255, 255, 0.38);
    --card-border: rgba(255, 255, 255, 0.55);
    --card-shadow: 0 30px 80px -15px rgba(0, 0, 0, 0.08);
    --input-bg: rgba(241, 244, 248, 0.75);
    --input-border: transparent;
    --input-focus: #FF2A85;
    --radius-card: 30px;
    --radius-input: 14px;
    --radius-pill: 50px;
}

[data-theme="dark"] {
    --bg-page: #090D16;
    --text-heading: #F8FAFC;
    --text-body: #CBD5E1;
    --text-muted: #94A3B8;
    --card-bg: rgba(15, 23, 42, 0.48);
    --card-border: rgba(255, 255, 255, 0.10);
    --card-shadow: 0 30px 80px -15px rgba(0, 0, 0, 0.6);
    --input-bg: rgba(30, 41, 59, 0.65);
    --input-border: rgba(255, 255, 255, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none;
}

button, a, input, select, textarea, .auth-mode-tab, .btn-submit-action, .theme-toggle-minimal {
    -webkit-tap-highlight-color: transparent !important;
    outline: none !important;
    text-decoration: none !important;
}

button {
    border: none !important;
}

a {
    text-decoration: none !important;
}

button:focus, a:focus, input:focus {
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
    text-decoration: none !important;
}

button:focus-visible, a:focus-visible {
    outline: none !important;
}

/* ========================================================
   CUSTOM SLEEK SCROLLBAR
   ======================================================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.35);
    border-radius: 10px;
    transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #FF2A85, #8B2FC9);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.16);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #FF2A85, #8B2FC9);
}

* {
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.35) transparent;
}

[data-theme="dark"] * {
    scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

html, body {
    width: 100%;
    min-height: 100vh;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background: var(--bg-page);
    color: var(--text-body);
    overflow-x: hidden;
    position: relative;
    transition: background 0.3s ease, color 0.3s ease;
}

/* ========================================================
   PAGE LAYOUT: Centered Auth Viewport
   ======================================================== */
.centered-auth-page {
    width: 100vw;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    position: relative;
    z-index: 5;
}

/* ========================================================
   GIANT BACKGROUND WATERMARK: SPARK + SLOGAN
   ======================================================== */
.bg-watermark-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: none;
    user-select: none;
    text-align: center;
    width: 100vw;
    padding: 0 20px;
}

.bg-watermark-spark {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(130px, 24vw, 360px);
    font-weight: 900;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    background: linear-gradient(135deg, rgba(255, 42, 133, 0.13) 0%, rgba(192, 38, 211, 0.11) 45%, rgba(126, 34, 206, 0.13) 75%, rgba(255, 94, 98, 0.13) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 0.82;
    margin-bottom: 24px;
}

.bg-watermark-slogan {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(22px, 3.2vw, 44px);
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, rgba(255, 42, 133, 0.28) 0%, rgba(139, 47, 201, 0.25) 50%, rgba(255, 107, 74, 0.28) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
}

/* ========================================================
   BIG VIBRANT BACKGROUND CIRCLES (LEFT & RIGHT)
   ======================================================== */
.bg-spheres-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

/* CÔTÉ GAUCHE : Gros ronds imposants */
.blob-left-huge {
    position: absolute;
    top: -120px;
    left: -140px;
    width: 580px;
    height: 580px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF2A85 0%, #C026D3 55%, #7E22CE 100%);
    box-shadow: 0 25px 70px rgba(192, 38, 211, 0.35);
}

.blob-left-halo {
    position: absolute;
    top: -160px;
    left: -180px;
    width: 680px;
    height: 680px;
    border-radius: 50%;
    background: rgba(253, 242, 248, 0.85);
    z-index: -1;
}

.blob-left-middle {
    position: absolute;
    top: 50%;
    left: -120px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: linear-gradient(135deg, #9333EA 0%, #581C87 100%);
    opacity: 0.9;
    box-shadow: 0 15px 40px rgba(88, 28, 135, 0.25);
}

.blob-left-bottom-warm {
    position: absolute;
    bottom: -110px;
    left: 60px;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFA07A 0%, #FF5E62 50%, #FF2A85 100%);
    box-shadow: 0 20px 55px rgba(255, 94, 98, 0.3);
}

/* CÔTÉ DROITE : Ronds complémentaires modernes */
.blob-right-top {
    position: absolute;
    top: -90px;
    right: -90px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF2A85 0%, #9333EA 100%);
    opacity: 0.85;
    box-shadow: 0 20px 50px rgba(147, 51, 234, 0.25);
}

.blob-right-bottom {
    position: absolute;
    bottom: -120px;
    right: -100px;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFA07A 0%, #FF3D71 50%, #8B2FC9 100%);
    opacity: 0.88;
    box-shadow: 0 25px 65px rgba(255, 61, 113, 0.3);
}

/* Petites bulles d'accents flottantes */
.blob-accent-1 {
    position: absolute;
    top: 20%;
    right: 25%;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF2A85, #FFA07A);
    opacity: 0.25;
}

.blob-accent-2 {
    position: absolute;
    bottom: 25%;
    left: 22%;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #9333EA, #FF2A85);
    opacity: 0.2;
}

/* ========================================================
   TOP BRAND OVERLAY (PC ONLY)
   ======================================================== */
.top-brand-overlay {
    position: absolute;
    top: 36px;
    left: 45px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.brand-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 9px 20px;
    border-radius: var(--radius-pill);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.9);
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: #0F172A;
    text-decoration: none;
    width: fit-content;
    letter-spacing: 0.5px;
}

.brand-badge-pill i {
    color: #FF2A85;
    font-size: 16px;
}

.brand-badge-slogan {
    font-size: 14px;
    font-weight: 600;
    color: #FFFFFF;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    margin-left: 4px;
}

/* ========================================================
   CENTERED AUTH CARD (FROSTED GLASS ON PC)
   ======================================================== */
.auth-centered-card {
    width: 100%;
    max-width: 470px;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-card);
    border: 1px solid var(--card-border);
    box-shadow: var(--card-shadow);
    padding: 44px 40px;
    position: relative;
    z-index: 10;
    animation: cardAppear 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 30px;
    font-weight: 800;
    color: var(--text-heading);
    text-align: center;
    margin-bottom: 22px;
    letter-spacing: -0.5px;
    transition: color 0.3s ease;
}

/* Mobile Brand Header */
.mobile-brand-top {
    display: none;
    text-align: center;
    margin-bottom: 24px;
}

.mobile-brand-title {
    font-family: 'Outfit', sans-serif;
    font-size: 38px;
    font-weight: 900;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #FF2A85 0%, #C026D3 45%, #7E22CE 75%, #FF5E62 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 6px;
}

.mobile-brand-slogan {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
    background: linear-gradient(135deg, #FF2A85 0%, #8B2FC9 55%, #FF6B4A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 3 Mode Tabs (Connexion, Inscription, Passkey) */
.auth-mode-tabs {
    display: flex;
    background: #F1F5F9;
    padding: 5px;
    border-radius: var(--radius-pill);
    margin-bottom: 24px;
    gap: 4px;
    transition: background 0.3s ease;
}

[data-theme="dark"] .auth-mode-tabs {
    background: rgba(30, 41, 59, 0.85);
}

.auth-mode-tab {
    flex: 1;
    padding: 11px 10px;
    border: none !important;
    background: transparent;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    color: #64748B;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.22s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

[data-theme="dark"] .auth-mode-tab {
    color: #94A3B8;
}

.auth-mode-tab:hover {
    color: #FF2A85;
}

.auth-mode-tab.active {
    background: #FFFFFF !important;
    color: #0F172A !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08) !important;
}

[data-theme="dark"] .auth-mode-tab.active {
    background: #FFFFFF !important;
    color: #0F172A !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45) !important;
}

.auth-mode-tab.active i {
    color: #FF2A85 !important;
}

/* Input Fields */
.input-field-group {
    position: relative;
    margin-bottom: 16px;
}

.input-field-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #94A3B8;
    font-size: 15px;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-input {
    width: 100%;
    background: var(--input-bg);
    border: 1.5px solid var(--input-border);
    color: var(--text-heading);
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 500;
    padding: 14px 18px 14px 48px;
    border-radius: var(--radius-input);
    outline: none;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.custom-input::placeholder {
    color: #94A3B8;
    font-weight: 400;
}

.custom-input:focus {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--input-focus);
    box-shadow: 0 0 0 4px rgba(255, 42, 133, 0.12);
}

[data-theme="dark"] .custom-input:focus {
    background: rgba(30, 41, 59, 0.9);
}

/* Buttons */
.btn-submit-action {
    width: 100%;
    background: var(--btn-gradient);
    color: #FFFFFF;
    border: none;
    padding: 15px 24px;
    border-radius: var(--radius-pill);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(233, 30, 99, 0.35);
    transition: all 0.25s ease;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-submit-action:hover {
    background: var(--btn-gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(233, 30, 99, 0.45);
}

.btn-submit-action:active {
    transform: translateY(0);
}

.btn-passkey-action {
    background: var(--btn-passkey);
    box-shadow: 0 8px 24px rgba(0, 176, 155, 0.3);
}

.btn-passkey-action:hover {
    box-shadow: 0 12px 28px rgba(0, 176, 155, 0.45);
}

/* Status Alerts */
.status-alert {
    padding: 12px 18px;
    border-radius: var(--radius-input);
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeIn 0.3s ease;
}

.status-alert.error {
    background: #FEF2F2;
    color: #DC2626;
    border: 1px solid #FEE2E2;
}

[data-theme="dark"] .status-alert.error {
    background: rgba(220, 38, 38, 0.15);
    border-color: rgba(220, 38, 38, 0.3);
    color: #F87171;
}

.status-alert.success {
    background: #ECFDF5;
    color: #059669;
    border: 1px solid #D1FAE5;
}

[data-theme="dark"] .status-alert.success {
    background: rgba(5, 150, 105, 0.15);
    border-color: rgba(5, 150, 105, 0.3);
    color: #34D399;
}

/* Footer Link */
.form-footer-nav {
    margin-top: 24px;
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
}

.form-footer-nav a {
    color: var(--text-heading);
    text-decoration: none;
    font-weight: 700;
    margin-left: 6px;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.form-footer-nav a:hover {
    color: #FF2A85;
}

/* ========================================================
   THEME TOGGLE BUTTON (MINIMALIST SUN / MOON IN BOTTOM RIGHT)
   ======================================================== */
.theme-toggle-minimal {
    position: fixed;
    bottom: 24px;
    right: 28px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 22px;
    cursor: pointer;
    z-index: 100;
    padding: 8px;
    transition: transform 0.25s ease, color 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

.theme-toggle-minimal:hover {
    color: #FF2A85;
    transform: scale(1.18) rotate(15deg);
}

.theme-toggle-minimal:active {
    transform: scale(0.95);
}

/* Animations */
@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================================================
   ULTRA-SMOOTH FORM TRANSITIONS & STAGGER ANIMATIONS
   ======================================================== */
.auth-form-panel {
    animation: panelSlideFade 0.34s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    will-change: transform, opacity;
}

@keyframes panelSlideFade {
    0% {
        opacity: 0;
        transform: translateY(12px) scale(0.985);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.auth-form-panel .input-field-group:nth-child(1),
.auth-form-panel div[style*="grid"] {
    animation: itemStagger 0.30s cubic-bezier(0.16, 1, 0.3, 1) 0.02s both;
}

.auth-form-panel .input-field-group:nth-child(2) {
    animation: itemStagger 0.30s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
}

.auth-form-panel .input-field-group:nth-child(3) {
    animation: itemStagger 0.30s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both;
}

.auth-form-panel .input-field-group:nth-child(4) {
    animation: itemStagger 0.30s cubic-bezier(0.16, 1, 0.3, 1) 0.11s both;
}

.auth-form-panel .btn-submit-action {
    animation: itemStagger 0.30s cubic-bezier(0.16, 1, 0.3, 1) 0.13s both;
}

.auth-form-panel .form-footer-nav {
    animation: itemStagger 0.30s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

/* ========================================================
   MINIMALIST CENTERED NAVBAR (PERMANENTLY FIXED AT TOP)
   ======================================================== */
.main-nav-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: fixed;
    top: 18px;
    left: 0;
    right: 0;
    z-index: 999;
    padding: 0 16px;
    pointer-events: none;
}

.minimal-navbar {
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 100px !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08) !important;
    border: none !important;
    padding: 4px 6px !important;
    gap: 2px !important;
    overflow: hidden;
    width: fit-content;
    transition: background 0.3s ease, width 0.3s ease;
}

[data-theme="dark"] .minimal-navbar {
    background: rgba(15, 23, 42, 0.90);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45) !important;
}

.nav-pill-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    color: var(--text-body);
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: all 0.22s ease;
    white-space: nowrap;
    border: none !important;
    border-radius: 100px;
}

.nav-pill-item i {
    font-size: 17px;
}

.nav-pill-item:hover {
    color: #FF2A85;
    background: rgba(255, 42, 133, 0.08);
}

.nav-pill-item.active {
    color: #FF2A85;
    background: rgba(255, 42, 133, 0.12);
}

/* ========================================================
   DASHBOARD & HERO SECTION
   ======================================================== */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 95px 24px 90px;
    position: relative;
    z-index: 10;
}

.hero-section {
    text-align: center;
    margin-bottom: 44px;
}

.hero-badge-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 42, 133, 0.10);
    color: #FF2A85;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
}

.hero-main-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(32px, 5vw, 54px);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #FF2A85 0%, #8B2FC9 50%, #FF6B4A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto 24px;
    line-height: 1.55;
}

.btn-primary-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--btn-gradient);
    color: #FFFFFF;
    padding: 13px 28px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(233, 30, 99, 0.35);
    transition: all 0.25s ease;
}

.btn-primary-action:hover {
    background: var(--btn-gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(233, 30, 99, 0.45);
}

/* ========================================================
   ANNOUNCEMENT BANNER
   ======================================================== */
.announcement-box {
    background: var(--card-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 18px 24px;
    margin-bottom: 32px;
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.announcement-icon {
    font-size: 20px;
    color: #F59E0B;
    margin-top: 2px;
}

/* ========================================================
   IDEAS GRID & CARDS
   ======================================================== */
.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-heading-title {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--text-heading);
}

.ideas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.spark-card {
    background: var(--card-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--card-border);
    border-radius: 22px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
    box-shadow: var(--card-shadow);
    min-height: 260px;
}

.spark-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .spark-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.spark-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.status-badge-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 700;
}

.status-badge-chip.open {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}

[data-theme="dark"] .status-badge-chip.open {
    color: #34D399;
}

.status-badge-chip.closed {
    background: rgba(148, 163, 184, 0.15);
    color: #64748B;
}

.spark-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 10px;
    line-height: 1.25;
}

.spark-card-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 18px;
    flex: 1;
}

.spark-card-deadline {
    font-size: 12.5px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
}

.vote-results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--input-bg);
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 12px;
}

.vote-actions-bar {
    display: flex;
    gap: 10px;
}

.btn-vote {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-vote i {
    display: inline-block;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-vote-pour {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}

[data-theme="dark"] .btn-vote-pour {
    background: rgba(16, 185, 129, 0.2);
    color: #34D399;
}

.btn-vote-pour:hover,
.btn-vote-pour.active-pour {
    background: #10B981 !important;
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4) !important;
}

.btn-vote-pour.active-pour i,
.btn-vote-pour.animate-pop i {
    animation: thumbPopGreen 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.btn-vote-contre {
    background: rgba(239, 68, 68, 0.12);
    color: #DC2626;
}

[data-theme="dark"] .btn-vote-contre {
    background: rgba(239, 68, 68, 0.2);
    color: #F87171;
}

.btn-vote-contre:hover,
.btn-vote-contre.active-contre {
    background: #EF4444 !important;
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4) !important;
}

.btn-vote-contre.active-contre i,
.btn-vote-contre.animate-shrink i {
    animation: thumbShrinkRed 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Animations Spécifiques des Pouces */
@keyframes thumbPopGreen {
    0% {
        transform: scale(1) rotate(0deg);
    }
    40% {
        transform: scale(1.5) rotate(-22deg);
    }
    70% {
        transform: scale(1.25) rotate(-12deg);
    }
    100% {
        transform: scale(1.15) rotate(-8deg);
    }
}

@keyframes thumbShrinkRed {
    0% {
        transform: scale(1) rotate(0deg);
    }
    40% {
        transform: scale(0.65) rotate(16deg) translateY(2px);
    }
    70% {
        transform: scale(0.78) rotate(8deg);
    }
    100% {
        transform: scale(0.85) rotate(4deg);
    }
}

/* ========================================================
   PROFESSIONAL COOKIE CONSENT BANNER (MOBILE & DESKTOP)
   ======================================================== */
.spark-cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    max-width: 400px;
    background: var(--card-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--card-border);
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    animation: cookieAppear 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.cookie-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 8px;
}

.cookie-header i {
    color: #FF2A85;
    font-size: 18px;
}

.cookie-text {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.45;
    margin-bottom: 16px;
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-cookie-accept {
    flex: 1;
    background: var(--btn-gradient);
    color: #FFFFFF;
    border: none;
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-cookie-accept:hover {
    background: var(--btn-gradient-hover);
    transform: translateY(-1px);
}

.btn-cookie-link {
    font-size: 12.5px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 12px;
}

.btn-cookie-link:hover {
    color: #FF2A85;
}

@keyframes cookieAppear {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive adjustments */
@media (max-width: 820px) {
    .main-nav-wrapper {
        top: 14px;
        padding: 0;
    }

    .minimal-navbar {
        width: 80% !important;
        max-width: 80% !important;
        border-radius: 100px !important;
        justify-content: space-around !important;
        padding: 6px 12px !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
    }

    .nav-pill-item {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 12px 6px !important;
    }

    .nav-pill-item span {
        display: none; /* Icon-only on mobile navbar for ultra compactness & clarity */
    }

    .nav-pill-item i {
        font-size: 20px !important;
    }

    .spark-cookie-banner {
        left: 16px;
        right: 16px;
        bottom: 16px;
        max-width: calc(100vw - 32px);
        padding: 16px 18px;
    }
}

/* ========================================================
   RESPONSIVE TELEPHONE (MOBILE)
   ======================================================== */
@media (max-width: 820px) {
    .centered-auth-page {
        min-height: 100vh;
        display: flex;
        align-items: center; /* Centrage vertical parfait */
        justify-content: center; /* Centrage horizontal parfait */
        padding: 30px 20px;
    }

    /* Masquer le gros filigrane texte en fond sur mobile */
    .bg-watermark-container {
        display: none !important;
    }

    /* Masquer les gros ronds encombrants sur mobile */
    .blob-left-huge,
    .blob-left-halo,
    .blob-left-middle,
    .blob-right-bottom,
    .blob-accent-1,
    .blob-accent-2 {
        display: none !important;
    }

    /* Conserver uniquement 2 ronds d'ambiance ultra discrets et doux dans les coins */
    .blob-right-top {
        display: block !important;
        width: 220px;
        height: 220px;
        top: -70px;
        right: -70px;
        opacity: 0.20;
        filter: blur(40px);
        box-shadow: none;
    }

    .blob-left-bottom-warm {
        display: block !important;
        width: 220px;
        height: 220px;
        bottom: -70px;
        left: -70px;
        opacity: 0.20;
        filter: blur(40px);
        box-shadow: none;
    }

    /* RETIRER LE CONTAINER DIRECTEMENT SUR MOBILE */
    .auth-centered-card {
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        max-width: 440px !important;
        width: 100% !important;
        margin: auto !important;
        animation: none;
    }

    /* Afficher le grand titre SPARK + slogan avec la bonne police et dégradé */
    .mobile-brand-top {
        display: block !important;
        margin-top: 10px;
        margin-bottom: 26px;
    }

    /* Masquer le titre générique sous les onglets pour éviter la redondance */
    .card-title {
        display: none !important;
    }

    .auth-mode-tabs {
        background: #F1F4F8;
        padding: 5px;
        border-radius: var(--radius-pill);
        margin-bottom: 22px;
    }

    [data-theme="dark"] .auth-mode-tabs {
        background: rgba(30, 41, 59, 0.85) !important;
    }

    .auth-mode-tab {
        font-size: 13px;
        padding: 10px 6px;
    }

    .custom-input {
        background: #F8FAFC;
        border: 1.5px solid #E2E8F0;
        padding: 15px 18px 15px 48px;
        font-size: 15px;
        border-radius: 14px;
    }

    .custom-input:focus {
        background: #FFFFFF;
        border-color: var(--primary-magenta);
    }

    .btn-submit-action {
        padding: 15px 20px;
        font-size: 14px;
    }
}

/* ========================================================
   TINDER-STYLE DISCOVER STAGE & SWIPE CARDS
   ======================================================== */
.discover-viewport {
    min-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    position: relative;
    z-index: 10;
}

.tinder-stage-container {
    width: 100%;
    max-width: 480px;
    min-height: 520px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.tinder-card {
    width: 100%;
    background: var(--card-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--card-border);
    border-radius: 28px;
    box-shadow: 0 25px 70px -15px rgba(0, 0, 0, 0.12), 0 0 1px rgba(255, 255, 255, 0.5);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 480px;
    position: relative;
    user-select: none;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

/* Author Row with Large Centered Profile Picture & No Separator */
.tinder-author-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 0;
    border-bottom: none !important;
}

[data-theme="light"] .tinder-author-header,
body:not([data-theme="dark"]) .tinder-author-header {
    border-bottom: none !important;
}

.tinder-author-avatar {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    object-fit: contain;
    border: 3px solid #FF2A85;
    box-shadow: none !important;
    margin-bottom: 12px;
    padding: 3px;
    flex-shrink: 0;
}

.tinder-author-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.tinder-author-name {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: var(--text-heading);
    line-height: 1.25;
    margin-bottom: 4px;
}

.tinder-author-meta {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Card Body Centered */
.tinder-body {
    flex: 1;
    margin-bottom: 24px;
    overflow-y: auto;
    max-height: 240px;
    padding: 0 8px;
    text-align: center;
}

.tinder-idea-title {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 10px;
    line-height: 1.3;
    text-align: center;
}

.tinder-idea-desc {
    font-size: 15px;
    color: var(--text-body);
    line-height: 1.6;
    word-break: break-word;
    text-align: center;
}

/* Swipe / Action Control Buttons : 2 Small subtle squares + Cross lower centered */
.tinder-controls-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-top: 10px;
}

.tinder-arrows-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 56px;
}

.tinder-btn-square {
    width: 56px;
    height: 56px;
    border-radius: 15px;
    border: none !important;
    box-shadow: none !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    transition: all 0.2s ease;
    outline: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.tinder-btn-square i {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 0 !important;
    vertical-align: 0 !important;
    width: 1em;
    height: 1em;
    pointer-events: none;
}

.tinder-btn-square.btn-down {
    color: #EF4444;
    background: rgba(239, 68, 68, 0.07);
}

.tinder-btn-square.btn-down i {
    transform: translateY(-5px);
    transition: transform 0.2s ease;
}

.tinder-btn-square.btn-down:hover {
    background: rgba(239, 68, 68, 0.18);
}

.tinder-btn-square.btn-down:hover i {
    transform: translateY(-3px);
}

.tinder-btn-square.btn-up {
    color: #10B981;
    background: rgba(16, 185, 129, 0.07);
}

.tinder-btn-square.btn-up i {
    transform: translateY(5px);
    transition: transform 0.2s ease;
}

.tinder-btn-square.btn-up:hover {
    background: rgba(16, 185, 129, 0.18);
}

.tinder-btn-square.btn-up:hover i {
    transform: translateY(3px);
}

.tinder-btn-skip-subtle {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: none !important;
    box-shadow: none !important;
    background: transparent;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.65;
    transition: all 0.2s ease;
    outline: none !important;
}

.tinder-btn-skip-subtle:hover {
    opacity: 1;
    color: var(--text-heading);
    background: var(--input-bg);
}

/* Animations de Swipe Addictives */
.swipe-vote-pour {
    transform: translate(140px, -30px) rotate(16deg) scale(0.92) !important;
    border-color: #10B981 !important;
    box-shadow: 0 0 50px rgba(16, 185, 129, 0.6) !important;
    opacity: 0 !important;
}

.swipe-vote-contre {
    transform: translate(-140px, 30px) rotate(-16deg) scale(0.92) !important;
    border-color: #EF4444 !important;
    box-shadow: 0 0 50px rgba(239, 68, 68, 0.6) !important;
    opacity: 0 !important;
}

.swipe-skip {
    transform: translateX(110px) scale(0.9) rotate(8deg) !important;
    opacity: 0 !important;
}

.swipe-enter {
    animation: cardEnter 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cardEnter {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ========================================================
   HORIZONTAL LEADERBOARD STRIPS (TOP 10 BANDES)
   ======================================================== */
.leaderboard-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 36px;
}

.leaderboard-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 18px 24px;
    position: relative;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    box-shadow: var(--card-shadow);
}

.leaderboard-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* Position 1 : Couronne dorée penchée dans le coin supérieur gauche */
.rank-crown-gold {
    position: absolute;
    top: -14px;
    left: -10px;
    font-size: 26px;
    color: #F59E0B;
    transform: rotate(-24deg);
    filter: drop-shadow(0 4px 10px rgba(245, 158, 11, 0.55));
    z-index: 10;
    animation: crownFloat 2.5s ease-in-out infinite alternate;
}

@keyframes crownFloat {
    from { transform: rotate(-24deg) translateY(0); }
    to { transform: rotate(-22deg) translateY(-3px); }
}

/* Podium Highlights */
.leaderboard-row.podium-1 {
    border-color: rgba(245, 158, 11, 0.60);
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.09) 0%, var(--card-bg) 40%);
    box-shadow: 0 12px 35px rgba(245, 158, 11, 0.14);
}

.leaderboard-row.podium-2 {
    border-color: rgba(148, 163, 184, 0.60);
    background: linear-gradient(90deg, rgba(148, 163, 184, 0.08) 0%, var(--card-bg) 40%);
    box-shadow: 0 10px 30px rgba(148, 163, 184, 0.12);
}

.leaderboard-row.podium-3 {
    border-color: rgba(217, 119, 6, 0.50);
    background: linear-gradient(90deg, rgba(217, 119, 6, 0.07) 0%, var(--card-bg) 40%);
    box-shadow: 0 10px 30px rgba(217, 119, 6, 0.10);
}

.rank-badge-box {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    border-radius: 14px;
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 900;
    color: var(--text-heading);
    background: var(--input-bg);
    flex-shrink: 0;
}

.podium-1 .rank-badge-box {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.podium-2 .rank-badge-box {
    background: linear-gradient(135deg, #94A3B8, #64748B);
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(148, 163, 184, 0.35);
}

.podium-3 .rank-badge-box {
    background: linear-gradient(135deg, #D97706, #B45309);
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.35);
}

.leaderboard-content {
    flex: 1;
    min-width: 0;
}

.leaderboard-title {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 4px;
    line-height: 1.25;
}

.leaderboard-desc {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}

.leaderboard-author-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12.5px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.leaderboard-actions-col {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Share Toast & Modal */
.spark-toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: #0F172A;
    color: #FFFFFF;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    font-size: 13.5px;
    font-weight: 700;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.spark-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.btn-share-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 42, 133, 0.12);
    color: #FF2A85;
    border: none;
    padding: 9px 18px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-share-trigger:hover {
    background: #FF2A85;
    color: #FFFFFF;
    transform: translateY(-1px);
}

@media (max-width: 820px) {
    .leaderboard-row {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px 16px;
        gap: 14px;
    }
    .leaderboard-actions-col {
        width: 100%;
        justify-content: space-between;
        padding-top: 10px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }
}




