.login-main {
    max-width: 600px;
    margin: 48px auto;
    background: #fbeedc;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(60,40,20,0.08);
    padding: 32px 24px;
}
.admin-main {
    max-width: 1400px;
    margin: 48px auto;
    padding: 32px 24px;
}
.login-main h1, .admin-main h1 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 24px;
    color: #3d2c1a;
}
.login-form, .admin-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 600px;
    margin: 0 auto;
    background: #fbeedc;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(60,40,20,0.08);
}
.login-form input, .admin-form input, .admin-form textarea, .admin-form select {
    font-size: 1.1rem;
    padding: 12px;
    border: 1.5px solid #e6d3b3;
    border-radius: 8px;
    background: #fff;
    color: #3d2c1a;
    resize: none;
}
.admin-form textarea {
    min-height: 70px;
}
.login-form button, .admin-form button {
    background: #b25c2e;
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    padding: 14px;
    cursor: pointer;
    transition: background 0.2s;
}
.login-form button:hover, .admin-form button:hover {
    background: #7a4a2f;
}
.error {
    background: #e6d3b3;
    color: #b25c2e;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 18px;
    text-align: center;
    font-size: 1.1rem;
}
.confirmation {
    background: #e6d3b3;
    color: #3d2c1a;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 18px;
    text-align: center;
    font-size: 1.1rem;
}

/* Filtres et recherche admin */
.admin-filters {
    background: #fbeedc;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(60,40,20,0.06);
}
.filter-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 12px;
}
.search-input, .filter-select {
    font-size: 1rem;
    padding: 10px 14px;
    border: 1.5px solid #e6d3b3;
    border-radius: 8px;
    background: #fff;
    color: #3d2c1a;
}
.search-input {
    flex: 1;
    min-width: 200px;
}
.filter-select {
    min-width: 200px;
}
.btn-filter, .btn-reset {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}
.btn-filter {
    background: #b25c2e;
    color: #fff;
}
.btn-filter:hover {
    background: #7a4a2f;
}
.btn-reset {
    background: #e6d3b3;
    color: #3d2c1a;
    display: inline-block;
}
.btn-reset:hover {
    background: #d4c1a1;
}
.admin-stats {
    font-size: 0.95rem;
    color: #5d4a2e;
    text-align: center;
}

/* Grille de cartes admin */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}
.admin-card {
    background: #fbeedc;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(60,40,20,0.08);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.admin-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(60,40,20,0.12);
}
.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #e6d3b3;
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.card-content {
    padding: 16px;
}
.card-content h3 {
    font-size: 1.1rem;
    margin: 0 0 8px 0;
    color: #3d2c1a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.card-category {
    font-size: 0.85rem;
    color: #b25c2e;
    font-weight: 600;
    margin: 0 0 8px 0;
}
.card-description {
    font-size: 0.9rem;
    color: #5d4a2e;
    margin: 0 0 8px 0;
    min-height: 40px;
}
.card-price {
    font-size: 1rem;
    font-weight: 600;
    color: #3d2c1a;
    margin: 0 0 12px 0;
}
.card-actions {
    display: flex;
    gap: 8px;
}
.btn-edit, .btn-delete {
    flex: 1;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
}
.btn-edit {
    background: #b25c2e;
    color: #fff;
}
.btn-edit:hover {
    background: #7a4a2f;
}
.btn-delete {
    background: #e6d3b3;
    color: #b25c2e;
}
.btn-delete:hover {
    background: #d4c1a1;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 32px;
}
.btn-page {
    padding: 10px 16px;
    border-radius: 8px;
    background: #fbeedc;
    color: #3d2c1a;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    border: 2px solid #e6d3b3;
}
.btn-page:hover {
    background: #e6d3b3;
}
.btn-page.active {
    background: #b25c2e;
    color: #fff;
    border-color: #b25c2e;
}

/* Ancienne table (backup) */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 24px;
}
.admin-table th, .admin-table td {
    border: 1px solid #e6d3b3;
    padding: 10px;
    text-align: left;
}
.admin-table th {
    background: #f8f3e7;
}
.admin-table img {
    border-radius: 6px;
    background: #e6d3b3;
}

@media (max-width: 700px) {
    .login-main {
        max-width: 98vw;
        padding: 12px 4vw;
    }
    .admin-main {
        padding: 16px 12px;
    }
    .filter-form {
        flex-direction: column;
    }
    .search-input, .filter-select {
        width: 100%;
    }
    .admin-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .admin-table th, .admin-table td {
        padding: 6px;
        font-size: 0.95rem;
    }
}

