:root {
    --primary-blue: #002b5c;
    --accent-gold: #ffcc00;
    --text-dark: #333;
    --bg-light: #f4f7f9;
}

body { font-family: 'Segoe UI', sans-serif; background: var(--bg-light); margin: 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
.main-header { background: white; padding: 15px 0; border-bottom: 2px solid #eee; }
.main-header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 24px; font-weight: 900; color: var(--primary-blue); }
.logo span { color: #d9534f; }
.nav-links { list-style: none; display: flex; gap: 20px; }
.nav-links a { text-decoration: none; color: var(--text-dark); font-weight: 600; }

/* Grand Jackpot Section */
.featured-jackpot {
    background: white;
    margin-top: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-left: 8px solid var(--accent-gold);
}

.badge-featured { background: var(--accent-gold); padding: 5px 20px; font-weight: bold; font-size: 12px; width: fit-content; }
.featured-content { padding: 40px; display: flex; justify-content: space-between; align-items: center; }

.prize-section .amount { font-size: 4rem; font-weight: 900; color: var(--primary-blue); }
.btn-main-play { background: #28a745; color: white; border: none; padding: 15px 40px; border-radius: 50px; font-size: 18px; font-weight: bold; cursor: pointer; transition: 0.3s; }
.btn-main-play:hover { background: #218838; transform: scale(1.05); }

/* Grid des 5 autres jeux */
.section-title { margin-top: 40px; color: var(--primary-blue); }
.secondary-games {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.mini-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-bottom: 3px solid #ddd;
}

.mini-prize { font-size: 1.2rem; font-weight: bold; color: var(--primary-blue); margin: 15px 0; }
.btn-mini { border: 1px solid var(--primary-blue); background: none; color: var(--primary-blue); padding: 8px 20px; border-radius: 20px; cursor: pointer; font-weight: 600; transition: 0.3s; }
.btn-mini:hover { background: var(--primary-blue); color: white; }

.timer {
    color: #d9534f; /* Rouge pour l'urgence */
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.timer-small {
    color: #d9534f;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: block;
}

/* Effet d'enfoncement au clic */
.btn-main-play:active, .btn-mini:active {
    transform: translateY(2px);
    filter: brightness(0.9);
}

/* Curseur qui change pour montrer que c'est cliquable */
button {
    cursor: pointer;
}

/* Style du Footer */
.main-footer {
    background: #002b5c;
    color: white;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    padding-bottom: 30px;
}

.footer-section h4 {
    color: #ffcc00;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 0.8rem;
    color: #7f8c8d;
}

/* Le lien Admin discret */
.admin-link {
    color: #34495e; /* Couleur très proche du fond pour être discret */
    text-decoration: none;
    margin-top: 10px;
    display: inline-block;
    font-size: 0.7rem;
}

.admin-link:hover {
    color: #ffcc00;
}

/* --- Boutons d'Authentification (Header) --- */
.auth-box {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-login {
    color: #002b5c;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 20px;
    border: 2px solid #002b5c;
    border-radius: 5px;
    transition: 0.3s;
}

.btn-login:hover {
    background: #002b5c;
    color: white;
}

.btn-signup {
    background: #ffcc00;
    color: #002b5c;
    text-decoration: none;
    font-weight: bold;
    padding: 12px 22px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.btn-signup:hover {
    background: #e6ac00;
    transform: translateY(-2px);
}

/* Style pour l'utilisateur connecté */
.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.2;
}

.balance-tag {
    background: #28a745;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-top: 5px;
}