* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: white;
  overflow-x: hidden;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

/* Header principal */
.hero-header {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* Fond aurore en vagues */
.animated-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, #0a0a0f 0%, #000000 100%);
  z-index: 1;
}

.animated-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 120%;
  height: 120%;
  background: 
    linear-gradient(45deg, transparent 30%, rgba(0, 255, 209, 0.4) 40%, rgba(0, 255, 209, 0.2) 50%, transparent 60%),
    linear-gradient(-45deg, transparent 20%, rgba(90, 0, 255, 0.35) 35%, rgba(90, 0, 255, 0.15) 45%, transparent 65%),
    linear-gradient(135deg, transparent 25%, rgba(0, 43, 255, 0.3) 40%, rgba(0, 43, 255, 0.1) 55%, transparent 70%),
    linear-gradient(-135deg, transparent 35%, rgba(200, 0, 143, 0.4) 45%, rgba(200, 0, 143, 0.2) 55%, transparent 75%);
  animation: waveFlow 20s ease-in-out infinite;
  opacity: 0.8;
  transform-origin: center center;
}

.animated-background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 120%;
  height: 120%;
  background: 
    linear-gradient(60deg, transparent 40%, rgba(0, 255, 209, 0.3) 50%, rgba(0, 255, 209, 0.1) 60%, transparent 70%),
    linear-gradient(-60deg, transparent 30%, rgba(0, 43, 255, 0.25) 45%, rgba(0, 43, 255, 0.1) 55%, transparent 75%),
    linear-gradient(120deg, transparent 35%, rgba(200, 0, 143, 0.35) 50%, rgba(200, 0, 143, 0.15) 60%, transparent 80%),
    linear-gradient(-120deg, transparent 25%, rgba(90, 0, 255, 0.2) 40%, rgba(90, 0, 255, 0.1) 50%, transparent 65%);
  animation: waveFlow 25s ease-in-out infinite reverse;
  opacity: 0.6;
  transform-origin: center center;
}

@keyframes waveFlow {
  0%, 100% {
    transform: translate(-10%, -10%) rotate(0deg) scale(1);
  }
  25% {
    transform: translate(-5%, -15%) rotate(2deg) scale(1.1);
  }
  50% {
    transform: translate(-15%, -5%) rotate(-1deg) scale(0.95);
  }
  75% {
    transform: translate(-8%, -12%) rotate(1.5deg) scale(1.05);
  }
}

/* Contenu du hero */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-bottom: 4rem;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #E8E3F3;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 40px rgba(232, 227, 243, 0.1);
  opacity: 0;
  transform: rotateX(-90deg);
  animation: flipIn 1.2s ease-out 0.5s forwards;
  letter-spacing: -0.02em;
}

.hero-slogan {
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 400;
  color: #B8B3C7;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.4), 0 0 30px rgba(184, 179, 199, 0.1);
  opacity: 0;
  transform: rotateY(-90deg);
  animation: flipIn 1.2s ease-out 0.8s forwards;
  letter-spacing: -0.01em;
  height: 1.5em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slogan-text {
  position: relative;
  display: inline-block;
  height: 100%;
}

.slogan-part {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) translateY(20px);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  color: #B8B3C7;
  font-weight: 400;
}

.slogan-part:nth-child(3) {
  color: #9D7BEA;
  font-weight: 600;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.4), 0 0 25px rgba(157, 123, 234, 0.3);
}

.slogan-part.active {
  opacity: 1;
  transform: translate(-50%, -50%) translateY(0);
}

@keyframes flipIn {
  to {
    opacity: 1;
    transform: rotateX(0) rotateY(0);
  }
}

/* Navigation */
.hero-nav {
  position: relative;
  z-index: 3;
  display: flex;
  gap: 0;
  padding: 0;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(20px);
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(148, 163, 184, 0.05);
  transform: translateY(100px);
  opacity: 0;
  animation: slideUp 1s ease-out 1.2s forwards;
  overflow: hidden;
}

.nav-link {
  position: relative;
  color: #B8B3C7;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 1rem 2.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  letter-spacing: -0.01em;
  border-right: 1px solid rgba(148, 163, 184, 0.1);
}

.nav-link:last-child {
  border-right: none;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #9D7BEA, #7C3AED);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: rgba(157, 123, 234, 0.08);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.nav-link:hover {
  color: #E8E3F3;
  transform: translateY(-1px);
  text-shadow: 0 0 20px rgba(232, 227, 243, 0.2);
}

.nav-link:hover::before {
  width: 100%;
}

.nav-link:hover::after {
  width: 100%;
}

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

/* Navbar sticky */
.sticky-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  transform: translateY(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sticky-nav.visible {
  transform: translateY(0);
}

.sticky-nav-content {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.sticky-nav-link {
  position: relative;
  color: #B8B3C7;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 1rem 2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: -0.01em;
}

.sticky-nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #9D7BEA, #7C3AED);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
}

.sticky-nav-link:hover {
  color: #E8E3F3;
  text-shadow: 0 0 15px rgba(232, 227, 243, 0.2);
}

.sticky-nav-link:hover::before {
  width: 80%;
}

/* Section présentation */
.presentation-section {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
  padding: 1rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-container {
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
}

.section-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 4rem;
  color: #E8E3F3;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.highlight-name {
  color: #9D7BEA;
  text-shadow: 0 0 30px rgba(157, 123, 234, 0.4);
  font-weight: 800;
}

.presentation-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.presentation-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #B8B3C7;
  text-align: justify;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.presentation-link {
  color: #9D7BEA;
  text-decoration: none;
  font-weight: 600;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 1px solid rgba(157, 123, 234, 0.3);
}

.presentation-link::before {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #9D7BEA, #7C3AED);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.presentation-link:hover {
  color: #C4B5FD;
  text-shadow: 0 0 15px rgba(157, 123, 234, 0.3);
  transform: translateY(-1px);
}

.presentation-link:hover::before {
  width: 100%;
}

/* Section compétences */
.competences-section {
  height: 100vh;
  background: linear-gradient(135deg, #16213e 0%, #0f0f23 50%, #1a1a2e 100%);
  padding: 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.competences-section .section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 2rem;
}

.highlight-skills {
  color: #00FFD1;
  text-shadow: 0 0 30px rgba(0, 255, 209, 0.4);
  font-weight: 800;
}

/* Piliers */
.pillars-section {
  margin: 1.5rem 0;
  text-align: center;
}

.pillars-title {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 600;
  color: #E8E3F3;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.pillar-card {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 12px;
  padding: 1.5rem 1rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #00FFD1, #5A00FF, #002BFF);
  transform: scaleX(0);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pillar-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  border-color: rgba(0, 255, 209, 0.3);
}

.pillar-card:hover::before {
  transform: scaleX(1);
}

.pillar-icon {
  font-size: 2rem;
  margin-bottom: 0.8rem;
  filter: grayscale(0.3);
  transition: filter 0.3s ease;
}

.pillar-card:hover .pillar-icon {
  filter: grayscale(0);
}

.pillar-title {
  font-size: 1rem;
  font-weight: 600;
  color: #E8E3F3;
  letter-spacing: -0.01em;
}

/* Bouton CV */
.cv-section {
  text-align: center;
  margin: 1.5rem 0;
}

.cv-button {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: linear-gradient(135deg, #00FFD1, #5A00FF);
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 255, 209, 0.3);
}

.cv-button::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.6s ease;
}

.cv-button:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 25px rgba(0, 255, 209, 0.4);
}

.cv-button:hover::before {
  left: 100%;
}

.cv-text {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.cv-icon {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.cv-button:hover .cv-icon {
  transform: rotate(10deg) scale(1.1);
}

/* Carrousel de compétences */
.skills-carousel-section {
  margin: 1.5rem 0 0 0;
}

.skills-carousel {
  overflow: hidden;
  position: relative;
  background: rgba(15, 23, 42, 0.3);
  border-radius: 12px;
  padding: 1rem 0;
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.carousel-track {
  display: flex;
  animation: scroll 40s linear infinite;
  gap: 1rem;
  padding: 0 1rem;
  width: max-content;
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-width: 80px;
  padding: 0.8rem 0.5rem;
  background: rgba(15, 23, 42, 0.6);
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.skill-item:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 255, 209, 0.3);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.skill-item svg {
  width: 1.8rem;
  height: 1.8rem;
  color: #00FFD1;
  transition: all 0.3s ease;
}

.skill-item:hover svg {
  color: #5A00FF;
  transform: scale(1.1);
}

.skill-item span {
  font-size: 0.7rem;
  font-weight: 500;
  color: #B8B3C7;
  text-align: center;
  letter-spacing: -0.01em;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Section projets */
.projets-section {
  height: 100vh;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
  padding: 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.projets-section .section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 3rem;
}

.highlight-projects {
  color: #FF6B6B;
  text-shadow: 0 0 30px rgba(255, 107, 107, 0.4);
  font-weight: 800;
}

/* Grille des projets */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 5rem 0;
  max-width: 1200px;
}

.project-card {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

/* Spécifique à la carte Helpdesk pour répartir le contenu */
.project-card:nth-child(3) {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
}

.project-card:nth-child(3) .project-title {
  margin-bottom: 1rem;
}

.project-card:nth-child(3) .project-description {
  flex-grow: 1;
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.project-card:nth-child(3) .project-button {
  align-self: flex-start;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #FF6B6B, #4ECDC4, #45B7D1);
  transform: scaleX(0);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 107, 107, 0.3);
}

.project-card:hover::before {
  transform: scaleX(1);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.project-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #E8E3F3;
  letter-spacing: -0.01em;
  margin: 0;
}

.github-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.3);
  border-radius: 50%;
  color: #FF6B6B;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.github-button:hover {
  background: rgba(255, 107, 107, 0.2);
  border-color: rgba(255, 107, 107, 0.5);
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.github-button svg {
  width: 18px;
  height: 18px;
}

.project-description {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #B8B3C7;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.project-button {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #FF6B6B, #4ECDC4);
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.7rem 1.5rem;
  border-radius: 25px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.project-button::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.6s ease;
}

.project-button:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

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

/* Bouton GitHub principal */
.github-section {
  text-align: center;
  margin-top: 3rem;
}

.github-main-button {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: linear-gradient(135deg, #FF6B6B, #4ECDC4);
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.3);
}

.github-main-button::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.6s ease;
}

.github-main-button:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 25px rgba(255, 107, 107, 0.4);
}

.github-main-button:hover::before {
  left: 100%;
}

.github-text {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.github-icon {
  transition: transform 0.3s ease;
}

.github-main-button:hover .github-icon {
  transform: rotate(10deg) scale(1.1);
}

.github-icon svg {
  width: 1.3rem;
  height: 1.3rem;
}

/* Section contact */
.contact-section {
  height: 100vh;
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
  padding: 3rem 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-section .section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 3rem;
}

.highlight-contact {
  color: #4ECDC4;
  text-shadow: 0 0 30px rgba(78, 205, 196, 0.4);
  font-weight: 800;
}

/* Formulaire de contact */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

.form-group {
  margin-bottom: 2rem;
}

.form-label {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: #E8E3F3;
  margin-bottom: 0.8rem;
  letter-spacing: -0.01em;
}

.form-textarea {
  width: 100%;
  min-height: 200px;
  padding: 1.2rem;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  color: #E8E3F3;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  resize: vertical;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-textarea:focus {
  outline: none;
  border-color: rgba(78, 205, 196, 0.5);
  box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.1), 0 8px 25px rgba(0, 0, 0, 0.2);
  background: rgba(15, 23, 42, 0.9);
}

.form-textarea::placeholder {
  color: #B8B3C7;
  opacity: 0.7;
}

/* Bouton d'envoi avec animation d'enveloppe */
.submit-section {
  text-align: center;
  margin-top: 2rem;
}

.submit-button {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: linear-gradient(135deg, #4ECDC4, #45B7D1);
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.9rem 2.5rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(78, 205, 196, 0.3);
}

.submit-button::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.6s ease;
}

.submit-button:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 25px rgba(78, 205, 196, 0.4);
}

.submit-button:hover::before {
  left: 100%;
}

.submit-text {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.envelope-icon {
  font-size: 1.2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.submit-button:hover .envelope-icon {
  animation: flyAwayHorizontal 0.8s ease-out forwards;
}

@keyframes flyAwayHorizontal {
  0% {
    transform: translateX(0) translateY(0) rotate(0deg);
    opacity: 1;
  }
  50% {
    transform: translateX(30px) translateY(-5px) rotate(10deg);
    opacity: 0.7;
  }
  100% {
    transform: translateX(80px) translateY(-10px) rotate(20deg);
    opacity: 0;
  }
}

/* Animation de retour de l'enveloppe */
.submit-button:not(:hover) .envelope-icon {
  animation: flyBackHorizontal 0.6s ease-out forwards;
}

@keyframes flyBackHorizontal {
  0% {
    transform: translateX(80px) translateY(-10px) rotate(20deg);
    opacity: 0;
  }
  50% {
    transform: translateX(30px) translateY(-5px) rotate(10deg);
    opacity: 0.7;
  }
  100% {
    transform: translateX(0) translateY(0) rotate(0deg);
    opacity: 1;
  }
}

/* Animations d'entrée */
.animate-on-scroll {
  opacity: 0;
}

.section-title.animate-on-scroll {
  transform: translateY(-50px);
  transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.presentation-content.animate-on-scroll {
  transform: translateX(-30px);
  transition: all 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.pillars-section.animate-on-scroll {
  transform: translateY(30px);
  transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.cv-section.animate-on-scroll {
  transform: scale(0.9);
  transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.skills-carousel-section.animate-on-scroll {
  transform: translateY(30px);
  transition: all 1.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.projects-grid.animate-on-scroll {
  transform: translateY(30px);
  transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.github-section.animate-on-scroll {
  transform: scale(0.9);
  transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-form.animate-on-scroll {
  transform: translateY(30px);
  transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.submit-section.animate-on-scroll {
  transform: scale(0.9);
  transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-title.animate-on-scroll.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.presentation-content.animate-on-scroll.animate-in {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.4s;
}

.pillars-section.animate-on-scroll.animate-in {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

.cv-section.animate-on-scroll.animate-in {
  opacity: 1;
  transform: scale(1);
  transition-delay: 0.4s;
}

.skills-carousel-section.animate-on-scroll.animate-in {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.6s;
}

.projects-grid.animate-on-scroll.animate-in {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

.github-section.animate-on-scroll.animate-in {
  opacity: 1;
  transform: scale(1);
  transition-delay: 0.4s;
}

.contact-form.animate-on-scroll.animate-in {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

.submit-section.animate-on-scroll.animate-in {
  opacity: 1;
  transform: scale(1);
  transition-delay: 0.4s;
}

/* Animation de révélation du texte de gauche à droite */
.presentation-content.animate-on-scroll.animate-in .presentation-text {
  animation: textReveal 1.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s both;
}

.presentation-content.animate-on-scroll.animate-in .presentation-text:nth-child(2) {
  animation-delay: 0.9s;
}

.presentation-content.animate-on-scroll.animate-in .presentation-text:nth-child(3) {
  animation-delay: 1.2s;
}

@keyframes textReveal {
  0% {
    opacity: 0;
    transform: translateX(-20px);
    clip-path: inset(0 100% 0 0);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
    clip-path: inset(0 0% 0 0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-nav {
    flex-direction: column;
    gap: 0;
    border-radius: 8px;
  }
  
  .nav-link {
    text-align: center;
    font-size: 0.95rem;
    padding: 0.9rem 1.5rem;
    border-right: none;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  }
  
  .nav-link:last-child {
    border-bottom: none;
  }
  
  .hero-content {
    margin-bottom: 3rem;
  }

  .sticky-nav-content {
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 0 1rem;
  }

  .sticky-nav-link {
    padding: 0.8rem 1rem;
    font-size: 0.85rem;
  }

  .presentation-section {
    padding: 1.5rem;
  }

  .section-title {
    margin-bottom: 3rem;
  }

  .presentation-text {
    font-size: 1rem;
    text-align: left;
  }

  .competences-section {
    padding: 1.5rem;
    height: auto;
    min-height: 100vh;
  }

  .competences-section .section-title {
    margin-bottom: 1.5rem;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .pillar-card {
    padding: 1.2rem 1rem;
  }

  .cv-button {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }

  .skill-item {
    min-width: 70px;
    padding: 0.6rem 0.4rem;
  }

  .skill-item svg {
    width: 1.5rem;
    height: 1.5rem;
  }

  .skill-item span {
    font-size: 0.65rem;
  }

  .projets-section {
    padding: 1.5rem;
    height: auto;
    min-height: 100vh;
  }

  .projets-section .section-title {
    margin-bottom: 2rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    margin: 2rem 0;
  }

  .project-card {
    padding: 1.2rem;
  }

  .github-main-button {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }

  .github-section {
    margin-top: 2rem;
  }

  .contact-section {
    padding: 2rem 1.5rem;
    height: auto;
    min-height: 100vh;
  }

  .contact-section .section-title {
    margin-bottom: 2rem;
  }

  .form-textarea {
    min-height: 150px;
    padding: 1rem;
  }

  .submit-button {
    padding: 0.8rem 2rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .nav-link {
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
  }

  .sticky-nav-link {
    padding: 0.7rem 0.8rem;
    font-size: 0.8rem;
  }

  .presentation-section {
    padding: 1rem;
  }

  .competences-section {
    padding: 1rem;
  }

  .pillar-card {
    padding: 1rem 0.8rem;
  }

  .cv-button {
    padding: 0.6rem 1.3rem;
    font-size: 0.85rem;
  }

  .projets-section {
    padding: 1rem;
  }

  .project-card {
    padding: 1rem;
  }

  .github-main-button {
    padding: 0.6rem 1.3rem;
    font-size: 0.85rem;
  }

  .contact-section {
    padding: 1.5rem 1rem;
  }

  .form-textarea {
    min-height: 120px;
    padding: 0.8rem;
  }

  .submit-button {
    padding: 0.7rem 1.8rem;
    font-size: 0.85rem;
  }
}


/* Footer */
.main-footer {
  background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #0f0f23 100%);
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  padding: 3rem 0 1rem 0;
  position: relative;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section {
  display: flex;
  flex-direction: column;
}

.footer-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #E8E3F3;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: #B8B3C7;
  text-decoration: none;
  font-weight: 400;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: inline-block;
}

.footer-links a::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #9D7BEA, #7C3AED);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-links a:hover {
  color: #E8E3F3;
  transform: translateX(5px);
}

.footer-links a:hover::before {
  width: 100%;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-contact p {
  color: #B8B3C7;
  font-size: 0.95rem;
  margin: 0;
}

.footer-email {
  color: #9D7BEA !important;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-email:hover {
  color: #C4B5FD !important;
  text-shadow: 0 0 15px rgba(157, 123, 234, 0.3);
}

.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: #B8B3C7;
  font-size: 0.9rem;
  margin: 0;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 50%;
  color: #B8B3C7;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.social-link:hover {
  background: rgba(157, 123, 234, 0.1);
  border-color: rgba(157, 123, 234, 0.3);
  color: #9D7BEA;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 5px 15px rgba(157, 123, 234, 0.2);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

/* Bouton de traduction */
.language-toggle {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 1001;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  width: 50px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.language-toggle:hover {
  background: rgba(15, 23, 42, 1);
  border-color: rgba(148, 163, 184, 0.4);
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.language-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: #E8E3F3;
  letter-spacing: 0.5px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.language-toggle:hover .language-text {
  transform: scale(1.1);
  color: #FFFFFF;
}