/* Global Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
    background-color: #f4f4f4;
  }
  
  /* Liens génériques */
  a {
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
    transition: color 0.3s ease;
  }
  a:hover {
    color: #0056b3;
  }
  
  /* Bouton Home dans la navbar */
  .home-btn {
    font-weight: bold;
    font-size: 18px;
    padding-left: 15px;
  }
  
  /* About Section */
  .about-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 700px;
    margin: auto;
  }
  .about-card h2 {
    margin-bottom: 15px;
    color: #007bff;
  }
  .about-card p {
    font-size: 16px;
    color: #333;
  }
  
  /* Education Section – Timeline */
  .timeline {
    position: relative;
    padding-left: 30px;
    margin-top: 20px;
  }
  .timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
  }
  .timeline-icon {
    width: 40px;
    height: 40px;
    background: #007bff;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 18px;
    margin-right: 15px;
  }
  .timeline-content {
    background: white;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    width: 100%;
  }
  .timeline-content h4 {
    margin: 0;
    font-size: 18px;
  }
  .timeline-content p {
    margin: 5px 0 0;
    font-size: 14px;
    color: #555;
  }
  .date {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
  }
  
/* Skills Section */

.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  justify-items: center;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 2rem;
  justify-content: center;
  align-items: start;
  padding: 1rem;
}

.skill-item {
  position: relative;
  text-align: center;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.skill-circle {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 1rem;
  filter: drop-shadow(0 3px 5px rgba(0,0,0,0.1));
  display: flex;          /* Added */
  justify-content: center; /* Added */
  align-items: center;    /* Added */
}

.progress-ring {
  position: absolute;     /* Changed */
  top: 0;                 /* Added */
  left: 0;                /* Added */
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.background-circle {
  stroke: #f0f0f0;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.progress-ring-circle {
  stroke-dasharray: 251.2;
  stroke-dashoffset: 251.2;
  transition: stroke-dashoffset 0.5s ease-in-out;
}

.percentage {
  position: relative;     /* Changed from absolute */
  font-weight: bold;
  color: #007bff;
  font-size: 1.2rem;
  width: 100%;
  text-align: center;
  transform: none;        /* Removed translate */
  top: auto;              /* Reset */
  left: auto;             /* Reset */
}

.skill-title {
  font-weight: 600;
  margin: 0.5rem 0;
  color: #333;
  font-size: 0.95rem;
  width: 100%;
  text-align: center;
}

.skill-description {
  position: absolute;
  bottom: calc(100% + 15px);
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  width: 220px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 10;
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: center;
}

.skill-item:hover .skill-description {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-5px);
}

svg {
  transform-box: fill-box;
}

@media (max-width: 768px) {
  .skills-grid {
      grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
      gap: 1.5rem;
  }
  
  .skill-circle {
      width: 100px;
      height: 100px;
  }
  
  .skill-title {
      font-size: 0.85rem;
  }
  
  .percentage {
      font-size: 1rem;
  }
}
  
  /* Projects Section */
  .project-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin: 15px 0;
    transition: transform 0.3s ease;
  }
  .project-card:hover {
    transform: translateY(-5px);
  }
  .project-card h4 {
    color: #007bff;
  }
  .project-card p {
    font-size: 14px;
    color: #555;
  }
  .project-card .btn {
    margin-top: 10px;
  }
  
  /* Animation d'apparition des sections */
  section {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
    animation-delay: 0.3s;
  }
  @keyframes fadeInUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .title {
    font-size: 1.8em;
    margin-bottom: 20px;
    display: inline-block;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
    color: #333;
  }

  