/* Style général */
body {
  font-family: "Segoe UI", Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #0f0f0f;
  color: #eaeaea;
  line-height: 1.6;
}

/* Header */
header {
  background: #1a1a1a;
  color: white;
  text-align: center;
  padding: 1rem 0;
  position: relative;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

header h1 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: 1px;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
}

nav ul li {
  display: inline-block;
  margin: 0 12px;
}

nav ul li a {
  color: #eaeaea;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #6b93ff;
}

/* Cube 3D */
.cube {
  width: 40px;
  height: 40px;
  position: absolute;
  top: 20px;
  right: 20px;
  transform-style: preserve-3d;
  animation: rotateCube 6s linear infinite;
}

.cube div {
  position: absolute;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid #6b93ff;
}

.cube div:nth-child(1) { transform: rotateY(0deg) translateZ(20px); }
.cube div:nth-child(2) { transform: rotateY(90deg) translateZ(20px); }
.cube div:nth-child(3) { transform: rotateY(180deg) translateZ(20px); }
.cube div:nth-child(4) { transform: rotateY(-90deg) translateZ(20px); }
.cube div:nth-child(5) { transform: rotateX(90deg) translateZ(20px); }
.cube div:nth-child(6) { transform: rotateX(-90deg) translateZ(20px); }

@keyframes rotateCube {
  from { transform: rotateX(0deg) rotateY(0deg); }
  to { transform: rotateX(360deg) rotateY(360deg); }
}

/* Sections */
section {
  background: #1c1c1c;
  margin: 1.5rem auto;
  padding: 2rem;
  border-radius: 8px;
  max-width: 850px;
  box-shadow: 0 2px 10px rgba(255,255,255,0.05);
}

section h2 {
  border-bottom: 2px solid #6b93ff;
  padding-bottom: 0.5rem;
  color: #6b93ff;
}

/* Photo */
#about img {
  display: block;
  margin: 1rem auto;
  border-radius: 50%;
  width: 150px;
  border: 2px solid #6b93ff;
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem 0;
  background: #1a1a1a;
  color: #aaa;
  margin-top: auto;
}

/* Liens */
a {
  color: #6b93ff;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  nav ul li {
    display: block;
    margin: 10px 0;
  }
}
.projects-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.project-card {
  background: #1e1e1e;
  border-radius: 10px;
  width: 280px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 3px 8px rgba(255,255,255,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(107,147,255,0.2);
}

.project-card img {
  width: 100%;
  border-radius: 8px;
}

.project-card h3 {
  color: #6b93ff;
}
.badge {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #6b93ff;
}
.skills-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  margin-top: 1rem;
}

.skill {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 120px;  /* taille uniforme pour toutes les cartes */
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid #6b93ff;
  margin-bottom: 0.5rem;
}

.skill:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(107,147,255,0.2);
}

.skill span {
  color: #eaeaea;
  font-weight: bold;
  font-size: 0.9rem;
}
.sub-projects {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 1rem;
  flex-wrap: wrap; /* pour que ça passe sur mobile */
}

.sub-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100px;  /* taille uniforme des sous-cartes */
  text-align: center;
  padding: 5px;
  background: #2a2a2a;
  border-radius: 8px;
  border: 1px solid #6b93ff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sub-card img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0.3rem;
}

.sub-card span {
  color: #eaeaea;
  font-size: 0.85rem;
  font-weight: bold;
}

.sub-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 3px 10px rgba(107,147,255,0.2);
}
.project-card.expandable .sub-projects {
  display: none; /* caché par défaut */
  margin-top: 15px;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.project-card.expandable.active .sub-projects {
  display: flex; /* s’affiche quand actif */
}

/* sous-cartes comme avant */
.sub-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100px;
  text-align: center;
  padding: 5px;
  background: #2a2a2a;
  border-radius: 8px;
  border: 1px solid #6b93ff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sub-card img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0.3rem;
}

.sub-card span {
  color: #eaeaea;
  font-size: 0.85rem;
  font-weight: bold;
}

.sub-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 3px 10px rgba(107,147,255,0.2);
}

