/* Base */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background: #f2f2f2;
  color: #333;
}

.cv-container {
  max-width: 800px;
  margin: 40px auto;
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

/* Header */
header {
  text-align: center;
  border-bottom: 2px solid #ccc;
  padding-bottom: 15px;
}

header h1 {
  margin: 10px 0 5px;
}

header p {
  margin: 5px 0;
}

/* Sections */
.section {
  margin: 25px 0;
}

.section h2 {
  color: #0077cc;
  border-bottom: 2px solid #0077cc;
  padding-bottom: 5px;
  margin-bottom: 15px;
}

/* Profil image */

.photo-profil {
  display: block;
  margin: 20px auto;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect */
.photo-profil:hover {
  transform: scale(1.1); /* Agrandit légèrement */
  box-shadow: 0 0 20px rgba(0,0,0,0.3); /* Ombre plus prononcée */
}


/* Compétences */
.skills-list {
  list-style: none;
  padding: 0;
}

.skills-list li {
  margin-bottom: 20px;
  font-weight: 500;
  position: relative;
}

.bar-bg {
  width: 100%;
  height: 10px;
  background: #ddd;
  border-radius: 5px;
  margin-top: 5px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  width: 0;
  background: #0077cc;
  border-radius: 5px;
  transition: width 1.5s ease;
}

/* Typing effect */
#typing-text {
  font-weight: bold;
  color: #0077cc;
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid #0077cc;
  display: inline-block;
}

/* Curseur qui clignote */
@keyframes blink {
  0%, 100% { border-color: transparent; }
  50% { border-color: #0077cc; }
}

#typing-text {
  animation: blink 0.7s infinite;
}


/* Bouton télécharger */
.download-btn {
  text-align: center;
  margin: 20px 0;
}

.download-btn a {
  display: inline-block;
  padding: 10px 20px;
  background: #0077cc;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s;
}

.download-btn a:hover {
  background: #005fa3;
}

/* Animation pour la section projets */
.projets ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.projets li {
  background: rgba(0, 119, 204, 0.05);
  border-left: 4px solid #0077cc;
  padding: 12px 15px;
  margin-bottom: 10px;
  border-radius: 6px;
  transition: all 0.3s ease;
  cursor: default;
  position: relative;
}

/* Effet de survol élégant */
.projets li:hover {
  background: #0077cc;
  color: #fff;
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(0, 119, 204, 0.4);
}

/* Lien GitHub en style adaptatif */
.projets li a {
  color: #0077cc;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.projets li:hover a {
  color: #fff;
}

/* Footer */
footer {
  text-align: center;
  font-size: 0.9em;
  color: #777;
  border-top: 1px solid #ccc;
  padding-top: 10px;
}

/* Responsive */
@media (max-width: 600px) {
  .cv-container {
    padding: 20px;
  }

  .photo-profil {
    width: 100px;
    height: 100px;
  }
}

/* Effet titre */

.section h2 {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.6s ease;
}

.section h2.show {
  opacity: 1;
  transform: translateX(0);
}

/* ===== Canvas animé ===== */
#bgCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* Derrière le contenu */
  background: #f2f2f2; /* Fond de base */
}
