html {
  scroll-behavior: smooth;
}
:root {
  --bg: #0f1117;
  --panel: #1a1d29;
  --text: #f0f0f0;
  --muted: #cccccc;
  --accent: #00ffff;
}
* { box-sizing: border-box; }

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

/* Header */
header {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 40px;
  background-color: var(--panel);
  box-shadow: 0 2px 10px rgba(0,0,0,.5);
  z-index: 1000;
}
.logo {
  font-size: 24px; font-weight: bold; color: var(--accent);
}
nav a {
  margin-left: 20px; text-decoration: none; color: var(--text);
  font-weight: 500; transition: color .2s ease-in-out;
}
nav a:hover { color: var(--accent); }

/* Hero */
.main-content {
  text-align: center;
  padding: 0 20px;
  margin-top: 120px;
  min-height: 55vh;
  display: grid; place-items: center;
}
.main-content h1 { font-size: clamp(32px, 6vw, 56px); margin: 0 0 10px; }
.main-content p  { font-size: 20px; color: var(--muted); margin: 0; }

/* Section projets */
.projects {
  scroll-margin-top: 90px;
  padding: 60px 20px 100px;
  max-width: 1200px; margin: 0 auto;
}
.projects h2 {
  text-align: center; font-size: 32px;
  margin: 0 0 30px; color: var(--accent);
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.card {
  background: var(--panel);
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,.45);
}
.project-title {
  margin: 0 0 10px;
  text-decoration: underline;
}

.card {
  display: flex;              /* important */
  flex-direction: column;     /* important */
}

.card-footer {
  margin-top: auto;           /* pousse le bouton en bas */
  display: flex;
  justify-content: center;    /* centre le bouton */
}

.card-footer a {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  background: var(--accent);
  color: #0f1117;
  text-decoration: none;
  font-weight: 600;
  transition: opacity .15s ease;
}

.card-footer a:hover {
  opacity: .85;
}

/* Footer */
footer {
  text-align: center;
  color: var(--muted);
  padding: 40px 20px;
}

