@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Page de chargement */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgb(36, 59, 49) 0%, rgb(75, 137, 98) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-logo {
    width: 250px;
    height: 250px;
    animation: loadingPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(83, 161, 110, 0.6));
}

.loading-text {
    margin-top: 30px;
    font-size: 1.5em;
    color: rgb(192, 208, 190);
    font-weight: 700;
    animation: loadingFade 1.5s ease-in-out infinite;
}

@keyframes loadingPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes loadingFade {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Menu de navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, rgba(36, 59, 49, 0.95) 0%, rgba(75, 137, 98, 0.95) 100%);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid rgb(83, 161, 110);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo-img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(83, 161, 110, 0.5));
    transition: transform 0.3s ease;
}

.nav-logo-img:hover {
    transform: scale(1.1) rotate(5deg);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: rgb(192, 208, 190);
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: white;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 255, 255, 0.6),
        0 0 30px rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.nav-link:active {
    transform: translateY(0);
}

body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    background: linear-gradient(135deg, rgb(36, 59, 49) 0%, rgb(75, 137, 98) 100%);
    color: rgb(192, 208, 190);
    overflow-x: hidden;
    padding-top: 80px;
}

/* Sections */
.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    scroll-behavior: smooth;
    position: relative;
}

/* Effet de feuilles en arrière-plan */
.section::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 15% 30%, rgba(83, 161, 110, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 85% 70%, rgba(75, 137, 98, 0.15) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* NIRD Section */
#nird-section {
    background: 
        linear-gradient(180deg, rgba(36, 59, 49, 0.9) 0%, rgba(75, 137, 98, 0.95) 100%),
        radial-gradient(circle at 20% 80%, rgba(83, 161, 110, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(75, 137, 98, 0.4) 0%, transparent 60%),
        radial-gradient(circle at 50% 50%, rgba(192, 208, 190, 0.1) 0%, transparent 70%),
        linear-gradient(135deg, rgb(36, 59, 49) 0%, rgb(75, 137, 98) 50%, rgb(83, 161, 110) 100%);
    position: relative;
    overflow: hidden;
}

/* Effet de particules organiques flottantes */
#nird-section::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle, rgba(255, 255, 255, 0.4) 1.5px, transparent 1.5px),
        radial-gradient(circle, rgba(255, 255, 255, 0.3) 2px, transparent 2px),
        radial-gradient(circle, rgba(255, 255, 255, 0.5) 1px, transparent 1px),
        radial-gradient(circle, rgba(192, 208, 190, 0.2) 2.5px, transparent 2.5px),
        radial-gradient(circle, rgba(255, 255, 255, 0.35) 1.2px, transparent 1.2px);
    background-size: 200px 180px, 150px 220px, 180px 160px, 250px 200px, 120px 140px;
    background-position: 0 0, 80px 40px, 150px 90px, 50px 120px, 200px 30px;
    animation: floatParticles 30s linear infinite;
    opacity: 0.7;
    z-index: 0;
    pointer-events: none;
}

@keyframes floatParticles {
    0% { transform: translateY(0); }
    100% { transform: translateY(-180px); }
}

#clicker-section {
    background: 
        linear-gradient(180deg, rgba(75, 137, 98, 0.95) 0%, rgba(36, 59, 49, 0.9) 100%),
        radial-gradient(ellipse at 30% 60%, rgba(83, 161, 110, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 40%, rgba(75, 137, 98, 0.35) 0%, transparent 60%),
        radial-gradient(circle at 50% 80%, rgba(70, 130, 180, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 15% 20%, rgba(100, 150, 200, 0.1) 0%, transparent 40%),
        linear-gradient(135deg, rgb(75, 137, 98) 0%, rgb(36, 59, 49) 50%, rgb(45, 80, 65) 100%);
    position: relative;
    overflow: hidden;
}

/* Effet d'ondes subtiles avec particules blanches */
#clicker-section::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle, rgba(255, 255, 255, 0.45) 1px, transparent 1px),
        radial-gradient(circle, rgba(255, 255, 255, 0.35) 1.8px, transparent 1.8px),
        radial-gradient(circle, rgba(255, 255, 255, 0.3) 1.3px, transparent 1.3px),
        radial-gradient(circle, rgba(100, 150, 200, 0.3) 1.5px, transparent 1.5px),
        radial-gradient(circle, rgba(70, 130, 180, 0.25) 1.2px, transparent 1.2px),
        radial-gradient(circle, rgba(192, 208, 190, 0.25) 2px, transparent 2px),
        repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(70, 130, 180, 0.04) 40px, rgba(70, 130, 180, 0.04) 80px),
        repeating-linear-gradient(0deg, transparent, transparent 60px, rgba(83, 161, 110, 0.05) 60px, rgba(83, 161, 110, 0.05) 120px);
    background-size: 180px 160px, 220px 190px, 140px 170px, 160px 150px, 200px 180px, 200px 150px, 100% 100%, 100% 100%;
    background-position: 20px 30px, 120px 80px, 180px 10px, 90px 120px, 40px 60px, 60px 100px, 0 0, 0 0;
    animation: waterFlow 20s ease-in-out infinite;
    opacity: 0.8;
    z-index: 0;
    pointer-events: none;
}

@keyframes waterFlow {
    0%, 100% { transform: translateX(0) translateY(0); }
    50% { transform: translateX(-20px) translateY(10px); }
}

.content {
    max-width: 1100px;
    background: rgba(36, 59, 49, 0.95);
    padding: 50px 60px;
    border-radius: 15px;
    border: 2px solid rgb(83, 161, 110);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
    margin: 0 auto;
    text-align: center;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content h1 {
    color: rgb(192, 208, 190);
    font-size: 2.3em;
    margin-bottom: 25px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.nird-intro {
    margin-bottom: 30px;
    text-align: center;
}

.nird-intro p {
    font-size: 1em;
    line-height: 1.8;
    margin-bottom: 15px;
    color: rgb(192, 208, 190);
    font-weight: 600;
}

.nird-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 0 auto 30px auto;
    max-width: 1100px;
    justify-items: center;
    align-items: stretch;
}

.action-card {
    background: linear-gradient(135deg, rgba(75, 137, 98, 0.3) 0%, rgba(83, 161, 110, 0.2) 100%);
    padding: 25px 20px;
    border-radius: 12px;
    border: 2px solid rgb(83, 161, 110);
    text-align: center;
    transition: all 0.4s ease;
    animation: slideUp 0.6s ease-out backwards;
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.action-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(83, 161, 110, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.action-card:hover::before {
    opacity: 1;
}

.action-card:nth-child(1) { animation-delay: 0.1s; }
.action-card:nth-child(2) { animation-delay: 0.2s; }
.action-card:nth-child(3) { animation-delay: 0.3s; }
.action-card:nth-child(4) { animation-delay: 0.4s; }

.action-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 12px 30px rgba(83, 161, 110, 0.4);
    border-color: rgb(192, 208, 190);
    background: linear-gradient(135deg, rgba(83, 161, 110, 0.4) 0%, rgba(75, 137, 98, 0.3) 100%);
}

.action-card h3 {
    font-size: 1.2em;
    margin-bottom: 12px;
    color: rgb(192, 208, 190);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.action-card p {
    font-size: 0.9em;
    line-height: 1.6;
    color: rgb(192, 208, 190);
    margin: 0;
    font-weight: 600;
}

.nird-footer {
    text-align: center;
    margin-top: 20px;
}

.nird-footer p {
    font-size: 0.95em;
    line-height: 1.8;
    color: rgb(192, 208, 190);
    margin-bottom: 10px;
    font-weight: 600;
}

.scroll-hint {
    text-align: center;
    font-size: 1.8em;
    color: rgb(83, 161, 110);
    margin-top: 40px;
    animation: bounceDown 2s infinite;
    user-select: none;
    text-shadow: 0 0 10px rgba(83, 161, 110, 0.5), 0 0 15px rgba(100, 150, 200, 0.3);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
}

@keyframes bounceDown {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(20px);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    25% { transform: translateX(-3px) rotate(-1deg); }
    50% { transform: translateX(3px) rotate(1deg); }
    75% { transform: translateX(-3px) rotate(-1deg); }
}
    60% {
        transform: translateY(-5px);
    }
}

/* Cookie Clicker Section */
#clicker-section {
    background: #f0f0f0;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

#clicker-section::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(83, 161, 110, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(75, 137, 98, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(192, 208, 190, 0.1) 0%, transparent 50%);
    animation: backgroundShift 20s ease-in-out infinite;
    z-index: 0;
}

@keyframes backgroundShift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-50px, -50px) rotate(5deg); }
}

@keyframes backgroundPulse {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.1); }
}

.clicker-container {
    background: rgba(36, 59, 49, 0.95);
    padding: 50px;
    border-radius: 15px;
    border: 2px solid rgb(83, 161, 110);
    text-align: center;
    max-width: 1400px;
    width: 100%;
    position: relative;
    z-index: 10;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    margin: 0 auto;
}

.clicker-container h2 {
    color: rgb(192, 208, 190);
    font-size: 2.3em;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.subtitle {
    color: rgb(83, 161, 110);
    font-size: 1.1em;
    margin-bottom: 30px;
    font-weight: 600;
}

/* Game Layout */
.game-layout {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 30px;
    align-items: start;
    margin: 30px auto 0 auto;
    max-width: 100%;
    justify-items: center;
}

.left-column, .right-column {
    text-align: left;
}

.center-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Stats */
.stats {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    background: linear-gradient(135deg, rgba(75, 137, 98, 0.3) 0%, rgba(83, 161, 110, 0.2) 100%);
    padding: 20px;
    border-radius: 12px;
    gap: 30px;
    border: 2px solid rgb(83, 161, 110);
    width: 100%;
    backdrop-filter: blur(5px);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex: 1;
    min-width: 0;
}

.stat-label {
    font-size: 0.85em;
    color: rgb(192, 208, 190);
    margin-bottom: 8px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 1.9em;
    color: rgb(83, 161, 110);
    font-weight: 600;
    animation: pulse 2s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(83, 161, 110, 0.5), 0 0 20px rgba(100, 150, 200, 0.2);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Cookie Button */
.cookie-button {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 3px solid rgb(83, 161, 110);
    background-image: url('logo.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-color: rgba(75, 137, 98, 0.2);
    cursor: pointer;
    transition: all 0.1s ease;
    margin: 30px 0;
    position: relative;
    overflow: visible;
    animation: gentleFloat 3s ease-in-out infinite, gentleRotate 10s linear infinite;
    filter: drop-shadow(0 8px 16px rgba(83, 161, 110, 0.4));
    box-shadow: 0 0 30px rgba(83, 161, 110, 0.3), 0 0 50px rgba(70, 130, 180, 0.15), inset 0 0 20px rgba(192, 208, 190, 0.1);
}

@keyframes gentleFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

@keyframes gentleRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cookie-button.shake-once {
    animation: gentleFloat 3s ease-in-out infinite, gentleRotate 10s linear infinite, shakeOnly 0.3s ease !important;
}

@keyframes shakeOnly {
    0%, 100% { margin-left: 0; }
    25% { margin-left: -10px; }
    50% { margin-left: 10px; }
    75% { margin-left: -10px; }
}

.cookie-button:hover {
    transform: scale(1.05);
}

.cookie-button:active {
    transform: scale(0.95);
}

#click-count {
    font-size: 1.2em;
    color: rgb(192, 208, 190);
    font-weight: 600;
    margin-top: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Upgrades */
.upgrades {
    text-align: left;
}

.upgrades h3 {
    color: rgb(192, 208, 190);
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.3em;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.upgrade-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 5px;
}

.upgrade-list::-webkit-scrollbar {
    width: 8px;
}

.upgrade-list::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
}

.upgrade-list::-webkit-scrollbar-thumb {
    background: rgba(36, 59, 49, 0.8);
    border-radius: 10px;
}

.upgrade-list::-webkit-scrollbar-thumb:hover {
    background: rgb(36, 59, 49);
}

.upgrade-btn {
    padding: 15px;
    border: 2px solid rgb(83, 161, 110);
    background: linear-gradient(135deg, rgba(75, 137, 98, 0.4) 0%, rgba(83, 161, 110, 0.3) 100%);
    color: rgb(192, 208, 190);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    pointer-events: auto;
    position: relative;
    z-index: 10;
    backdrop-filter: blur(5px);
}

.upgrade-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(83, 161, 110, 0.5) 0%, rgba(75, 137, 98, 0.4) 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(83, 161, 110, 0.5);
    border-color: rgb(192, 208, 190);
}

.upgrade-btn:active:not(:disabled) {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 5px rgba(83, 161, 110, 0.3);
}

.upgrade-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: auto;
    background: linear-gradient(135deg, rgba(36, 59, 49, 0.5) 0%, rgba(75, 137, 98, 0.3) 100%);
}

.upgrade-btn span {
    font-size: 0.8em;
    opacity: 0.8;
    pointer-events: none;
}

.upgrade-btn .emoji {
    font-size: 1.5em;
    pointer-events: none;
}

/* Objectifs */
.objectives {
    text-align: left;
}

.objectives h3 {
    color: rgb(192, 208, 190);
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.3em;
    text-transform: uppercase;
    letter-spacing: 2px;
}

#objectives-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 5px;
}

#objectives-list::-webkit-scrollbar {
    width: 8px;
}

#objectives-list::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
}

#objectives-list::-webkit-scrollbar-thumb {
    background: rgba(36, 59, 49, 0.8);
    border-radius: 10px;
}

#objectives-list::-webkit-scrollbar-thumb:hover {
    background: rgb(36, 59, 49);
}

.objective-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: linear-gradient(135deg, rgba(75, 137, 98, 0.3) 0%, rgba(83, 161, 110, 0.2) 100%);
    border: 2px solid rgb(83, 161, 110);
    border-radius: 8px;
    transition: all 0.3s ease;
    animation: slideInLeft 0.5s ease-out backwards;
    backdrop-filter: blur(5px);
}

.objective-item:hover {
    transform: translateX(5px);
    box-shadow: -5px 0 15px rgba(83, 161, 110, 0.3);
    border-color: rgb(192, 208, 190);
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.objective-item.completed {
    background: linear-gradient(135deg, rgba(83, 161, 110, 0.6) 0%, rgba(75, 137, 98, 0.5) 100%);
    border-color: rgb(192, 208, 190);
    animation: celebrate 0.6s ease-out, glow 2s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(83, 161, 110, 0.6);
}

@keyframes celebrate {
    0% { transform: scale(1); }
    50% { transform: scale(1.1) rotate(2deg); }
    100% { transform: scale(1) rotate(0deg); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(83, 161, 110, 0.6); }
    50% { box-shadow: 0 0 35px rgba(192, 208, 190, 0.8); }
}

.objective-icon {
    font-size: 2em;
}

.objective-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.objective-info strong {
    font-size: 1em;
    color: rgb(192, 208, 190);
}

.objective-info span {
    font-size: 0.85em;
    color: rgb(192, 208, 190);
    opacity: 0.9;
}

.objective-status {
    font-size: 1.5em;
}

/* Inventaire */
.inventory {
    margin-top: 40px;
    padding: 20px;
    background: #fafafa;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.inventory h3 {
    color: #333;
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.3em;
}

.inventory-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
    max-height: 200px;
    overflow-y: auto;
    padding: 10px;
}

.inventory-items::-webkit-scrollbar {
    width: 8px;
}

.inventory-items::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.inventory-items::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.inventory-items::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.inventory-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    min-width: 40px;
    min-height: 40px;
}

.inventory-emoji {
    font-size: 1.5em;
}

.inventory-count {
    font-size: 0.9em;
    font-weight: bold;
    color: #666;
}

/* Passive emoji animation */
.passive-emoji {
    position: absolute;
    pointer-events: none;
    font-size: 0.1em;
    z-index: 1000;
    animation: passiveFloat 1s ease-out forwards;
}

@keyframes passiveFloat {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(0, -80px) scale(0.6);
    }
}

/* Floating numbers sur le bouton */
.float-number-button {
    position: absolute;
    pointer-events: none;
    font-weight: bold;
    font-size: 0.4em;
    z-index: 1000;
    animation: floatUpButton 1s ease-out forwards;
    color: #333;
}

@keyframes floatUpButton {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-60px) scale(0.8);
    }
}

/* Confetti animation */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    top: -10px;
    z-index: 9999;
    pointer-events: none;
    animation: confettiFall linear forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Floating numbers animation */
.float-number {
    position: fixed;
    pointer-events: none;
    font-weight: bold;
    font-size: 1.5em;
    animation: floatUp 1s ease-out forwards;
    z-index: 1000;
    color: #333;
}

@keyframes floatUp {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) scale(0.8);
    }
}

/* Thèmes de l'arrière-plan */
.theme-destroyed {
    background: linear-gradient(180deg, #3a3a3a 0%, #1a1a1a 100%);
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(100, 50, 20, 0.8) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(80, 40, 20, 0.7) 0%, transparent 50%),
        linear-gradient(180deg, #2a2a2a 0%, #0a0a0a 100%);
}

/* Animations pour les éléments */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes sway {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(1deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .content {
        padding: 30px 20px;
    }

    .content h1 {
        font-size: 1.5em;
    }

    .nird-actions {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .action-card {
        padding: 15px 10px;
    }

    .action-card h3 {
        font-size: 1em;
    }

    .action-card p {
        font-size: 0.85em;
    }

    .game-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cookie-button {
        width: 200px;
        height: 200px;
        font-size: 100px;
    }

    .clicker-container {
        padding: 30px 20px;
    }

    .stats {
        flex-direction: column;
    }
}
