/* Général */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: rgb(255,230,210);
    color: rgb(65,20,0);
}

/* Containers adaptables */
.container {
    background-color: white;
    max-width: 95%;
    margin: 20px auto;
    padding: 20px;
    border-radius: 8px;
    box-sizing: border-box;
}

/* Variante de conteneur plus étroit pour les petites pages */
.small-container {
    max-width: 400px;
    margin: 40px auto;
    text-align: center;
}

/* Sections du profil */
.profile-card {
    border: 1px solid rgb(220,154,129);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: left;
    background-color: white;
}

.profile-card h3 {
    margin-top: 0;
}

/* Regroupe les documents dans des cartes similaires aux stands */
.documents {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.doc-card {
    border: 1px solid rgb(220,154,129);
    border-radius: 8px;
    padding: 15px;
    flex: 1 1 280px;
    max-width: 300px;
    box-sizing: border-box;
    text-align: center;
    background-color: white;
}

.doc-card img {
    display: block;
    margin: 10px auto;
}

@media (max-width: 600px) {
    .doc-card {
        flex-basis: 100%;
        max-width: none;
    }
}

/* Formulaires */
input, select, textarea, button {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    font-size: 1rem;
    box-sizing: border-box;
}

/* Agencement des formulaires de configuration */

/* Layout for configuration forms */
.form-row {
    display: grid;
    grid-template-columns: 1fr 250px; /* left: field, right: help */
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgb(220,154,129);
    align-items: start;
}

.form-row:last-child {
    border-bottom: none;
}

.form-row .field {
    display: flex;
    flex-direction: column; /* label above input */
    align-items: flex-start;
    min-width: 0;
}

.form-row .field label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    text-align: left;
}

.form-row .help-text {
    width: 250px;
    font-size: 0.9em;
    color: #444;
    align-self: center;
}

@media (max-width: 600px) {
    .form-row {
        display: block;
    }

    .form-row .help-text {
        margin-top: 5px;
        display: block;
    }
}
/* Boutons principaux */
button, .login-button, .dropbtn {
    background-color: rgb(190,110,80);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
}


/* Header */
.header {
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
}

/* Boutons dans l'en-tête */
.login-button,
.dropbtn {
    display: inline-block;
    width: auto;
    box-sizing: border-box;
}

/* Responsive pour écrans étroits */
@media (max-width: 600px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
    }

    .dropbtn, .login-button {
        width: auto;
        margin-top: 10px;
    }

    .btn-row {
        flex-direction: column;
    }

    .btn-row button {
        width: auto;
        margin-top: 10px;
        min-width: 120px;
    }

    .store-list ul li {
        font-size: 1rem;
    }
}

/* Search form specific styles */
.search-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}
.search-form input {
    width: auto;
    max-width: 250px;
    flex: 1 1 200px;
}
.search-form button {
    width: auto;
}
/* Bouton de géolocalisation */
#locate-btn {
    padding: 10px;
    line-height: 1;
}

.store-table {
    width: 100%;
    border-collapse: collapse;
}

.store-table tr {
    border: 1px solid rgb(220,154,129);
}

.store-table th,
.store-table td {
    border: 1px solid rgb(220,154,129);
    padding: 8px;
    text-align: left;
}
@media (max-width: 600px) {
    .search-form input,
    .search-form button {
        width: 100%;
    }

    #locate-btn {
        width: auto;
    }

    /* Hide the visual/description column on small screens */
    .store-table th:nth-child(2),
    .store-table td:nth-child(2) {
        display: none;
    }
}

/* On tablets show the second column but hide the description text */
@media (min-width: 601px) and (max-width: 1024px) {
    .store-table .description-text {
        display: none;
    }
}

/* On large screens show the description again */
@media (min-width: 1025px) {
.store-table .description-text {
        display: inline;
    }
}

/* Tableau récapitulatif de réservation */
.recap-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
.recap-table th,
.recap-table td {
    border: 1px solid rgb(220,154,129);
    padding: 6px;
    text-align: left;
}
.recap-table thead {
    background-color: rgb(220,154,129);
    color: white;
}
.recap-table tfoot td {
    font-weight: bold;
}
.recap-table tfoot td:first-child {
    text-align: right;
}
#recap_total {
    text-align: right;
}

.recap-table td:nth-child(1),
.recap-table th:nth-child(1) {
    text-align: center;
}

.recap-table td:nth-child(3),
.recap-table th:nth-child(3) {
    text-align: right;
}
.display-only {
    border: 1px dashed rgb(220,154,129);
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}

#message {
    margin-top: 15px;
}
