#cours ul {
  list-style-type: square;
  padding-left: 2rem;
}

#cours ul li a {
  color: #007BFF;
  text-decoration: none;
}

#cours ul li a:hover {
  text-decoration: underline;
}

body {
  font-family: 'Fira Mono', 'Consolas', 'Menlo', 'Monaco', 'Courier New', monospace;
  background-color: #181818;
  color: #e0e0e0;
}

header {
  background: #222;
  padding: 1rem;
  position: fixed;
  top: 0;
  z-index: 1000;
  width: 100%;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
}

nav ul li a {
  font-weight: 600;
  text-decoration: none;
  color: #e0e0e0;
}

nav ul li a:hover { color: #007BFF; }

main {
  max-width: 90%;
  margin: 100px auto 2rem;
  padding: 2rem 1rem;
}

h2 {
  font-size: 1.8rem;
  border-left: 4px solid #007BFF;
  padding-left: 0.75rem;
  margin-bottom: 1rem;
}

.section {
  padding: 4rem 0;
  margin-bottom: 4rem;
}

.blanche { background-color: #222; }

#top { text-align: center; }

.avatar {
  width: 140px;
  border-radius: 50%;
}

.section h2, li, .bio h2, p {
  margin-left: 4%;
  margin-right: 4%;
}

.changerLangue {
  position: absolute;
  top: 1rem;
  right: 4rem;
  font-weight: bold;
}

.changerLangue a {
  color: #007BFF;
  margin: 0 0.5rem;
  text-decoration: none;
}

.menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  position: absolute;
  right: 2rem;
  top: 0.7rem;
  z-index: 1100;
  color: #fff;
  background: #222;
  border-radius: 6px;
}

.menu-toggle:focus { outline: 2px solid #007BFF; }

.fleche-bas, .fleche-haut { pointer-events: none; }

.chronologie {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-left: 80px;
}

.chronologie::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #333;
}

.element {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  min-height: 60px;
  width: 80%;
  transition: all 0.3s ease;
  opacity: 1;
}

.element.hide {
  display: none !important;
}
.icone {
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: #222;
  border-radius: 50%;
  border: 3px solid #333;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icone-info {
  color: #007BFF
}

.contact-logo img, .icone img {
  width: 70%;
  height: 70%;
}

.icone.etudes { border-color: #38b6ff; }
.icone.pro { border-color: #af1119; }
.icone.projet { border-color: #ffde59; }
.icone.asso { border-color: #7ed957; }
.icone.diplome { border-color: #1944d2; }

.contenu {
  background: #181818;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  padding: 18px 20px;
  width: 100%;
  text-align: left;
  margin-top: 0;
  margin-left: 5%;
}

.date {
  display: block;
  color: #888;
  font-size: 0.95em;
  margin-top: 6px;
}

.filtres {
  display: flex;
  gap: 20px;
  margin-left: 10%;
  margin-bottom: 24px;
  align-items: center;
}

.boutonFiltre {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: 3px solid #bbb;
  background: #222;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% auto;
}

.boutonFiltre[data-type="projet"] { border-color: #ffde59; }
.boutonFiltre[data-type="pro"] { border-color: #af1119; }
.boutonFiltre[data-type="asso"] { border-color: #7ed957; }
.boutonFiltre[data-type="etudes"] { border-color: #38b6ff; }
.boutonFiltre[data-type="diplome"] { border-color: #1944d2; }

.boutonFiltre.active { border-width: 4px; 
}
.boutonFiltre:after {
  content: attr(title);
  position: absolute;
  left: 50%;
  top: 110%;
  transform: translateX(-50%);
  font-size: 0.85em;
  color: #555;
  white-space: nowrap;
  pointer-events: none;
}

.boutonFiltre[data-type="projet"].active { background-image: url('assets/projet.png'); }
.boutonFiltre[data-type="pro"].active { background-image: url('assets/pro.png'); }
.boutonFiltre[data-type="asso"].active { background-image: url('assets/asso.png'); }
.boutonFiltre[data-type="etudes"].active { background-image: url('assets/etudes.png'); }
.boutonFiltre[data-type="diplome"].active { background-image: url('assets/diplome.png'); }

.boutonFiltre:not(.active) { background-image: none !important; }

.contacts {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  max-width: 900px;
  margin: 0 auto 2rem;
  padding: 2rem 0 0;
}

.contact-element {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 0;
}

.contact-logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #222;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.contact-id {
  font-size: 1rem;
  color: #7E7F7F;
  text-align: center;
  word-break: break-word;
}

.contacter form {
  width: 66%;
  margin: 0 auto;
}

.contacter input, textarea {
  width: 100%;
  margin-bottom: 20px;
  height: 40px;
  padding: 10px;
  border: 1px solid #fff;
  background-color: #222;
}

.contacter textarea {
  height: 80px;
}

.contacter button {
  width: 100%;
  height: 40px;
  padding: 10px;
  background: #007BFF;
  color: #fff;
  border: none;
  font-size: 16px;
}

.competence-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  margin: 0 auto;
}

.categorie {
  width: 90%;
  max-width: 300px;
  margin: 0;
}

.categorie h3 {
  border-bottom: 1px solid gray;
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.competence, .points-legende li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0;
  position: relative;
  cursor: default;
}

.competence::after, .points-legende li::after {
  content: attr(bulle);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translate(-50%, 5px);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 6px 10px;
  font-size: 0.8em;
  border-radius: 5px;
  max-width: 200px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  display: none;
}

.competence[bulle]:not([bulle=""])::after,
.points-legende li[bulle]:not([bulle=""])::after {
  display: block;
}

.competence:hover::after, .points-legende li:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.points {
  display: flex;
  gap: 5px;
}

.point {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #a7a4a4;
}

.point.active { background: #007BFF; }

.points-legende {
  margin-top: 30px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.points-legende h4 {
  margin-bottom: 10px;
  font-size: 1em;
  color: #ccc;
}

.points-legende ul {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  list-style: none;
  gap: 2rem;
}

.points-legende li {
  gap: 0.5rem;
  font-size: 0.95em;
  color: #777;
}

.btn-cv {
  display: inline-block;
  margin-top: 1rem;
  background: #007BFF;
  color: #fff;
  padding: 10px 18px;
  border-radius: 5px;
  text-decoration: none;
}

@media (min-width: 901px) {
  .menu-toggle {
    display: none !important;
  }
}

@media (max-width: 900px) {
  main {
    margin: 80px auto 2rem;
    padding: 1rem;
    max-width: 100%;
  }

  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }

  .section {
    padding: 2rem 1rem;
    margin-bottom: 2rem;
  }

  .section h2,
  .section p,
  .section li,
  .contenu,
  .filtres {
    margin-left: auto;
    margin-right: auto;
    max-width: 90%;
  }

  .chronologie {
    margin-left: 60px;
  }

  .icone {
    width: 32px;
    height: 32px;
    left: -16px;
  }

  .icone img {
    width: 20px;
    height: 20px;
  }

  .contenu {
    margin-left: 40px;
    padding: 14px 16px;
  }

  .competence-container {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .categorie {
    width: 90%;
    max-width: 300px;
  }

  .contacter form {
    width: 95%;
    margin: 0 auto;
  }

  .contacts {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
    max-width: 95vw;
    padding-top: 1.5rem;
  }

  .contact-logo {
    width: 40px;
    height: 40px;
    margin-bottom: 0;
  }

  .contact-id {
    font-size: 0.95rem;
    text-align: left;
  }

  .menu-toggle {
    display: block;
  }

  nav ul {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100vw;
    left: 0;
    right: 0;
    gap: 1.5rem;
    background: #222;
    position: absolute;
    top: 3.5rem;
    margin: 0;
    padding: 1rem 0;
    z-index: 1050;
  }

  nav ul.menu-open {
    display: flex;
  }

  .changerLangue {
    position: static;
    margin-top: 0.5rem;
    text-align: center;
  }
}