* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    min-height: 100vh;
}

header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

header h1 {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

header a {
    color: #1abc9c;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.4rem 1rem;
    border: 1px solid #1abc9c;
    border-radius: 6px;
    transition: all 0.2s;
}

header a:hover {
    background-color: #1abc9c;
    color: white;
}

.container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

h2 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

/* TABLE */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

thead {
    background-color: #2c3e50;
    color: white;
}

thead th {
    padding: 0.9rem 1rem;
    text-align: left;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

tbody tr {
    border-bottom: 1px solid #f0f2f5;
    transition: background 0.15s;
}

tbody tr:last-child {
    border-bottom: none;
}

tbody tr:hover {
    background-color: #f8f9fa;
}

tbody td {
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
}

.actions {
    display: flex;
    gap: 0.5rem;
}

/* BOUTONS */
.btn {
    display: inline-block;
    padding: 0.45rem 1rem;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
}

.btn:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.btn-primary {
    background-color: #1abc9c;
    color: white;
}

.btn-warning {
    background-color: #f39c12;
    color: white;
}

.btn-danger {
    background-color: #e74c3c;
    color: white;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

/* FORMULAIRE */
.form-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    max-width: 600px;
}

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

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.6rem 0.9rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
    background-color: #fafafa;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #1abc9c;
    background-color: white;
}

.form-group .required {
    color: #e74c3c;
    margin-left: 2px;
}

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

/* MESSAGES */
.message {
    padding: 0.8rem 1.2rem;
    border-radius: 6px;
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
}

.message-success {
    background-color: #d5f5e3;
    color: #1e8449;
    border-left: 4px solid #1abc9c;
}

.message-error {
    background-color: #fadbd8;
    color: #922b21;
    border-left: 4px solid #e74c3c;
}

/* ALERTES (alias pour compatibilité avec les nouveaux fichiers PHP) */
.alert {
    padding: 0.8rem 1.2rem;
    border-radius: 6px;
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
}

.alert-success {
    background-color: #d5f5e3;
    color: #1e8449;
    border-left: 4px solid #1abc9c;
}

.alert-danger {
    background-color: #fadbd8;
    color: #922b21;
    border-left: 4px solid #e74c3c;
}

/* EMPTY STATE */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #95a5a6;
    font-size: 1rem;
}
