/* 
    Auteur: Zanolari Leonardo
    Date: 26.03.2026
    Description: Styles de la page index.html
*/

label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

input[type="text"],
input[type="number"],
select {
    width: 100%;
    padding: 6px 8px;
    margin-top: 4px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 0.95em;
    box-sizing: border-box;
}

/* Groupe de boutons du formulaire */
.btn-group {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.button_enregistrer {
    padding: 8px 16px;
    font-weight: bold;
    color: white;
    background-color: rgb(48, 156, 48);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.button_enregistrer:hover {
    background-color: rgb(35, 120, 35);
}

.button_annuler {
    padding: 8px 16px;
    font-weight: bold;
    color: white;
    background-color: #888;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.button_annuler:hover {
    background-color: #555;
}

/* Conteneur du formulaire */
.form-container {
    background-color: rgb(228, 223, 224);
    border-radius: 15px;
    padding: 20px;
    max-width: 600px;
}

.form-fieldset {
    background-color: rgb(112, 151, 102);
    border-radius: 10px;
    margin: 0;
    padding: 15px;
    border: none;
}

/* Liste des joueurs */
.joueurs-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
    max-width: 750px;
}

.joueurs-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    margin-bottom: 8px;
    background-color: #f4f4f4;
    border-radius: 6px;
    font-family: Arial, sans-serif;
    gap: 10px;
}

.joueurs-list li span {
    flex: 1;
    font-size: 0.92em;
}

/* Boutons de la liste */
.joueurs-list li button {
    padding: 5px 12px;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.88em;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.btn-modifier {
    background-color: #f0a500;
}

.btn-modifier:hover {
    background-color: #c47f00;
}

.btn-supprimer {
    background-color: #e03535;
}

.btn-supprimer:hover {
    background-color: #a01f1f;
}

/* === Navigation === */
nav {
    display: flex;
    gap: 16px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 5px;
    background-color: rgba(255,255,255,0.15);
    transition: background-color 0.2s;
}

nav a:hover {
    background-color: rgba(255,255,255,0.3);
}

header {
    background-color: #2c5f2e;
    color: white;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    margin: 0;
    font-size: 1.4em;
}

/* === Bouton Détail === */
.btn-detail {
    padding: 5px 12px;
    color: white;
    background-color: #1a73e8;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.88em;
    white-space: nowrap;
    transition: background-color 0.2s;
}

.btn-detail:hover {
    background-color: #1558b0;
}

/* === Vue Détail === */
.detail-container {
    max-width: 500px;
    margin: 30px auto;
    padding: 0 16px;
}

.detail-container h2 {
    margin-bottom: 16px;
}

.detail-card {
    background-color: #f4f4f4;
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 20px;
}

.detail-card p {
    margin: 10px 0;
    font-size: 1em;
}

.btn-retour {
    display: inline-block;
    padding: 8px 16px;
    background-color: #2c5f2e;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.2s;
}

.btn-retour:hover {
    background-color: #1e3f20;
}

/* === Vue Contact === */
textarea {
    width: 100%;
    padding: 6px 8px;
    margin-top: 4px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 0.95em;
    box-sizing: border-box;
    resize: vertical;
}

/* === Main padding === */
main {
    padding: 24px;
}
