/* Palette verte */
:root {
  --vert-principal: #2ecc71;
  --fond-fonce: #1e1e1e;
  --texte-clair: #f0f0f0;
  --actif-lien: #171816ad;
  --vert-secondaire: #27ae60;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: var(--fond-fonce);
  color: var(--texte-clair);
}


header h1 {
  margin: 0;
  color: white;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: flex;
  justify-content: center;
  gap: 20px;
}

nav a {
  text-decoration: none;
  color: white;
  font-weight: bold;
}

section {
  padding: 40px 20px;
  text-align: center;
}

.project {
  margin: 20px 0;
  padding: 15px;
  background-color: #2f2f2f;
  border-left: 5px solid var(--vert-principal);
}

footer {
  text-align: center;
  padding: 20px;
  background-color: #111;
  color: #aaa;
}

header {
  background-color: var(--vert-principal);
  padding: 20px;
  text-align: center;
  position: relative;
}

.profil-img {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid white;
}
.logo {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 80px;
  height: 80px;
  object-fit: cover;
}
.page_active {
  color: var(--actif-lien);
  font-weight: bold;
}
#accueil {
  margin-top: 110px;
  margin-left: 5%;
  margin-right: 5%;
  background-color: var(--vert-secondaire);
  border-radius: 10%;
  color: var(--actif-lien);
  font-weight: bold;
}

details {
  margin: 30px auto;
  padding: 15px;
  max-width: 600px;
  background: #2f2f2f;
  border: 2px solid var(--vert-principal);
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
}

summary {
  font-weight: bold;
  font-size: 1.2rem;
  color: var(--vert-principal);
  list-style: none; /* supprime la flèche par défaut */
  position: relative;
  padding-left: 25px;
}

summary::before {
  content: "►";
  position: absolute;
  left: 0;
  color: var(--vert-secondaire);
  transition: transform 0.3s ease;
}

details[open] summary::before {
  transform: rotate(90deg); /* flèche qui s'ouvre */
}

details p {
  margin: 10px 0 0;
  color: var(--texte-clair);
  text-align: left;
  line-height: 1.5;
}
details .images-container {
  display: flex;
  justify-content: space-between;
  gap: 30px; /* espace entre les images */
  flex-wrap: wrap; /* au cas où l'écran est trop petit */
  margin-top: 10px;
}

details .images-container img {
  width: 120px;   /* taille réduite */
  height: auto;   /* garde les proportions */
  border-radius: 8px;
  border: 2px solid var(--vert-principal);
  transition: transform 0.3s ease;
}

details .images-container img:hover {
  transform: scale(1.1); /* zoom léger au survol */
}
