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

/* ========================================
   SYSTÈME DE THÈMES - "La Chambre de Rêve"
   ======================================== */

:root {
    /* Couleurs de base (défaut) */
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --bg-tertiary: #0f3460;
    --text-primary: #eaeaea;
    --text-secondary: #b8b8b8;
    --accent-primary: #4a90e2;
    --accent-secondary: #4a90e2;
    --accent-green: #2ecc71;
    --accent-red: #e74c3c;
    --message-user: var(--accent-primary);
    --message-bot: #2c3e50;
    --border-color: #2c3e50;
    --glow-color: var(--accent-primary);
    --glow-intensity: 0;

    /* Compat avec ancien code */
    --accent-blue: var(--accent-primary);
}

/* ========================================
   THÈME ZEN 🧘 - Forêt Nocturne
   Calme, nature, respiration
   ======================================== */
[data-theme="zen"] {
    --bg-primary: #0d1f1c;
    --bg-secondary: #142824;
    --bg-tertiary: #1a3530;
    --text-primary: #d4e5e0;
    --text-secondary: #8faba3;
    --accent-primary: #4ecdc4;
    --accent-secondary: #45b7aa;
    --accent-green: #6bcb77;
    --accent-red: #ff6b6b;
    --message-bot: #1e3d38;
    --border-color: #2a4a44;
    --glow-color: #4ecdc4;
}

/* Zen Subtle */
[data-theme="zen"][data-intensity="subtle"] {
    --bg-primary: #111f1c;
    --bg-secondary: #182925;
    --accent-primary: #3db3ab;
    --glow-intensity: 0;
}

/* Zen Intense */
[data-theme="zen"][data-intensity="intense"] {
    --accent-primary: #5df5e8;
    --accent-secondary: #4de8db;
    --glow-intensity: 15px;
}

/* ========================================
   THÈME GAMER 🎮 - Néon Cyberpunk
   Énergique, vibrant, gaming
   ======================================== */
[data-theme="gamer"] {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a25;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --accent-primary: #b537f2;
    --accent-secondary: #00d4ff;
    --accent-green: #00ff88;
    --accent-red: #ff3366;
    --message-bot: #1e1e2a;
    --border-color: #2a2a3a;
    --glow-color: #b537f2;
}

/* Gamer Subtle */
[data-theme="gamer"][data-intensity="subtle"] {
    --bg-primary: #0d0d12;
    --accent-primary: #9932cc;
    --accent-secondary: #00b8d9;
    --glow-intensity: 0;
}

/* Gamer Intense - FULL NEON */
[data-theme="gamer"][data-intensity="intense"] {
    --accent-primary: #d946ef;
    --accent-secondary: #22d3ee;
    --glow-intensity: 20px;
}

/* ========================================
   THÈME PROTECTEUR 🛡️ - Chambre Cozy
   Chaleureux, rassurant, sécurisant
   ======================================== */
[data-theme="protecteur"] {
    --bg-primary: #1a1510;
    --bg-secondary: #231d15;
    --bg-tertiary: #2d251b;
    --text-primary: #f5e6d3;
    --text-secondary: #b8a690;
    --accent-primary: #ff9f43;
    --accent-secondary: #feca57;
    --accent-green: #78e08f;
    --accent-red: #fc5c65;
    --message-bot: #2d2519;
    --border-color: #3d3225;
    --glow-color: #ff9f43;
}

/* Protecteur Subtle */
[data-theme="protecteur"][data-intensity="subtle"] {
    --bg-primary: #1d1812;
    --accent-primary: #e8913d;
    --glow-intensity: 0;
}

/* Protecteur Intense - Feu de camp */
[data-theme="protecteur"][data-intensity="intense"] {
    --accent-primary: #ffb347;
    --accent-secondary: #ffe066;
    --glow-intensity: 18px;
}

/* ========================================
   EFFETS GLOW (selon intensité)
   ======================================== */
[data-intensity="intense"] .btn-primary,
[data-intensity="intense"] .btn-send {
    box-shadow: 0 0 var(--glow-intensity) var(--glow-color),
                0 0 calc(var(--glow-intensity) * 2) var(--glow-color);
}

[data-intensity="intense"] .chat-header h2 {
    text-shadow: 0 0 10px var(--glow-color);
}

[data-intensity="intense"] h1 {
    text-shadow: 0 0 20px var(--glow-color),
                 0 0 40px var(--glow-color);
}

[data-intensity="intense"] .message.user {
    box-shadow: 0 0 15px color-mix(in srgb, var(--accent-primary) 50%, transparent);
}

[data-intensity="intense"] input:focus,
[data-intensity="intense"] #message-input:focus {
    box-shadow: 0 0 10px var(--glow-color);
}

/* Animation subtile pour le glow en mode intense */
@keyframes glow-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

[data-intensity="intense"] .btn-primary,
[data-intensity="intense"] .btn-send {
    animation: glow-pulse 2s ease-in-out infinite;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.page {
    display: none;
}

.page.active {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

/* Login page needs scroll when recovery form is visible */
#login-page .container {
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    padding-top: max(2rem, env(safe-area-inset-top));
}

.container {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--accent-blue);
}

.subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* ========================================
   LOGO LOGIN - Libellule avec Glow
   ======================================== */
.login-logo-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.5rem;
    /* Le glow peut déborder */
    overflow: visible;
    z-index: 10;
}

.login-logo {
    width: 180px;
    height: auto;
    /* Compense le glow pour centrer visuellement la luciole */
    /* Le glow est surtout en bas, donc on descend l'image */
    transform: translateY(20%);
    /* Le glow déborde par-dessus tout */
    position: relative;
    z-index: 10;
    /* Animation subtile */
    animation: logo-float 4s ease-in-out infinite;
}

@keyframes logo-float {
    0%, 100% {
        transform: translateY(20%);
    }
    50% {
        transform: translateY(17%);
    }
}

/* Version plus petite sur mobile */
@media (max-width: 400px) {
    .login-logo {
        width: 140px;
    }
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 0.875rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn {
    flex: 1;
    padding: 0.875rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
}

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

.btn-primary {
    background: var(--accent-blue);
    color: white;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
}

.btn-magic {
    background: linear-gradient(135deg, #b537f2, #00d4ff, #ff3366);
    background-size: 200% 200%;
    color: white;
    border: none;
    animation: magic-gradient 3s ease infinite;
    font-weight: bold;
}

.btn-magic:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(181, 55, 242, 0.5);
}

@keyframes magic-gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Remix Style Selector Modal */
.remix-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.remix-modal-content {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.remix-styles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin: 0.5rem 0;
}

.remix-styles-grid.remix-simple {
    grid-template-columns: repeat(3, 1fr);
}

.remix-style-option {
    background: var(--bg-tertiary);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.remix-style-option:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.remix-style-option.selected {
    border-color: var(--accent-color);
    background: rgba(var(--accent-color-rgb), 0.1);
}

.remix-style-emoji {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.remix-style-name {
    font-weight: 600;
    color: var(--text-primary);
}

.remix-style-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.remix-loading {
    text-align: center;
    padding: 2rem;
}

.remix-loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--bg-tertiary);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.remix-result {
    text-align: center;
}

.remix-result img {
    max-width: 100%;
    border-radius: 12px;
    margin: 1rem 0;
}

.radio-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.radio-option {
    flex: 1;
    min-width: 150px;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.radio-option:hover {
    border-color: var(--accent-blue);
    transform: translateX(5px);
}

.radio-option input[type="radio"] {
    margin-top: 0.25rem;
    cursor: pointer;
    flex-shrink: 0;
}

.radio-option input[type="radio"]:checked ~ div {
    color: var(--accent-blue);
}

.radio-option input[type="radio"]:checked ~ div strong {
    color: var(--accent-blue);
    font-weight: 600;
}

.radio-option:has(input[type="radio"]:checked) {
    border-color: var(--accent-blue);
    background: var(--bg-tertiary);
}

.recovery-phrase {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border: 2px solid var(--accent-green);
    border-radius: 12px;
    text-align: center;
}

.recovery-phrase p {
    margin-bottom: 1rem;
}

.phrase-text {
    font-family: monospace;
    font-size: 1.1rem;
    color: var(--accent-green);
    background: var(--bg-tertiary);
    padding: 1rem;
    border-radius: 8px;
    word-break: break-all;
    margin: 1rem 0;
    display: block;
}

.phrase-text {
    font-family: monospace;
    font-size: 1rem;
    color: var(--accent-green);
    word-break: break-word;
}

.error-message {
    margin-top: 1rem;
    padding: 0.875rem;
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid var(--accent-red);
    border-radius: 8px;
    color: var(--accent-red);
    text-align: center;
}

.hidden {
    display: none !important;
}

/* Chat Page */
.chat-header {
    background: var(--bg-secondary);
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 10;
    flex-shrink: 0; /* Empêcher le header de rétrécir */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h2 {
    font-size: 1.5rem;
    color: var(--accent-blue);
    margin: 0;
}

.header-buttons {
    display: flex;
    gap: 0.5rem;
}

.header-btn {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s;
    min-width: 40px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-btn:hover {
    background: var(--bg-tertiary);
    transform: scale(1.1);
}

.header-btn.active {
    background: var(--accent-blue);
    opacity: 1 !important;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease-out;
}

.modal.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

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

/* Custom Alert/Confirm/Prompt */
.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    animation: fadeIn 0.2s ease-out;
}

.custom-modal.hidden {
    display: none;
}

.custom-modal-content {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease-out;
}

.custom-modal-content h3 {
    color: var(--accent-blue);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.custom-modal-content p {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.custom-modal-input {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.custom-modal-input:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.custom-modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.custom-modal-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.custom-modal-btn-primary {
    background: var(--accent-blue);
    color: white;
}

.custom-modal-btn-primary:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.custom-modal-btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.custom-modal-btn-secondary:hover {
    background: var(--border-color);
}

.modal-content h2 {
    color: var(--accent-blue);
    margin-bottom: 1rem;
}

.resource-item {
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--accent-green);
}

.resource-item strong {
    color: var(--accent-blue);
    display: block;
    margin-bottom: 0.5rem;
}

.resource-item a {
    color: var(--accent-green);
    text-decoration: none;
}

.resource-item a:hover {
    text-decoration: underline;
}

.messages-container {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    scroll-behavior: smooth;
    /* S'assurer que le conteneur peut scroller */
    min-height: 0;
    /* Forcer une hauteur pour que le scroll fonctionne */
    height: 0; /* Nécessaire pour flex: 1 */
    max-height: 100%;
}

.messages {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    max-width: 75%;
    padding: 0.875rem 1rem;
    border-radius: 12px;
    word-wrap: break-word;
    animation: slideIn 0.3s ease-out;
}

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

.message.user {
    align-self: flex-end;
    background: var(--message-user);
    color: white;
    border-bottom-right-radius: 4px;
}

.message.bot {
    align-self: flex-start;
    background: var(--message-bot);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}

/* Follow-up message - relance intelligente après silence */
.message.bot.follow-up-message {
    animation: followUpFadeIn 0.8s ease-out;
    opacity: 0.9;
}

@keyframes followUpFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 0.9;
        transform: translateY(0);
    }
}

/* Correction message - Sentinel V6 auto-correction */
.message.assistant.correction-message {
    animation: correctionSlideIn 0.6s ease-out;
    border-left: 2px solid var(--accent-secondary);
    opacity: 0.95;
}

@keyframes correctionSlideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 0.95;
        transform: translateX(0);
    }
}

/* ========================================
   ANIMATION LUCIOLE - "Thinking"
   ======================================== */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    align-self: flex-start;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.typing-indicator #typing-text {
    color: var(--text-secondary);
    font-style: italic;
    opacity: 0;
    animation: fadeInText 0.5s ease-out forwards;
    animation-delay: 5s; /* Apparaît après 5 secondes */
}

@keyframes fadeInText {
    to { opacity: 1; }
}

/* Container de la luciole animée */
.typing-indicator .firefly-container {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Corps de la luciole (SVG) */
.typing-indicator .firefly {
    width: 28px;
    height: 28px;
    animation: fireflyFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 0 8px var(--accent-primary));
    z-index: 2;
}

/* Glow effect derrière la luciole */
.typing-indicator .firefly-glow {
    position: absolute;
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
    border-radius: 50%;
    animation: fireflyPulse 2s ease-in-out infinite;
    z-index: 1;
}

/* Particules de lumière */
.typing-indicator .firefly-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.typing-indicator .firefly-particles span {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-primary);
    border-radius: 50%;
    opacity: 0;
    animation: particleFade 2s ease-in-out infinite;
}

.typing-indicator .firefly-particles span:nth-child(1) {
    top: 5px;
    left: 10px;
    animation-delay: 0s;
}

.typing-indicator .firefly-particles span:nth-child(2) {
    top: 15px;
    right: 5px;
    animation-delay: 0.5s;
}

.typing-indicator .firefly-particles span:nth-child(3) {
    bottom: 8px;
    left: 15px;
    animation-delay: 1s;
}

/* Animation de flottement doux */
@keyframes fireflyFloat {
    0%, 100% {
        transform: translateY(0) rotate(-5deg);
    }
    25% {
        transform: translateY(-3px) rotate(0deg);
    }
    50% {
        transform: translateY(0) rotate(5deg);
    }
    75% {
        transform: translateY(3px) rotate(0deg);
    }
}

/* Animation du glow qui pulse */
@keyframes fireflyPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.4);
        opacity: 0.9;
    }
}

/* Animation des particules */
@keyframes particleFade {
    0%, 100% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.2);
    }
}

/* Fallback: anciens dots (masqués par défaut) */
.typing-indicator .typing-dots {
    display: none;
}

/* ========================================
   GREETING ANIMATION
   ======================================== */
.greeting-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 9999;
    animation: greetingFadeIn 0.5s ease-out;
}

.greeting-overlay.fade-out {
    animation: greetingFadeOut 0.5s ease-out forwards;
}

@keyframes greetingFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes greetingFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.greeting-firefly {
    position: relative;
    animation: greetingFloat 2s ease-in-out;
}

.greeting-firefly .greeting-icon {
    width: 64px;
    height: 64px;
    filter: drop-shadow(0 0 20px var(--accent-primary));
    animation: greetingPulse 1s ease-in-out infinite;
}

.greeting-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
    border-radius: 50%;
    animation: greetingGlow 1s ease-in-out infinite;
    z-index: -1;
}

@keyframes greetingFloat {
    0% {
        transform: translateY(100px) scale(0.5);
        opacity: 0;
    }
    50% {
        transform: translateY(-20px) scale(1.1);
        opacity: 1;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

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

@keyframes greetingGlow {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0.9;
    }
}

/* ========================================
   BOCAL À LUCIOLES - Présence Collective
   ======================================== */
.header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.firefly-jar {
    position: relative;
    width: 28px;
    height: 36px;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.08) 15%,
        rgba(255, 255, 255, 0.03) 50%,
        rgba(255, 255, 255, 0.08) 85%,
        rgba(255, 255, 255, 0.12) 100%
    );
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 3px 3px 10px 10px;
    overflow: hidden;
    cursor: help;
    transition: all 0.3s ease;
    box-shadow:
        inset 0 0 8px rgba(255, 255, 255, 0.05),
        0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Couvercle du bocal */
.firefly-jar::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -2px;
    right: -2px;
    height: 6px;
    background: linear-gradient(
        to bottom,
        rgba(180, 180, 180, 0.6),
        rgba(120, 120, 120, 0.4)
    );
    border-radius: 3px 3px 0 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Reflet sur le verre */
.firefly-jar::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 3px;
    width: 4px;
    height: 60%;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.3),
        rgba(255, 255, 255, 0.1),
        transparent
    );
    border-radius: 2px;
}

.firefly-jar:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow:
        inset 0 0 12px rgba(var(--accent-primary-rgb, 255, 215, 100), 0.2),
        0 2px 12px rgba(0, 0, 0, 0.4);
}

.jar-glow {
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 16px;
    height: 16px;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
    border-radius: 50%;
    transform: translateX(-50%);
    opacity: 0.4;
    animation: jarGlow 6s ease-in-out infinite;
}

.firefly-jar.active .jar-glow {
    opacity: 0.7;
}

@keyframes jarGlow {
    0%, 100% { transform: translateX(-50%) scale(0.85); opacity: 0.25; }
    50% { transform: translateX(-50%) scale(1.05); opacity: 0.4; }
}

.firefly-particles {
    position: absolute;
    top: 8px;
    left: 0;
    right: 0;
    bottom: 0;
}

.firefly-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 4px var(--accent-primary), 0 0 8px var(--accent-primary);
    animation: particleFloat 12s ease-in-out infinite;
}

/* Chaque luciole bouge à son rythme */
.firefly-particle:nth-child(1) { animation-duration: 11s; animation-delay: 0s; }
.firefly-particle:nth-child(2) { animation-duration: 14s; animation-delay: -3s; }
.firefly-particle:nth-child(3) { animation-duration: 13s; animation-delay: -7s; }
.firefly-particle:nth-child(4) { animation-duration: 15s; animation-delay: -2s; }
.firefly-particle:nth-child(5) { animation-duration: 12s; animation-delay: -5s; }

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.4;
    }
    20% {
        transform: translateY(-3px) translateX(1px);
        opacity: 0.8;
    }
    40% {
        transform: translateY(-5px) translateX(-1px);
        opacity: 0.5;
    }
    60% {
        transform: translateY(-2px) translateX(2px);
        opacity: 0.9;
    }
    80% {
        transform: translateY(-4px) translateX(-1px);
        opacity: 0.6;
    }
}

/* Niveaux de vivacité du bocal */
.firefly-jar.level-empty .jar-glow {
    opacity: 0.1;
}

.firefly-jar.level-empty .firefly-particle {
    opacity: 0.2;
}

.firefly-jar.level-quiet .jar-glow {
    animation-duration: 8s;
}

.firefly-jar.level-active .jar-glow {
    animation-duration: 5s;
    opacity: 0.6;
}

.firefly-jar.level-active {
    box-shadow:
        inset 0 0 10px rgba(var(--accent-primary-rgb, 255, 215, 100), 0.15),
        0 2px 10px rgba(0, 0, 0, 0.3);
}

.firefly-jar.level-busy .jar-glow {
    animation-duration: 4s;
    opacity: 0.8;
}

.firefly-jar.level-busy {
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow:
        inset 0 0 15px rgba(var(--accent-primary-rgb, 255, 215, 100), 0.25),
        0 2px 12px rgba(0, 0, 0, 0.35),
        0 0 20px rgba(var(--accent-primary-rgb, 255, 215, 100), 0.15);
}

.input-container {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    flex-shrink: 0; /* Empêcher le footer de rétrécir */
}

#message-input {
    flex: 1;
    padding: 0.875rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
}

#message-input:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.btn-send {
    padding: 0.875rem 1.5rem;
    background: var(--accent-blue);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-send:hover {
    opacity: 0.9;
}

.btn-send:active {
    transform: scale(0.98);
}

/* Mobile optimizations */
@media (max-width: 600px) {
    .container {
        padding: 1.5rem 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    .message {
        max-width: 85%;
    }

    .button-group {
        flex-direction: column;
    }

    /* Fix: Chat input visible et accessible sur mobile */
    .page.active {
        height: 100%;
        min-height: 100vh;
        min-height: 100dvh; /* Dynamic viewport height - s'adapte au clavier */
        min-height: -webkit-fill-available;
    }

    /* Chat page hauteur dynamique pour Android */
    #chat-page {
        height: 100vh;
        height: 100dvh; /* S'adapte quand le clavier ouvre */
        max-height: 100vh;
        max-height: 100dvh;
    }

    /* FIXED input container sur mobile - toujours visible en bas */
    #chat-page .input-container {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 0.75rem;
        background: var(--bg-secondary);
        border-top: 1px solid var(--border-color);
        z-index: 100;
        /* Safe area pour iPhone avec notch */
        padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
    }

    #message-input {
        font-size: 16px; /* Empêche le zoom auto sur iOS */
        padding: 0.75rem;
        min-height: 44px; /* Taille minimum pour touch */
    }

    .btn-send {
        min-width: 70px;
        min-height: 44px;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    /* Espace pour l'input fixe en bas */
    #chat-page .messages-container {
        padding-bottom: 100px; /* Augmenté pour éviter que le contenu soit coupé */
        margin-bottom: 0;
        /* S'assurer que le dernier message est toujours visible */
        scroll-padding-bottom: 100px;
        /* Ajustement pour clavier Android */
        max-height: calc(100dvh - 140px); /* 140px = header + input approximatif */
        height: auto;
    }

    /* Espace supplémentaire pour le dernier message */
    #chat-page .messages::after {
        content: '';
        display: block;
        height: 20px;
        flex-shrink: 0;
    }

    /* Header compact sur mobile */
    .chat-header {
        padding: 0.5rem 0.75rem;
    }

    .header-buttons {
        gap: 0.25rem;
    }

    .header-btn {
        padding: 0.4rem;
        font-size: 1.1rem;
    }

    #bot-name-header {
        font-size: 1rem;
    }
}

/* ========================================
   PAGE PROFILE - HEADER ET SCROLL
   ======================================== */

#profile-page {
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    overflow: hidden; /* Le scroll se fait dans .profile-scroll-container */
}

#profile-page.active {
    display: flex !important;
}

.profile-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    flex-shrink: 0;
}

.profile-header h1 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--text-primary);
}

.profile-header .btn-back {
    position: absolute;
    left: 1rem;
    background: var(--accent-primary);
    border: none;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 0.8rem;
    border-radius: 20px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.profile-header .btn-back:hover {
    background: var(--accent-secondary, #e6c200);
    transform: scale(1.05);
}

.profile-scroll-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: env(safe-area-inset-bottom);
}

.profile-scroll-container .container {
    padding: 1rem;
    padding-bottom: 2rem;
}

/* ========================================
   COLOR TABS SYSTEM
   ======================================== */

.color-tabs {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.25rem;
}

.color-tab {
    flex-shrink: 0;
    padding: 0.5rem 0.75rem;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.color-tab:hover {
    background: var(--bg-secondary);
    border-color: var(--accent-primary);
}

.color-tab.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.color-palette {
    display: none;
}

.color-palette.active {
    display: block;
}

/* ========================================
   PERSONNALISATION THÈME UI
   ======================================== */

/* Section Personnalisation */
.theme-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.theme-section h3 {
    color: var(--accent-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Color Picker Grid */
.color-picker-group {
    margin-bottom: 1.5rem;
}

.color-picker-group label {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.color-swatch {
    aspect-ratio: 1;
    border-radius: 8px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.2s;
    min-height: 40px;
}

.color-swatch:hover {
    transform: scale(1.1);
    z-index: 1;
}

.color-swatch.selected {
    border-color: var(--text-primary);
    box-shadow: 0 0 10px var(--glow-color);
}

/* Custom Color Input */
.custom-color-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.75rem;
}

.custom-color-input {
    width: 50px;
    height: 40px;
    padding: 0;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    background: var(--bg-tertiary);
}

.custom-color-input::-webkit-color-swatch-wrapper {
    padding: 2px;
}

.custom-color-input::-webkit-color-swatch {
    border: none;
    border-radius: 4px;
}

.custom-color-hex {
    flex: 1;
    padding: 0.5rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: monospace;
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* Intensity Selector */
.intensity-group {
    margin-bottom: 1.5rem;
}

.intensity-options {
    display: flex;
    gap: 0.5rem;
}

.intensity-option {
    flex: 1;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.intensity-option:hover {
    border-color: var(--accent-primary);
}

.intensity-option.selected {
    border-color: var(--accent-primary);
    background: var(--bg-tertiary);
}

.intensity-option input {
    display: none;
}

.intensity-option .intensity-icon {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.intensity-option .intensity-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.intensity-option.selected .intensity-label {
    color: var(--accent-primary);
}

/* Preview Box */
.theme-preview {
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: 12px;
    margin-top: 1rem;
}

.theme-preview-title {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.theme-preview-chat {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.preview-message {
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    max-width: 80%;
}

.preview-message.bot {
    background: var(--message-bot);
    color: var(--text-primary);
    align-self: flex-start;
}

.preview-message.user {
    background: var(--accent-primary);
    color: white;
    align-self: flex-end;
}

/* Reset Theme Button */
.btn-reset-theme {
    width: 100%;
    padding: 0.75rem;
    background: transparent;
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.btn-reset-theme:hover {
    border-color: var(--accent-red);
    color: var(--accent-red);
}

/* Transition fluide pour les changements de thème */
body,
.chat-header,
.input-container,
.modal-content,
.message,
.btn,
input {
    transition: background-color 0.3s ease,
                color 0.3s ease,
                border-color 0.3s ease,
                box-shadow 0.3s ease;
}

/* ========================================
   SECTION PWA - Installation App
   ======================================== */
.pwa-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.pwa-section h3 {
    color: var(--accent-primary);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.pwa-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.btn-pwa-install {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-blue, #4a90e2));
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(var(--accent-primary-rgb, 255, 215, 100), 0.3);
}

.btn-pwa-install:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--accent-primary-rgb, 255, 215, 100), 0.4);
}

.btn-pwa-install:active:not(:disabled) {
    transform: translateY(0);
}

.btn-pwa-install:disabled {
    cursor: default;
    opacity: 0.8;
}

.btn-pwa-install.installed {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.btn-pwa-install .pwa-icon {
    font-size: 1.2rem;
}

/* === PWA SUGGESTION MODAL === */
.pwa-suggest-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pwa-suggest-modal.visible {
    opacity: 1;
}

.pwa-suggest-content {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 2rem;
    max-width: 380px;
    width: 100%;
    text-align: center;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.pwa-suggest-modal.visible .pwa-suggest-content {
    transform: scale(1) translateY(0);
}

.pwa-suggest-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: pwaFloat 3s ease-in-out infinite;
}

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

.pwa-suggest-content h3 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
}

.pwa-suggest-content > p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.5;
    font-size: 0.95rem;
}

.pwa-suggest-benefits {
    background: var(--bg-tertiary);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.pwa-benefit {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.pwa-benefit:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
}

.pwa-benefit span:first-child {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.pwa-suggest-buttons {
    display: flex;
    gap: 0.75rem;
}

.pwa-suggest-btn {
    flex: 1;
    padding: 0.875rem 1rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.pwa-suggest-later {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.pwa-suggest-later:hover {
    background: var(--border-color);
}

.pwa-suggest-install {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-blue, #4a90e2));
    color: white;
    box-shadow: 0 4px 15px rgba(var(--accent-primary-rgb, 255, 215, 100), 0.3);
}

.pwa-suggest-install:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--accent-primary-rgb, 255, 215, 100), 0.4);
}

/* === PWA UPDATE BANNER === */
.pwa-update-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--accent-primary), #7c3aed);
    z-index: 10001;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.pwa-update-banner.visible {
    transform: translateY(0);
}

.pwa-update-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.pwa-update-icon {
    font-size: 1.3rem;
}

.pwa-update-text {
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
}

.pwa-update-btn {
    background: white;
    color: var(--accent-primary);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.pwa-update-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
}

.pwa-update-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 0.5rem;
    line-height: 1;
    transition: color 0.2s;
}

.pwa-update-close:hover {
    color: white;
}

/* Bouton de mise à jour manuelle */
.btn-force-refresh {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem 1rem;
    margin-top: 0.5rem;
    background: var(--bg-tertiary);
    border: 1px dashed var(--border-color);
    color: var(--text-secondary);
    border-radius: 12px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-force-refresh:hover {
    background: var(--bg-secondary);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.btn-force-refresh .refresh-icon {
    font-size: 1.1rem;
}

.btn-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.75rem 1rem;
    margin-top: 0.5rem;
    background: transparent;
    border: none;
    color: var(--text-tertiary);
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.6;
}

.btn-logout:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
}

/* PWA Install Modal (réutilise les styles suggest) */
.pwa-install-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 1rem;
}

.pwa-install-modal.visible {
    opacity: 1;
    visibility: visible;
}

.pwa-install-content {
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 2rem;
    max-width: 350px;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.pwa-install-modal.visible .pwa-install-content {
    transform: scale(1);
}

.pwa-install-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px var(--accent-primary));
}

.pwa-install-content h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.pwa-install-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.pwa-install-buttons {
    display: flex;
    gap: 0.75rem;
}

.pwa-install-buttons button {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.pwa-install-later {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.pwa-install-later:hover {
    background: var(--bg-secondary);
}

.pwa-install-now {
    background: linear-gradient(135deg, var(--accent-primary), #7c3aed);
    color: white;
}

.pwa-install-now:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
}

/* Version info dans les settings */
.version-info {
    text-align: center;
    padding: 1rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
    border-top: 1px solid var(--border-color);
    margin-top: 1rem;
}

.version-info .version-number {
    color: var(--accent-primary);
    font-weight: 600;
}

/* ========================================
   SIDE QUESTS & DÉBATS INUTILES
   ======================================== */

/* Modal Fun */
.fun-modal-content {
    max-width: 550px;
}

.fun-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.fun-modal-header h2 {
    margin: 0;
    color: var(--accent-primary);
}

.btn-close-modal {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.btn-close-modal:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.fun-section {
    margin-bottom: 1.5rem;
}

.fun-section h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.fun-description {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.fun-divider {
    height: 1px;
    background: var(--border-color);
    margin: 1.5rem 0;
}

/* Grille des quêtes */
.quests-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.quest-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0.5rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.quest-btn:hover {
    border-color: var(--accent-primary);
    background: var(--bg-secondary);
    transform: translateY(-2px);
}

.quest-emoji {
    font-size: 1.5rem;
}

.quest-name {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
}

/* Grille des débats */
.debates-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.debate-btn {
    padding: 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.debate-btn:hover {
    border-color: var(--accent-primary);
    background: var(--bg-secondary);
}

.debate-question {
    color: var(--text-primary);
    font-size: 0.9rem;
}

/* Cartes de quête dans le chat */
.quest-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--accent-primary);
    border-radius: 12px;
    padding: 1.25rem;
    margin: 0.5rem 0;
}

.quest-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.quest-emoji-big {
    font-size: 2rem;
}

.quest-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-primary);
}

.quest-prompt {
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.quest-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-quest-done {
    background: var(--accent-green);
    color: white;
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-quest-done:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.btn-quest-skip {
    background: transparent;
    color: var(--text-secondary);
    padding: 0.75rem 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-quest-skip:hover {
    border-color: var(--text-secondary);
}

/* Cartes de débat dans le chat */
.debate-card {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    border: 2px solid var(--accent-primary);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 0.5rem 0;
    position: relative;
    overflow: hidden;
}

.debate-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary, var(--accent-primary)));
}

.debate-header {
    font-size: 0.85rem;
    color: var(--accent-primary);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    text-align: center;
}

.debate-question-text {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 1.25rem;
    line-height: 1.4;
}

.debate-bot-opinion {
    background: var(--bg-primary);
    padding: 1rem;
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.debate-prompt {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
}

/* Responsive */
@media (max-width: 500px) {
    .quests-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .quest-btn {
        padding: 0.75rem 0.25rem;
    }

    .quest-emoji {
        font-size: 1.25rem;
    }

    .quest-name {
        font-size: 0.7rem;
    }
}

/* ========================================
   VAULT SECURITY - Protection PIN + Image
   ======================================== */

.vault-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
    animation: fadeIn 0.2s ease;
}

.vault-modal-content {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 2rem;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

.vault-modal-content h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.vault-modal-content.vault-unlock {
    max-width: 320px;
}

.vault-lock-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
}

/* PIN Input */
.pin-input-container {
    margin-bottom: 1rem;
}

.pin-input-container label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.pin-input-container input {
    width: 100%;
    padding: 1rem;
    font-size: 1.5rem;
    text-align: center;
    letter-spacing: 0.5rem;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.3s;
}

.pin-input-container input:focus {
    border-color: var(--accent-primary);
}

.pin-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.pin-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    transition: all 0.2s;
}

.pin-dot.filled {
    background: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-primary);
    transform: scale(1.2);
}

/* Vault Numpad */
.vault-numpad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    max-width: 280px;
    margin: 1.5rem auto 0;
}

.numpad-btn {
    aspect-ratio: 1;
    font-size: 1.5rem;
    font-weight: 600;
    border: none;
    border-radius: 50%;
    background: var(--bg-primary);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
}

.numpad-btn:hover:not(.numpad-empty) {
    background: var(--accent-primary);
    color: white;
    transform: scale(1.08);
}

.numpad-btn:active:not(.numpad-empty) {
    transform: scale(0.95);
    background: var(--accent-secondary);
}

.numpad-empty {
    visibility: hidden;
    cursor: default;
}

.numpad-delete {
    color: var(--text-secondary);
}

.numpad-delete:hover {
    color: var(--accent-red) !important;
    background: rgba(239, 68, 68, 0.15) !important;
}

.numpad-delete svg {
    width: 24px;
    height: 24px;
}

/* Secret Images Grid */
.secret-images-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.secret-image-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.secret-image-btn:hover {
    border-color: var(--accent-primary);
    transform: scale(1.05);
}

.secret-image-btn.selected {
    border-color: var(--accent-primary);
    background: rgba(74, 144, 226, 0.2);
    box-shadow: 0 0 20px rgba(74, 144, 226, 0.3);
}

.secret-image-btn.wrong {
    animation: shake 0.5s;
    border-color: var(--accent-red);
}

.secret-image-emoji {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.secret-image-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.unlock-grid .secret-image-btn {
    padding: 0.75rem;
}

.unlock-grid .secret-image-emoji {
    font-size: 1.75rem;
    margin-bottom: 0;
}

/* Vault Buttons */
.vault-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-vault-cancel,
.btn-vault-confirm {
    flex: 1;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-vault-cancel {
    background: var(--bg-primary);
    color: var(--text-secondary);
}

.btn-vault-cancel:hover {
    background: var(--border-color);
}

.btn-vault-confirm {
    background: var(--accent-primary);
    color: white;
}

.btn-vault-confirm:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

/* Error Message */
.vault-error {
    background: rgba(231, 76, 60, 0.2);
    color: var(--accent-red);
    padding: 0.75rem;
    border-radius: 8px;
    text-align: center;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.vault-error.hidden {
    display: none;
}

/* Security Settings */
.vault-settings {
    max-width: 360px;
}

.security-status {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-primary);
    border-radius: 10px;
    color: var(--text-secondary);
}

.status-item.active {
    color: var(--text-primary);
}

.status-icon {
    font-size: 1.25rem;
}

.security-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-security-action {
    width: 100%;
    padding: 0.875rem;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
}

.btn-security-action:hover {
    border-color: var(--accent-primary);
    background: var(--bg-primary);
}

.btn-security-action.danger {
    border-color: var(--accent-red);
    color: var(--accent-red);
}

.btn-security-action.danger:hover {
    background: rgba(231, 76, 60, 0.2);
}

.security-explanation {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-align: center;
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: 10px;
}

/* === TIMEOUT SETTING === */
.timeout-setting {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin: 1rem 0;
}

.timeout-setting label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.timeout-icon {
    font-size: 1.1rem;
}

.timeout-slider-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.timeout-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: var(--bg-tertiary);
    outline: none;
}

.timeout-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-primary);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.timeout-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 0 10px var(--accent-primary);
}

.timeout-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-primary);
    cursor: pointer;
    border: none;
}

.timeout-value {
    min-width: 60px;
    text-align: right;
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.timeout-hint {
    color: var(--text-tertiary);
    font-size: 0.8rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

/* === RAPPEL D'IMAGE SECRÈTE === */
.vault-reminder .vault-modal-content {
    animation: slideUp 0.4s ease-out;
}

.vault-feedback {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    text-align: center;
    font-size: 0.95rem;
    margin-top: 1rem;
    animation: fadeIn 0.3s ease;
}

.vault-feedback.success {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.vault-feedback.success span {
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

.vault-feedback.error {
    background: rgba(231, 76, 60, 0.2);
    color: var(--accent-red);
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.vault-feedback.hidden {
    display: none;
}

.reminder-note {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-align: center;
    margin-top: 1rem;
    font-style: italic;
}

.secret-image-btn.correct {
    border-color: #2ecc71 !important;
    background: rgba(46, 204, 113, 0.2) !important;
    transform: scale(1.05);
}

.secret-image-btn.wrong {
    animation: shake 0.5s ease;
    border-color: var(--accent-red) !important;
}

.btn-vault-cancel.suggest-change {
    background: var(--accent-primary);
    color: var(--bg-primary);
    border-color: var(--accent-primary);
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-10px); }
    40% { transform: translateX(10px); }
    60% { transform: translateX(-10px); }
    80% { transform: translateX(10px); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ========================================
   REMIX IMAGE STYLES
   ======================================== */

.remix-message {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.remix-image-container {
    text-align: center;
}

.remix-image {
    max-width: 100%;
    max-height: 300px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.remix-image:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.5);
}

.remix-text {
    white-space: pre-wrap;
    line-height: 1.5;
}

.remix-image-hint {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin-top: 0.5rem;
    opacity: 0.7;
}

.remix-presentation {
    animation: fadeInSlide 0.5s ease;
}

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

/* Remix Pending Message */
.remix-pending {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.1));
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.remix-pending-animation {
    font-size: 2rem;
    animation: remixPulse 1.5s ease-in-out infinite;
}

.remix-pending-emoji {
    display: inline-block;
    animation: remixSpin 2s linear infinite;
}

.remix-pending-text {
    color: var(--text-secondary);
    font-style: italic;
}

@keyframes remixPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

@keyframes remixSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Fullscreen Image Overlay */
.image-fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    cursor: pointer;
    animation: fadeIn 0.2s ease;
}

.image-fullscreen-container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    cursor: default;
}

.image-fullscreen-container img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.image-fullscreen-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.image-fullscreen-close:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
}

.image-fullscreen-buttons {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
}

.image-fullscreen-btn {
    padding: 0.75rem 1.5rem;
    background: var(--accent-primary);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.image-fullscreen-btn:hover {
    background: var(--accent-secondary);
    transform: scale(1.05);
}

.image-fullscreen-btn.save-btn {
    background: var(--accent-green, #22c55e);
}

.image-fullscreen-btn.save-btn:hover {
    background: #16a34a;
}

.image-fullscreen-btn.save-btn.saved {
    background: #6b7280;
    cursor: default;
}

.image-fullscreen-btn.download-btn {
    background: var(--accent-blue, #3b82f6);
}

.image-fullscreen-btn.download-btn:hover {
    background: #2563eb;
}

/* Legacy support */
.image-fullscreen-download {
    padding: 0.75rem 1.5rem;
    background: var(--accent-primary);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.image-fullscreen-download:hover {
    background: var(--accent-secondary);
    transform: scale(1.05);
}

/* ========================================
   NEW MODALS: WELLBEING & SETTINGS
   ======================================== */

/* Fun quick links */
.fun-quick-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.fun-link-btn {
    flex: 1;
    min-width: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.fun-link-btn:hover {
    border-color: var(--accent-primary);
    background: var(--bg-secondary);
    transform: translateY(-2px);
}

.fun-link-icon {
    font-size: 1.75rem;
}

.fun-link-text {
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* Wellbeing Modal */
.wellbeing-modal-content {
    max-width: 450px;
}

.wellbeing-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.wellbeing-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding: 1.25rem;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    position: relative;
}

.wellbeing-card:hover {
    border-color: var(--accent-primary);
    background: var(--bg-secondary);
}

.wellbeing-card.protected {
    border-style: dashed;
}

.wellbeing-icon {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.wellbeing-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.wellbeing-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.protection-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Settings Modal */
.settings-modal-content {
    max-width: 450px;
}

.settings-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.settings-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding: 1.25rem;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    position: relative;
}

.settings-card:hover {
    border-color: var(--accent-primary);
    background: var(--bg-secondary);
}

.settings-card.protected {
    border-style: dashed;
}

.settings-icon {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.settings-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.settings-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ========================================
   MOBILE SCROLLBAR FIX
   Correction des problèmes de scroll sur mobile
   ======================================== */

/* Assurer que tous les modals ont un scroll visible sur mobile */
@media (max-width: 600px) {
    /* Fix général pour les modals */
    .modal-content,
    .fun-modal-content,
    .custom-modal-content {
        max-height: 85vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        /* Scrollbar visible sur mobile */
        scrollbar-width: thin;
        scrollbar-color: var(--accent-primary) var(--bg-tertiary);
    }

    /* Scrollbar webkit visible */
    .modal-content::-webkit-scrollbar,
    .fun-modal-content::-webkit-scrollbar,
    .custom-modal-content::-webkit-scrollbar {
        width: 8px;
        display: block !important;
    }

    .modal-content::-webkit-scrollbar-track,
    .fun-modal-content::-webkit-scrollbar-track,
    .custom-modal-content::-webkit-scrollbar-track {
        background: var(--bg-tertiary);
        border-radius: 4px;
    }

    .modal-content::-webkit-scrollbar-thumb,
    .fun-modal-content::-webkit-scrollbar-thumb,
    .custom-modal-content::-webkit-scrollbar-thumb {
        background: var(--accent-primary);
        border-radius: 4px;
        min-height: 40px;
    }

    /* Fun modal spécifique */
    .fun-modal-content {
        padding: 1.25rem;
        max-width: 95%;
    }

    .quests-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .quest-btn {
        padding: 0.75rem 0.25rem;
    }

    .quest-emoji {
        font-size: 1.25rem;
    }

    .quest-name {
        font-size: 0.65rem;
    }

    /* Indicateur de scroll */
    .modal-content::after,
    .fun-modal-content::after {
        content: '';
        position: sticky;
        bottom: 0;
        left: 0;
        right: 0;
        height: 30px;
        background: linear-gradient(transparent, var(--bg-secondary));
        pointer-events: none;
        display: block;
        margin-top: -30px;
    }
}

/* Tools page scrollable sur mobile */
@media (max-width: 600px) {
    .tools-container {
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 2rem;
    }

    /* Tabs horizontaux scrollables */
    .tabs {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 0.5rem;
    }

    .tabs::-webkit-scrollbar {
        display: none;
    }

    .tab {
        flex-shrink: 0;
        white-space: nowrap;
    }

    /* Contenu des tabs scrollable */
    .tab-content {
        max-height: calc(100vh - 180px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-right: 0.5rem;
    }

    .tab-content::-webkit-scrollbar {
        width: 6px;
    }

    .tab-content::-webkit-scrollbar-thumb {
        background: var(--accent-primary);
        border-radius: 3px;
    }
}

/* ========================================
   MODAL BOCAL DE LUCIOLES (ZOOM)
   ======================================== */

.firefly-modal-content {
    background: transparent !important;
    box-shadow: none !important;
    max-width: 350px;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.firefly-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    z-index: 10;
}

.firefly-scene {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* Grand bocal */
.big-jar {
    position: relative;
    width: 200px;
    height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Couvercle du bocal */
.jar-lid {
    width: 100px;
    height: 25px;
    background: linear-gradient(
        to bottom,
        rgba(180, 180, 180, 0.8),
        rgba(100, 100, 100, 0.6)
    );
    border-radius: 8px 8px 2px 2px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Corps du bocal */
.jar-body {
    position: relative;
    width: 160px;
    height: 220px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.08) 30%,
        rgba(255, 255, 255, 0.03) 50%,
        rgba(255, 255, 255, 0.08) 70%,
        rgba(255, 255, 255, 0.15) 100%
    );
    border: 3px solid rgba(255, 255, 255, 0.35);
    border-radius: 15px 15px 40px 40px;
    overflow: hidden;
    box-shadow:
        inset 0 0 30px rgba(255, 255, 255, 0.1),
        inset 0 -20px 40px rgba(var(--accent-primary-rgb, 74, 144, 226), 0.15),
        0 10px 40px rgba(0, 0, 0, 0.4);
    margin-top: -5px;
}

/* Reflet sur le verre */
.jar-reflection {
    position: absolute;
    top: 20px;
    left: 15px;
    width: 15px;
    height: 70%;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.4),
        rgba(255, 255, 255, 0.15),
        transparent
    );
    border-radius: 10px;
    pointer-events: none;
}

/* Base du bocal */
.jar-base {
    width: 120px;
    height: 15px;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.15),
        rgba(255, 255, 255, 0.05)
    );
    border-radius: 0 0 20px 20px;
    margin-top: -10px;
}

/* Glow ambiant dans le bocal */
.jar-glow-big {
    position: absolute;
    bottom: 30px;
    left: 50%;
    width: 100px;
    height: 100px;
    background: radial-gradient(
        circle,
        var(--accent-primary) 0%,
        rgba(var(--accent-primary-rgb, 74, 144, 226), 0.3) 40%,
        transparent 70%
    );
    border-radius: 50%;
    transform: translateX(-50%);
    opacity: 0.5;
    animation: bigJarGlow 8s ease-in-out infinite;
    filter: blur(10px);
}

@keyframes bigJarGlow {
    0%, 100% { opacity: 0.3; transform: translateX(-50%) scale(0.9); }
    50% { opacity: 0.6; transform: translateX(-50%) scale(1.1); }
}

/* Container des lucioles */
.big-fireflies {
    position: absolute;
    top: 20px;
    left: 10px;
    right: 10px;
    bottom: 20px;
}

/* Une luciole dans le grand bocal */
.big-firefly {
    position: absolute;
    width: 12px;
    height: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Corps lumineux de la luciole */
.big-firefly::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow:
        0 0 8px var(--accent-primary),
        0 0 16px var(--accent-primary),
        0 0 24px rgba(var(--accent-primary-rgb, 74, 144, 226), 0.5);
    animation: fireflyPulse 4s ease-in-out infinite;
}

/* Queue/corps de la luciole (petit trait) */
.big-firefly::after {
    content: '';
    position: absolute;
    width: 3px;
    height: 6px;
    background: linear-gradient(
        to bottom,
        rgba(var(--accent-primary-rgb, 74, 144, 226), 0.6),
        transparent
    );
    border-radius: 2px;
    transform: translateY(-8px);
    opacity: 0.7;
}

@keyframes fireflyPulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(0.9);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* Animation de vol pour chaque luciole - très lent et paresseux */
@keyframes fireflyFly1 {
    0%, 100% { transform: translate(0, 0); }
    20% { transform: translate(15px, -20px); }
    40% { transform: translate(-10px, -35px); }
    60% { transform: translate(20px, -15px); }
    80% { transform: translate(-5px, -25px); }
}

@keyframes fireflyFly2 {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-20px, -10px); }
    50% { transform: translate(10px, -30px); }
    75% { transform: translate(-15px, -20px); }
}

@keyframes fireflyFly3 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(25px, -25px); }
    66% { transform: translate(-15px, -40px); }
}

@keyframes fireflyFly4 {
    0%, 100% { transform: translate(0, 0); }
    20% { transform: translate(-25px, -15px); }
    40% { transform: translate(5px, -40px); }
    60% { transform: translate(-20px, -25px); }
    80% { transform: translate(15px, -35px); }
}

@keyframes fireflyFly5 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -30px); }
}

/* Appliquer les animations de vol */
.big-firefly:nth-child(1) { animation: fireflyFly1 18s ease-in-out infinite; }
.big-firefly:nth-child(2) { animation: fireflyFly2 22s ease-in-out infinite; animation-delay: -5s; }
.big-firefly:nth-child(3) { animation: fireflyFly3 20s ease-in-out infinite; animation-delay: -8s; }
.big-firefly:nth-child(4) { animation: fireflyFly4 25s ease-in-out infinite; animation-delay: -3s; }
.big-firefly:nth-child(5) { animation: fireflyFly5 16s ease-in-out infinite; animation-delay: -10s; }
.big-firefly:nth-child(6) { animation: fireflyFly1 24s ease-in-out infinite; animation-delay: -12s; }
.big-firefly:nth-child(7) { animation: fireflyFly2 19s ease-in-out infinite; animation-delay: -7s; }
.big-firefly:nth-child(8) { animation: fireflyFly3 21s ease-in-out infinite; animation-delay: -4s; }

/* Pulse décalé pour chaque luciole */
.big-firefly:nth-child(1)::before { animation-delay: 0s; animation-duration: 4s; }
.big-firefly:nth-child(2)::before { animation-delay: -1s; animation-duration: 5s; }
.big-firefly:nth-child(3)::before { animation-delay: -2s; animation-duration: 3.5s; }
.big-firefly:nth-child(4)::before { animation-delay: -0.5s; animation-duration: 4.5s; }
.big-firefly:nth-child(5)::before { animation-delay: -3s; animation-duration: 3s; }
.big-firefly:nth-child(6)::before { animation-delay: -1.5s; animation-duration: 5.5s; }
.big-firefly:nth-child(7)::before { animation-delay: -2.5s; animation-duration: 4s; }
.big-firefly:nth-child(8)::before { animation-delay: -0.8s; animation-duration: 3.8s; }

/* Texte d'info */
.firefly-info {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

/* Mobile */
@media (max-width: 600px) {
    .big-jar {
        width: 160px;
        height: 220px;
    }

    .jar-lid {
        width: 80px;
        height: 20px;
    }

    .jar-body {
        width: 130px;
        height: 175px;
    }

    .jar-base {
        width: 100px;
    }

    .big-firefly::before {
        width: 6px;
        height: 6px;
    }
}

/* ========================================
   LANGUAGE SELECTOR - Sélecteur de langue
   ======================================== */

.language-selector {
    margin: 1.5rem 0;
}

.language-label {
    display: block;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.language-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-primary);
}

.lang-btn.selected {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.lang-emoji {
    font-size: 1.3rem;
}

.lang-name {
    flex: 1;
}

/* Section langue dans le profil */
.language-section {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.language-section h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.language-section .language-options {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

.language-section .lang-btn {
    flex: 1;
    min-width: 140px;
    max-width: 200px;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    padding: 1rem 0.75rem;
}

.language-section .lang-emoji {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.language-section .lang-name {
    font-size: 0.85rem;
}

/* Mobile */
@media (max-width: 600px) {
    .language-section .language-options {
        flex-direction: column;
    }

    .language-section .lang-btn {
        max-width: 100%;
        flex-direction: row;
        justify-content: flex-start;
        gap: 0.75rem;
    }

    .language-section .lang-emoji {
        margin-bottom: 0;
    }
}

/* ========================================
   RECOVERY FORM - Formulaire de récupération
   ======================================== */

.recovery-link {
    display: block;
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.recovery-link:hover {
    color: var(--accent-primary);
    text-decoration: underline;
}

.recovery-form {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.recovery-form h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    text-align: center;
}

.recovery-form-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-align: center;
    margin-bottom: 1rem;
}

.recovery-form .form-group {
    margin-bottom: 0.75rem;
}

.recovery-form input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.recovery-form input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.recovery-form .button-group {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.recovery-form .btn {
    flex: 1;
}

.success-message {
    background: rgba(46, 204, 113, 0.15);
    border: 1px solid var(--accent-green);
    color: var(--accent-green);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-top: 0.75rem;
    text-align: center;
}

/* ========================================
   SHARED DEVICE CHECKBOX
   ======================================== */

.shared-device-checkbox {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
    cursor: pointer;
    user-select: none;
}

.shared-device-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-primary);
    cursor: pointer;
}

.shared-device-checkbox .checkbox-label {
    color: var(--text-primary);
    font-size: 0.9rem;
}

.shared-device-checkbox .checkbox-hint {
    width: 100%;
    color: var(--text-secondary);
    font-size: 0.75rem;
    padding-left: 26px;
    margin-top: -0.25rem;
}

/* ========================================
   MINI-JEUX INTERACTIFS
   ======================================== */

.game-menu {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 1rem 0;
    border: 1px solid var(--border-color);
}

.game-menu h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-align: center;
}

.game-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.game-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.game-btn:hover {
    background: var(--accent-primary);
    transform: translateY(-2px);
}

.game-btn.small {
    flex-direction: row;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.game-icon {
    font-size: 1.5rem;
}

.game-cancel {
    width: 100%;
    padding: 0.75rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
}

.game-cancel:hover {
    background: var(--bg-tertiary);
}

/* 2 Vérités 1 Mensonge */
.game-container.two-truths {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 1rem 0;
    border: 1px solid var(--border-color);
}

.game-container h4 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.game-container p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.truth-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.truth-btn {
    text-align: left;
    padding: 1rem;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.truth-btn:hover:not(:disabled) {
    border-color: var(--accent-primary);
    background: rgba(74, 144, 226, 0.1);
}

.truth-btn.selected {
    border-color: var(--accent-primary);
    background: var(--accent-primary);
}

.truth-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.game-result {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
}

.game-result.correct {
    background: rgba(46, 204, 113, 0.2);
    border: 1px solid var(--accent-green);
}

.game-result.wrong {
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid var(--accent-red);
}

.lie-reveal {
    font-style: italic;
    margin: 0.5rem 0;
    color: var(--text-secondary);
}

/* Mode Player - À Toi de Mentir! */
.game-container.two-truths-player {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 1rem 0;
    border: 2px solid var(--accent-primary);
}

.player-facts-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.fact-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.fact-input-group label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.fact-input {
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
}

.fact-input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.fact-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.lie-selector {
    text-align: center;
    margin: 1rem 0;
}

.lie-selector p {
    margin-bottom: 0.5rem;
    color: var(--accent-primary);
    font-weight: 500;
}

.lie-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.lie-select-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lie-select-btn:hover:not(:disabled) {
    border-color: var(--accent-primary);
    transform: scale(1.1);
}

.lie-select-btn.selected {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: white;
}

.lie-select-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.submit-facts-btn {
    margin-top: 0.5rem;
}

/* Bot Guess Section */
.bot-guess-section {
    animation: fadeIn 0.3s ease;
}

.bot-thinking {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 1rem;
}

.facts-display {
    background: var(--bg-tertiary);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.fact-item {
    padding: 0.75rem;
    margin: 0.5rem 0;
    border-radius: 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.fact-item.bot-picked {
    border-color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.1);
}

.bot-reason {
    font-style: italic;
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Player Result */
.game-result.player-result {
    animation: fadeIn 0.3s ease;
}

.game-result.player-result .result-emoji {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.game-result.player-result .result-message {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.game-result.player-result .reaction {
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 1rem;
}

.game-result.player-result .memory-saved {
    color: var(--accent-green);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.game-result.bot-won {
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid var(--accent-primary);
}

.game-result.player-won {
    background: rgba(46, 204, 113, 0.15);
    border: 1px solid var(--accent-green);
}

.play-again-buttons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.game-btn.secondary {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
}

.game-btn.secondary:hover {
    background: var(--bg-secondary);
}

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

/* Histoire à Deux */
.game-container.story-game {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 1rem 0;
    border: 1px solid var(--border-color);
}

.story-content {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
}

.story-part {
    padding: 0.5rem;
    margin: 0.25rem 0;
    border-radius: 6px;
}

.story-part.bot {
    background: var(--message-bot);
    color: var(--text-primary);
}

.story-part.user {
    background: var(--message-user);
    color: white;
    text-align: right;
}

.story-prompt {
    color: var(--accent-primary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.story-input {
    display: flex;
    gap: 0.5rem;
}

.story-input textarea {
    flex: 1;
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    resize: none;
}

.story-input textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

/* Micro Learning */
.game-container.micro-fact {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border-radius: 16px;
    padding: 1.5rem;
    margin: 1rem 0;
    border: 1px solid var(--accent-primary);
    text-align: center;
}

.fact-text {
    font-size: 1.1rem;
    color: var(--text-primary);
    line-height: 1.5;
    margin: 1rem 0;
}

.fact-count {
    font-size: 0.85rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

/* Loading state for micro-fact */
.game-container.micro-fact.loading {
    opacity: 0.7;
}

.game-container.micro-fact .loading-text {
    animation: pulse-text 1.5s ease-in-out infinite;
    color: var(--text-secondary);
    font-style: italic;
}

@keyframes pulse-text {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Sketch Surprise */
.game-container.sketch-result {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border-radius: 16px;
    padding: 1.5rem;
    margin: 1rem 0;
    border: 1px solid var(--accent-primary);
    text-align: center;
}

.sketch-prompt {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-style: italic;
}

.sketch-image-container {
    margin: 1rem 0;
    border-radius: 12px;
    overflow: hidden;
}

.sketch-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* Bouton Jeux dans input */
.btn-games {
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-games:hover {
    background: var(--accent-primary);
    transform: scale(1.1);
}
