/* Variables de couleurs et réglages */
:root {
    --bg-color: #0f172a;
    --header-bg: #1e293b;
    --card-bg: #1e293b;
    --accent-color: #38bdf8;
    --text-main: #ffffff;
    --text-dim: #94a3b8;
    --success: #22c55e;
    --transition: all 0.3s ease;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, sans-serif;
    line-height: 1.5;
}

/* --- HEADER --- */
.main-header {
    background-color: var(--header-bg);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgba(56, 189, 248, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo h1 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
    font-weight: 800;
}

#clock {
    font-size: 1.1rem;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: var(--text-main);
}

/* --- STRUCTURE --- */
.content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
}

.board {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.column {
    background: rgba(30, 41, 59, 0.3);
    border-radius: 12px;
    padding: 1.5rem 1rem;
}

.column h3 {
    text-align: center;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    color: var(--text-dim);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.5rem;
}

.column.featured {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(56, 189, 248, 0.2);
}

/* --- CARDS & ICONS --- */
.event-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.event-card {
    background: var(--card-bg);
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

/* Conteneur Icône + Texte */
.event-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Style de l'image de l'icône */
.event-icon {
    width: 40px;
    height: 40px;
    min-width: 40px; /* Empêche l'écrasement */
    object-fit: contain;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 6px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.event-info h2 {
    font-size: 1rem;
    font-weight: 600;
}

.event-status {
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
    display: block;
    margin-bottom: 2px;
}

.event-timer {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    color: var(--accent-color);
    font-weight: bold;
    background: rgba(15, 23, 42, 0.5);
    padding: 0.5rem;
    border-radius: 4px;
    text-align: center;
}

/* Animation et Bordure pour les actifs */
.featured .event-card {
    animation: pulseBorder 2s infinite;
    border-left: 4px solid var(--success);
}

@keyframes pulseBorder {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.1); }
    70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* --- DESKTOP ADAPTATION --- */
@media (min-width: 1024px) {
    .main-header { padding: 0.75rem 2rem; }
    .logo h1 { font-size: 1.2rem; }
    #clock { font-size: 1.5rem; }
    
    .content { padding: 2rem; }

    .board {
        display: grid;
        grid-template-columns: 1fr 1.2fr 1fr;
    }

    .column { min-height: 70vh; }

    .featured .event-card {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .featured .event-timer {
        min-width: 140px;
        font-size: 1.4rem;
    }
}
