.auth-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
    max-width: 900px;
    margin: 10% 4%;
}

/* Style de chaque carte de formulaire */
.form-card {
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-card h2 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 10px;
    text-align: center;
}

.form-card input {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid #eee;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: 0.3s;
    background-color: #f9f9f9;
}

.form-card input:focus {
    outline: none;
    background-color: white;
    box-shadow: 0 0 0 4px rgba(0, 36, 107, 0.1);
}

.form-card .btn-reserve {
    width: 100%;
    cursor: pointer;
}

.form-card .btn-reserve:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

/* Message d'erreur ou succès */
.auth-msg {
    margin-bottom: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
}

/* --- DASHBOARD MEMBRE --- */

.auth-wrapper {
    width: 100%;
    padding: 5% 4%;
}

.main-dashboard {
    background: white;
    border-radius: 28px;
    padding: 40px;
    width: 100%;
    max-width: 1200px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 36, 107, 0.05);
}

.main-dashboard h1 {
    font-size: 2.4rem;
    margin-bottom: 5px;
}

.subtitle {
    color: #666;
    margin-bottom: 30px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.mini-card {
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--primary-color);
}

.mini-card h3 {
    margin-bottom: 15px;
}

.meteo-list {
    list-style: none;
}

.meteo-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
}

.action-card .action-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-mail {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background: transparent;
    font-size: 1.3rem;
    color: var(--primary-color);
    cursor: pointer;
}

.btn-mail:hover {
    background: var(--primary-color);
    color: white;
    transition: 0.3s;
}

.map-container {
    position: relative;
    padding: 0;
    overflow: hidden;
}

.map-container img {
    width: 100%;
    border-radius: 20px;
}

.map-label {
    position: absolute;
    top: 15px;
    left: 15px;
    background: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.dashboard-footer {
    margin-top: 30px;
    text-align: right;
}

.btn-logout {
    color: #ff3b30;
    font-weight: bold;
}

/* --- DASHBOARD ADMINE --- */

.admin-badge {
    background: var(--primary-color);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-left: 10px;
}

.main-dashboard {
    max-width: 1000px;
    padding: 45px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 36, 107, 0.08);
}

.auth-msg {
    background: #eaf8ef;
    color: #28a745;
    border: 1px solid #28a745;
}

.dashboard-grid {
    gap: 25px;
}

.dashboard-grid form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dashboard-grid form input,
.dashboard-grid form textarea {
    width: 100%;
}

.dashboard-grid .mini-card {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 24px;
}

.dashboard-grid input,
.dashboard-grid textarea {
    background: white;
    border: 1.5px solid #eee;
    border-radius: 14px;
    padding: 14px 18px;
    font-family: var(--font-body);
}

.dashboard-grid textarea:focus,
.dashboard-grid input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 36, 107, 0.1);
}

.dashboard-grid .btn-reserve {
    width: auto;
    margin-top: 10px;
    font-size: 0.9rem;
}

.dashboard-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    border-top: 1px solid #eee;
    padding-top: 25px;
}

.full-width {
    grid-column: 1 / -1;
}

.success-msg {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
    margin-bottom: 20px;
    border: 1px solid #28a745;
}

/* Formulaire Admin */
.admin-form .file-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 15px 0;
}

.file-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
}

.file-group input[type="file"] {
    border: none;
    padding: 0;
    font-size: 0.8rem;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.btn-cancel {
    text-decoration: none;
    color: #666;
    font-size: 0.9rem;
    transition: 0.2s;
}

.btn-cancel:hover {
    color: var(--primary-color);
}

/* Tableau des articles */
.table-container {
    overflow-x: auto;
    margin-top: 15px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-heading);
}

.admin-table th {
    text-align: left;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: black;
    padding: 10px;
    border-bottom: 2px solid #eee;
}

.admin-table td {
    padding: 15px 10px;
    border-bottom: 1px solid #f5f5f5;
    vertical-align: middle;
}

.txt-right {
    text-align: right;
}

.txt-small {
    font-size: 0.85rem;
    color: #777;
}

.bold {
    font-weight: 600;
    color: var(--primary-color);
}

.action-cell {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.link-edit {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
}

.link-delete {
    color: #ff3b30;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
}

.link-edit:hover,
.link-delete:hover {
    opacity: 0.7;
}


/* --- RESPONSIVE DESKTOP --- */
@media screen and (min-width: 768px) {
    .auth-container {
        flex-direction: row;
        align-items: stretch;
    }

    .form-card {
        transition: transform 0.3s ease;
    }

    .form-card:hover {
        transform: translateY(-5px);
    }

    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .map-container {
        grid-column: 1 / -1;
    }

    .admin-form .file-inputs {
        grid-template-columns: 1fr;
    }

    .form-main-inputs {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    align-items: end;
    margin-bottom: 15px;
}
}