/* Reset de base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #0d0d0d;
  color: #ffffff;
}

/* Navigation */
nav {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background-color: #1a1a1a;
  padding: 1rem;
  z-index: 1000;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

nav a:hover {
  color: #e74c3c;
}

/* Section générale */
section {
  padding: 100px 20px;
  min-height: 100vh;
}

/* Accueil */
#accueil {
  background: url('assets/img/logo.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.overlay {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 2rem;
  border-radius: 10px;
  max-width: 800px;
  text-align: center;
}

.overlay h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* Titres */
h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: #e74c3c;
}

/* Galerie et projets */
.galerie, .skills, .projets {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.galerie img, .skills .skill-card, .projet {
  background-color: #1a1a1a;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.5);
  text-align: center;
}

.galerie img {
  width: 250px;
  height: auto;
}

.projet {
  width: 300px;
  transition: transform 0.3s;
}

.projet:hover {
  transform: translateY(-5px);
}

/* Audio */
audio {
  display: none;
}

/* Passions */
#passions .galerie {
  display: flex;
  justify-content: space-around;
}

#passions .image-container {
  position: relative;
  width: 300px;
  height: 200px;
  overflow: hidden;
}

#passions .image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#passions .image-text {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  text-align: center;
  padding: 10px;
  box-sizing: border-box;
}

/* Compétences */
#skills {
  padding: 60px 20px;
  background-color: #111;
  color: #f5f5f5;
  text-align: center;
}

#skills h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #ffffff;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch; /* égalise la hauteur des cartes */
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.skill-card {
  background-color: #1e1e1e;
  padding: 30px 20px;
  border-radius: 20px;
  width: 280px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #333;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.skill-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: #00aaff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.skill-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: #ddd;
}

.skill-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 20px rgba(0, 170, 255, 0.3);
}

