/* Animations personnalisées */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.animate-fade-in {
    animation: fadeIn 1s ease-in forwards;
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out forwards;
    opacity: 0;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Styles pour les cartes de projets */
.project-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.project-card img {
    transition: transform 0.5s ease;
}

.project-card:hover img {
    transform: scale(1.1);
}

/* Styles pour les badges de compétences */
.skill-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.skill-badge:hover {
    transform: translateY(-2px);
}

.tech-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #e5e7eb;
    color: #374151;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.dark .tech-tag {
    background-color: #374151;
    color: #e5e7eb;
}

/* Styles pour la timeline */
.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 50px;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 25px;
    height: 100%;
    width: 2px;
    background: #e5e7eb;
}
.animate-slide-down-fade { animation: slideDownFade 1s cubic-bezier(.4,0,.2,1) both; }
            .animate-typewriter { animation: typewriter 2.5s steps(40, end) 1s 1 normal both, blinkCaret .75s step-end infinite; white-space: nowrap; overflow: hidden; border-right: 2px solid #7c3aed; }
            .animate-fade-in-up { animation: fadeInUp 1.2s cubic-bezier(.4,0,.2,1) both; }
            .animate-bounce-in { animation: bounceIn 1.1s cubic-bezier(.4,0,.2,1) both; }
            .animate-pulse { animation: pulse 1.5s infinite; }

.dark .timeline-container::before {
    background: #4b5563;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-dot {
    position: absolute;
    left: -38px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-content {
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.dark .timeline-content {
    background: #1f2937;
}

.timeline-date {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 8px;
}

.timeline-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #111827;
}

.dark .timeline-title {
    color: #f9fafb;
}

.timeline-location {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 8px;
}
/* Styles pour les compétences */
.skill-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.skill-icon:hover {
    transform: translateY(-5px);
}

.skill-label {
    margin-top: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.tech-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.tech-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.soft-skill-card {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background-color: rgba(249, 250, 251, 0.5);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.dark .soft-skill-card {
    background-color: rgba(31, 41, 55, 0.5);
}

.soft-skill-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.soft-skill-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.timeline-description {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Navigation active */
.nav-link.active {
    color: #3b82f6;
    font-weight: 600;
}

/* Bouton retour en haut */
#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}
/* Animations personnalisées */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes float-1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -20px); }
}

@keyframes float-2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-15px, 15px); }
}

@keyframes float-3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(10px, 10px); }
}

@keyframes float-4 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-10px, -10px); }
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes text-reveal {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes underline {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@keyframes scroll-indicator {
    0%, 100% { transform: translateY(0); opacity: 0.4; }
    50% { transform: translateY(10px); opacity: 1; }
}

/* Classes d'animation */
.animate-float { animation: float 6s ease-in-out infinite; }
.animate-float-1 { animation: float-1 8s ease-in-out infinite; }
.animate-float-2 { animation: float-2 7s ease-in-out infinite; }
.animate-float-3 { animation: float-3 9s ease-in-out infinite; }
.animate-float-4 { animation: float-4 10s ease-in-out infinite; }
.animate-spin-slow { animation: spin-slow 12s linear infinite; }
.animate-text-reveal { animation: text-reveal 1s cubic-bezier(0.19, 1, 0.22, 1) forwards; }
.animate-underline { animation: underline 1.5s cubic-bezier(0.65, 0, 0.35, 1) forwards; animation-delay: 1.8s; }
.animate-scroll-indicator { animation: scroll-indicator 2s infinite; }

.typewriter-text {
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid;
    animation: typewriter 2s steps(30) 1s 1 normal both,
               blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: currentColor; }
}

/* Boutons stylisés */
.btn-primary {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3), 0 2px 4px -1px rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3), 0 4px 6px -2px rgba(59, 130, 246, 0.2);
    background: linear-gradient(135deg, #2563eb, #7c3aed);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: #3b82f6;
    border: 2px solid #3b82f6;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.1);
}

.dark .btn-secondary {
    color: #818cf8;
    border-color: #818cf8;
}

.dark .btn-secondary:hover {
    background: rgba(99, 102, 241, 0.1);
}

/* Loader d'intro - nouvelle animation texte girly/pro */
#intro-loader h1 {
  font-family: 'Pacifico', cursive;
  font-size: 3rem;
  background: linear-gradient(90deg, #ffb6ec 0%, #b5c6e0 50%, #c3aed6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  text-shadow: 0 4px 24px #c3aed6cc, 0 1px 0 #fff;
  letter-spacing: 2px;
  animation: girlyZoomRotate 1.6s cubic-bezier(.4,0,.2,1) 0.2s both;
}
@keyframes girlyZoomRotate {
  0% { opacity: 0; transform: scale(0.7) rotate(-10deg); filter: blur(8px); }
  60% { opacity: 1; transform: scale(1.1) rotate(6deg); filter: blur(0); }
  80% { transform: scale(0.97) rotate(-2deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}
#intro-loader p {
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  color: #fff;
  text-shadow: 0 2px 12px #b5c6e0cc;
  letter-spacing: 1px;
  animation: girlySlideIn 1.2s cubic-bezier(.4,0,.2,1) 1.1s both;
}
@keyframes girlySlideIn {
  0% { opacity: 0; transform: translateY(40px) scale(0.9) skewX(-8deg); }
  70% { opacity: 1; transform: translateY(-8px) scale(1.05) skewX(2deg); }
  100% { opacity: 1; transform: translateY(0) scale(1) skewX(0); }
}
/* Supprimer l'ancienne animation typewriter du loader */
.animate-typewriter-loader, .animate-fade-in-loader {
  animation: none !important;
  opacity: 1 !important;
  border: none !important;
  width: auto !important;
}
@keyframes icon-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px) scale(1.1); }
}
.animate-icon-bounce {
  animation: icon-bounce 1.4s infinite cubic-bezier(.4,0,.2,1);
}
@media (max-width: 600px) {
  #intro-loader h1 { font-size: 2rem; }
  #intro-loader p { font-size: 1.1rem; }
}

/* Loader titre avec dégradé cohérent accueil, pop-in, glow, vibration */
.loader-gradient-title {
  font-family: 'Pacifico', cursive;
  background: linear-gradient(90deg, #2563eb 0%, #7c3aed 50%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  text-shadow: 0 0 24px #a78bfa88, 0 2px 8px #ec489988;
  letter-spacing: 2px;
  animation: loaderPopGlow 1.2s cubic-bezier(.4,0,.2,1) 0.2s both, loaderVibrate 0.5s 1.1s 1;
}
@keyframes loaderPopGlow {
  0% { opacity: 0; transform: scale(0.7) translateY(40px); filter: blur(8px); }
  60% { opacity: 1; transform: scale(1.08) translateY(-8px); filter: blur(0); }
  80% { transform: scale(0.97) translateY(2px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes loaderVibrate {
  0% { transform: translateX(0); }
  20% { transform: translateX(-2px); }
  40% { transform: translateX(2px); }
  60% { transform: translateX(-1px); }
  80% { transform: translateX(1px); }
  100% { transform: translateX(0); }
}
/* Nettoyage anciens styles */
.loader-animated-title, .loader-letter { all: unset; }

/* Loader assemble - lettres dispersées puis réunies */
.loader-assemble-title {
  font-family: 'Pacifico', cursive;
  background: linear-gradient(90deg, #2563eb 0%, #7c3aed 50%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  text-shadow: 0 0 24px #a78bfa88, 0 2px 8px #ec489988;
  letter-spacing: 2px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.05em;
}
.loader-assemble-letter {
  display: inline-block;
  opacity: 0.2;
  /* Position initiale aléatoire, sera surchargée par JS */
  transform: translate(var(--x, 0), var(--y, 0)) rotate(var(--r, 0deg)) scale(0.7);
  transition: transform 1.1s cubic-bezier(.4,0,.2,1), opacity 1.1s cubic-bezier(.4,0,.2,1);
}
.loader-assemble-letter.assembled {
  opacity: 1;
  transform: none;
}
@media (max-width: 600px) {
  .loader-assemble-title { font-size: 2rem; }
}

/* Filtres projets */
.filter-btn {
  @apply px-4 py-2 rounded-full font-semibold border border-blue-400 bg-white dark:bg-gray-800 text-blue-600 dark:text-blue-300 shadow-sm transition-all duration-200 hover:bg-blue-100 dark:hover:bg-blue-900 hover:text-blue-800 dark:hover:text-white focus:outline-none focus:ring-2 focus:ring-blue-400;
}
.filter-btn.active {
  @apply bg-gradient-to-r from-blue-500 to-purple-500 text-white shadow-lg;
}

/* Cartes projets */
.project-card {
  @apply rounded-lg shadow-md border border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800 transition-all duration-300 hover:shadow-2xl hover:-translate-y-1;
}

/* Boutons principaux */
.btn-primary {
  @apply px-4 py-2 rounded-lg bg-gradient-to-r from-blue-500 to-purple-600 text-white font-semibold shadow-md hover:from-purple-600 hover:to-pink-500 transition-all duration-200;
}
.btn-secondary {
  @apply px-4 py-2 rounded-lg border border-blue-400 text-blue-600 dark:text-blue-300 bg-white dark:bg-gray-900 font-semibold shadow hover:bg-blue-50 dark:hover:bg-blue-800 hover:text-blue-800 dark:hover:text-white transition-all duration-200;
}

/* Tech tags */
.tech-tag {
  @apply inline-block px-2 py-1 rounded bg-blue-100 dark:bg-blue-900 text-blue-700 dark:text-blue-300 text-xs font-semibold mr-1 mb-1;
}

/* Halo lumineux animé autour de la photo de profil */
.profile-glow {
    box-shadow: 0 0 32px 8px rgba(99,102,241,0.25), 0 0 64px 16px rgba(168,85,247,0.15);
    position: relative;
    transition: box-shadow 0.4s;
}
.profile-glow::before {
    content: '';
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    z-index: 1;
    background: radial-gradient(circle, rgba(99,102,241,0.25) 0%, rgba(168,85,247,0.12) 70%, transparent 100%);
    filter: blur(4px);
    pointer-events: none;
    animation: profileGlowPulse 2.5s infinite alternate;
}
@keyframes profileGlowPulse {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Effet de glow sur l'image */
.profile-img-glow {
    box-shadow: 0 4px 32px 0 rgba(99,102,241,0.18), 0 1.5px 8px 0 rgba(168,85,247,0.10);
}

/* Effet de zoom au survol */
.group:hover .profile-glow {
    transform: scale(1.06) rotate(-2deg);
    box-shadow: 0 0 48px 16px rgba(99,102,241,0.35), 0 0 96px 32px rgba(168,85,247,0.18);
}

/* Badge modernisé avec glow */
.badge-glow {
    box-shadow: 0 2px 16px 0 rgba(99,102,241,0.18), 0 1.5px 8px 0 rgba(168,85,247,0.10);
    border: 1.5px solid rgba(99,102,241,0.18);
    font-size: 1rem;
    letter-spacing: 0.01em;
    transition: box-shadow 0.3s;
}
.badge-glow i {
    animation: icon-bounce 1.2s infinite alternate;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
.animate-blink {
    animation: blink 2.2s infinite;
}

        @keyframes float-slow {
            0%, 100% { transform: translateY(0) translateX(0); }
            50% { transform: translateY(-20px) translateX(10px); }
        }
        @keyframes float-slower {
            0%, 100% { transform: translateY(0) translateX(0); }
            50% { transform: translateY(15px) translateX(-15px); }
        }
        @keyframes float-delayed {
            0%, 100% { transform: translateY(0) translateX(0); }
            50% { transform: translateY(-10px) translateX(-10px); }
        }
        .animate-float-slow { animation: float-slow 8s ease-in-out infinite; }
        .animate-float-slower { animation: float-slower 10s ease-in-out infinite; }
        .animate-float-delayed { animation: float-delayed 7s ease-in-out 2s infinite; }
        .transform-style-preserve-3d { transform-style: preserve-3d; }
 