/* --- static/style.css --- */

:root {
    /* PALETTE "DEEP FOREST" */
    --bg-main: #122e22;       /* Fond principal : Vert très sombre */
    --bg-card: #1d4232;       /* Fond des cartes : Vert Jungle */
    --bg-input: #285240;      /* Fond des champs */
    
    --text-main: #ecf0f1;     /* Blanc cassé */
    --text-muted: #8daea3;    /* Gris-vert doux */
    
    --accent-gold: #f1c40f;   /* Or (Titres, Focus) */
    --accent-green: #2ecc71;  /* Vert vif (Succès, Action) */
    --accent-red: #e74c3c;    /* Rouge (Danger, Erreur) */
    --accent-blue: #3498db;   /* Bleu (Info) */
    
    --border-subtle: #2f5e4b; /* Bordures discrètes */
    --shadow-card: 0 6px 12px rgba(0,0,0,0.4);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* --- LAYOUT --- */
.container {
    max-width: 600px;
    width: 100%;
}

.card {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-subtle);
}

/* --- TYPOGRAPHIE --- */
h1, h2, h3, h4 { color: var(--accent-gold); margin-top: 0; text-align: center; }
h1 { border-bottom: 2px solid var(--accent-gold); padding-bottom: 10px; margin-bottom: 20px; }
a { color: var(--accent-gold); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- FORMULAIRES & INPUTS --- */
input, select {
    width: 100%;
    padding: 10px;
    margin: 5px 0 15px 0;
    border-radius: 5px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-input);
    color: var(--text-main);
    font-weight: bold;
    box-sizing: border-box;
}
input:focus { outline: 2px solid var(--accent-gold); }

/* --- BOUTONS --- */
button {
    cursor: pointer;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: bold;
    transition: transform 0.1s, opacity 0.2s;
    color: white;
    font-size: 0.95em;
}
button:active { transform: scale(0.98); }
button:hover { opacity: 0.9; }

.btn-main { background-color: var(--accent-green); width: 100%; font-size: 1.1em; padding: 12px; }
.btn-danger { background-color: var(--accent-red); }
.btn-gold { background-color: var(--accent-gold); color: #122e22; } /* Texte sombre sur or */
.btn-back { background-color: #7f8c8d; width: 100%; margin-bottom: 20px; }
.btn-game { background-color: #e67e22; margin-right: 5px; font-size: 0.8em; }

/* --- COMPONENTS SPÉCIFIQUES --- */

/* Stats Grid (Profil) */
.stats-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; text-align: center; margin-bottom: 20px; }
.stat-box { background: var(--bg-main); padding: 10px; border-radius: 8px; border: 1px solid var(--border-subtle); }
.stat-val { font-size: 1.5em; font-weight: bold; display: block; }

/* List Items (Amis, Scores) */
.list-item {
    display: flex; justify-content: space-between; align-items: center;
    background: var(--bg-main); padding: 10px; margin-bottom: 8px;
    border-radius: 5px; border-left: 5px solid var(--accent-green);
}
.list-item.pending { border-left-color: var(--accent-gold); }
.list-item.accepted { border-left-color: var(--accent-green); }

/* Switch (Admin) */
.switch { position: relative; display: inline-block; width: 40px; height: 20px; vertical-align: middle; margin-left: 10px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #7f8c8d; transition: .4s; border-radius: 20px; }
.slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 2px; bottom: 2px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: var(--accent-green); }
input:checked + .slider:before { transform: translateX(20px); }

/* Modale (Pop-up) */
.modal { display: none; position: fixed; z-index: 100; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.85); align-items: center; justify-content: center; }
.modal-content { background-color: var(--bg-card); padding: 20px; border-radius: 10px; width: 90%; max-width: 400px; text-align: center; border: 2px solid var(--accent-gold); }
.game-select-btn { display: block; width: 100%; margin: 10px 0; padding: 15px; background: var(--bg-input); color: white; border: 1px solid var(--border-subtle); text-align: left; }
.game-select-btn:hover { background: var(--border-subtle); border-color: var(--accent-gold); }

/* Animations */
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }
.pulse { animation: pulse 1.5s infinite; }