:root {
  --brand: #0052cc;
  --accent: #00b8d9;
  --bg: #f4f6f8;
  --text: #333;
  --panel: #fff;
  --border: #ddd;
  --radius: 8px;
  --shadow: 0 2px 6px rgba(0,0,0,0.1);
  --danger: #e63946;
  --success: #0f8a4c;
  --warning: #9a6a00;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
}

h1, h2, h3 {
  margin: 0;
}

a {
  text-decoration: none;
}

.hero {
  background: var(--brand);
  color: white;
  padding: 20px;
  box-shadow: var(--shadow);
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.avatar {
  background: white;
  color: var(--brand);
  font-weight: bold;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin-right: 10px;
}

.btn {
  background: var(--border);
  color: var(--text);
  padding: 8px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.btn:hover {
  background: var(--accent);
  color: white;
}

.btn-primary {
  background: var(--danger);
  color: white;
}

.container {
  max-width: 1000px;
  margin: auto;
  padding: 20px;
}

.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.tab {
  padding: 10px 18px;
  border: none;
  border-radius: var(--radius);
  background: var(--border);
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s;
}

.tab.active {
  background: var(--accent);
  color: white;
}

.tab:hover {
  background: var(--brand);
  color: white;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.stat-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.stat-card h3 {
  margin-top: 0;
  font-size: 18px;
  color: var(--brand);
}

.kpi {
  font-size: 32px;
  font-weight: bold;
  color: var(--text);
  margin-top: 10px;
}

/* Progress bar */
.progress-bar {
  background: #eee;
  border-radius: 6px;
  overflow: hidden;
  height: 10px;
  margin: 8px 0;
}

.progress-fill {
  background: var(--accent);
  height: 100%;
  transition: width 0.3s ease;
}

/* Formulaire de contribution */
.project-form {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.project-form input {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

.project-form button {
  background: var(--brand);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

/* Responsive */
@media (max-width: 600px) {
  .hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .btn {
    width: 100%;
  }

  .tabs {
    flex-direction: column;
  }

  .project-form {
    flex-direction: column;
  }

  .project-form input,
  .project-form button {
    width: 100%;
  }
}
