/* ============================================
   VARIABLES — Thème Vin Neuchâtelois
   ============================================ */
:root {
    --vin-rouge: #7b0f23;
    --vin-rouge-light: #a01332;
    --vin-beige: #faf6f2;
    --vin-beige-light: #f7f1eb;
    --vin-bois: #e4d7c7;
    --vin-brun: #2e2b29;
    --danger: #b30000;
    --danger-hover: #d40000;
    --radius: 10px;
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
    --transition: 0.2s ease;
}

/* ============================================
   STYLE GLOBAL
   ============================================ */
body {
    font-family: "DM Sans", sans-serif;
    background: var(--vin-beige);
    color: var(--vin-brun);
    margin: 0;
    padding: 0;
}

/* ============================================
   TITRES
   ============================================ */
h1, h2, h3 {
    color: var(--vin-rouge);
    font-weight: 700;
    margin-bottom: 15px;
}

/* ============================================
   CONTENEURS
   ============================================ */
.container, form, .block {
    background: #ffffff;
    border: 1px solid var(--vin-bois);
    border-radius: var(--radius);
    padding: 20px;
    margin: 20px auto;
    max-width: 900px;
    box-shadow: var(--shadow);
}

/* ============================================
   BOUTONS
   ============================================ */
button, .btn {
    background: var(--vin-rouge);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
}

button:hover, .btn:hover {
    background: var(--vin-rouge-light);
}

/* Bouton danger */
.btn-danger {
    background: var(--danger);
}
.btn-danger:hover {
    background: var(--danger-hover);
}

/* Bouton secondaire */
.btn-secondary {
    background: #444;
}
.btn-secondary:hover {
    background: #222;
}

/* ============================================
   INPUTS & SELECTS
   ============================================ */
input, textarea, select {
    width: 100%;
    padding: 10px;
    margin: 8px 0 20px;
    border-radius: 6px;
    border: 1px solid #c8b8a6;
    font-size: 16px;
    background: #fffdf8;
}

/* ============================================
   TABLES
   ============================================ */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.table th {
    background: var(--vin-rouge);
    color: white;
    padding: 10px;
    border-bottom: 3px solid #d4b48a;
}

.table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

/* ============================================
   BLOCS / LISTES
   ============================================ */
.item, .manifestation-item, .reservation-item {
    background: var(--vin-beige-light);
    border-left: 5px solid var(--vin-rouge);
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 10px;
}

/* ============================================
   LIENS
   ============================================ */
a {
    color: var(--vin-rouge);
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition);
}

a:hover {
    color: var(--vin-rouge-light);
}

/* ============================================
   NAVIGATION
   ============================================ */
nav ul {
    list-style: none;
    padding: 0;
    margin: 20px;
    display: flex;
    gap: 20px;
}

nav ul li a {
    padding: 8px 14px;
    border-radius: 6px;
    background: var(--vin-rouge);
    color: white;
}

nav ul li a:hover {
    background: var(--vin-rouge-light);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 600px) {
    .container, form, .block {
        padding: 15px;
        margin: 10px;
    }

    button, .btn {
        width: 100%;
        text-align: center;
    }
}

/* ================================
   PAGE ADMIN – DISPONIBILITÉS
   ================================ */

/* Conteneur principal */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

/* Titre */
.container h1 {
    text-align: center;
    margin-bottom: 25px;
    color: #7A0010; /* ton bordeaux admin */
    text-shadow: 1px 1px 2px #00000055;
}

/* Sélecteur de manifestation */
#manifestationSelect {
    padding: 10px;
    font-size: 16px;
    border-radius: 6px;
    border: 1px solid #ccc;
    margin-bottom: 20px;
}

/* Tableau admin */
#tableDisponibilites {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #ffffffcc; /* léger fond blanc translucide */
}

#tableDisponibilites th,
#tableDisponibilites td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: center;
}

#tableDisponibilites th {
    background-color: #f7f7f7;
    font-weight: bold;
}

/* ✔ Disponibilité */
.dispo-yes {
    color: #0a8a00;
    font-weight: bold;
}

.dispo-no {
    color: #c00000;
    font-weight: bold;
}

/* Barre de boutons admin */
.btn-bar {
    margin-top: 25px;
    text-align: center;
}

.btn-bar button {
    background-color: #7A0010;
    color: white;
    border: none;
    padding: 10px 18px;
    margin: 5px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    transition: 0.2s;
}

.btn-bar button:hover {
    background-color: #5a000c;
}

/* Message de chargement */
#loading {
    font-weight: bold;
    color: #7A0010;
    margin-top: 10px;
    text-align: center;
}

