:root {
    --texte: #1c1f26;
    --fond: #f5f6f8;
    --carte: #ffffff;
    --bordure: #d9dce2;
    --accent: #2b4c7e;
    --danger: #a4322a;
    --succes: #2f7d4f;
    --gris: #6b7280;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--fond); color: var(--texte); line-height: 1.5; }
a { color: var(--accent); }

.entete { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 1.5rem; background: var(--carte); border-bottom: 1px solid var(--bordure); }
.entete-marque { font-weight: 700; font-size: 1.1rem; text-decoration: none; color: var(--texte); }
.entete-nav { display: flex; gap: 1rem; align-items: center; font-size: 0.9rem; color: var(--gris); }

.conteneur { max-width: 960px; margin: 0 auto; padding: 1.5rem; }

.carte { background: var(--carte); border: 1px solid var(--bordure); border-radius: 8px; padding: 1.25rem; margin-bottom: 1rem; }
.carte-liste { display: flex; flex-direction: column; gap: 0.75rem; }
.carte-lien { display: block; text-decoration: none; color: inherit; }
.carte-lien:hover { border-color: var(--accent); }

h1 { font-size: 1.5rem; margin-top: 0; }
h2 { font-size: 1.15rem; }

.champ { margin-bottom: 1rem; }
.champ label { display: block; font-weight: 600; margin-bottom: 0.25rem; font-size: 0.9rem; }
.champ input[type=text], .champ input[type=email], .champ input[type=password], .champ input[type=date], .champ select, .champ textarea {
    width: 100%; padding: 0.5rem 0.65rem; border: 1px solid var(--bordure); border-radius: 6px; font-size: 1rem; font-family: inherit;
}
.champ textarea { min-height: 6rem; }

.bouton, .lien-bouton { display: inline-block; padding: 0.55rem 1.1rem; background: var(--accent); color: #fff; border: none; border-radius: 6px; font-size: 0.95rem; cursor: pointer; text-decoration: none; }
.bouton-secondaire { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.bouton-danger { background: var(--danger); }
.lien-bouton { background: none; color: var(--gris); padding: 0; text-decoration: underline; }

.etiquette { display: inline-block; padding: 0.15rem 0.5rem; border-radius: 999px; font-size: 0.78rem; font-weight: 600; }
.etiquette-brouillon { background: #e7e9ee; color: var(--gris); }
.etiquette-ouverte { background: #e2f3e8; color: var(--succes); }
.etiquette-cloturee { background: #f2e4e2; color: var(--danger); }

table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--bordure); }
th { color: var(--gris); font-weight: 600; }

.erreur { background: #f9e6e4; border: 1px solid var(--danger); color: var(--danger); padding: 0.6rem 0.9rem; border-radius: 6px; margin-bottom: 1rem; }
.avis { background: #eaf1fb; border: 1px solid var(--accent); color: var(--accent); padding: 0.6rem 0.9rem; border-radius: 6px; margin-bottom: 1rem; word-break: break-all; }

.role-liste { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.role-case { display: flex; align-items: center; gap: 0.4rem; padding: 0.35rem 0.6rem; border: 1px solid var(--bordure); border-radius: 6px; font-size: 0.88rem; }
