@import url('https://fonts.googleapis.com/css2?family=Libertinus+Sans:ital,wght@0,400;0,700;1,400&display=swap');

/* Fond général */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: black;
  color: white;
  overflow-x: hidden;
  font-family: 'Libertinus Sans', serif;
}

/* Canvas en arrière-plan */
#bgCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* NAVBAR */
.navbar {
  background-color:#444444c9;
  padding: 10px 25px;
  border-radius: 20px;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 25px;
  padding: 0;
  margin: 0;
}

.navbar li {
  font-size: 24px;
  cursor: pointer;
}

a {
  text-decoration: none;
  color: white;
}

.lea{
  border-bottom-left-radius: 20px;
}


/* TIMELINE */
.timeline {
position: relative;
margin-top: 2rem;
}
.timeline::before {
content: '';
position: absolute;
left: 110px;   
top: 0;
bottom: 0;
width: 2px;
background: #dee2e6;
}
.timeline-item {
display: flex;
align-items: flex-start;
margin-bottom: 2rem;
position: relative;
}
.timeline-year {
width: 80px;         /* largeur fixe pour les dates */
text-align: right;   /* la date collée à droite */
font-weight: 500;
margin-right: 20px;
}
.timeline-marker {
position: relative;
width: 20px;
display: flex;
justify-content: center;
}
.timeline-marker::before {
content: '';
position: absolute;
top: 6px;   /* ajuste la hauteur du rond */
left: 50%;  /* centre pile sur le trait */
transform: translateX(-50%);
width: 14px;
height: 14px;
background: #0d6efd;
border-radius: 50%;
z-index: 2;
}
.timeline-content {
padding: 1rem 1.25rem;
margin-left: 1rem;
flex: 1;
}

/* CONTENU PRINCIPAL */
.content {
  display: flex;
  justify-content: center;
}

/* Bloc carte + profil */
.section-combine {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
}

/* Carte */
.card {
  background-color: #333;
  padding: 20px;
  border-radius: 20px;
  width: 320px;
}

#map {
  width: 100%;
  height: 280px;
  border-radius: 10px;
  border: 2px solid #444;
  margin-bottom: 10px;
}



.info {
  max-width: 400px;
}

span {
  font-weight: bold;
  color: rgb(236, 90, 236);
}

.img-project {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.img-project:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.project-card {
  background: #ffffff6c;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
}

.badge {
  margin: 0 3px;
  font-size: 0.8rem;
}

.img-competence {
  width: 60px;
  height: 60px;
  object-fit: contain;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.img-competence:hover {
  transform: scale(1.2);
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
}

.skill-card {
  background: #ffffff6c;
  border-radius: 15px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.skill-card p {
  font-size: 0.9rem;
  margin: 0;
  color: #333;
}

.project-card .btn {
  border-radius: 30px;
  padding: 8px 16px;
  transition: all 0.3s ease;
}

.project-card .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.contact-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* aligne verticalement */
  text-decoration: none;
  transition: transform 0.3s ease, color 0.3s ease;
}

.contact-icon i {
  font-size: 60px; 
  color: #ffffff;
  line-height: 1; /* important pour alignement vertical */
}

.contact-icon div {
  font-size: 1rem;
  margin-top: 6px;
  font-weight: 500;
}

.contact-icon:hover i {
  transform: translateY(-5px);
  color: #a400b3;
}


/* Mobile */
.lea {
  height: 25vh;
}
#animatedText {
  font-size: 1rem; /* tu peux mettre + petit si tu veux */
}

/* Tablette (≥ 768px) */
@media (min-width: 768px) {
  .lea {
    height: 60vh;
  }

  #animatedText{
    font-size: 52px;
  }
}

/* Desktop (≥ 992px) */
@media (min-width: 992px) {
  .lea {
    height: 75vh;
  }
}


/* Responsive mobile */
@media screen and (max-width: 768px) {
  .section-combine {
    flex-direction: column;
    align-items: center;

  }

  .profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .avatar {
    margin: 0 0 15px 0;
  }
}
