/* Variables CSS pour la cohérence */
:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --card-shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
    --border-radius: 15px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Conteneur principal des projets */
.projects-container {
  padding: 2rem 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
}

/* Styles pour les cartes de projets */
.project-card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  overflow: hidden;
  background: white;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--card-shadow-hover);
}

/* En-tête de carte avec gradient */
.project-card .card-header {
  background: var(--primary-gradient);
  border: none;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.project-card .card-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 100%);
  pointer-events: none;
}

.project-card .card-title {
  color: white;
  font-weight: 700;
  font-size: 1.4rem;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

/* Corps de la carte */
.project-card .card-body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-card .card-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #6c757d;
  margin-bottom: 1.5rem;
}
.project-card .card-text.text-muted {
  font-style: italic;
  opacity: 0.8;
}

/* Section des langages */
.languages-section {
  margin-top: auto;
}

.languages-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #495057;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.languages-title::before {
  content: "💻";
  margin-right: 0.5rem;
  font-size: 1.2rem;
}

/* Liste des langages stylisée */
.languages-list {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.language-item {
  border: none;
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    background: white;
}

.language-item:not(:last-child) {
  border-bottom: 1px solid #f8f9fa;
}

.language-item:hover {
  background: #f8f9fa;
  transform: translateX(5px);
}

.language-name {
  font-weight: 500;
  color: #495057;
  display: flex;
  align-items: center;
}

.language-percentage {
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 20px;
  font-size: 0.85rem;
  color: white;
  background: var(--success-gradient);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Couleurs spécifiques pour les langages populaires */
.language-item[data-lang="JavaScript"] .language-percentage {
  background: linear-gradient(135deg, #f7df1e 0%, #f0db4f 100%);
  color: #333;
}

.language-item[data-lang="Python"] .language-percentage {
  background: linear-gradient(135deg, #3776ab 0%, #ffd43b 100%);
}

.language-item[data-lang="Java"] .language-percentage {
  background: linear-gradient(135deg, #ed8b00 0%, #f89820 100%);
}
.language-item[data-lang="Cascading Style Sheets (CSS)"] .language-percentage {
  background: linear-gradient(135deg, #3178c6 0%, #235a97 100%);
}

.language-item[data-lang="Jinja2"] .language-percentage {
  background: linear-gradient(135deg, #61dafb 0%, #21759b 100%);
}

.language-item[data-lang="PHP"] .language-percentage {
  background: linear-gradient(135deg, #777bb4 0%, #8892bf 100%);
}

.language-item[data-lang="HyperText Markup Language (HTML)"] .language-percentage {
  background: linear-gradient(135deg, #e00b0b 0%, #262730 100%);
}

/* Pied de carte */
.project-card .card-footer {
  background: #f8f9fa;
  border: none;
  padding: 1.5rem;
}

.project-link {
  background: var(--secondary-gradient);
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 25px;
  font-weight: 600;
  text-decoration: none;
    color: white;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.project-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  color: white;
}

.project-link::after {
  content: "→";
  margin-left: 0.5rem;
  transition: var(--transition);
}

.project-link:hover::after {
  transform: translateX(3px);
}

/* Responsive design */
@media (max-width: 768px) {
  .project-card {
    margin-bottom: 1.5rem;
  }

  .project-card .card-header {
    padding: 1rem;
  }

  .project-card .card-title {
    font-size: 1.2rem;
  }

  .project-card .card-body {
    padding: 1rem;
  }
}

/* Animation d'apparition */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.project-card {
  animation: fadeInUp 0.6s ease-out;
}

/* Délai d'animation pour créer un effet en cascade */
.project-card:nth-child(1) {
  animation-delay: 0.1s;
}

.project-card:nth-child(2) {
  animation-delay: 0.2s;
}

.project-card:nth-child(3) {
  animation-delay: 0.3s;
}

.project-card:nth-child(4) {
  animation-delay: 0.4s;
}
/* Indicateur de chargement pour les images de langages */
.language-icon {
  width: 20px;
  height: 20px;
  margin-right: 0.5rem;
  border-radius: 3px;
}
/* Styles pour les badges de statut */
.project-status {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.9);
  color: #495057;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
}
/* Effet de brillance sur hover */
.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.2),
      transparent);
  transition: left 0.5s;
  z-index: 1;
  pointer-events: none;
}

.project-card:hover::before {
  left: 100%;
}

/* Styles pour l'en-tête de la section projets */
.projects-header {
  padding: 3rem 0 2rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
}

/* Style du titre principal */
.projects-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #333;
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
  display: inline-block;
  padding: 0 1rem;
}
/* Effet de soulignement animé */
.projects-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 100%;
  height: 5px;
    background: var(--primary-gradient);
  border-radius: 5px;
  transform: scaleX(0.6);
    transform-origin: center;
    transition: transform 0.3s ease;
  }
  
  .projects-title:hover::after {
    transform: scaleX(1);
  }
  
  /* Container pour le filtre */
  .filter-container {
    max-width: 500px;
    margin: 0 auto 2.5rem;
    position: relative;
    z-index: 10;
}

/* Style du label */
.filter-label {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.75rem;
  text-align: center;
}

/* Style du sélecteur */
.language-select {
  appearance: none;
  background-color: white;
  border: 2px solid #e9ecef;
  border-radius: 25px;
  padding: 0.75rem 2.5rem 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: #495057;
  width: 100%;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.language-select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.25);
}

.language-select:hover {
  border-color: #ced4da;
  transform: translateY(-2px);
}

/* Style de la flèche du sélecteur */
.select-wrapper {
  position: relative;
}

.select-wrapper::after {
  content: "▼";
  font-size: 0.8rem;
  color: #667eea;
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  transition: var(--transition);
}

.select-wrapper:hover::after {
  transform: translateY(-50%) rotate(180deg);
}

/* Style des options */
.language-select option {
  padding: 10px;
  font-weight: 500;
}

/* Animation d'apparition */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.projects-title {
  animation: fadeInDown 0.6s ease-out;
}
.filter-container {
  animation: fadeInDown 0.6s ease-out 0.2s both;
}
/* Badge de compteur de projets */
.projects-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-gradient);
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  height: 24px;
  min-width: 24px;
  padding: 0 8px;
  border-radius: 12px;
  margin-left: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
/* Responsive */
@media (max-width: 768px) {
  .projects-title {
    font-size: 2rem;
  }
                                                                .filter-container {
                                                                  max-width: 90%;
                                                                }
}
/* Effet de particules en arrière-plan */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(102, 126, 234, 0.2);
  }
  
  .particle:nth-child(1) {
    top: 20%;
    left: 10%;
    width: 80px;
    height: 80px;
    opacity: 0.3;
  }
  
  .particle:nth-child(2) {
    top: 60%;
    left: 80%;
    width: 120px;
    height: 120px;
    opacity: 0.2;
  }
  
  .particle:nth-child(3) {
    top: 10%;
    left: 70%;
    width: 40px;
    height: 40px;
    opacity: 0.4;
  }
  
  .particle:nth-child(4) {
    top: 70%;
    left: 30%;
    width: 60px;
    height: 60px;
    opacity: 0.3;
  }
  
  /* Effet de surbrillance sur le titre */
  .highlight {
    position: relative;
    display: inline-block;
    color: #667eea;
    font-weight: 800;
  }
  
  .highlight::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background-color: rgba(102, 126, 234, 0.2);
    z-index: -1;
    transform: skewX(-15deg);
}
