:root {
  --bg-main: #1e1f24;
  --bg-card: #22242a;
  --text-light: #f4f4f4;
  --accent: #ffffff;
  --border: #2f3138;
  --hover: #2d2f36;
  --card-radius: 12px;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: var(--bg-main);
  color: var(--text-light);
  background-image: url('../Images/index.jpg');
  background-repeat: no-repeat;
}



/* Main & layout */
main {
  max-width: 100%;
  max-height: 100%;
  padding: 2rem;
  background-color: #7D8491;
  backdrop-filter: blur(10px);
}
h1 {
  margin-bottom: 1.5rem;
  font-size: 2rem;
  color: var(--text-light);
}

/* Conteneur deux colonnes */
.projets-container {
  display: flex;
  gap: 2rem;
  margin: 4rem 0 auto;
  flex-wrap: wrap;
}

/* Chaque colonne */
.projets-categorie {
  flex: 1 1 45%;
  min-width: 300px;
}
.projets-categorie h2 {
  font-size: 1.4rem;
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  border-left: 4px solid var(--accent);
  padding-left: .75rem;
  color: var(--accent);
}

/* Grille à l’intérieur de chaque colonne */
.projets-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Carte projet */
.projet-card {
  background: var(--bg-card);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.projet-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.6);
}

/* Image dans la carte */
.projet-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}

/* Détails texte */
.projet-details {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.projet-details h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #fff;
}
.projet-details p {
  margin: 0;
  font-size: .95rem;
  color: #ccc;
}
.projet-details p strong {
  color: var(--accent);
}

/* Message “aucun projet” */
.empty-msg {
  color: #888;
  font-style: italic;
}


footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid #C0C5C1;
}