/* Media queries pour le responsive */
@media screen and (max-width: 1024px) {
  .presentation-content {
    flex-direction: column;
    padding: 0 1rem;
  }

  .presentation-sidebar {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }
}

@media screen and (max-width: 850px) {
/* Header responsive */
.menu-toggle {
  display: flex;
}

.navbar {
  padding: 1rem;
}

.nav-links {
  position: fixed;
  top: 0;
  right: -100%;
  height: 100vh;
  width: 100%;
  max-width: 190px;
  background-color: var(--primary);
  flex-direction: column;
  justify-content: normal;
  align-items: end;
  transition: right 0.3s ease;
  margin: 0;
  padding: 2rem;
  padding-top: 4rem;
  border-bottom-left-radius: 15px;
  border-top-left-radius: 15px;
}

.nav-links.active {
  right: 0;
}

.nav-links li {
  margin: 1.5rem 0;
}

/* Ajustements timeline */
.timeline::before {
  left: 0;
}

.timeline-item {
  width: 100%;
  padding-left: 2rem;
  min-height: 200px; /* Hauteur minimale fixe */
}

.timeline-item:nth-child(even) {
  left: 0;
  padding-left: 2rem;
}

/* Correction alignement des points sur la ligne */
.timeline-content::before {
  left: -10px !important;
  top: 20px;
  transform: none;
}

/* Alignement des cards dans projets*/
.project-grid {
  padding: 0;
}
  
/* Ajout pour s'assurer que le contenu est bien aligné */
.timeline-content {
  margin-left: 0;
}

/* Ajustement de la bannière promo */
.promo-banner {
  flex-direction: column;
  padding: 0.8rem;
  gap: 0.5rem;
  margin-left: 10px; /* Réduire les marges sur mobile */
  margin-right: 10px;
  margin-top: 100px; /* Ajuster la marge supérieure sur mobile */
}
}

@media screen and (max-width: 480px) {
.navbar {
  padding: 0.8rem;
}

.language-switch {
  margin-right: 0.5rem;
}

.lang-btn {
  padding: 0.3rem 0.6rem;
  font-size: 0.8rem;
}

.hero-content h1 {
  font-size: 2.5rem;
}

.hero-content p {
  font-size: 1.2rem;
}

.presentation-text h2 {
  font-size: 2rem;
}

.cv-buttons {
  flex-direction: column;
  gap: 1rem;
}

/* Ajustement des cards dans expériences*/
.timeline-item:nth-child(2n+1) {
  padding-right: 0%;
}

/* Alignement des cards dans projets*/
.project-grid {
  padding: 0;
}

/* Modifier les styles de la bannière promo */
.promo-banner {
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: white;
  text-align: center;
  padding: 1rem 2rem;
  position: relative;
  z-index: 999;
  margin-top: 100px; /* Augmenter la marge pour détacher du header */
  margin-left: 20px; /* Ajouter des marges sur les côtés */
  margin-right: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  animation: slideDown 0.5s ease-out;
  border-radius: 15px; /* Ajouter des bords ronds */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Ajouter une ombre légère */
}
}

@media screen and (max-width: 1050px) {
.legal-content {
  margin: 100px 20px 40px; /* Added horizontal margins */
  padding: 1.5rem;
}

.legal-content h1 {
  font-size: 2rem;
}

.legal-content h2 {
  font-size: 1.5rem;
}

.navbar {
  padding: 1rem; /* Reduced padding on mobile */
}
}