/* Styles complémentaires pour les animations et effets du profil candidat */

/* Animation d'entrée pour la carte */
.profile-header {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease;
}

.profile-header.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animations pour les boutons d'action */
.action-button {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.action-button.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Animation pour le bouton de sauvegarde */
.save-btn.saved {
  background-color: #f0f9ff;
  transform: scale(1.1);
  color: #2563eb;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.save-btn.unsaved {
  background-color: #fff;
  transform: scale(0.95);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Animation pour l'image de profil */
.profile-image-wrapper.hovered {
  transform: scale(1.05) rotate(3deg);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Animation pour le prénom */
@keyframes highlight {
  0% {
    color: #4d7bf3;
  }
  50% {
    color: #5d3be8;
  }
  100% {
    color: #4d7bf3;
  }
}

.first-name:hover {
  animation: highlight 2s infinite;
}

/* Notifications stylées */
.profile-notification {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: white;
  border-left: 5px solid #4d7bf3;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  padding: 15px 25px;
  z-index: 9999;
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.3s ease;
}

.profile-notification.show {
  opacity: 1;
  transform: translateX(0);
}

.profile-notification.success {
  border-left-color: #10b981;
}

.profile-notification.info {
  border-left-color: #3b82f6;
}

.profile-notification.warning {
  border-left-color: #f59e0b;
}

.profile-notification.error {
  border-left-color: #ef4444;
}

/* Effet ondulant pour l'arrière-plan */
@keyframes waveEffect {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.profile-background::before {
  animation: waveEffect 15s ease infinite, backgroundMove 60s linear infinite;
}

/* Effet de brillance sur l'image de profil */
@keyframes shine {
  0% {
    background-position: -100% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.profile-image::after {
  content: "";
  position: absolute;
  top: -110%;
  left: -210%;
  width: 200%;
  height: 200%;
  opacity: 0;
  transform: rotate(30deg);
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
}

.profile-image-wrapper:hover .profile-image::after {
  opacity: 1;
  animation: shine 1.5s ease;
}

/* Animation pour les métriques */
@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}

.metric-value {
  animation: bounceIn 1s ease-out;
  display: inline-block;
}

/* Animation pour le badge de statut */
@keyframes pingPulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(46, 204, 113, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
  }
}

.profile-status.online {
  animation: pingPulse 2s infinite;
}

/* Adaptations pour mobile */
@media screen and (max-width: 600px) {
  .profile-notification {
    bottom: 15px;
    right: 15px;
    left: 15px;
    width: auto;
    padding: 10px 15px;
  }
}

/* Styles pour l'en-tête Expertise et compétences */
.skills-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #f7f9fc, #eef1f5);
  border-radius: 12px;
  padding: 5px 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  margin-bottom: 25px !important;
  opacity: 0;
  transform: translateY(15px);
}

.skills-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #4776e6, #8e54e9);
  z-index: 2;
}

.skills-header::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../image/pattern.svg") repeat;
  opacity: 0.05;
  animation: moveSkillsPattern 60s linear infinite;
}

@keyframes moveSkillsPattern {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 1000px 500px;
  }
}

.header-content {
  display: flex;
  align-items: center;
  z-index: 1;
}

.header-icon {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #8e54e9, #4776e6);
  margin-right: 20px;
  box-shadow: 0 5px 15px rgba(77, 118, 230, 0.2);
  position: relative;
  overflow: hidden;
}

.header-icon::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(255, 255, 255, 0.2), transparent);
  top: 0;
  left: -100%;
  transform: skewX(-25deg);
  transition: all 0.5s ease;
}

.skills-header:hover .header-icon::after {
  left: 100%;
  transition: all 0.8s ease;
}

.header-icon i {
  color: white;
  font-size: 20px;
  animation: pulseGlow 2s infinite alternate;
}

@keyframes pulseGlow {
  0% {
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
  }
  100% {
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8),
      0 0 25px rgba(255, 255, 255, 0.5);
  }
}

.skills-header h1 {
  color: #000000 !important;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.5px;
  margin: 0;
  background: linear-gradient(45deg, #8e54e9, #4776e6);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.header-decoration {
  display: flex;
  align-items: center;
  z-index: 1;
}

.decoration-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin: 0 4px;
  background: linear-gradient(135deg, #4776e6, #8e54e9);
  opacity: 0.8;
  animation: pulseDot 1.5s infinite alternate;
}

.decoration-dot:nth-child(1) {
  animation-delay: 0s;
}

.decoration-dot:nth-child(2) {
  animation-delay: 0.5s;
}

.decoration-dot:nth-child(3) {
  animation-delay: 1s;
}

@keyframes pulseDot {
  0% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.2);
    opacity: 1;
  }
}

.skills-header:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Animation pour l'en-tête des compétences */
.skills-header.animated {
  opacity: 1;
  transform: translateY(0);
}

.skills-header .decoration-dot {
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.2s ease;
}

.skills-header.animated .decoration-dot {
  animation: fadeInRotate 0.6s forwards;
}

@keyframes fadeInRotate {
  0% {
    opacity: 0;
    transform: scale(0) rotate(-45deg);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.3) rotate(15deg);
  }
  100% {
    opacity: 0.8;
    transform: scale(1) rotate(0deg);
  }
}

.skills-header .header-icon {
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.header-content h1 {
  position: relative;
  overflow: hidden;
}

.header-content h1::before {
  content: "";
  position: absolute;
  left: -100%;
  width: 100%;
  height: 2px;
  bottom: -2px;
  background: linear-gradient(90deg, transparent, #8e54e9, transparent);
  animation: slideLine 1.5s ease-in-out infinite;
}

@keyframes slideLine {
  0% {
    left: -100%;
    width: 100%;
  }
  50% {
    left: 100%;
    width: 100%;
  }
  100% {
    left: 100%;
    width: 0;
  }
}

/* Adaptations pour mobile */
@media screen and (max-width: 600px) {
  .skills-header {
    padding: 12px 15px;
    flex-direction: column;
    text-align: center;
  }

  .header-content {
    flex-direction: column;
    margin-bottom: 12px;
  }

  .header-icon {
    margin-right: 0;
    margin-bottom: 10px;
  }

  .skills-header h1 {
    font-size: 18px;
  }

  .header-decoration {
    margin-top: 10px;
  }
}
