/* Page de connexion */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 400px;
}

.login-box h1 {
    text-align: center;
    color: #667eea;
    margin-bottom: 10px;
    font-size: 2.5rem;
}

.login-box h2 {
    text-align: center;
    color: #764ba2;
    margin-bottom: 30px;
    font-size: 1.5rem;
}

.login-info {
    margin-top: 20px;
    text-align: center;
    color: #666;
}

.login-info a {
    color: #667eea;
    text-decoration: none;
}

.login-info a:hover {
    text-decoration: underline;
}

/* En-tête admin */
header nav span {
    color: white;
    margin-right: 20px;
    padding: 8px 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
}

/* En-tête de la page admin */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.admin-header h2 {
    color: #667eea;
    font-size: 2rem;
}

/* Statistiques */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    border-left: 4px solid #667eea;
}

.stat-card h3 {
    color: #764ba2;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.stat-card p {
    color: #666;
    font-size: 1.1rem;
}

/* Table admin */
.admin-table {
    width: 100%;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.admin-table th,
.admin-table td {
    padding: 15px;
    text-align: left;
}

.admin-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.admin-table tbody tr {
    border-bottom: 1px solid #eee;
}

.admin-table tbody tr:hover {
    background: #f9f9f9;
}

.admin-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
}

.admin-table td:last-child {
    white-space: nowrap;
}

/* Formulaire d'ajout/modification */
.form-container {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
}

.current-image {
    margin-bottom: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 5px;
}

.current-image p {
    margin-bottom: 10px;
    font-weight: 600;
    color: #555;
}

/* Responsive admin */
@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .admin-table {
        font-size: 0.85rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 10px 8px;
    }

    .admin-thumb {
        width: 40px;
        height: 40px;
    }

    .stats {
        grid-template-columns: 1fr;
    }
}