/* Reset de base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #1e1e1e;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.logo a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.3rem;
}

.nav-links a {
  color: white;
  text-decoration: none;
  margin-left: 25px;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #00aaff;
}

/* Hero */
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-size: cover;
  background-position: center;
  padding: 0 20px;
  gap: 60px;
  color: white;
}

.hero-left h1 {
  font-size: 3rem;
  color: black;
}

.hero-left h2 {
  font-size: 1.5rem;
  margin-top: 10px;
  color: black;
}

.hero-btn {
  display: inline-block;
  margin-top: 25px;
  padding: 12px 24px;
  background-color: #0077cc;
  color: white;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.hero-btn:hover {
  background-color: #005fa3;
}

.profil-photo {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid white;
}

/* Contenu des pages */
.section-content {
  max-width: 1000px;
  margin: 100px auto 60px auto;
  padding: 0 20px;
  line-height: 1.8;
  flex: 1;
}

.section-content h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.section-content h3 {
  margin-top: 30px;
  color: #333;
}

.section-content ul {
  margin-top: 10px;
  padding-left: 20px;
  list-style-type: disc;
}

.section-content a {
  color: #0077cc;
  text-decoration: none;
}

.section-content a:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  background-color: #1e1e1e;
  color: white;
  text-align: center;
  padding: 20px 10px;
  font-size: 0.9rem;
  margin-top: auto;
}

.footer a {
  color: #ccc;
  text-decoration: none;
  margin: 0 10px;
}

.footer a:hover {
  color: #00aaff;
}

/* Projects */
.project-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}

.project-card {
  flex: 1 1 300px;
  background-color: #f0f0f0;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Contact */
.contact-form {
  max-width: 600px;
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.contact-form button {
  width: 150px;
  padding: 10px;
  font-size: 1rem;
  background-color: #0077cc;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.contact-form button:hover {
  background-color: #005fa3;
}

/* Timeline horizontale */
.timeline-section {
  padding: 60px 20px;
  max-width: 100%;
  margin: 30px auto;
  overflow: visible;
}

.timeline-section h2 {
  text-align: center;
  margin-bottom: 60px;
  font-size: 2rem;
  color: #333;
}

.timeline {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 120px 0;
  gap: 20px;
}

/* Ligne horizontale centrale */
.timeline::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, #0077cc, #005fa3);
  z-index: 1;
  transform: translateY(-50%);
}

.timeline-item {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 140px;
  max-width: 180px;
}

/* Points sur la ligne */
.timeline-item::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  background-color: #0077cc;
  border: 4px solid white;
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 0 3px #0077cc;
}

.timeline-content {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-top: 4px solid #0077cc;
  width: 180px;
  height: 120px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.timeline-content:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Alternance haut/bas */
.timeline-item:nth-child(odd) .timeline-content {
  position: absolute;
  top: -140px;
}

.timeline-item:nth-child(even) .timeline-content {
  position: absolute;
  top: 20px;
}

/* Flèches pointant vers la ligne */
.timeline-content::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border: 10px solid transparent;
}

.timeline-item:nth-child(odd) .timeline-content::after {
  bottom: -20px;
  border-top-color: #f8f9fa;
}

.timeline-item:nth-child(even) .timeline-content::after {
  top: -20px;
  border-bottom-color: #f8f9fa;
}

.timeline-date {
  font-weight: bold;
  color: #0077cc;
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.timeline-title {
  font-weight: bold;
  color: #333;
  font-size: 1rem;
  margin-bottom: 5px;
  line-height: 1.3;
}

.timeline-location {
  color: #666;
  font-size: 0.85rem;
  font-style: italic;
  line-height: 1.2;
}

/* Responsive */
@media (max-width: 1024px) {
  .timeline-section {
    padding: 40px 10px;
  }
  
  .timeline {
    padding: 100px 0;
  }
  
  .timeline-item {
    min-width: 120px;
    max-width: 160px;
  }
  
  .timeline-content {
    width: 150px;
  }
}

@media (max-width: 768px) {
  .timeline-section {
    padding: 40px 10px;
  }
  
  .timeline {
    flex-direction: column;
    min-width: auto;
    padding: 40px 0;
  }
  
  .timeline::before {
    top: 0;
    bottom: 0;
    left: 50%;
    right: auto;
    width: 3px;
    height: 100%;
    transform: translateX(-50%);
  }
  
  .timeline-item {
    margin: 30px 0;
    max-width: 300px;
  }
  
  .timeline-item::before {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    position: static;
    width: 280px;
    margin-top: 20px;
  }
  
  .timeline-item:nth-child(odd) .timeline-content::after {
    top: -20px;
    bottom: auto;
    border-top-color: transparent;
    border-bottom-color: #f8f9fa;
  }
}
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.7);
}

.modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 20px;
  border-radius: 8px;
  width: 80%;
  max-width: 800px;
  position: relative;
}

.close {
  position: absolute;
  top: 8px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

