/* Feuille de style du site Circuit de Test */

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f2f2f2;
    color: #222;
}

a {
    color: #c62828;
}

.conteneur {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ----- En-tête ----- */
.entete {
    background-color: #1e1e1e;
    border-bottom: 4px solid #c62828;
}

.entete .conteneur {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    color: white;
    font-size: 22px;
    font-weight: bold;
    text-decoration: none;
    padding: 18px 0;
}

.logo span {
    color: #e53935;
}

nav a {
    color: #ddd;
    text-decoration: none;
    margin-left: 20px;
}

nav a:hover {
    color: white;
    text-decoration: underline;
}

nav a.lien-inscription {
    background-color: #c62828;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
}

.entete-admin {
    background-color: #2b3440;
}

main {
    padding-top: 20px;
    padding-bottom: 40px;
    min-height: 70vh;
}

/* ----- Bannière de l'accueil ----- */
.banniere {
    background-color: #1e1e1e;
    color: white;
    padding: 40px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.banniere h1 {
    margin-top: 0;
}

/* ----- Boutons ----- */
.bouton {
    display: inline-block;
    background-color: #c62828;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 4px;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
}

.bouton:hover {
    background-color: #a31f1f;
}

.bouton-clair {
    background-color: white;
    color: #222;
    border: 1px solid #bbb;
}

.bouton-clair:hover {
    background-color: #eee;
}

.bouton.petit {
    padding: 5px 10px;
    font-size: 13px;
}

.bouton.vert {
    background-color: #2e7d32;
}

.bouton.rouge {
    background-color: #c62828;
}

/* ----- Cartes ----- */
.cartes {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.carte {
    flex: 1;
    min-width: 200px;
    background-color: white;
    padding: 20px;
    border-radius: 6px;
    border-top: 4px solid #1e1e1e;
}

.carte h3 {
    margin-top: 0;
}

.prix {
    font-size: 20px;
    font-weight: bold;
    color: #c62828;
}

.carte.chiffre {
    color: #222;
    text-decoration: none;
}

.carte.chiffre strong {
    display: block;
    font-size: 32px;
}

.carte.a-traiter {
    border-top-color: #c62828;
}

/* ----- Tableaux ----- */
table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    margin-bottom: 20px;
}

th {
    background-color: #1e1e1e;
    color: white;
    text-align: left;
    padding: 10px;
}

td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

tr:nth-child(even) td {
    background-color: #fafafa;
}

.etiquette {
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 13px;
    color: white;
    text-decoration: none;
}

.etiquette.vert {
    background-color: #2e7d32;
}

.etiquette.rouge {
    background-color: #c62828;
}

.etiquette.orange {
    background-color: #ef6c00;
}

/* ----- Planning des box et paddocks ----- */
.grille-emplacements {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.case {
    padding: 12px;
    text-align: center;
    border-radius: 4px;
    font-size: 14px;
}

.case.libre {
    background-color: #c8e6c9;
}

.case.occupe {
    background-color: #ffcdd2;
}

/* ----- Formulaires ----- */
.formulaire {
    background-color: white;
    padding: 20px;
    border-radius: 6px;
    max-width: 500px;
}

.formulaire label {
    display: block;
    margin-top: 12px;
    font-weight: bold;
}

.formulaire input,
.formulaire select {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #bbb;
    border-radius: 4px;
    box-sizing: border-box;
}

.formulaire button {
    margin-top: 20px;
}

.formulaire .case input {
    width: auto;
}

.formulaire-ligne {
    margin-bottom: 20px;
}

.reglement {
    background-color: #f5f5f5;
    padding: 5px 15px;
    font-size: 14px;
}

.en-ligne {
    display: inline;
}

/* ----- Messages ----- */
.alerte {
    padding: 12px;
    border-radius: 4px;
}

.alerte.succes {
    background-color: #c8e6c9;
    color: #1b5e20;
}

.alerte.erreur {
    background-color: #ffcdd2;
    color: #b71c1c;
}

/* ----- Page de connexion ----- */
.page-connexion {
    padding-top: 80px;
}

.boite-connexion {
    margin: 0 auto;
}

.boite-connexion h1 {
    margin-top: 0;
}

/* ----- Pied de page ----- */
.pied {
    background-color: #1e1e1e;
    color: #aaa;
    text-align: center;
    padding: 15px 0;
    font-size: 14px;
}

.pied a {
    color: #ddd;
}

/* ----- Petits écrans (téléphone) ----- */
@media (max-width: 700px) {
    nav a {
        margin-left: 0;
        margin-right: 15px;
    }

    .banniere {
        padding: 20px;
    }

    table {
        font-size: 13px;
    }
}
