/* --- Variables de couleur globales --- */
:root {
    --primary: #0284c7;       /* Bleu médical moderne */
    --primary-hover: #0369a1; /* Bleu foncé au survol */
    --secondary: #0d9488;     /* Turquoise pour les actions secondaires */
    --bg-app: #f8fafc;        /* Fond de page ultra-clair */
    --text-main: #1e293b;     /* Texte principal sombre */
    --text-muted: #64748b;    /* Texte secondaire gris */
    --white: #ffffff;
    --border-color: #e2e8f0;  /* Bordures fines */
    --success: #16a34a;       /* Vert succès */
    --error: #dc2626;         /* Rouge erreur */
}

/* --- Styles Généraux --- */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-app);
    color: var(--text-main);
    line-height: 1.6;
}

/* --- Barre de Navigation --- */
header {
    background: var(--white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: auto;
    padding: 15px 20px;
}

nav a {
    color: var(--text-muted);
    margin-right: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

nav a:hover {
    color: var(--primary);
}

/* --- Conteneurs & Mise en page --- */
.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

h1 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 30px;
    font-weight: 700;
}

h2 {
    font-size: 1.4rem;
    color: var(--text-main);
    margin-bottom: 20px;
    border-left: 4px solid var(--primary);
    padding-left: 10px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

/* --- Cartes Épurées --- */
.card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
}

/* --- Formulaires Modernes --- */
form label {
    display: block;
    margin-top: 15px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
}

form input, form select, form textarea {
    width: 100%;
    padding: 12px;
    margin-top: 6px;
    margin-bottom: 5px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: #f1f5f9;
    font-size: 1rem;
    color: var(--text-main);
    box-sizing: border-box;
    transition: all 0.2s ease;
}

form input:focus, form select:focus, form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

form button {
    background-color: var(--primary);
    color: var(--white);
    border: none;
    padding: 14px 20px;
    margin-top: 20px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    width: 100%;
    transition: background-color 0.2s ease;
}

form button:hover {
    background-color: var(--primary-hover);
}

/* --- Messages d'état --- */
.success {
    background-color: #f0fdf4;
    color: var(--success);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #bbf7d0;
    font-weight: 500;
    margin-bottom: 15px;
}

.error {
    background-color: #fef2f2;
    color: var(--error);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #fecaca;
    font-weight: 500;
    margin-bottom: 15px;
}

/* --- Éléments de liste --- */
ul {
    padding-left: 20px;
}

li {
    margin-bottom: 10px;
}
