/* Style neutre et sobre — l'identité visuelle viendra en V4. */
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, sans-serif; color: #222; background: #f5f5f5; display: flex; min-height: 100vh; }

.menu { width: 240px; background: #2b2b2b; color: #eee; display: flex; flex-direction: column; padding: 1rem 0; }
.marque { font-weight: 600; padding: 0 1.25rem 1rem; border-bottom: 1px solid #444; }
.menu ul { list-style: none; margin: 0; padding: 0.5rem 0; flex: 1; }
.menu a { display: block; padding: 0.6rem 1.25rem; color: #ccc; text-decoration: none; }
.menu a:hover { background: #3a3a3a; color: #fff; }
.menu a.actif { background: #fff; color: #222; font-weight: 600; border-left: 4px solid #555; }
.deconnexion { padding: 0 1.25rem; }
.deconnexion button { width: 100%; padding: 0.5rem; background: #444; color: #eee; border: 0; border-radius: 4px; cursor: pointer; }
.deconnexion button:hover { background: #555; }

.contenu { flex: 1; padding: 2rem; }
h1 { margin-top: 0; font-size: 1.5rem; }
.a-construire { color: #777; font-style: italic; }

.page-login { align-items: center; justify-content: center; }
.boite-login { background: #fff; padding: 2rem; border-radius: 6px; width: 320px; display: flex; flex-direction: column; gap: 1rem; box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.boite-login h1 { text-align: center; font-size: 1.2rem; }
.boite-login label { display: flex; flex-direction: column; gap: .3rem; font-size: .9rem; }
.boite-login input { padding: .5rem; border: 1px solid #bbb; border-radius: 4px; font-size: 1rem; }
.boite-login button { padding: .6rem; background: #2b2b2b; color: #fff; border: 0; border-radius: 4px; font-size: 1rem; cursor: pointer; }
.erreur { color: #b00020; margin: 0; font-size: .9rem; }

/* --- Éléments communs aux modules (listes, formulaires) --- */
.entete { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.entete h1 { margin: 0; }
.bouton { display: inline-block; padding: .5rem .9rem; background: #2b2b2b; color: #fff; border: 0; border-radius: 4px; text-decoration: none; font-size: .95rem; cursor: pointer; }
.bouton:hover { background: #444; }
.bouton.petit { padding: .3rem .6rem; font-size: .85rem; }
.bouton.secondaire { background: #ddd; color: #222; }
.bouton.secondaire:hover { background: #ccc; }
.bouton.danger { background: #b00020; }
.bouton.danger:hover { background: #8a0019; }
.tableau { width: 100%; border-collapse: collapse; background: #fff; }
.tableau th, .tableau td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid #e5e5e5; }
.tableau th { font-size: .85rem; color: #666; font-weight: 600; }
.tableau tr.grise td { color: #999; }
.tableau .actions { text-align: right; white-space: nowrap; }
.statut { font-size: .85rem; padding: .15rem .5rem; border-radius: 3px; background: #eee; }
.statut-en_ligne { background: #dff3e3; }
.statut-test { background: #fff3d6; }
.statut-developpement { background: #e3ecf9; }
.formulaire { background: #fff; padding: 1.5rem; border-radius: 6px; max-width: 560px; display: flex; flex-direction: column; gap: 1rem; }
.formulaire label { display: flex; flex-direction: column; gap: .3rem; font-size: .9rem; }
.formulaire input, .formulaire select, .formulaire textarea { padding: .5rem; border: 1px solid #bbb; border-radius: 4px; font-size: 1rem; font-family: inherit; }
.boutons { display: flex; gap: .6rem; align-items: center; }
.boutons .danger { margin-left: auto; }

/* --- Module Clients / Projets --- */
h2 { font-size: 1.1rem; margin: 1.5rem 0 .6rem; color: #444; }
.etape-contact { background: #eee; }
.etape-devis { background: #fff3d6; }
.etape-en_cours { background: #e3ecf9; }
.etape-livre { background: #dff3e3; }
.etape-maintenance { background: #e9e3f9; }
.etape-perdu { background: #f3e0e0; }

/* --- Module Suivi de développement --- */
h3 { font-size: .95rem; margin: 1rem 0 .4rem; color: #666; }
.fil { margin: -0.5rem 0 1rem; font-size: .9rem; }
.fil a { color: #666; }
.bloc-texte { background: #fff; padding: .8rem 1rem; border-radius: 6px; white-space: pre-line; max-width: 720px; }
.prio { width: 6.5rem; color: #666; font-size: .85rem; white-space: nowrap; }
.deps { color: #888; }
.zone-contexte { width: 100%; max-width: 720px; font-family: ui-monospace, Consolas, monospace; font-size: .85rem; padding: .8rem; border: 1px solid #bbb; border-radius: 6px; background: #fff; }
.formulaire label small { color: #888; font-weight: normal; }

/* --- Module Vue d'ensemble --- */
.cartes { display: flex; flex-wrap: wrap; gap: .8rem; }
.carte { background: #fff; border-radius: 6px; padding: .8rem 1.1rem; min-width: 120px; text-decoration: none; color: #222; display: block; }
.carte:hover { box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.carte .chiffre { font-size: 1.6rem; font-weight: 600; }
.carte .libelle { font-size: .85rem; color: #666; }
