/* Animations de base */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  @keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }
  
  @keyframes slideIn {
    from { transform: translateX(-50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
  }
  
  @keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
  }
  
  @keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }
  
  @keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-7px); }
  }
  
  /* Animation du logo */
  .logo {
    position: relative;
    overflow: hidden;
  }
  
  .logo span {
    animation: pulse 2s infinite;
  }
  
  /* Animation des items de navigation */
  nav ul li {
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
  }
  
  nav ul li:nth-child(1) { animation-delay: 0.1s; }
  nav ul li:nth-child(2) { animation-delay: 0.2s; }
  nav ul li:nth-child(3) { animation-delay: 0.3s; }
  nav ul li:nth-child(4) { animation-delay: 0.4s; }
  nav ul li:nth-child(5) { animation-delay: 0.5s; }
  nav ul li:nth-child(6) { animation-delay: 0.6s; }
  
  /* Effet de survol amélioré pour les liens de navigation */
  nav ul li a {
    position: relative;
  }
  
  nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
  }
  
  nav ul li a:hover::after {
    width: 100%;
  }
  
  /* Animation de la section héro */
  .hero-text h1 {
    animation: slideIn 0.8s ease forwards;
    opacity: 0;
  }
  
  .hero-text p {
    animation: slideIn 0.8s ease forwards;
    opacity: 0;
    animation-delay: 0.2s;
  }
  
  .hero-text .btn-wrapper {
    animation: slideIn 0.8s ease forwards;
    opacity: 0;
    animation-delay: 0.4s;
  }
  
  .hero-image img {
    animation: fadeIn 1s ease-in-out forwards;
    opacity: 0;
    animation-delay: 0.5s;
  }
  
  /* Animation de la section projets */
  .project-card {
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(20px);
  }
  
  .project-card.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  .project-card:hover img {
    transform: scale(1.05);
    transition: transform 0.5s ease;
  }
  
  /* Animation des compétences */
  .skill-card {
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(20px);
  }
  
  .skill-card.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  .skill-icon i {
    transition: transform 0.3s ease;
  }
  
  .skill-card:hover .skill-icon i {
    transform: rotate(10deg) scale(1.2);
  }
  
  /* Animation des cartes de formation */
  .formation-card {
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(20px);
  }
  
  .formation-card.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  .formation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  }
  
  /* Animation des activités */
  .activites-card {
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(20px);
  }
  
  .activites-card.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  .activites-card:hover img {
    transform: scale(1.05);
    transition: transform 0.5s ease;
  }
  
  /* Animation du bouton contact */
  .contact-btn {
    position: relative;
    overflow: hidden;
  }
  
  .contact-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
  }
  
  .contact-btn:hover::after {
    left: 100%;
  }
  
  /* Animation des icônes sociales */
  .social-links a i, .social-icons a i {
    transition: transform 0.3s ease;
  }
  
  .social-links a:hover i, .social-icons a:hover i {
    animation: bounce 1s;
  }
  
  /* Animation des sections lors du défilement */
  .section-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
  }
  
  .section-animate.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Animation des titres de section */
  h2 {
    position: relative;
  }
  
  h2::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.5s ease;
  }
  
  section:hover h2::after {
    width: 100px;
  }
  
  /* Animation du formulaire de contact */
  .form-group input, .form-group textarea {
    transition: all 0.3s ease;
  }
  
  .form-group input:focus, .form-group textarea:focus {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }
  
  /* Animation pour les compétences personnelles */
  .perso-card {
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(20px);
  }
  
  .perso-card.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  .perso-card:hover .perso-icon {
    animation: pulse 1s infinite;
  }
  
  /* Animation du footer */
  footer {
    position: relative;
    overflow: hidden;
  }
  
  footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color), var(--secondary-color));
    animation: rotate 8s linear infinite;
    background-size: 200% 100%;
  }
  
  @keyframes rotate {
    0% { background-position: 0% 0; }
    100% { background-position: 200% 0; }
  }

  /* Styles pour le header lors du défilement */
header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 0.7rem 5%;
    transition: all 0.3s ease;
  }
  
  /* Styles pour l'effet de ripple sur les boutons */
  button, .primary-btn, .dark-btn, .outline-btn, .project-btn {
    position: relative;
    overflow: hidden;
  }
  
  .ripple {
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
  }
  
  @keyframes ripple {
    to {
      transform: scale(4);
      opacity: 0;
    }
  }
  
  /* Styles pour le bouton Back to Top */
  .back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
  }
  
  .back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  .back-to-top:hover {
    background-color: var(--primary-color);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  }
  
  /* Animation du texte typing */
  .typing-text {
    display: block;
    margin-top: 10px;
    font-size: 1.2rem;
    color: var(--secondary-color);
    height: 1.5em;
    overflow: hidden;
    border-right: 3px solid var(--secondary-color);
    white-space: nowrap;
    animation: blink-caret 0.75s step-end infinite;
  }
  
  @keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--secondary-color); }
  }
  
  /* Transition plus douce pour les images */
  img {
    transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.4s ease;
  }
  
  /* Animation des titres de section */
  section h2 {
    animation: fadeIn 1s ease forwards;
    opacity: 0;
  }
  
  /* Effet de profondeur pour les cartes */
  .skill-card, .project-card, .formation-card, .activites-card, .perso-card {
    transform-style: preserve-3d;
    perspective: 1000px;
  }
  
  /* Animation spéciale pour la section passion */
  .passion-card {
    position: relative;
    overflow: hidden;
  }
  
  .passion-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(140, 82, 255, 0.1) 0%, transparent 70%);
    transform: rotate(45deg);
    z-index: -1;
    transition: all 1.5s ease;
  }
  
  .passion-card:hover::before {
    transform: rotate(225deg);
  }
  
  /* Animation des graphiques circulaires de compétences */
  .skill-circle {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 15px auto;
    border-radius: 50%;
    background: conic-gradient(var(--secondary-color) var(--percent), #eee var(--percent));
    transition: all 1s ease;
  }
  
  .skill-circle::before {
    content: attr(data-percent);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1rem;
    font-weight: bold;
    color: var(--primary-color);
  }

  /* Curseur personnalisé pour tout le site */
body {
  cursor: url('chemin-vers-votre-curseur.png'), auto;
}

/* Différents curseurs pour différents éléments */
a {
  cursor: url('curseur-lien.png'), pointer;
}

button {
  cursor: url('curseur-bouton.png'), pointer;
}


/* Styles pour l'écran de chargement */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #f8f4ed;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.5s ease-out;
}

#loading-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loading-content {
  text-align: center;
  width: 300px;
}

.loading-logo {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ff7e5f, #6c63ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.loading-animation {
  position: relative;
  height: 150px;
  margin: 20px auto;
}

/* Animation de pâtisserie - Bol et fouet */
.mixing-bowl {
  position: relative;
  width: 100px;
  height: 60px;
  margin: 0 auto;
}

.bowl {
  position: absolute;
  width: 100px;
  height: 50px;
  bottom: 0;
  border-radius: 0 0 50px 50px;
  background: #f0f0f0;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.bowl-rim {
  position: absolute;
  top: 0;
  width: 110px;
  height: 10px;
  left: -5px;
  background: #e0e0e0;
  border-radius: 50%;
}

.bowl-inner {
  position: absolute;
  width: 80px;
  height: 15px;
  bottom: 5px;
  left: 10px;
  background: #ffe9c0;
  border-radius: 50%;
  transform-origin: center;
  animation: mixing 2s infinite linear;
}

.whisk {
  position: absolute;
  top: -30px;
  left: 40px;
  animation: whisking 2s infinite cubic-bezier(0.4, 0.1, 0.6, 0.9);
}

.whisk-handle {
  width: 6px;
  height: 60px;
  background: #666;
  margin: 0 auto;
  border-radius: 3px;
}

.whisk-wires {
  position: relative;
  width: 30px;
  height: 20px;
  bottom: -55px;
  left: -12px;
}

.whisk-wires:before,
.whisk-wires:after {
  content: '';
  position: absolute;
  width: 15px;
  height: 15px;
  border: 2px solid #888;
  border-radius: 50%;
}

.whisk-wires:before {
  left: 0;
}

.whisk-wires:after {
  right: 0;
}

/* Particules numériques */
.digital-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.digital-particles span {
  position: absolute;
  display: block;
  width: 5px;
  height: 5px;
  background: linear-gradient(135deg, #6c63ff, #ff7e5f);
  border-radius: 50%;
  opacity: 0;
  animation: float 3s infinite ease-in-out;
}

.digital-particles span:nth-child(1) {
  top: 20%;
  left: 20%;
  animation-delay: 0s;
}

.digital-particles span:nth-child(2) {
  top: 40%;
  left: 70%;
  animation-delay: 0.4s;
}

.digital-particles span:nth-child(3) {
  top: 60%;
  left: 30%;
  animation-delay: 0.8s;
}

.digital-particles span:nth-child(4) {
  top: 80%;
  left: 60%;
  animation-delay: 1.2s;
}

.digital-particles span:nth-child(5) {
  top: 30%;
  left: 80%;
  animation-delay: 1.6s;
}

.digital-particles span:nth-child(6) {
  top: 70%;
  left: 10%;
  animation-delay: 2s;
}

.loading-text {
  font-size: 1.2rem;
  margin: 10px 0;
  color: #333;
  font-family: 'Arial', sans-serif;
}

.loading-progress {
  width: 100%;
  height: 4px;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 15px;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, #ff7e5f, #6c63ff);
  animation: progress 3s ease-in-out forwards;
}

/* Animations */
@keyframes whisking {
  0% {
      transform: rotate(-10deg);
  }
  50% {
      transform: rotate(10deg);
  }
  100% {
      transform: rotate(-10deg);
  }
}

@keyframes mixing {
  0% {
      transform: rotate(0deg);
  }
  100% {
      transform: rotate(360deg);
  }
}

@keyframes float {
  0% {
      transform: translateY(0) scale(1);
      opacity: 0;
  }
  50% {
      opacity: 0.7;
  }
  100% {
      transform: translateY(-20px) scale(0);
      opacity: 0;
  }
}

@keyframes progress {
  0% {
      width: 0%;
  }
  50% {
      width: 70%;
  }
  100% {
      width: 100%;
  }
}