/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  scroll-behavior: smooth;
}

body {
  background-color: #141414;
  color: #fff;
  line-height: 1.6;

}

a {
  text-decoration: none;
  color: #fff;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 10%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.logo {
  font-size: 25px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
}

.navbar a {
  font-size: 18px;
  color: #ffffff;
  text-decoration: none;
  margin-left: 35px;
  transition: .3s;
}

.navbar a:hover, 
.navbar a.active {
  color: #00abf0;
}


/* Hero Section */
.hero-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 50px;
  background: url('images/background.jpg') no-repeat center center/cover;
  min-height: 100vh;
  padding-left: 0px; 
}

.hero-content {
  text-align: center;
  max-width: 600px;
  margin-left: 50px;
}

.hero-content h1 {
  font-size: 48px;
  font-weight: 700;
  color: #ffffff;
}

.hero-content h3 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #ddd;
}

.hero-content p {
  font-size: 18px;
  margin-bottom: 30px;
}

.btn-box {
  display: flex;
  justify-content: center;
}

.btn-box a {
  display: inline-block;
  padding: 10px 30px;
  margin-right: 10px;
  background-color: #ff6a00;
  color: #fff;
  border-radius: 50px;
  transition: background-color 0.3s ease;
}

.hero-image img {
  max-width: 450px;
  border-radius: 15px;
}

/* Parcours Section */
.parcours-section {
  padding: 60px 50px;
  background-color: #1b1b1b;
  text-align: center;
}

.parcours-section h2 {
  font-size: 36px;
  margin-bottom: 50px;
}

/* Conteneur pour afficher les frises côte à côte */
.timeline-container {
  display: flex; /* Utilisation de flexbox pour aligner les timelines côte à côte */
  justify-content: space-between; /* Espacement entre les deux frises */
  gap: 2rem; /* Espacement entre les frises */
  flex-wrap: wrap; /* Les frises s'ajustent si l'écran est trop petit */
  margin: 0 auto;
  max-width: 1200px; /* Largeur maximale pour éviter que les frises s'étendent trop sur grand écran */
}

/* Style général de chaque frise */
.timeline {
  margin: 0;
  padding: 10px 0;
  position: relative;
  max-width: 600px;
  list-style-type: none;
  flex: 1; /* Chaque frise prend une part égale de l'espace disponible */
}

.timeline ol {
  counter-reset: my-counter;
  list-style-type: none;
}

.timeline li {
  position: relative;
  margin-bottom: 50px;
  padding-left: 40px;
}

.timeline li::before {
  content: counter(my-counter);
  counter-increment: my-counter;
  position: absolute;
  left: 0;
  background: #ff6a00;
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  text-align: center;
  line-height: 30px;
  font-weight: bold;
}

.timeline li time {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
  color: #ff6a00;
}


/* Certifications Section */
.certifications-section {
  padding: 60px 50px;
  background-color: #141414;
  text-align: center;
}

.certifications-section h2 {
  font-size: 36px;
  margin-bottom: 50px;
}

.certification-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.certification-card {
  background-color: #1b1b1b;
  padding: 20px;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.certification-card:hover {
  transform: translateY(-10px);
}

.certification-card img {
  max-width: 80px;
  margin-bottom: 15px;
}

.certification-card h4 {
  font-size: 20px;
  color: #ff6a00;
  margin-bottom: 10px;
}

/* Projects Section */
.projects-section {
  padding: 60px 50px;
  background-color: #1b1b1b;
}

.projects-section h2 {
  font-size: 36px;
  margin-bottom: 50px;
  text-align: center;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.project-card {
  background-color: #1b1b1b;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.project-card img {
  width: 80%;
  height: 200px;
  object-fit: cover;
  margin-left: 30px;
  position: relative;
  max-width: 80%;
  aspect-ratio: 16 / 9;
}

.project-card h4 {
  padding: 20px;
  font-size: 22px;
  color: #ff6a00;
}

.project-card p {
  padding: 0 20px 20px;
  color: #ccc;
}

.project-card:hover {
  transform: translateY(-10px);
}

/* Footer */
.footer {
  padding: 20px;
  text-align: center;
  background-color: #1b1b1b;
  color: #fff;
  font-size: 14px;
}

.footer p {
  margin-bottom: 0;
}

.competences-section {
  padding: 60px 50px; 
  background-color: #1b1b1b; 
  text-align: center;
}

.competences-section h2 {
  font-size: 36px;
  margin-bottom: 50px;
  color: #ff6a00; 
}

.competence-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); 
  gap: 20px;
  margin: 0 auto;
}

.competence-card {
  background-color: #1b1b1b; 
  border-radius: 10px;
  padding: 20px;
  transition: transform 0.3s ease;
}

.competence-card:hover {
  transform: translateY(-10px);
}

.competence-card img {
  max-width: 60px; 
  margin-bottom: 10px;
}

.competence-card h4 {
  font-size: 18px;
  color: #ff6a00; 
}

.linkedin-icon {
  position: fixed;
  bottom: 20px;
  right: 20px;
  font-size: 40px;
  color: #0077b5;
  transition: color 0.3s;
}

.linkedin-icon:hover {
  color: #005582;
}

.footer a {
  color: #ff6a00;
  font-weight: bold;
}