:root {
    --bg-color: #f4f7f6;
    --card-bg: #ffffff;
    --primary: #007aff;
    --success: #34c759;
    --text: #1c1c1e;
    --border: #e5e5ea;
    --gray: #8e8e93;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text);
    padding: 10px;
    display: flex;
    justify-content: center;
}

.screen {
    width: 100%;
    max-width: 480px;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
}

.hidden { display: none !important; }

.card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 15px;
    text-align: center;
}

h1 { margin-bottom: 10px; font-size: 24px; }
h2 { font-size: 20px; margin-bottom: 15px; }

input[type="text"], input[type="number"] {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
    outline: none;
}

input[type="text"] { width: 100%; margin-bottom: 15px; }

/* Boutons Larges et Tactiles */
.btn-main, .btn-secondary {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-main { background: var(--primary); color: white; }
.btn-main:disabled { background: var(--gray); }
.btn-secondary { background: var(--border); color: var(--text); margin-top: 5px;}

/* Header & Classement */
header { background: var(--card-bg); padding: 15px; border-radius: 16px; margin-bottom: 15px; }
.user-info { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.user-info button { width: auto; padding: 6px 12px; font-size: 12px; }
.leaderboard { background: #f2f2f7; padding: 10px; border-radius: 8px; }

/* Onglets de Navigation */
.tabs { display: flex; gap: 5px; margin-bottom: 15px; }
.tab-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: var(--border);
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
}
.tab-btn.active { background: var(--primary); color: white; }
.admin-tab { background: #ffe5e5; color: #cc0000; }
.admin-tab.active { background: #cc0000; color: white; }

/* Matchs Card */
.match-card {
    background: var(--card-bg);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}
.match-info { font-size: 12px; color: var(--gray); margin-bottom: 8px; text-align: center;}
.match-teams { display: flex; align-items: center; justify-content: space-between; }
.team { flex: 1; font-weight: 500; font-size: 15px; }
.team.home { text-align: right; padding-right: 10px; }
.team.away { text-align: left; padding-left: 10px; }

.score-inputs { display: flex; gap: 8px; align-items: center; }
.score-inputs input { width: 45px; height: 40px; font-size: 18px; }

.qualifier-select { margin-top: 10px; width: 100%; padding: 8px; border-radius: 6px; border: 1px solid var(--border); }
.locked { background: #f9f9f9; opacity: 0.8; pointer-events: none;}

/* Supprime les flèches haut/bas sur Chrome, Safari, Edge et Opéra */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Supprime les flèches haut/bas sur Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

/* Optionnel : Ajuste légèrement la taille pour que le texte soit parfait */
.score-inputs input {
    -webkit-appearance: none;
    padding: 0; /* Libère de l'espace interne */
}