/* Terroir du Numérique — Back-office équipe */
/* Design sobre, vert olive (#5b7a3e) + ton pierre */

* { margin:0; padding:0; box-sizing:border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f5f3ef; color: #2c2c2c; line-height:1.5; min-height:100vh; display:flex; flex-direction:column; }

a { color: #5b7a3e; }
a:hover { color: #3d522a; }

/* Header */
.header { background: #2c2c2c; color: #e8e0d4; padding: 0 1.5rem; display:flex; align-items:center; justify-content:space-between; height:56px; }
.header h1 { font-size:1.1rem; font-weight:600; color:#e8e0d4; }
.header h1 span { color:#b5c99a; }
.header nav { display:flex; gap:1rem; align-items:center; }
.header nav a { color:#b5c99a; text-decoration:none; font-size:0.9rem; padding:0.3rem 0.6rem; border-radius:4px; transition:background .15s; }
.header nav a:hover { background:#3d3d3d; color:#e8e0d4; }
.header .badge { background:#5b7a3e; color:#fff; font-size:0.7rem; padding:0.15rem 0.5rem; border-radius:99px; margin-left:0.3rem; }
.user-info { font-size:0.85rem; color:#b5c99a; display:flex; align-items:center; gap:0.5rem; }
.user-info a { color:#e8a87c; text-decoration:none; font-size:0.8rem; }

/* Main */
main { flex:1; padding:1.5rem; max-width:1200px; margin:0 auto; width:100%; }

/* Cards */
.card { background:#fff; border-radius:8px; padding:1.25rem; margin-bottom:1rem; box-shadow:0 1px 3px rgba(0,0,0,.06); }
.card h2 { font-size:1rem; font-weight:600; color:#3d3d3d; margin-bottom:0.75rem; }
.card-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(280px,1fr)); gap:1rem; }

/* Stats */
.stat-row { display:flex; gap:1rem; flex-wrap:wrap; }
.stat { background:#fff; border-radius:8px; padding:1rem 1.5rem; text-align:center; flex:1; min-width:120px; box-shadow:0 1px 3px rgba(0,0,0,.06); }
.stat .num { font-size:1.8rem; font-weight:700; color:#5b7a3e; }
.stat .label { font-size:0.8rem; color:#777; margin-top:0.2rem; }

/* Tables */
table { width:100%; border-collapse:collapse; font-size:0.9rem; }
th { text-align:left; padding:0.5rem 0.75rem; border-bottom:2px solid #ddd; color:#555; font-weight:600; font-size:0.8rem; text-transform:uppercase; }
td { padding:0.5rem 0.75rem; border-bottom:1px solid #eee; }
tr:hover td { background:#f9f8f5; }
.tag { display:inline-block; padding:0.15rem 0.5rem; border-radius:99px; font-size:0.75rem; font-weight:600; }
.tag-chaud { background:#d4edda; color:#155724; }
.tag-tiede { background:#fff3cd; color:#856404; }
.tag-froid { background:#f8d7da; color:#721c24; }
.tag-rien { background:#e9ecef; color:#495057; }
.tag-client { background:#cce5ff; color:#004085; }

/* Forms */
label { display:block; font-size:0.85rem; font-weight:600; color:#555; margin-bottom:0.3rem; }
input, textarea, select { width:100%; padding:0.5rem 0.75rem; border:1px solid #ccc; border-radius:6px; font-size:0.9rem; font-family:inherit; }
textarea { min-height:100px; resize:vertical; }
.form-group { margin-bottom:1rem; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
.btn { padding:0.5rem 1.25rem; border:none; border-radius:6px; font-size:0.9rem; font-weight:600; cursor:pointer; transition:background .15s; text-decoration:none; display:inline-block; }
.btn-primary { background:#5b7a3e; color:#fff; }
.btn-primary:hover { background:#3d522a; }
.btn-outline { background:transparent; border:1px solid #5b7a3e; color:#5b7a3e; }
.btn-outline:hover { background:#5b7a3e; color:#fff; }
.btn-danger { background:#c0392b; color:#fff; }
.btn-danger:hover { background:#a93226; }
.btn-sm { padding:0.3rem 0.8rem; font-size:0.8rem; }

/* Login */
.login-page { display:flex; align-items:center; justify-content:center; min-height:100vh; background:#2c2c2c; }
.login-box { background:#fff; border-radius:12px; padding:2.5rem; width:380px; box-shadow:0 4px 20px rgba(0,0,0,.2); }
.login-box h1 { font-size:1.3rem; margin-bottom:0.3rem; }
.login-box p { color:#777; font-size:0.9rem; margin-bottom:1.5rem; }
.error { background:#f8d7da; color:#721c24; padding:0.5rem 0.75rem; border-radius:6px; font-size:0.85rem; margin-bottom:1rem; }

/* Guides */
.guide-card { background:#fff; border-radius:8px; padding:1.5rem; margin-bottom:1rem; box-shadow:0 1px 3px rgba(0,0,0,.06); }
.guide-card h3 { color:#5b7a3e; margin-bottom:0.5rem; }
.guide-card .meta { color:#888; font-size:0.8rem; margin-bottom:0.5rem; }
.guide-card p { color:#555; font-size:0.9rem; }

/* Detail prospect */
.prospect-header { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:1rem; }
.prospect-header h2 { font-size:1.4rem; margin:0; }
.prospect-header .status { font-size:0.85rem; }
.qualif-item { background:#f9f8f5; border-left:3px solid #5b7a3e; padding:0.75rem 1rem; margin-bottom:0.75rem; border-radius:0 6px 6px 0; }
.qualif-item .date { font-size:0.75rem; color:#888; }
.qualif-item .note { margin:0.3rem 0; font-size:0.9rem; }
.qualif-item .interet { font-size:0.8rem; font-weight:600; }

/* Footer */
.footer { text-align:center; padding:1rem; color:#999; font-size:0.8rem; border-top:1px solid #e0ddd5; margin-top:2rem; }

/* Responsive */
@media(max-width:768px) {
  .header { flex-wrap:wrap; height:auto; padding:0.75rem; }
  .header nav { flex-wrap:wrap; gap:0.3rem; margin-top:0.3rem; }
  .form-row { grid-template-columns:1fr; }
  .card-grid { grid-template-columns:1fr; }
  .stat-row { flex-direction:column; }
  main { padding:1rem; }
}

/* Checklist */
.checklist-item { display:flex; align-items:center; gap:0.5rem; padding:0.4rem 0; }
.checklist-item input[type=checkbox] { width:auto; }
.checklist-item.done { color:#888; text-decoration:line-through; }
.checklist-phase { margin-bottom:1.5rem; }
.checklist-phase h4 { color:#5b7a3e; font-size:0.9rem; margin-bottom:0.5rem; padding-bottom:0.3rem; border-bottom:1px solid #e0ddd5; }