/* Reset et base */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f5f5f5;
}

/* Header Admin */
.admin-header {
    background: #2c3e50;
    color: white;
    padding: 1rem 0;
}

.admin-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

.admin-header h1 {
    margin: 0;
    font-size: 1.5rem;
}

.admin-nav ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.admin-nav a {
    display: block;
    padding: 0.5rem 1rem;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s;
}

.admin-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.admin-nav a.active {
    background: #3498db;
    font-weight: bold;
}

/* Main Content */
.admin-main {
    max-width: 100%;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Footer */
.admin-footer {
    text-align: center;
    padding: 1rem;
    background: #2c3e50;
    color: white;
    margin-top: 2rem;
}

/* Statistiques */
.dashboard-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.stat-card {
    flex: 1;
    min-width: 200px;
    background: white;
    border-radius: 5px;
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    font-size: 2rem;
    color: #3498db;
}

.stat-info h3 {
    margin: 0;
    font-size: 1.5rem;
}

.stat-info p {
    margin: 0;
    color: #666;
}

/* Tableaux */
.modeles-table, .logs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.9rem;
    background: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.modeles-table th, .modeles-table td,
.logs-table th, .logs-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.modeles-table th, .logs-table th {
    background: #f2f2f2;
    font-weight: bold;
}

.modeles-table tr:hover, .logs-table tr:hover {
    background: #f9f9f9;
}

/* Boutons */
.button {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    margin-right: 0.3rem;
    margin-bottom: 0.3rem;
}

.button:hover {
    background: #2980b9;
}

.button.small {
    padding: 0.2rem 0.4rem;
    font-size: 0.7rem;
}

/* Sections */
.dashboard-section {
    background: white;
    border-radius: 5px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.dashboard-section h2 {
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .admin-nav ul {
        flex-direction: column;
    }

    .dashboard-stats {
        flex-direction: column;
    }

    .modeles-table, .logs-table {
        font-size: 0.8rem;
    }

    .modeles-table th, .modeles-table td,
    .logs-table th, .logs-table td {
        padding: 0.5rem;
    }
}
/* Formulaire d'ajout de modèle */
.form-modeles {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 1.5rem;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.form-section h2 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 1.2rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 48%;
    font-weight: normal;
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.button.secondary {
    background: #95a5a6;
}

.button.secondary:hover {
    background: #7f8c8d;
}

/* Alertes */
.alert {
    padding: 0.75rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.alert.error {
    background: #fadbd8;
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

.alert.success {
    background: #d5f5e3;
    color: #27ae60;
    border: 1px solid #27ae60;
}
/* Formulaire d'ajout de modèle */
.form-modeles {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 1.5rem;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.form-section h2 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 1.2rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 48%;
    font-weight: normal;
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.button.secondary {
    background: #95a5a6;
}

.button.secondary:hover {
    background: #7f8c8d;
}
/* Réduction de la largeur des champs de formulaire */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group select {
    width: 300px; /* Largeur fixe */
    max-width: 100%; /* Ne dépasse pas la largeur du conteneur sur mobile */
}

/* Pour les champs spécifiques (ex: taille, pointure) */
.form-group input[type="number"] {
    width: 100px; /* Champs numériques plus petits */
}

/* Pour les zones de texte (ex: présentation) */
.form-group textarea {
    width: 100%; /* Garde la largeur complète pour les textes longs */
    max-width: 600px; /* Limite la largeur maximale */
}

/* Pour les groupes de cases à cocher */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.checkbox-group label {
    width: 48%; /* Deux colonnes pour les cases à cocher */
}
