﻿* {
            font-family: 'Fredoka', sans-serif;
        }

        body {
            background: linear-gradient(135deg, #ff6b9d 0%, #c06c84 25%, #667eea 50%, #764ba2 75%, #ffa07a 100%);
            background-size: 400% 400%;
            animation: gradientShift 15s ease infinite;
            min-height: 100vh;
            padding: 20px;
            overflow-x: hidden;
        }

        @keyframes gradientShift {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        body.dark-mode {
            background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #1a1a2e 100%);
            background-size: 400% 400%;
        }

        /* Nuages de laine qui tombent */
        .wool-cloud {
            position: fixed;
            font-size: 40px;
            z-index: 9999;
            pointer-events: none;
            animation: fallDown 3s linear forwards;
            filter: drop-shadow(0 5px 10px rgba(0,0,0,0.3));
        }

        @keyframes fallDown {
            0% {
                transform: translateY(-100px) rotate(0deg);
                opacity: 1;
            }
            100% {
                transform: translateY(120vh) rotate(360deg);
                opacity: 0;
            }
        }

        /* Lama pizzaiolo qui apparaÃ®t */
        .pizza-llama {
            position: fixed;
            bottom: -200px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 10000;
            font-size: 120px;
            animation: llamaJump 2s ease-in-out forwards;
            filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
        }

        @keyframes llamaJump {
            0% {
                bottom: -200px;
                transform: translateX(-50%) rotate(0deg) scale(0.5);
            }
            50% {
                bottom: 40%;
                transform: translateX(-50%) rotate(360deg) scale(1.2);
            }
            70% {
                bottom: 40%;
                transform: translateX(-50%) rotate(360deg) scale(1);
            }
            100% {
                bottom: -200px;
                transform: translateX(-50%) rotate(720deg) scale(0.5);
            }
        }

        .pizza-speech {
            position: fixed;
            bottom: 55%;
            left: 50%;
            transform: translateX(-50%) scale(0);
            background: white;
            padding: 20px 30px;
            border-radius: 30px;
            border: 5px solid #ff6b9d;
            font-size: 1.5rem;
            font-weight: 700;
            color: #ff6b9d;
            z-index: 10001;
            animation: speechBubble 2s ease-in-out forwards;
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
            font-family: 'Comic Neue', cursive;
        }

        @keyframes speechBubble {
            0% {
                transform: translateX(-50%) scale(0) rotate(-10deg);
                opacity: 0;
            }
            20% {
                transform: translateX(-50%) scale(1.2) rotate(5deg);
                opacity: 1;
            }
            40% {
                transform: translateX(-50%) scale(1) rotate(0deg);
            }
            70% {
                transform: translateX(-50%) scale(1) rotate(0deg);
                opacity: 1;
            }
            100% {
                transform: translateX(-50%) scale(0) rotate(10deg);
                opacity: 0;
            }
        }

        .container {
            max-width: 900px;
        }

        /* BanniÃ¨re Breaking News DÃ‰LIRANTE */
        .breaking-banner {
            background: linear-gradient(90deg, #ff416c 0%, #ff4b2b 50%, #ffd700 100%);
            background-size: 200% 100%;
            animation: bannerSlide 3s linear infinite;
            color: white;
            padding: 20px;
            text-align: center;
            font-weight: 700;
            font-size: 1.5rem;
            border-radius: 15px 15px 0 0;
            box-shadow: 0 5px 15px rgba(0,0,0,0.3);
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        }

        @keyframes bannerSlide {
            0% { background-position: 0% 50%; }
            100% { background-position: 200% 50%; }
        }

        /* Card principale avec effet arc-en-ciel */
        .main-card {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 0 0 25px 25px;
            padding: 30px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
            margin-bottom: 30px;
            position: relative;
            overflow: visible;
        }

        .main-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 3px;
            background: linear-gradient(90deg, transparent, #ff6b9d, #667eea, #ffd700, transparent);
            animation: shimmer 3s infinite;
        }

        @keyframes shimmer {
            0% { left: -100%; }
            100% { left: 200%; }
        }

        .dark-mode .main-card {
            background: rgba(44, 62, 80, 0.95);
            color: white;
        }

        /* Bouton de recherche ULTRA ANIMÃ‰ */
        .search-input {
            border-radius: 50px;
            padding: 15px 25px;
            border: 3px solid #ff6b9d;
            font-size: 1.1rem;
            transition: all 0.3s;
            box-shadow: 0 0 0 0 rgba(255, 107, 157, 0.5);
        }

        .search-input:focus {
            border-color: #667eea;
            box-shadow: 0 0 30px rgba(102, 126, 234, 0.8);
            animation: inputGlow 1s infinite;
        }

        @keyframes inputGlow {
            0%, 100% { box-shadow: 0 0 30px rgba(102, 126, 234, 0.8); }
            50% { box-shadow: 0 0 50px rgba(255, 107, 157, 1); }
        }

        .search-btn {
            border-radius: 50px;
            padding: 15px 30px;
            font-weight: 700;
            background: linear-gradient(45deg, #ff6b9d, #667eea, #ffd700, #ff6b9d);
            background-size: 300% 300%;
            border: none;
            color: white;
            transition: all 0.3s;
            position: relative;
            overflow: hidden;
            animation: buttonGradient 3s ease infinite;
        }

        @keyframes buttonGradient {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        .search-btn:hover {
            transform: scale(1.1) rotate(5deg);
            box-shadow: 0 10px 30px rgba(255, 107, 157, 0.5);
        }

        .search-btn:active {
            transform: scale(0.95) rotate(-5deg);
        }

        /* Zone de rÃ©sultats */
        .results-container {
            display: none;
            animation: fadeInBounce 0.8s;
        }

        @keyframes fadeInBounce {
            0% {
                opacity: 0;
                transform: translateY(-50px) scale(0.8);
            }
            60% {
                transform: translateY(10px) scale(1.1);
            }
            100% {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        .city-name {
            font-size: 3rem;
            font-weight: 700;
            background: linear-gradient(45deg, #ff6b9d, #667eea, #ffd700);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            animation: textShine 3s infinite;
            text-shadow: 2px 2px 10px rgba(0,0,0,0.2);
        }

        @keyframes textShine {
            0%, 100% { filter: brightness(1) hue-rotate(0deg); }
            50% { filter: brightness(1.5) hue-rotate(20deg); }
        }

        /* Phrase rigolote en fonction de la tempÃ©rature */
        .temp-joke {
            background: linear-gradient(135deg, #ffd700 0%, #ffb347 100%);
            color: #333;
            padding: 20px;
            border-radius: 20px;
            margin: 20px 0;
            font-size: 1.3rem;
            font-weight: 600;
            text-align: center;
            border: 4px dashed #ff6b9d;
            animation: jokeWiggle 2s infinite;
            box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
        }

        @keyframes jokeWiggle {
            0%, 100% { transform: rotate(0deg); }
            25% { transform: rotate(2deg); }
            75% { transform: rotate(-2deg); }
        }

        .temperature {
            font-size: 2rem;
            color: #ff6b9d;
            margin: 20px 0;
            font-weight: 700;
            animation: tempPulse 2s infinite;
        }

        @keyframes tempPulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.1); }
        }

        .dark-mode .temperature {
            color: #ffd700;
        }

        .invasion-level {
            background: linear-gradient(90deg, #f093fb 0%, #f5576c 50%, #4facfe 100%);
            background-size: 200% 200%;
            animation: levelGradient 4s ease infinite;
            color: white;
            padding: 25px;
            border-radius: 20px;
            margin: 20px 0;
            text-align: center;
            box-shadow: 0 10px 30px rgba(245, 87, 108, 0.4);
        }

        @keyframes levelGradient {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        .invasion-level h3 {
            font-size: 2.2rem;
            margin-bottom: 15px;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        }

        .invasion-description {
            background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
            padding: 25px;
            border-radius: 20px;
            border-left: 8px solid #ff6b9d;
            margin: 20px 0;
            font-size: 1.3rem;
            box-shadow: 0 5px 20px rgba(252, 182, 159, 0.4);
            animation: descriptionFloat 3s ease-in-out infinite;
        }

        @keyframes descriptionFloat {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-10px); }
        }

        .dark-mode .invasion-description {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
        }

        .llama-container {
            text-align: center;
            margin: 30px 0;
        }

        .llama-image {
            max-width: 350px;
            border-radius: 30px;
            box-shadow: 0 15px 40px rgba(0,0,0,0.3);
            animation: llamaBounce 2s infinite, llamaRotate 6s infinite;
            border: 5px solid #ffd700;
        }

        @keyframes llamaBounce {
            0%, 100% { transform: translateY(0) rotate(0deg); }
            50% { transform: translateY(-20px) rotate(5deg); }
        }

        @keyframes llamaRotate {
            0%, 100% { filter: hue-rotate(0deg); }
            50% { filter: hue-rotate(20deg); }
        }

        /* Lamas qui traversent l'Ã©cran - N'interfÃ¨rent pas avec le site */
        .walking-llama {
            position: fixed;
            left: -150px;
            font-size: 100px;
            z-index: 1;
            filter: drop-shadow(0 10px 20px rgba(0,0,0,0.4));
            pointer-events: none; /* Ne bloque pas les clics */
        }

        @keyframes superWalk {
            0% {
                left: -150px;
                transform: scaleX(1) rotate(0deg);
            }
            25% {
                transform: scaleX(1) rotate(10deg);
            }
            48% {
                transform: scaleX(1) rotate(0deg);
            }
            50% {
                left: 100%;
                transform: scaleX(-1) rotate(0deg);
            }
            75% {
                transform: scaleX(-1) rotate(-10deg);
            }
            98% {
                transform: scaleX(-1) rotate(0deg);
            }
            100% {
                left: -150px;
                transform: scaleX(1) rotate(0deg);
            }
        }

        /* Compteur de lamas DÃ‰LIRANT */
        .llama-counter {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin: 20px 0;
            font-size: 60px;
            flex-wrap: wrap;
        }

        .llama-icon {
            animation: llamaWiggle 1s infinite;
            display: inline-block;
            transition: transform 0.3s;
        }

        .llama-icon:hover {
            transform: scale(2) rotate(360deg);
        }

        .llama-icon:nth-child(2) { animation-delay: 0.1s; }
        .llama-icon:nth-child(3) { animation-delay: 0.2s; }
        .llama-icon:nth-child(4) { animation-delay: 0.3s; }
        .llama-icon:nth-child(5) { animation-delay: 0.4s; }

        @keyframes llamaWiggle {
            0%, 100% { transform: rotate(-10deg) scale(1); }
            50% { transform: rotate(10deg) scale(1.2); }
        }

        /* Bouton mode sombre STYLÃ‰ */
        .theme-toggle {
            position: fixed;
            top: 20px;
            right: 20px;
            background: linear-gradient(135deg, #ffd700, #ff6b9d);
            border: 3px solid white;
            padding: 15px;
            border-radius: 50%;
            font-size: 2rem;
            cursor: pointer;
            box-shadow: 0 5px 20px rgba(255, 215, 0, 0.5);
            transition: all 0.3s;
            z-index: 1001;
            animation: themeFloat 3s ease-in-out infinite;
        }

        @keyframes themeFloat {
            0%, 100% { transform: translateY(0) rotate(0deg); }
            50% { transform: translateY(-10px) rotate(180deg); }
        }

        .theme-toggle:hover {
            transform: scale(1.3) rotate(360deg);
            box-shadow: 0 10px 40px rgba(255, 107, 157, 0.8);
        }

        .dark-mode .theme-toggle {
            background: linear-gradient(135deg, #667eea, #764ba2);
        }

        /* Message d'erreur DRAMATIQUE */
        .error-message {
            background: linear-gradient(90deg, #ff6b6b 0%, #ee5a6f 50%, #ff6b6b 100%);
            background-size: 200% 200%;
            animation: errorPulse 2s infinite;
            color: white;
            padding: 25px;
            border-radius: 20px;
            text-align: center;
            margin: 20px 0;
            display: none;
            font-size: 1.3rem;
            font-weight: 700;
            border: 4px solid white;
            box-shadow: 0 10px 30px rgba(255, 107, 107, 0.5);
        }

        @keyframes errorPulse {
            0% {
                background-position: 0% 50%;
                transform: scale(1);
            }
            50% {
                background-position: 100% 50%;
                transform: scale(1.05);
            }
            100% {
                background-position: 0% 50%;
                transform: scale(1);
            }
        }

        /* Loading spinner FOU */
        .loading {
            display: none;
            text-align: center;
            margin: 30px 0;
        }

        .spinner {
            border: 8px solid #f3f3f3;
            border-top: 8px solid #ff6b9d;
            border-right: 8px solid #667eea;
            border-bottom: 8px solid #ffd700;
            border-radius: 50%;
            width: 80px;
            height: 80px;
            animation: rainbowSpin 1s linear infinite;
            margin: 0 auto;
        }

        @keyframes rainbowSpin {
            0% { transform: rotate(0deg); filter: hue-rotate(0deg); }
            100% { transform: rotate(360deg); filter: hue-rotate(360deg); }
        }

        /* Historique stylÃ© */
        #historyCard {
            border: 3px dashed #ff6b9d;
        }

        #historyList .btn {
            margin: 5px;
            border-radius: 25px;
            font-weight: 600;
            animation: historyPulse 2s infinite;
        }

        @keyframes historyPulse {
            0%, 100% { box-shadow: 0 0 5px rgba(255, 107, 157, 0.3); }
            50% { box-shadow: 0 0 20px rgba(102, 126, 234, 0.6); }
        }

        /* Confettis de lamas */
        .llama-confetti {
            position: fixed;
            font-size: 30px;
            pointer-events: none;
            z-index: 10000;
            animation: confettiFall 4s linear forwards;
        }

        @keyframes confettiFall {
            0% {
                transform: translateY(-50px) rotate(0deg);
                opacity: 1;
            }
            100% {
                transform: translateY(100vh) rotate(720deg);
                opacity: 0;
            }
        }


        .invasion-card {
            background: linear-gradient(135deg, #ffe5e5 0%, #ffcccc 100%);
            border: 3px solid #ff0000;
            border-radius: 15px;
            padding: 20px;
            margin: 10px;
            box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
            animation: invasionAlert 2s infinite;
        }

        @keyframes invasionAlert {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-5px); }
        }

        /* Animations pour les alertes d'invasion */
        @keyframes slideInRight {
            from {
                transform: translateX(400px);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

        @keyframes slideOutRight {
            from {
                transform: translateX(0);
                opacity: 1;
            }
            to {
                transform: translateX(400px);
                opacity: 0;
            }
        }

        .pacified-card {
            background: linear-gradient(135deg, #e5ffe5 0%, #ccffcc 100%);
            border: 3px solid #00cc00;
            animation: none;
        }

        .pacify-btn {
            background: linear-gradient(90deg, #00cc00, #00ff00);
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 25px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s;
        }

        .pacify-btn:hover {
            transform: scale(1.1);
            box-shadow: 0 5px 15px rgba(0, 204, 0, 0.5);
        }

        .invasion-status {
            font-size: 1.5rem;
            font-weight: 700;
            text-align: center;
            padding: 10px;
            border-radius: 10px;
            margin: 10px 0;
        }

        .status-invaded {
            background: #ff0000;
            color: white;
            animation: statusBlink 1s infinite;
        }

        @keyframes statusBlink {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.7; }
        }

        .status-safe {
            background: #00cc00;
            color: white;
        }

        /* Boutons de sÃ©lection de dangerositÃ© */
        .danger-btn {
            padding: 15px 20px;
            border: 3px solid #ff6b9d;
            background: white;
            border-radius: 15px;
            cursor: pointer;
            transition: all 0.3s;
            font-size: 2rem;
        }

        .danger-btn:hover {
            transform: scale(1.2) rotate(10deg);
            background: linear-gradient(135deg, #ff6b9d, #667eea);
            border-color: white;
            box-shadow: 0 5px 20px rgba(255, 107, 157, 0.5);
        }

        .danger-btn:active {
            transform: scale(0.9);
        }

        /* Autocomplete suggestions */
        #suggestionsList div:hover {
            background: #ffe5f0 !important;
        }

        .dark-mode #suggestionsList {
            background: #34495e !important;
            color: white;
        }

        .dark-mode #dangerPopup {
            background: #2c3e50 !important;
            color: white;
        }

        /* Animation du bouton Signaler */
        @keyframes signalPulse {
            0%, 100% {
                box-shadow: 0 10px 30px rgba(255, 0, 0, 0.4);
            }
            50% {
                box-shadow: 0 10px 50px rgba(255, 0, 0, 0.8);
            }
        }

        /* Animation bounce pour l'emoji lama */
        @keyframes bounce {
            0%, 100% {
                transform: translateY(0);
            }
            50% {
                transform: translateY(-20px);
            }
        }

        /* Animation d'emoji lama au clic sur bouton */
        .llama-click-animation {
            position: fixed !important;
            font-size: 80px;
            z-index: 30000 !important; /* Au-dessus de tout, y compris les popups */
            pointer-events: none;
            filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
            animation: llamaClickDance 1.5s ease-out forwards !important;
            user-select: none;
            will-change: transform, opacity; /* Optimisation pour les performances */
            isolation: isolate; /* Créer un nouveau contexte d'empilement */
        }

        @keyframes llamaClickDance {
            0% {
                opacity: 0;
                transform: translate(-50%, -50%) translateY(100px) scale(0.3) rotate(-180deg);
            }
            15% {
                opacity: 1;
                transform: translate(-50%, -50%) translateY(-50px) scale(1.2) rotate(0deg);
            }
            30% {
                transform: translate(-50%, -50%) translateY(-80px) scale(1.3) rotate(360deg);
            }
            45% {
                transform: translate(-50%, -50%) translateY(-50px) scale(1.1) rotate(720deg);
            }
            60% {
                transform: translate(-50%, -50%) translateY(-30px) scale(1) rotate(1080deg);
            }
            75% {
                transform: translate(-50%, -50%) translateY(-10px) scale(0.9) rotate(1440deg);
            }
            90% {
                transform: translate(-50%, -50%) translateY(50px) scale(0.7) rotate(1800deg);
                opacity: 0.8;
            }
            100% {
                transform: translate(-50%, -50%) translateY(200px) scale(0.3) rotate(2160deg);
                opacity: 0;
            }
        }

        /* Version mobile pour l'animation lama */
        @media (max-width: 768px) {
            .llama-click-animation {
                font-size: 60px;
            }
        }

        /* ============================================
           RESPONSIVE DESIGN - MOBILE & TABLETTE
           ============================================ */

        /* Tablettes et petits Ã©crans (max 992px) */
        @media (max-width: 992px) {
            body {
                padding: 10px;
            }

            .container {
                max-width: 100%;
                padding: 0 10px;
            }

            .breaking-banner {
                font-size: 1.2rem;
                padding: 15px;
            }

            .main-card {
                padding: 20px;
            }

            h1 {
                font-size: 2rem !important;
            }

            .city-name {
                font-size: 2rem !important;
            }

            .theme-toggle {
                top: 10px;
                right: 10px;
                font-size: 1.5rem;
                padding: 10px;
            }

            .search-input {
                font-size: 1rem;
                padding: 12px 20px;
            }

            .search-btn {
                font-size: 0.9rem;
                padding: 12px 20px;
            }

            .walking-llama {
                font-size: 60px !important;
            }

            .llama-image {
                max-width: 250px;
            }

            .invasion-level h3 {
                font-size: 1.8rem;
            }

            .temp-joke {
                font-size: 1.1rem;
                padding: 15px;
            }

            .invasion-description {
                font-size: 1.1rem;
                padding: 20px;
            }
        }

        /* Mobiles (max 768px) */
        @media (max-width: 768px) {
            body {
                padding: 5px;
            }

            .breaking-banner {
                font-size: 1rem;
                padding: 10px;
                border-radius: 10px 10px 0 0;
            }

            .main-card {
                padding: 15px;
                border-radius: 0 0 15px 15px;
            }

            h1 {
                font-size: 1.5rem !important;
            }

            .city-name {
                font-size: 1.5rem !important;
            }

            .theme-toggle {
                top: 5px;
                right: 5px;
                font-size: 1.2rem;
                padding: 8px;
            }

            .search-input {
                font-size: 0.9rem;
                padding: 10px 15px;
            }

            .search-btn {
                font-size: 0.8rem;
                padding: 10px 15px;
            }

            .input-group {
                flex-direction: column;
                gap: 10px;
            }

            .input-group .search-input,
            .input-group .search-btn {
                width: 100%;
            }

            .temperature {
                font-size: 1.5rem;
            }

            .temp-joke {
                font-size: 1rem;
                padding: 12px;
                margin: 15px 0;
            }

            .invasion-level {
                padding: 15px;
                margin: 15px 0;
            }

            .invasion-level h3 {
                font-size: 1.5rem;
            }

            .invasion-description {
                font-size: 1rem;
                padding: 15px;
            }

            .llama-counter {
                font-size: 40px;
                gap: 10px;
            }

            .llama-image {
                max-width: 200px;
            }

            #llamaImage {
                font-size: 6rem !important;
                letter-spacing: 8px !important;
            }

            .walking-llama {
                font-size: 40px !important;
                display: none; /* Cacher sur mobile pour performance */
            }

            .wool-cloud {
                font-size: 25px;
            }

            .pizza-llama {
                font-size: 80px;
            }

            .pizza-speech {
                font-size: 1rem;
                padding: 15px 20px;
                bottom: 60%;
                width: 80%;
                max-width: 300px;
            }


            /* Popup de dangerositÃ© */
            #dangerPopup {
                width: 95% !important;
                padding: 20px !important;
            }

            #dangerPopup h2 {
                font-size: 1.5rem !important;
            }

            #dangerPopup p {
                font-size: 1rem !important;
            }

            .danger-btn {
                font-size: 1.5rem !important;
                padding: 10px 15px !important;
            }

            /* Cartes d'invasion */
            .invasion-card {
                padding: 15px;
                margin: 5px;
            }

            .invasion-status {
                font-size: 1.2rem;
            }

            .invasion-card h4 {
                font-size: 1.3rem !important;
            }

            /* Alertes */
            div[style*="slideInRight"],
            div[style*="slideInTop"] {
                left: 10px !important;
                right: 10px !important;
                width: calc(100% - 20px) !important;
                transform: translateX(0) !important;
                font-size: 1rem !important;
                padding: 15px 20px !important;
            }

            /* Bouton signaler */
            button[onclick="signalFromSearch()"] {
                font-size: 1rem !important;
                padding: 15px 25px !important;
            }

            /* Historique */
            #historyList .btn {
                font-size: 0.9rem;
                padding: 8px 15px;
            }

            /* Suggestions autocomplete */
            #suggestionsList {
                border-radius: 10px;
            }

            #suggestionsList > div {
                padding: 10px !important;
                font-size: 0.95rem !important;
            }

            /* Spinner de chargement */
            .spinner {
                width: 60px;
                height: 60px;
                border-width: 6px;
            }

            .loading p {
                font-size: 1rem !important;
            }

            /* Message d'erreur */
            .error-message {
                font-size: 1rem;
                padding: 15px;
            }

            /* Confettis - rÃ©duire la quantitÃ© sur mobile */
            .llama-confetti {
                font-size: 20px;
            }
        }

        /* TrÃ¨s petits mobiles (max 480px) */
        @media (max-width: 480px) {
            h1 {
                font-size: 1.3rem !important;
            }

            .breaking-banner {
                font-size: 0.9rem;
                padding: 8px;
            }

            .main-card {
                padding: 10px;
            }

            .city-name {
                font-size: 1.3rem !important;
            }

            .temperature {
                font-size: 1.3rem;
            }

            .temp-joke {
                font-size: 0.9rem;
                padding: 10px;
            }

            .invasion-level h3 {
                font-size: 1.3rem;
            }

            .invasion-description {
                font-size: 0.9rem;
                padding: 12px;
            }

            #llamaImage {
                font-size: 4rem !important;
                letter-spacing: 5px !important;
            }

            .llama-counter {
                font-size: 30px;
                gap: 5px;
            }

            .llama-image {
                max-width: 150px;
            }

            #dangerPopup h2 {
                font-size: 1.3rem !important;
            }

            .danger-btn {
                font-size: 1.2rem !important;
                padding: 8px 12px !important;
            }

            .invasion-card h4 {
                font-size: 1.1rem !important;
            }

        }

        /* Mode paysage mobile */
        @media (max-width: 768px) and (orientation: landscape) {
            .pizza-llama {
                font-size: 60px;
            }

            .pizza-speech {
                bottom: 70%;
                font-size: 0.9rem;
            }

            #dangerPopup {
                max-height: 90vh;
                overflow-y: auto;
            }
        }

        /* DÃ©sactiver certaines animations sur mobile pour performance */
        /* Animation pulseRed pour les marqueurs envahis */
        @keyframes pulseRed {
            0%, 100% {
                transform: scale(1);
                opacity: 1;
            }
            50% {
                transform: scale(1.3);
                opacity: 0.8;
            }
        }

        @media (max-width: 768px) {
            .main-card::before {
                animation: none;
            }

            @keyframes themeFloat {
                0%, 100% { transform: translateY(0) rotate(0deg); }
                50% { transform: translateY(0) rotate(0deg); }
            }

            @keyframes llamaBounce {
                0%, 100% { transform: translateY(0) rotate(0deg); }
                50% { transform: translateY(0) rotate(0deg); }
            }
        }
