/* css/apocalypse.css - Styles spécifiques pour la page apocalypse */

/* Effet de particules apocalyptiques */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--danger);
    border-radius: 50%;
    animation: float 20s infinite linear;
    opacity: 0.3;
}

@keyframes float {
    from {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    to {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

/* Centrage principal */
main {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Section horloge */
.clock-section {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInUp 0.7s ease-out 0.1s both;
}

.page-title h1 {
    background: linear-gradient(135deg, var(--danger), #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    animation: pulse-danger 2s ease-in-out infinite;
}

@keyframes pulse-danger {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(220, 53, 69, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 40px rgba(220, 53, 69, 0.8));
    }
}

.clock-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 2rem auto;
}

.clock-face {
    width: 100%;
    height: 100%;
    border: 4px solid var(--danger);
    border-radius: 50%;
    position: relative;
    background: radial-gradient(circle at center, rgba(220, 53, 69, 0.1), transparent);
    box-shadow: 0 0 50px rgba(220, 53, 69, 0.3);
}

.clock-hand {
    position: absolute;
    bottom: 50%;
    left: 50%;
    width: 4px;
    height: 40%;
    background: var(--danger);
    transform-origin: bottom center;
    transform: translateX(-50%) rotate(0deg);
    transition: transform 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
    box-shadow: 0 0 20px rgba(220, 53, 69, 0.8);
}

.clock-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: var(--danger);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px rgba(220, 53, 69, 0.8);
}

.time-display {
    font-size: 3rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    margin: 1rem 0;
    color: var(--danger);
    text-shadow: 0 0 20px rgba(220, 53, 69, 0.5);
}

.midnight-label {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.threat-level {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(220, 53, 69, 0.1);
    border: 2px solid var(--danger);
    border-radius: 25px;
    font-weight: 600;
    margin-bottom: 2rem;
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Contrôles de simulation */
.simulation-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.sim-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.sim-btn-chaos {
    background: var(--danger);
    color: white;
}

.sim-btn-chaos:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.sim-btn-peace {
    background: var(--success);
    color: white;
}

.sim-btn-peace:hover {
    background: #22a053;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.sim-btn-reset:hover {
    background: var(--bg-tertiary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Section événements */
.events-section {
    width: 100%;
    max-width: 800px;
    margin-bottom: 2rem;
    animation: fadeInUp 0.9s ease-out 0.3s both;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--text-primary);
}

.event-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.event-card {
    background: var(--bg-primary);
    border: 1px solid var(--bg-tertiary);
    border-radius: var(--radius);
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--danger);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.event-card.active::before {
    transform: scaleX(1);
}

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

.event-card.active {
    background: rgba(220, 53, 69, 0.05);
    border-color: var(--danger);
}

.event-icon {
    font-size: 2rem;