﻿/* Couleurs pour les niveaux */



/* Reset et base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

body {
    padding: 20px;
    line-height: 1.6;
    background-color: #f9f9f9;
}

/* Conteneurs */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Titres */
h1, h2, h3 {
    color: #333;
    margin-bottom: 20px;
}

h1 {
    text-align: center;
}

/* Formulaires */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

label {
    font-weight: bold;
    font-size: 16px;
}


.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}


input[type="text"],
input[type="number"],
select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

/* Boutons (rouge #CC0000 avec texte blanc) */
button,
.button,
.supprimer-btn {
    padding: 10px 15px;
    background-color: #CC0000;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    display: inline-block;
    font-size: 16px;
}

button:hover,
.button:hover,
.supprimer-btn:hover {
    background-color: #990000;
}

/* Bouton supprimer spécifique (plus petit) */
.supprimer-btn {
    padding: 5px 10px;
    font-size: 12px;
    margin: 0;
}

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input {
    margin: 0;
}

/* Tableaux */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th, td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
}

tfoot td {
    font-weight: bold;
}

/* Ligne de réduction */
.reduction {
    background-color: #fff3cd;
    font-style: italic;
}

.total-avant-reduction {
    text-decoration: line-through;
    color: #888;
}

/* Messages */
.message {
    padding: 10px;
    background-color: #dff0d8;
    color: #3c763d;
    border-radius: 4px;
    margin: 10px 0;
}

/* Récapitulatif de commande */
.recapitulatif {
    margin: 20px 0;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.info-commande {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.total-commande {
    font-weight: bold;
    text-align: right;
    margin-top: 10px;
}

/* Conteneur pour les boutons */
.button-container {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

/* Prix estimé */
#prix_estime {
    font-weight: bold;
    color: #CC0000;
    font-size: 18px;
}

/* Filtres (pour suivi_reservations.php) */
.filtres {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    align-items: flex-end;
}

.filtre-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 150px;
    flex-grow: 1;
}

.filtre-group label {
    font-weight: bold;
    font-size: 14px;
}

.filtre-group input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.filtre-group button {
    padding: 8px 15px;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 600px) {
    .form-group {
        width: 100%;
    }

    button, .button {
        width: 100%;
        margin-bottom: 10px;
    }

    .button-container {
        flex-direction: column;
    }

    th, td {
        padding: 8px;
        font-size: 14px;
    }
}


/* Ajouts pour suivi-resa.php */

/* Conteneur pour les filtres */
.filtres {
    background-color: #fff;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.filtres h3 {
    margin-top: 0;
    color: #CC0000;
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.filtre-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 150px;
    flex-grow: 1;
}

.filtre-group label {
    font-weight: bold;
    font-size: 14px;
}

.filtre-group input,
.filtre-group select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.filtre-group button {
    padding: 8px 15px;
    margin-top: 20px;
}

/* Carte de commande */
.commande-card {
    background-color: #fff;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.commande-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.commande-id {
    font-weight: bold;
    color: #CC0000;
    font-size: 1.2em;
}

.commande-date {
    color: #666;
    font-size: 0.9em;
}



.client-details {
    flex: 1;
}

.client-details h4 {
    margin-top: 0;
    color: #CC0000;
}

.totaux-info {
    text-align: right;
    min-width: 200px;
}

.totaux-info p {
    margin: 5px 0;
}

.totaux-info .total {
    font-weight: bold;
    font-size: 1.1em;
}

/* Tableau des réservations */
.table-responsive {
    overflow-x: auto;
}

.reservations-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.reservations-table th,
.reservations-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.reservations-table th {
    background-color: #f2f2f2;
}

/* Info paiement et emails */
.paiement-info {
    margin: 15px 0;
    padding: 10px;
    background-color: #f0f8ff;
    border-radius: 5px;
}

.emails-info {
    margin: 15px 0;
    padding: 10px;
    background-color: #f0fff0;
    border-radius: 5px;
}

.email-item {
    margin-bottom: 5px;
    padding: 5px;
    background-color: #f9f9f9;
    border-radius: 3px;
}

/* Statuts */
.statut-paye {
    color: #28a745;
    font-weight: bold;
}

.statut-non-paye {
    color: #dc3545;
    font-weight: bold;
}

/* Actions */
.actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 15px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.pagination a {
    padding: 8px 12px;
    margin: 0 5px;
    text-decoration: none;
    color: #CC0000;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.pagination a.active {
    background-color: #CC0000;
    color: white;
}

/* Message "Aucun résultat" */
.no-results {
    text-align: center;
    padding: 30px;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .commande-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .client-info {
        flex-direction: column;
    }

    .totaux-info {
        text-align: left;
        margin-top: 10px;
    }

    .filter-form {
        flex-direction: column;
    }

    .reservations-table {
        font-size: 12px;
    }

    .reservations-table th,
    .reservations-table td {
        padding: 6px;
    }
}
