/* Reset basique et propre */
:root {
    --bg-color: #0c111e;
    --text-color: #f3f4f6;
    --accent-color: #34d399; /* Émeraude */
    --accent-light: #a7f3d0;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --timebox-bg: rgba(0, 0, 0, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color); /* Fallback si JS échoue */
    overflow: hidden; /* Évite les scrolls liés aux particules */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Le fond particules derrière tout le reste */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Le contenu au premier plan */
.content {
    position: relative;
    z-index: 2;
    text-align: center;
    background: var(--glass-bg);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(12px); /* Effet verre (Glassmorphism) */
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    width: 90%;
    max-width: 650px;
}

h1 {
    margin-bottom: 2rem;
    font-size: clamp(1.8rem, 6vw, 3rem); /* Responsive typography senior */
    background: linear-gradient(90deg, #fff, var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Compte à rebours : Correction RESPONSIVE pour mobile --- */
.countdown-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem; /* Espace entre les boîtes */
    margin-bottom: 2.5rem;
    flex-wrap: wrap; /* ⚠️ INDISPENSABLE pour que les boîtes s'empilent proprement sur mobile */
}

.time-box {
    display: flex;
    flex-direction: column;
    background: var(--timebox-bg);
    padding: 1rem 1.2rem;
    border-radius: 12px;
    min-width: 90px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.time-box span:first-child {
    font-size: 2.8rem;
    font-weight: bold;
    color: var(--accent-color);
    line-height: 1.1;
}

.label {
    font-size: 0.9rem;
    text-transform: uppercase;
    opacity: 0.8;
    color: var(--accent-light);
    letter-spacing: 1px;
    margin-top: 0.3rem;
}

/* --- Statistiques visiteurs --- */
.visitor-stats {
    font-size: 1.3rem;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.visitor-stats strong {
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
}