:root { 
    --primary: #1a4a1a; 
    --secondary: #27ae60; 
    --accent: #c0392b; 
    --gold: #d4af37; 
    --silver: #aaa9ad; 
    --bronze: #cd7f32;
    --bg-light: #f4f7f4;
}

body { 
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; 
    background: var(--bg-light); 
    margin: 0; 
    padding: 10px; 
    overflow-x: hidden; 
    color: #333;
}

.container { 
    max-width: 900px; 
    margin: 20px auto; 
    background: white; 
    padding: 25px; 
    border-radius: 15px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); 
    position: relative; 
}

.header-club { 
    text-align: center; 
    border-bottom: 3px solid var(--primary); 
    margin-bottom: 20px; 
    padding-bottom: 10px; 
}

/* Navigation par Onglets */
.tabs { display: flex; justify-content: center; border-bottom: 2px solid #eee; margin-bottom: 20px; }
.tab-btn { padding: 12px 25px; cursor: pointer; border: none; background: none; font-weight: bold; color: #888; transition: 0.3s; border-bottom: 4px solid transparent; }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }

.content { display: none; } 
.content.active { display: block; }

/* Cartes de Matchs */
.tour-header { background: #e8f5e9; color: var(--primary); padding: 10px; border-radius: 8px; margin: 25px 0 10px; text-align: center; font-weight: bold; border-left: 5px solid var(--primary); }
.match-card { display: grid; grid-template-columns: 60px 1fr 150px 1fr; align-items: center; padding: 12px; border: 1px solid #eee; margin-bottom: 8px; border-radius: 10px; background: white; transition: transform 0.2s; }
.match-card:hover { transform: scale(1.01); border-color: #ddd; }
.score-zone { display: flex; align-items: center; gap: 8px; justify-content: center; }
.score-zone input { width: 55px; height: 35px; text-align: center; font-size: 1.1em; font-weight: bold; border: 2px solid #ddd; border-radius: 6px; color: var(--primary); outline: none; }
.score-zone input:focus { border-color: var(--secondary); }

/* Boutons */
.btn { padding: 12px 20px; border: none; border-radius: 8px; color: white; cursor: pointer; font-weight: bold; margin: 5px; transition: all 0.2s; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.btn-green { background: var(--secondary); } 
.btn-blue { background: #2980b9; } 
.btn-red { background: var(--accent); } 
.btn-dark { background: #34495e; }
.btn:hover { opacity: 0.9; transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.15); }

/* Classement */
table { width: 100%; border-collapse: collapse; margin-top: 20px; background: white; border-radius: 8px; overflow: hidden; }
th { background: #f8f9fa; padding: 15px; border-bottom: 2px solid #eee; }
td { padding: 12px; border-bottom: 1px solid #eee; text-align: center; }
.rank-1 { background: #fffde7; font-weight: bold; }

/* Archives */
.archive-card { border: 1px solid #ddd; margin-bottom: 15px; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.archive-card-header { background: var(--primary); color: white; padding: 12px; display: flex; justify-content: space-between; font-weight: bold; }
details { margin-top: 10px; border-top: 1px solid #eee; padding-top: 10px; }
details summary { cursor: pointer; font-weight: bold; color: var(--primary); font-size: 0.9em; outline: none; list-style: none; }
details summary::before { content: "➕ "; font-size: 0.8em; }
details[open] summary::before { content: "➖ "; }
details p { background: #f9f9f9; padding: 10px; border-radius: 6px; font-size: 0.85em; color: #555; line-height: 1.5; margin-top: 5px; }

/* Footer Moderne */
footer { margin-top: 60px; padding: 40px 10px; text-align: center; color: #555; }
.footer-line { height: 2px; width: 80px; background: linear-gradient(90deg, transparent, var(--primary), transparent); margin: 0 auto 20px; }
.footer-content p { margin: 6px 0; font-size: 0.95em; letter-spacing: 0.4px; }
.footer-credits { font-size: 0.75em !important; color: #999; text-transform: uppercase; margin-top: 10px; }
.footer-credits span { color: var(--primary); font-weight: bold; }

/* Widget flottant */
.floating-widget { position: fixed; bottom: 20px; right: 20px; width: 260px; background: white; border: 2px solid var(--primary); border-radius: 12px; box-shadow: 0 8px 25px rgba(0,0,0,0.2); z-index: 999; display: none; }
.widget-header { background: var(--primary); color: white; padding: 10px; cursor: pointer; display: flex; justify-content: space-between; font-weight: bold; border-radius: 10px 10px 0 0; }
.widget-body { padding: 10px; max-height: 300px; overflow-y: auto; }

/* Animation Confettis */
.confetti { position: fixed; width: 10px; height: 10px; top: -15px; z-index: 10000; animation: fall linear forwards; pointer-events: none; }
@keyframes fall { to { transform: translateY(105vh) rotate(360deg); } }

@media (max-width: 600px) {
    .match-card { grid-template-columns: 40px 1fr 120px 1fr; font-size: 0.9em; }
    .score-zone input { width: 45px; }
}