body {
  font-family: 'Poppins', sans-serif;
  background-color: #f8f9fa;
  scroll-behavior: smooth;
}

.header {
  background-image: url('../assets/main.jpeg'); 
  background-size: cover;       
  background-position: center;  
  background-repeat: no-repeat;
  padding: 120px 20px;         
  border-radius: 10px;
  position: relative;
  color: white;
  box-shadow: inset 0 0 0 2000px rgba(0,0,0,0.3); 
  max-width: 1300px;
  margin: 0 auto;

}

.header-content {
  width: 600px;
  text-align: left;
  padding-left: 60px;
}

section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-title {
  margin-bottom: 20px;
  border-bottom: 3px solid #0d6efd;
  display: inline-block;
  padding-bottom: 5px;
}

.card {
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.card-title {
  font-weight: bold;
}

/* Navbar */
.navbar .nav-link {
  margin: 0 10px;
  font-weight: 500;
  color: #ffffff;
}

.navbar .nav-link:hover {
  color: #ffd700 !important;
}

/* CV Button */
.btn-cv {
  background: linear-gradient(45deg, #007bff, #00c6ff);
  color: #fff;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  z-index: 1000;
}

.btn-cv i {
  animation: bounce 2s infinite;
}

.btn-cv:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  background: linear-gradient(45deg, #00c6ff, #007bff);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-5px); }
  60% { transform: translateY(-3px); }
}
:target {
  scroll-margin-top: 100px; /* Hauteur approximative de la navbar */
}

/* --- ALIGNEMENT DES CARTES PROJETS --- */

#projets .row {
  display: flex;
  flex-wrap: wrap;
}

#projets .col {
  display: flex; 
}


#projets .card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}


#projets .card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1; 
}


#projets .card-text {
  flex-grow: 1; 
}


#projets .mt-auto {
  margin-top: auto !important;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .header {
    padding: 100px 20px;
    border-radius: 0;
  }
  .header-content {
    width: 100%;
    padding-left: 0;
    text-align: center;
  }
}