/* ===============================
   STYLE GLOBAL BACK-OFFICE
   =============================== */

/* RESET & BASE */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: #f4f6f9;
    color: #333;
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh; /* pour centrer verticalement */
    transition: background 0.5s ease, color 0.5s ease;
}

/* CONTAINER PRINCIPAL */
.container {
    max-width: 500px;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
}

/* LOGO */
.logo {
    width: 120px;
    height: auto;
    margin-bottom: 20px;
}

/* TITRES */
h1 {
    margin-bottom: 30px;
    color: #222;
    font-size: 24px;
}

/* ===============================
   BOUTONS
   =============================== */
.btn {
    display: block;              /* un bouton par ligne */
    margin: 15px auto;
    padding: 15px 25px;
    font-size: 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    color: white;
    transition: background 0.3s ease, transform 0.2s ease;
    width: 80%;                  /* même largeur pour tous */
}

.btn:hover {
    transform: translateY(-2px);
}

/* Couleurs spécifiques */
.btn-admin { background: #2196F3; }
.btn-admin:hover { background: #1976d2; }

.btn-default { background: #4CAF50; }
.btn-default:hover { background: #45a049; }

.btn-logout {
    background: #555;
    margin-top: 30px;
}
.btn-logout:hover {
    background: #333;
}
/* ===============================
   DARK MODE
   =============================== */
body.dark {
    background: #181a1b;
    color: #eee;
}

body.dark .container {
    background: #242526;
    color: #eee;
    box-shadow: 0 4px 12px rgba(255,255,255,0.1);
}

body.dark h1 {
    color: #fff;
}

body.dark .btn-logout {
    background: #777;
}
body.dark .btn-logout:hover {
    background: #999;
}

/* ===============================
   TOGGLE BUTTON (en haut à droite)
   =============================== */
.toggle-darkmode {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #555;
    transition: color 0.3s ease;
}
body.dark .toggle-darkmode {
    color: #eee;
}

/* ===============================
   FORMULAIRES
   =============================== */
form {
    margin: 20px 0;
}

input, select {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}

input:focus, select:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 5px rgba(33,150,243,0.4);
}

.saison-badge {
    display: inline-block;
    margin: 10px auto 20px;
    padding: 6px 14px;
    font-size: 1.1em;
    font-weight: 600;
    color: #fff;
    background-color: #962b25; /* couleur club */
    border-radius: 20px;
    text-align: center;
}
