/* style3.css */
:root {
  --primary-color: #0d6efd;
  --secondary-color: #6c757d;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --success-color: #198754;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--dark-color);
  line-height: 1.6;
}

/* Navigation */
.navbar {
  padding: 0.8rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.3rem;
}

/* Section Profil */
#profil {
  padding-top: 6rem;
  padding-bottom: 4rem;
}

#profil img {
  border: 5px solid white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

#profil img:hover {
  transform: scale(1.05);
}

/* Compétences */
.card {
  transition: all 0.3s ease;
  border-radius: 10px;
  height: 100%;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.bi-check-circle-fill {
  color: var(--success-color);
}

/* Timeline Expérience Professionnelle */
.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 180px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 180px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #dee2e6;
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  min-height: 60px;
}

.timeline-date {
  position: absolute;
  left: 0;
  width: 160px;
  text-align: right;
  font-weight: 500;
  color: var(--secondary-color);
  padding-right: 20px;
}

.timeline-content {
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  margin-left: 30px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 170px;
  top: 15px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-color);
  border: 3px solid white;
  z-index: 1;
  box-shadow: 0 0 0 2px var(--primary-color);
}

/* Projets */
.project-thumb {
  transition: all 0.3s ease;
}

.project-thumb:hover {
  transform: translateY(-5px);
}

/* Formation */
.card-title {
  font-weight: 600;
}

/* Centres d'intérêt */
#interets .rounded {
  transition: all 0.3s ease;
}

#interets .rounded:hover {
  transform: translateY(-5px);
}

/* Contact */
#contact .form-control {
  border-radius: 8px;
  padding: 0.75rem 1rem;
}

/* Footer */
footer {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 992px) {
  .timeline {
    padding-left: 0;
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline-date {
    position: relative;
    left: 0;
    width: 100%;
    text-align: left;
    padding-right: 0;
    padding-left: 50px;
    margin-bottom: 10px;
  }
  
  .timeline-content {
    margin-left: 50px;
  }
  
  .timeline-item::before {
    left: 10px;
  }
}

@media (max-width: 768px) {
  #profil {
    padding-top: 4rem;
    text-align: center;
  }
  
  #profil .d-flex {
    justify-content: center;
  }
  
  .contact-info div {
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 576px) {
  .timeline-content {
    padding: 15px;
    margin-left: 40px;
  }
  
  .timeline-item::before {
    left: 8px;
    top: 12px;
    width: 16px;
    height: 16px;
  }
  
  .heading h2::after {
    bottom: -8px;
    height: 2px;
  }
}

/* Animations */
[data-aos="fade-up"] {
  opacity: 0;
  transition-property: transform, opacity;
}

[data-aos="fade-up"].aos-animate {
  opacity: 1;
}

/* Utilitaires */
.heading h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.heading h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 3px;
}

.bg-light {
  background-color: var(--light-color) !important;
}

.text-primary {
  color: var(--primary-color) !important;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}