/* style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header img {
    height: 60px;
    margin-bottom: 10px;
}

h1, h2, h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

/* --- Boutons --- */
.btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    background-color: #007bff;
    border: none;
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn:hover {
    background-color: #0056b3;
}

.btn--success {
    background-color: #28a745;
}

.btn--success:hover {
    background-color: #1e7e34;
}

.btn--danger {
    background-color: #dc3545;
}

.btn--danger:hover {
    background-color: #c82333;
}

.btn--outline {
    background: transparent;
    border: 2px solid #007bff;
    color: #007bff;
}

.btn--outline:hover {
    background: rgba(0,123,255,0.1);
}

/* --- Formulaires --- */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* --- Tableaux --- */
.table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.table th,
.table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.table th {
    background-color: #007bff;
    color: white;
}

.table tbody tr:hover {
    background-color: #f9f9f9;
}

/* --- Cards Articles --- */
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.card img {
    max-width: 100px;
    max-height: 100px;
    margin-top: 10px;
}

/* --- Navigation --- */
.nav {
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.nav a {
    margin-right: 20px;
    text-decoration: none;
    color: #007bff;
    font-weight: 600;
}

.nav a:hover {
    text-decoration: underline;
}

/* --- Alertes --- */
.alert {
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.alert--error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* --- Page login --- */
.login-box {
    max-width: 400px;
    margin: 80px auto;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
}