/* Reset & variables globales */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
  --bg-color: #0f172a;
  --card-bg: #1e293b;
  --accent-color: #38bdf8;
  --text-color: #f8fafc;
  --text-muted: #94a3b8;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  padding-bottom: 3rem;
}

/* En-tête */
header {
  text-align: center;
  padding: 4rem 1rem 2rem;
}

header h1 {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Conteneur principal */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Sections */
section {
  margin-top: 3rem;
}

h2 {
  font-size: 1.8rem;
  border-bottom: 2px solid var(--card-bg);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Grille de cartes */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Cartes de projet */
.card {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  flex-grow: 1;
}

/* Badges de technologies */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tag {
  background-color: rgba(56, 189, 248, 0.1);
  color: var(--accent-color);
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-weight: 600;
}

/* Boutons d'action */
.btn {
  display: inline-block;
  text-align: center;
  background-color: var(--accent-color);
  color: var(--bg-color);
  text-decoration: none;
  font-weight: bold;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.btn:hover {
  background-color: #7dd3fc;
}

/* Pied de page */
footer {
  text-align: center;
  margin-top: 4rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}