/* ===== VARIABLES ET RESET ===== */
:root {
    /* Thème Nosedive modifié - Bleu Cyan */
    --bg-primary: #0a0a14;
    --bg-secondary: #12121f;
    --bg-card: #1c1c24;
    --bg-card-light: #24242e;
    --border-color: #3a3a4a;
    --border-hover: #00bcd4;
    --text-primary: #ffffff;
    --text-secondary: #b0b3b8;
    --text-muted: #8a8d91;
    
    /* Couleurs d'accent - Bleu Cyan */
    --accent-blue: #00bcd4;
    --accent-light: #4dd0e1;
    --accent-purple: #00acc1;
    --accent-pink: #ff2d55;
    --accent-green: #34c759;
    --accent-orange: #ff9500;
    --accent-gold: #ffd700;
    
    /* Gradients - Bleu Cyan */
    --gradient-primary: linear-gradient(135deg, #00bcd4 0%, #00acc1 100%);
    --gradient-secondary: linear-gradient(135deg, #007aff 0%, #00bcd4 100%);
    --gradient-success: linear-gradient(135deg, #34c759 0%, #00d4aa 100%);
    --gradient-danger: linear-gradient(135deg, #ff2d55 0%, #ff375f 100%);
    
    /* Ombres */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.25);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.3);
    
    /* Espacements */
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    
    /* Bordures */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-circle: 50%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== AJOUTS POUR PLEINE HAUTEUR ===== */
html, body {
    height: 100%;
    min-height: 100vh;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(0, 188, 212, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(0, 172, 193, 0.1) 0%, transparent 40%);
}

/* ===== FOND D'EMOJIS VOLANTS ===== */
.floating-emojis {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.emoji-float {
    position: absolute;
    font-size: 40px; /* Augmenté de 24px à 40px */
    opacity: 0.12; /* Réduit de 0.15 à 0.12 */
    animation: float linear infinite;
    z-index: 1;
    filter: drop-shadow(0 0 5px rgba(0, 188, 212, 0.3)); /* Ajout d'une ombre */
}

@keyframes float {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg) scale(0.8);
        opacity: 0;
    }
    10% {
        opacity: 0.12;
        transform: scale(1);
    }
    90% {
        opacity: 0.12;
        transform: scale(1);
    }
    100% {
        transform: translateY(-100px) translateX(100px) rotate(360deg) scale(0.8);
        opacity: 0;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes floatReaction { /* Nouvelle animation pour les réactions */
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) scale(0.5);
        opacity: 0;
    }
}

@keyframes floatUp {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) scale(0.5);
        opacity: 0;
    }
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.3); }
    28% { transform: scale(1); }
    42% { transform: scale(1.3); }
    70% { transform: scale(1); }
}

@keyframes scoreChange {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* ===== NAVIGATION RÉSEAU SOCIAL ===== */
.social-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(28, 28, 36, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: var(--spacing-sm) 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.nav-brand i {
    color: var(--accent-blue);
    font-size: 1.5rem;
}

.nav-brand h1 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-badge {
    background: var(--gradient-primary);
    color: white;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.nav-home-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.nav-home-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: var(--gradient-secondary);
}

.nav-home-btn i {
    font-size: 1rem;
}

.nav-home-btn span {
    white-space: nowrap;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-lg);
    transition: background 0.3s ease;
}

.user-profile:hover {
    background: rgba(255, 255, 255, 0.05);
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: var(--gradient-primary);
    border-radius: var(--radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 0.9rem;
    font-weight: 600;
}

.user-score {
    font-size: 0.8rem;
    color: var(--accent-gold);
    font-weight: 600;
}

/* ===== CONTENEUR PRINCIPAL ===== */
.container {
    display: flex;
    flex-direction: column;
    max-width: 800px;
    min-height: calc(100vh - 80px);
    margin: 80px auto var(--spacing-xl);
    padding: 0 var(--spacing-lg);
    position: relative;
    z-index: 2;
}

/* ===== INTRODUCTION ===== */
.introduction {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.8s ease-out;
}

.introduction h1 {
    font-family: 'Poppins', sans-serif;
    color: var(--text-primary);
    padding-bottom: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    border-bottom: 1px solid rgba(0, 188, 212, 0.3);
    font-size: 2.5em;
    font-weight: 800;
    text-align: center;
}

.introduction p {
    font-size: 1.1em;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.7;
    padding: var(--spacing-md);
    background: rgba(30, 30, 40, 0.6);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--accent-blue);
    transition: all 0.3s ease;
}

.introduction p:hover {
    transform: translateY(-2px);
    background: rgba(40, 40, 50, 0.7);
    border-left: 4px solid var(--accent-light);
}

/* ===== WIDGET DE SCORE ===== */
.score-widget {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    margin-bottom: var(--spacing-xl);
    overflow: hidden;
    animation: fadeIn 0.8s ease-out 0.2s both;
}

.score-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
    background: rgba(0, 188, 212, 0.1);
}

.score-header h3 {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.score-live {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--accent-green);
    font-weight: 600;
}

.score-live i {
    font-size: 0.6rem;
    animation: pulse 1s infinite;
}

.score-content {
    padding: var(--spacing-lg);
}

.score-display {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.score-main {
    margin-bottom: var(--spacing-md);
}

.score-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: var(--spacing-xs);
}

.score-value-container {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: var(--spacing-sm);
}

#valeur-score-actuel {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00bcd4, #4dd0e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    animation: scoreChange 0.5s ease;
}

.score-unit {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 600;
}

.score-change {
    font-size: 0.9rem;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    font-weight: 600;
    animation: fadeIn 0.5s ease-out;
}

.score-change.positive {
    background: rgba(52, 199, 89, 0.1);
    color: var(--accent-green);
}

.score-change.negative {
    background: rgba(255, 55, 95, 0.1);
    color: var(--accent-pink);
}

.score-progress {
    margin-top: var(--spacing-lg);
}

.progress-bar {
    height: 10px;
    background: var(--bg-primary);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: var(--spacing-xs);
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    width: 70%;
    border-radius: 5px;
    transition: width 0.5s ease;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===== CONTENEUR DE SWIPE ===== */
.swipe-container {
    flex: 1;
    position: relative;
    width: 100%;
    height: auto;
    min-height: 500px;
    margin-bottom: var(--spacing-xl);
    perspective: 1000px;
}

.swipe-card {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: transform 0.5s ease, opacity 0.5s ease;
    transform-style: preserve-3d;
    box-shadow: var(--shadow-xl);
    cursor: grab;
    user-select: none;
    min-height: 500px;
}

.swipe-card:active {
    cursor: grabbing;
}

.swipe-card.swipe-left {
    transform: translateX(-100%) rotate(-10deg);
    opacity: 0;
}

.swipe-card.swipe-right {
    transform: translateX(100%) rotate(10deg);
    opacity: 0;
}

.swipe-card.swipe-up {
    transform: translateY(-100%) scale(0.9);
    opacity: 0;
}

.swipe-indicator {
    position: absolute;
    top: 20px;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.swipe-like {
    right: 20px;
    background: rgba(52, 199, 89, 0.2);
    color: var(--accent-green);
    border: 2px solid var(--accent-green);
}

.swipe-dislike {
    left: 20px;
    background: rgba(255, 55, 95, 0.2);
    color: var(--accent-pink);
    border: 2px solid var(--accent-pink);
}

.swipe-instructions {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: var(--spacing-md);
    background: rgba(0, 0, 0, 0.5);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    animation: pulse 2s infinite;
}

/* ===== SCÈNES (POSTS RÉSEAU SOCIAL) ===== */
.scene-post {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.scene-header {
    display: flex;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
}

.scene-avatar {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: var(--radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: var(--spacing-md);
}

.scene-info {
    flex: 1;
}

.scene-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.scene-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.scene-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(247, 185, 40, 0.1);
    padding: 4px 8px;
    border-radius: var(--radius-md);
    font-weight: 600;
    color: var(--accent-gold);
}

.scene-rating i {
    font-size: 0.9rem;
}

.scene-frame {
    flex: 1;
    padding: var(--spacing-lg);
    overflow-y: auto;
}

.scene-frame h2 {
    font-family: 'Poppins', sans-serif;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.5rem;
}

.scene-frame h2 i {
    color: var(--accent-blue);
}

.scene-frame > p {
    font-size: 1.1em;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.7;
    padding: var(--spacing-md);
    background: rgba(35, 35, 45, 0.5);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--accent-purple);
}

/* ===== CHOIX ===== */
.choix-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
}

.choix {
    margin: 0;
}

.bouton-choix {
    background: rgba(40, 40, 50, 0.8);
    color: var(--text-secondary);
    cursor: pointer;
    border: 1px solid var(--border-color);
    padding: var(--spacing-md) var(--spacing-lg);
    width: 100%;
    text-align: left;
    border-radius: var(--radius-md);
    font-family: 'Inter', sans-serif;
    font-size: 1em;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    position: relative;
    overflow: hidden;
    min-height: 80px;
}

.bouton-choix:hover:not(:disabled):not(.choix-fait) {
    background: rgba(50, 50, 60, 0.9);
    border-color: var(--border-hover);
    transform: translateY(-2px) translateX(5px);
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
}

.bouton-choix:disabled {
    background: rgba(30, 30, 40, 0.5);
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.6;
    transform: none !important;
}

.choix-fait {
    background: rgba(0, 188, 212, 0.15);
    border: 1px solid rgba(0, 188, 212, 0.5);
    color: var(--accent-light);
    position: relative;
}

.choix-fait::before {
    content: '✓';
    position: absolute;
    right: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent-green);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: var(--radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.choice-icon {
    width: 40px;
    height: 40px;
    background: rgba(0, 188, 212, 0.1);
    border-radius: var(--radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--accent-blue);
    flex-shrink: 0;
}

.choice-content {
    flex: 1;
}

.choice-content h4 {
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.choice-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.choice-stats {
    display: flex;
    gap: var(--spacing-lg);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ===== RÉACTIONS EMOJIS ===== */
.reactions-container {
    padding: var(--spacing-md) var(--spacing-lg);
    border-top: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
    position: relative;
}

.reactions-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.reaction-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: var(--spacing-xs);
    border-radius: var(--radius-circle);
    transition: all 0.3s ease;
    position: relative;
}

.reaction-btn:hover {
    transform: scale(1.3);
    background: rgba(255, 255, 255, 0.1);
}

.reaction-btn.active {
    transform: scale(1.3);
    animation: heartBeat 0.8s ease;
}

.reaction-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent-pink);
    color: white;
    font-size: 0.7rem;
    min-width: 20px;
    height: 20px;
    border-radius: var(--radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.reaction-stats {
    margin-top: var(--spacing-sm);
    padding-top: var(--spacing-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===== SCÈNE FINALE ===== */
.final-scene {
    text-align: center;
    padding: var(--spacing-xl) !important;
}

.final-header {
    margin-bottom: var(--spacing-xl);
}

.final-header h2 {
    justify-content: center;
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
}

.final-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.final-score-display {
    padding: var(--spacing-xl);
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-color);
}

.final-score-value {
    margin-bottom: var(--spacing-xl);
}

.final-score-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: var(--spacing-md) 0;
    animation: pulse 2s infinite;
}

.score-rating {
    font-size: 2rem;
    color: var(--accent-gold);
    letter-spacing: 4px;
}

/* ===== CHAT FLOTTANT ===== */
.floating-chat {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-xl);
    z-index: 1000;
    overflow: hidden;
    animation: slideInRight 0.5s ease-out;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    background: #00bcd4;
    color: white;
}

.chat-header h4 {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.chat-toggle {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 0.9rem;
}

.chat-body {
    height: 250px;
    overflow-y: auto;
    padding: var(--spacing-md);
}

.chat-message {
    display: flex;
    margin-bottom: var(--spacing-md);
}

.message-avatar {
    width: 30px;
    height: 30px;
    background: var(--gradient-primary);
    border-radius: var(--radius-circle);
    margin-right: var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
}

.message-content {
    flex: 1;
}

.message-author {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-blue);
    display: block;
    margin-bottom: 2px;
}

.message-content p {
    font-size: 0.85rem;
    background: var(--bg-card-light);
    padding: 8px 12px;
    border-radius: var(--radius-md);
    display: inline-block;
    max-width: 100%;
}

/* ===== NOTIFICATIONS ===== */
#notification-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.notification {
    background: var(--bg-card);
    border-left: 4px solid var(--accent-blue);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    width: 300px;
    box-shadow: var(--shadow-lg);
    animation: slideInRight 0.3s ease-out;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.notification i {
    font-size: 1.2rem;
    color: var(--accent-blue);
}

.notification-content {
    flex: 1;
}

.notification-content h4 {
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.notification-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.notification.success {
    border-left-color: var(--accent-green);
}

.notification.success i {
    color: var(--accent-green);
}

.notification.error {
    border-left-color: var(--accent-pink);
}

.notification.error i {
    color: var(--accent-pink);
}

/* ===== BOUTONS DE NAVIGATION ===== */
.nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: var(--spacing-lg);
    padding: 0 var(--spacing-lg) var(--spacing-lg);
}

.nav-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    transition: all 0.3s ease;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.nav-btn:disabled {
    background: var(--border-color);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ===== FEEDBACK MESSAGE ===== */
.feedback-message {
    background: rgba(30, 30, 40, 0.9);
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
    border-left: 4px solid #00bcd4;
    animation: fadeIn 0.5s ease-out;
}

.feedback-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.feedback-header i {
    color: #00bcd4;
}

.feedback-header h4 {
    font-size: 1rem;
    color: #fff;
}

.feedback-message p {
    color: #b0b3b8;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.feedback-score {
    margin-top: 8px;
    font-weight: 600;
    font-size: 1.1rem;
}

.score-up {
    color: #34c759;
    background: rgba(52, 199, 89, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
}

.score-down {
    color: #ff2d55;
    background: rgba(255, 45, 85, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
}

/* ===== SCROLLBAR PERSONNALISÉE ===== */
.scene-frame::-webkit-scrollbar {
    width: 8px;
}

.scene-frame::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.scene-frame::-webkit-scrollbar-thumb {
    background: var(--accent-blue);
    border-radius: 4px;
}

.scene-frame::-webkit-scrollbar-thumb:hover {
    background: var(--accent-light);
}

/* ===== CLASSES UTILITAIRES ===== */
.cache {
    display: none !important;
}

.visible {
    display: block !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-md);
        margin-top: 70px;
        min-height: calc(100vh - 70px);
    }
    
    .introduction h1 {
        font-size: 2em;
    }
    
    .scene-frame h2 {
        font-size: 1.3rem;
    }
    
    #valeur-score-actuel {
        font-size: 2.5rem;
    }
    
    .final-score-number {
        font-size: 3rem;
    }
    
    .floating-chat {
        display: none;
    }
    
    .swipe-container {
        min-height: 600px;
    }
    
    .swipe-card {
        min-height: 600px;
    }
    
    .nav-home-btn span {
        display: none;
    }
    
    .nav-home-btn {
        padding: var(--spacing-xs) var(--spacing-sm);
    }
    
    .nav-home-btn i {
        font-size: 1.2rem;
        margin: 0;
    }
    
    .final-housing-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .introduction,
    .scene-frame,
    .score-content {
        padding: var(--spacing-md);
    }
    
    .bouton-choix {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
        min-height: 100px;
    }
    
    .choice-icon {
        margin-bottom: var(--spacing-sm);
    }
    
    .nav-container {
        padding: 0 var(--spacing-sm);
    }
    
    .nav-brand h1 {
        font-size: 1.2rem;
    }
    
    .nav-user {
        gap: var(--spacing-sm);
    }
    
    .swipe-container {
        min-height: 650px;
    }
    
    .swipe-card {
        min-height: 650px;
    }
}<style>
    /* ===== VARIABLES ET RESET ===== */
    :root {
        /* Thème Nosedive modifié - Bleu Cyan */
        --bg-primary: #0a0a14;
        --bg-secondary: #12121f;
        --bg-card: #1c1c24;
        --bg-card-light: #24242e;
        --border-color: #3a3a4a;
        --border-hover: #00bcd4;
        --text-primary: #ffffff;
        --text-secondary: #b0b3b8;
        --text-muted: #8a8d91;
        
        /* Couleurs d'accent - Bleu Cyan */
        --accent-blue: #00bcd4;
        --accent-light: #4dd0e1;
        --accent-purple: #00acc1;
        --accent-pink: #ff2d55;
        --accent-green: #34c759;
        --accent-orange: #ff9500;
        --accent-gold: #ffd700;
        
        /* Gradients - Bleu Cyan */
        --gradient-primary: linear-gradient(135deg, #00bcd4 0%, #00acc1 100%);
        --gradient-secondary: linear-gradient(135deg, #007aff 0%, #00bcd4 100%);
        --gradient-success: linear-gradient(135deg, #34c759 0%, #00d4aa 100%);
        --gradient-danger: linear-gradient(135deg, #ff2d55 0%, #ff375f 100%);
        
        /* Ombres */
        --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
        --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
        --shadow-lg: 0 8px 30px rgba(0,0,0,0.25);
        --shadow-xl: 0 20px 60px rgba(0,0,0,0.3);
        
        /* Espacements */
        --spacing-xs: 8px;
        --spacing-sm: 12px;
        --spacing-md: 16px;
        --spacing-lg: 24px;
        --spacing-xl: 32px;
        
        /* Bordures */
        --radius-sm: 8px;
        --radius-md: 12px;
        --radius-lg: 16px;
        --radius-xl: 20px;
        --radius-circle: 50%;
    }

    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    /* ===== AJOUTS POUR PLEINE HAUTEUR ===== */
    html, body {
        height: 100%;
        min-height: 100vh;
    }

    body {
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
        background: var(--bg-primary);
        color: var(--text-primary);
        line-height: 1.6;
        overflow-x: hidden;
        min-height: 100vh;
        position: relative;
        background-image: 
            radial-gradient(circle at 20% 80%, rgba(0, 188, 212, 0.15) 0%, transparent 40%),
            radial-gradient(circle at 80% 20%, rgba(0, 172, 193, 0.1) 0%, transparent 40%);
    }

    /* ===== FOND D'EMOJIS VOLANTS ===== */
    .floating-emojis {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        z-index: 1;
        overflow: hidden;
    }

    .emoji-float {
        position: absolute;
        font-size: 24px;
        opacity: 0.15;
        animation: float linear infinite;
        z-index: 1;
    }

    @keyframes float {
        0% {
            transform: translateY(100vh) translateX(0) rotate(0deg);
            opacity: 0;
        }
        10% {
            opacity: 0.15;
        }
        90% {
            opacity: 0.15;
        }
        100% {
            transform: translateY(-100px) translateX(100px) rotate(360deg);
            opacity: 0;
        }
    }

    /* ===== ANIMATIONS ===== */
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    @keyframes slideInRight {
        from { opacity: 0; transform: translateX(30px); }
        to { opacity: 1; transform: translateX(0); }
    }

    @keyframes slideInUp {
        from { opacity: 0; transform: translateY(30px); }
        to { opacity: 1; transform: translateY(0); }
    }

    @keyframes pulse {
        0%, 100% { transform: scale(1); }
        50% { transform: scale(1.05); }
    }

    @keyframes bounce {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-5px); }
    }

    @keyframes shake {
        0%, 100% { transform: translateX(0); }
        25% { transform: translateX(-5px); }
        75% { transform: translateX(5px); }
    }

    @keyframes floatUp {
        0% {
            transform: translateY(0) scale(1);
            opacity: 1;
        }
        100% {
            transform: translateY(-100px) scale(0.5);
            opacity: 0;
        }
    }

    @keyframes heartBeat {
        0% { transform: scale(1); }
        14% { transform: scale(1.3); }
        28% { transform: scale(1); }
        42% { transform: scale(1.3); }
        70% { transform: scale(1); }
    }

    @keyframes scoreChange {
        0% { transform: scale(1); }
        50% { transform: scale(1.3); }
        100% { transform: scale(1); }
    }

    /* ===== NAVIGATION RÉSEAU SOCIAL ===== */
    .social-navbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: rgba(28, 28, 36, 0.95);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border-color);
        z-index: 1000;
        padding: var(--spacing-sm) 0;
    }

    .nav-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 var(--spacing-lg);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .nav-brand {
        display: flex;
        align-items: center;
        gap: var(--spacing-sm);
    }

    .nav-brand i {
        color: var(--accent-blue);
        font-size: 1.5rem;
    }

    .nav-brand h1 {
        font-family: 'Orbitron', sans-serif;
        font-weight: 700;
        font-size: 1.5rem;
        background: var(--gradient-primary);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .nav-badge {
        background: var(--gradient-primary);
        color: white;
        font-size: 0.7rem;
        padding: 2px 8px;
        border-radius: 12px;
        font-weight: 600;
    }

    .nav-user {
        display: flex;
        align-items: center;
        gap: var(--spacing-md);
    }

    .nav-home-btn {
        display: flex;
        align-items: center;
        gap: var(--spacing-sm);
        background: var(--gradient-primary);
        color: white;
        text-decoration: none;
        padding: var(--spacing-xs) var(--spacing-md);
        border-radius: var(--radius-md);
        font-weight: 600;
        font-size: 0.9rem;
        transition: all 0.3s ease;
        box-shadow: var(--shadow-sm);
    }

    .nav-home-btn:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
        background: var(--gradient-secondary);
    }

    .nav-home-btn i {
        font-size: 1rem;
    }

    .nav-home-btn span {
        white-space: nowrap;
    }

    .user-profile {
        display: flex;
        align-items: center;
        gap: var(--spacing-sm);
        cursor: pointer;
        padding: 4px 8px;
        border-radius: var(--radius-lg);
        transition: background 0.3s ease;
    }

    .user-profile:hover {
        background: rgba(255, 255, 255, 0.05);
    }

    .user-avatar {
        width: 36px;
        height: 36px;
        background: var(--gradient-primary);
        border-radius: var(--radius-circle);
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        color: white;
    }

    .user-info {
        display: flex;
        flex-direction: column;
    }

    .user-name {
        font-size: 0.9rem;
        font-weight: 600;
    }

    .user-score {
        font-size: 0.8rem;
        color: var(--accent-gold);
        font-weight: 600;
    }

    /* ===== CONTENEUR PRINCIPAL ===== */
    .container {
        display: flex;
        flex-direction: column;
        max-width: 800px;
        min-height: calc(100vh - 80px);
        margin: 80px auto var(--spacing-xl);
        padding: 0 var(--spacing-lg);
        position: relative;
        z-index: 2;
    }

    /* ===== INTRODUCTION ===== */
    .introduction {
        background: var(--bg-card);
        border-radius: var(--radius-lg);
        border: 1px solid var(--border-color);
        padding: var(--spacing-xl);
        margin-bottom: var(--spacing-xl);
        position: relative;
        overflow: hidden;
        animation: fadeIn 0.8s ease-out;
    }

    .introduction h1 {
        font-family: 'Poppins', sans-serif;
        color: var(--text-primary);
        padding-bottom: var(--spacing-md);
        margin-bottom: var(--spacing-lg);
        border-bottom: 1px solid rgba(0, 188, 212, 0.3);
        font-size: 2.5em;
        font-weight: 800;
        text-align: center;
    }

    .introduction p {
        font-size: 1.1em;
        color: var(--text-secondary);
        margin-bottom: var(--spacing-lg);
        line-height: 1.7;
        padding: var(--spacing-md);
        background: rgba(30, 30, 40, 0.6);
        border-radius: var(--radius-md);
        border-left: 4px solid var(--accent-blue);
        transition: all 0.3s ease;
    }

    .introduction p:hover {
        transform: translateY(-2px);
        background: rgba(40, 40, 50, 0.7);
        border-left: 4px solid var(--accent-light);
    }

    /* ===== WIDGET DE SCORE ===== */
    .score-widget {
        background: var(--bg-card);
        border-radius: var(--radius-lg);
        border: 1px solid var(--border-color);
        margin-bottom: var(--spacing-xl);
        overflow: hidden;
        animation: fadeIn 0.8s ease-out 0.2s both;
    }

    .score-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: var(--spacing-md) var(--spacing-lg);
        border-bottom: 1px solid var(--border-color);
        background: rgba(0, 188, 212, 0.1);
    }

    .score-header h3 {
        font-size: 1.1rem;
        display: flex;
        align-items: center;
        gap: var(--spacing-sm);
    }

    .score-live {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 0.8rem;
        color: var(--accent-green);
        font-weight: 600;
    }

    .score-live i {
        font-size: 0.6rem;
        animation: pulse 1s infinite;
    }

    .score-content {
        padding: var(--spacing-lg);
    }

    .score-display {
        text-align: center;
        margin-bottom: var(--spacing-lg);
    }

    .score-main {
        margin-bottom: var(--spacing-md);
    }

    .score-label {
        font-size: 0.9rem;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: 1px;
        display: block;
        margin-bottom: var(--spacing-xs);
    }

    .score-value-container {
        display: flex;
        align-items: baseline;
        justify-content: center;
        gap: 4px;
        margin-bottom: var(--spacing-sm);
    }

    #valeur-score-actuel {
        font-family: 'Orbitron', sans-serif;
        font-size: 3.5rem;
        font-weight: 800;
        background: linear-gradient(135deg, #00bcd4, #4dd0e1);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        line-height: 1;
        animation: scoreChange 0.5s ease;
    }

    .score-unit {
        font-size: 1.2rem;
        color: var(--text-muted);
        font-weight: 600;
    }

    .score-change {
        font-size: 0.9rem;
        padding: 4px 12px;
        border-radius: 20px;
        display: inline-block;
        font-weight: 600;
        animation: fadeIn 0.5s ease-out;
    }

    .score-change.positive {
        background: rgba(52, 199, 89, 0.1);
        color: var(--accent-green);
    }

    .score-change.negative {
        background: rgba(255, 55, 95, 0.1);
        color: var(--accent-pink);
    }

    .score-progress {
        margin-top: var(--spacing-lg);
    }

    .progress-bar {
        height: 10px;
        background: var(--bg-primary);
        border-radius: 5px;
        overflow: hidden;
        margin-bottom: var(--spacing-xs);
    }

    .progress-fill {
        height: 100%;
        background: var(--gradient-primary);
        width: 70%;
        border-radius: 5px;
        transition: width 0.5s ease;
    }

    .progress-labels {
        display: flex;
        justify-content: space-between;
        font-size: 0.8rem;
        color: var(--text-muted);
    }

    /* ===== CONTENEUR DE SWIPE ===== */
    .swipe-container {
        flex: 1;
        position: relative;
        width: 100%;
        height: auto;
        min-height: 500px;
        margin-bottom: var(--spacing-xl);
        perspective: 1000px;
    }

    .swipe-card {
        position: absolute;
        width: 100%;
        height: 100%;
        background: var(--bg-card);
        border-radius: var(--radius-lg);
        border: 1px solid var(--border-color);
        overflow: hidden;
        transition: transform 0.5s ease, opacity 0.5s ease;
        transform-style: preserve-3d;
        box-shadow: var(--shadow-xl);
        cursor: grab;
        user-select: none;
        min-height: 500px;
    }

    .swipe-card:active {
        cursor: grabbing;
    }

    .swipe-card.swipe-left {
        transform: translateX(-100%) rotate(-10deg);
        opacity: 0;
    }

    .swipe-card.swipe-right {
        transform: translateX(100%) rotate(10deg);
        opacity: 0;
    }

    .swipe-card.swipe-up {
        transform: translateY(-100%) scale(0.9);
        opacity: 0;
    }

    .swipe-indicator {
        position: absolute;
        top: 20px;
        padding: 8px 16px;
        border-radius: 20px;
        font-weight: 600;
        font-size: 0.9rem;
        z-index: 10;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .swipe-like {
        right: 20px;
        background: rgba(52, 199, 89, 0.2);
        color: var(--accent-green);
        border: 2px solid var(--accent-green);
    }

    .swipe-dislike {
        left: 20px;
        background: rgba(255, 55, 95, 0.2);
        color: var(--accent-pink);
        border: 2px solid var(--accent-pink);
    }

    .swipe-instructions {
        position: absolute;
        bottom: 20px;
        left: 0;
        right: 0;
        text-align: center;
        color: var(--text-muted);
        font-size: 0.9rem;
        padding: var(--spacing-md);
        background: rgba(0, 0, 0, 0.5);
        border-radius: var(--radius-lg);
        backdrop-filter: blur(10px);
        animation: pulse 2s infinite;
    }

    /* ===== SCÈNES (POSTS RÉSEAU SOCIAL) ===== */
    .scene-post {
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .scene-header {
        display: flex;
        align-items: center;
        padding: var(--spacing-md) var(--spacing-lg);
        border-bottom: 1px solid var(--border-color);
        background: rgba(255, 255, 255, 0.02);
    }

    .scene-avatar {
        width: 40px;
        height: 40px;
        background: var(--gradient-primary);
        border-radius: var(--radius-circle);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        margin-right: var(--spacing-md);
    }

    .scene-info {
        flex: 1;
    }

    .scene-info h4 {
        font-size: 0.95rem;
        font-weight: 600;
        margin-bottom: 2px;
    }

    .scene-time {
        font-size: 0.8rem;
        color: var(--text-muted);
    }

    .scene-rating {
        display: flex;
        align-items: center;
        gap: 4px;
        background: rgba(247, 185, 40, 0.1);
        padding: 4px 8px;
        border-radius: var(--radius-md);
        font-weight: 600;
        color: var(--accent-gold);
    }

    .scene-rating i {
        font-size: 0.9rem;
    }

    .scene-frame {
        flex: 1;
        padding: var(--spacing-lg);
        overflow-y: auto;
    }

    .scene-frame h2 {
        font-family: 'Poppins', sans-serif;
        color: var(--text-primary);
        margin-bottom: var(--spacing-md);
        display: flex;
        align-items: center;
        gap: var(--spacing-sm);
        font-size: 1.5rem;
    }

    .scene-frame h2 i {
        color: var(--accent-blue);
    }

    .scene-frame > p {
        font-size: 1.1em;
        color: var(--text-secondary);
        margin-bottom: var(--spacing-lg);
        line-height: 1.7;
        padding: var(--spacing-md);
        background: rgba(35, 35, 45, 0.5);
        border-radius: var(--radius-md);
        border-left: 4px solid var(--accent-purple);
    }

    /* ===== CHOIX ===== */
    .choix-container {
        display: grid;
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
        margin-top: var(--spacing-lg);
    }

    .choix {
        margin: 0;
    }

    .bouton-choix {
        background: rgba(40, 40, 50, 0.8);
        color: var(--text-secondary);
        cursor: pointer;
        border: 1px solid var(--border-color);
        padding: var(--spacing-md) var(--spacing-lg);
        width: 100%;
        text-align: left;
        border-radius: var(--radius-md);
        font-family: 'Inter', sans-serif;
        font-size: 1em;
        font-weight: 500;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        align-items: center;
        gap: var(--spacing-md);
        position: relative;
        overflow: hidden;
        min-height: 80px;
    }

    .bouton-choix:hover:not(:disabled):not(.choix-fait) {
        background: rgba(50, 50, 60, 0.9);
        border-color: var(--border-hover);
        transform: translateY(-2px) translateX(5px);
        color: var(--text-primary);
        box-shadow: var(--shadow-md);
    }

    .bouton-choix:disabled {
        background: rgba(30, 30, 40, 0.5);
        color: var(--text-muted);
        cursor: not-allowed;
        opacity: 0.6;
        transform: none !important;
    }

    .choix-fait {
        background: rgba(0, 188, 212, 0.15);
        border: 1px solid rgba(0, 188, 212, 0.5);
        color: var(--accent-light);
        position: relative;
    }

    .choix-fait::before {
        content: '✓';
        position: absolute;
        right: var(--spacing-md);
        top: 50%;
        transform: translateY(-50%);
        background: var(--accent-green);
        color: white;
        width: 24px;
        height: 24px;
        border-radius: var(--radius-circle);
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
    }

    .choice-icon {
        width: 40px;
        height: 40px;
        background: rgba(0, 188, 212, 0.1);
        border-radius: var(--radius-circle);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        color: var(--accent-blue);
        flex-shrink: 0;
    }

    .choice-content {
        flex: 1;
    }

    .choice-content h4 {
        font-size: 1rem;
        margin-bottom: 4px;
        color: var(--text-primary);
    }

    .choice-content p {
        font-size: 0.9rem;
        color: var(--text-secondary);
    }

    .choice-stats {
        display: flex;
        gap: var(--spacing-lg);
        font-size: 0.8rem;
        color: var(--text-muted);
    }

    .stat {
        display: flex;
        align-items: center;
        gap: 4px;
    }

    /* ===== RÉACTIONS EMOJIS ===== */
    .reactions-container {
        padding: var(--spacing-md) var(--spacing-lg);
        border-top: 1px solid var(--border-color);
        background: rgba(255, 255, 255, 0.02);
        position: relative;
    }

    .reactions-bar {
        display: flex;
        justify-content: space-around;
        align-items: center;
    }

    .reaction-btn {
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        padding: var(--spacing-xs);
        border-radius: var(--radius-circle);
        transition: all 0.3s ease;
        position: relative;
    }

    .reaction-btn:hover {
        transform: scale(1.3);
        background: rgba(255, 255, 255, 0.1);
    }

    .reaction-btn.active {
        transform: scale(1.3);
        animation: heartBeat 0.8s ease;
    }

    .reaction-count {
        position: absolute;
        top: -8px;
        right: -8px;
        background: var(--accent-pink);
        color: white;
        font-size: 0.7rem;
        min-width: 20px;
        height: 20px;
        border-radius: var(--radius-circle);
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
    }

    .reaction-stats {
        margin-top: var(--spacing-sm);
        padding-top: var(--spacing-sm);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
        justify-content: space-between;
        font-size: 0.8rem;
        color: var(--text-muted);
    }

    /* ===== SCÈNE FINALE ===== */
    .final-scene {
        text-align: center;
        padding: var(--spacing-xl) !important;
    }

    .final-header {
        margin-bottom: var(--spacing-xl);
    }

    .final-header h2 {
        justify-content: center;
        font-size: 2rem;
        margin-bottom: var(--spacing-md);
    }

    .final-header p {
        font-size: 1.2rem;
        color: var(--text-secondary);
    }

    .final-score-display {
        padding: var(--spacing-xl);
        background: rgba(255, 255, 255, 0.02);
        border-radius: var(--radius-lg);
        border: 2px solid var(--border-color);
    }

    .final-score-value {
        margin-bottom: var(--spacing-xl);
    }

    .final-score-number {
        font-family: 'Orbitron', sans-serif;
        font-size: 4rem;
        font-weight: 900;
        background: var(--gradient-primary);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        margin: var(--spacing-md) 0;
        animation: pulse 2s infinite;
    }

    .score-rating {
        font-size: 2rem;
        color: var(--accent-gold);
        letter-spacing: 4px;
    }

    /* ===== CHAT FLOTTANT ===== */
    .floating-chat {
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 300px;
        background: var(--bg-card);
        border-radius: var(--radius-lg);
        border: 1px solid var(--border-color);
        box-shadow: var(--shadow-xl);
        z-index: 1000;
        overflow: hidden;
        animation: slideInRight 0.5s ease-out;
    }

    .chat-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: var(--spacing-md);
        background: #00bcd4;
        color: white;
    }

    .chat-header h4 {
        font-size: 0.9rem;
        display: flex;
        align-items: center;
        gap: var(--spacing-sm);
    }

    .chat-toggle {
        background: none;
        border: none;
        color: white;
        cursor: pointer;
        font-size: 0.9rem;
    }

    .chat-body {
        height: 250px;
        overflow-y: auto;
        padding: var(--spacing-md);
    }

    .chat-message {
        display: flex;
        margin-bottom: var(--spacing-md);
    }

    .message-avatar {
        width: 30px;
        height: 30px;
        background: var(--gradient-primary);
        border-radius: var(--radius-circle);
        margin-right: var(--spacing-sm);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.8rem;
        font-weight: 600;
        color: white;
        flex-shrink: 0;
    }

    .message-content {
        flex: 1;
    }

    .message-author {
        font-size: 0.8rem;
        font-weight: 600;
        color: var(--accent-blue);
        display: block;
        margin-bottom: 2px;
    }

    .message-content p {
        font-size: 0.85rem;
        background: var(--bg-card-light);
        padding: 8px 12px;
        border-radius: var(--radius-md);
        display: inline-block;
        max-width: 100%;
    }

    /* ===== NOTIFICATIONS ===== */
    #notification-container {
        position: fixed;
        top: 80px;
        right: 20px;
        z-index: 2000;
        display: flex;
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .notification {
        background: var(--bg-card);
        border-left: 4px solid var(--accent-blue);
        border-radius: var(--radius-md);
        padding: var(--spacing-md);
        width: 300px;
        box-shadow: var(--shadow-lg);
        animation: slideInRight 0.3s ease-out;
        display: flex;
        align-items: center;
        gap: var(--spacing-sm);
    }

    .notification i {
        font-size: 1.2rem;
        color: var(--accent-blue);
    }

    .notification-content {
        flex: 1;
    }

    .notification-content h4 {
        font-size: 0.9rem;
        margin-bottom: 2px;
    }

    .notification-content p {
        font-size: 0.85rem;
        color: var(--text-secondary);
    }

    .notification.success {
        border-left-color: var(--accent-green);
    }

    .notification.success i {
        color: var(--accent-green);
    }

    .notification.error {
        border-left-color: var(--accent-pink);
    }

    .notification.error i {
        color: var(--accent-pink);
    }

    /* ===== BOUTONS DE NAVIGATION ===== */
    .nav-buttons {
        display: flex;
        justify-content: space-between;
        margin-top: var(--spacing-lg);
        padding: 0 var(--spacing-lg) var(--spacing-lg);
    }

    .nav-btn {
        background: var(--gradient-primary);
        color: white;
        border: none;
        padding: var(--spacing-md) var(--spacing-lg);
        border-radius: var(--radius-md);
        font-weight: 600;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: var(--spacing-sm);
        transition: all 0.3s ease;
    }

    .nav-btn:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

    .nav-btn:disabled {
        background: var(--border-color);
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

    /* ===== FEEDBACK MESSAGE ===== */
    .feedback-message {
        background: rgba(30, 30, 40, 0.9);
        border-radius: 12px;
        padding: 16px;
        margin-top: 16px;
        border-left: 4px solid #00bcd4;
        animation: fadeIn 0.5s ease-out;
    }

    .feedback-header {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 8px;
    }

    .feedback-header i {
        color: #00bcd4;
    }

    .feedback-header h4 {
        font-size: 1rem;
        color: #fff;
    }

    .feedback-message p {
        color: #b0b3b8;
        margin-bottom: 8px;
        font-size: 0.95rem;
    }

    .feedback-score {
        margin-top: 8px;
        font-weight: 600;
        font-size: 1.1rem;
    }

    .score-up {
        color: #34c759;
        background: rgba(52, 199, 89, 0.1);
        padding: 4px 12px;
        border-radius: 20px;
        display: inline-block;
    }

    .score-down {
        color: #ff2d55;
        background: rgba(255, 45, 85, 0.1);
        padding: 4px 12px;
        border-radius: 20px;
        display: inline-block;
    }

    /* ===== SCROLLBAR PERSONNALISÉE ===== */
    .scene-frame::-webkit-scrollbar {
        width: 8px;
    }

    .scene-frame::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 4px;
    }

    .scene-frame::-webkit-scrollbar-thumb {
        background: var(--accent-blue);
        border-radius: 4px;
    }

    .scene-frame::-webkit-scrollbar-thumb:hover {
        background: var(--accent-light);
    }

    /* ===== CLASSES UTILITAIRES ===== */
    .cache {
        display: none !important;
    }

    .visible {
        display: block !important;
    }

    /* ===== RESPONSIVE ===== */
    @media (max-width: 768px) {
        .container {
            padding: 0 var(--spacing-md);
            margin-top: 70px;
            min-height: calc(100vh - 70px);
        }
        
        .introduction h1 {
            font-size: 2em;
        }
        
        .scene-frame h2 {
            font-size: 1.3rem;
        }
        
        #valeur-score-actuel {
            font-size: 2.5rem;
        }
        
        .final-score-number {
            font-size: 3rem;
        }
        
        .floating-chat {
            display: none;
        }
        
        .swipe-container {
            min-height: 600px;
        }
        
        .swipe-card {
            min-height: 600px;
        }
        
        .nav-home-btn span {
            display: none;
        }
        
        .nav-home-btn {
            padding: var(--spacing-xs) var(--spacing-sm);
        }
        
        .nav-home-btn i {
            font-size: 1.2rem;
            margin: 0;
        }
        
        .final-housing-cards {
            grid-template-columns: 1fr;
        }
    }

    @media (max-width: 480px) {
        .container {
            padding: 0 var(--spacing-sm);
        }
        
        .introduction,
        .scene-frame,
        .score-content {
            padding: var(--spacing-md);
        }
        
        .bouton-choix {
            flex-direction: column;
            align-items: flex-start;
            gap: var(--spacing-sm);
            min-height: 100px;
        }
        
        .choice-icon {
            margin-bottom: var(--spacing-sm);
        }
        
        .nav-container {
            padding: 0 var(--spacing-sm);
        }
        
        .nav-brand h1 {
            font-size: 1.2rem;
        }
        
        .nav-user {
            gap: var(--spacing-sm);
        }
        
        .swipe-container {
            min-height: 650px;
        }
        
        .swipe-card {
            min-height: 650px;
        }
        
        .choix-container {
            gap: var(--spacing-xs);
        }
    }

    /* Styles pour les appartements améliorés (garder les styles existants) */
    .final-housing-cards {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
        margin: 30px 0;
    }
    
    .housing-card {
        background: white;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        cursor: pointer;
        border: 3px solid transparent;
        position: relative;
    }
    
    .housing-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    }
    
    .housing-card.selected {
        border-color: #00bcd4;
        box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.2);
    }
    
    .housing-card.locked {
        opacity: 0.6;
        filter: grayscale(0.5);
        cursor: not-allowed;
    }
    
    .housing-image {
        height: 180px;
        width: 100%;
        background-size: cover;
        background-position: center;
        position: relative;
    }
    
    .housing-image::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.4) 100%);
    }
    
    .housing-badge {
        position: absolute;
        top: 15px;
        right: 15px;
        background: rgba(0,0,0,0.8);
        color: white;
        padding: 6px 12px;
        border-radius: 20px;
        font-size: 0.8rem;
        font-weight: 600;
        z-index: 2;
    }
    
    .housing-content {
        padding: 20px;
    }
    
    .housing-title {
        font-size: 1.2rem;
        font-weight: 700;
        margin-bottom: 8px;
        color: #1a1a2e;
    }
    
    .housing-description {
        color: #666;
        font-size: 0.9rem;
        margin-bottom: 15px;
        line-height: 1.5;
    }
    
    .housing-features {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 15px;
    }
    
    .housing-feature {
        display: flex;
        align-items: center;
        gap: 5px;
        background: #f8f9fa;
        padding: 5px 10px;
        border-radius: 20px;
        font-size: 0.8rem;
        color: #555;
    }
    
    .housing-feature i {
        color: #00bcd4;
    }
    
    .housing-status {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-top: 15px;
        border-top: 1px solid #eee;
    }
    
    .housing-score-required {
        font-weight: 600;
        color: #555;
        font-size: 0.9rem;
    }
    
    .housing-score-required.locked {
        color: #ff3b30;
    }
    
    .housing-score-required.unlocked {
        color: #34c759;
    }
    
    .housing-select-btn {
        background: #00bcd4;
        color: white;
        border: none;
        padding: 8px 16px;
        border-radius: 8px;
        font-weight: 600;
        cursor: pointer;
        transition: background 0.3s;
    }
    
    .housing-select-btn:hover {
        background: #00acc1;
    }
    
    .housing-select-btn:disabled {
        background: #ccc;
        cursor: not-allowed;
    }
    
    .final-result-message {
        background: linear-gradient(135deg, #00bcd4, #34c759);
        color: white;
        padding: 25px;
        border-radius: 16px;
        margin: 30px 0;
        text-align: center;
        animation: pulse 2s infinite;
    }
    
    .final-result-message h3 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    
    .final-result-message p {
        font-size: 1.1rem;
        opacity: 0.9;
    }
    
    .final-actions {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin-top: 30px;
    }
    
    .final-home-btn {
        background: #1a1a2e;
        color: white;
        padding: 15px 30px;
        border-radius: 12px;
        text-decoration: none;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 10px;
        transition: all 0.3s;
    }
    
    .final-home-btn:hover {
        background: #2a2a3e;
        transform: translateY(-3px);
    }
    
    .restart-btn {
        background: #ff9500;
        color: white;
        padding: 15px 30px;
        border-radius: 12px;
        border: none;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 10px;
        cursor: pointer;
        transition: all 0.3s;
    }
    
    .restart-btn:hover {
        background: #ffa726;
        transform: translateY(-3px);
    }
</style>