/* ============================================
   CUSTOM THEME - BLACK / SKY BLUE / WHITE
   ============================================ */

:root {
  /* Couleurs principales - STRICTEMENT BLACK/SKY BLUE/WHITE */
  --primary-black: #000000;
  --primary-gold: #3B82F6;
  --primary-white: #FFFFFF;
  
  /* Pas de nuances de gris - utilisation directe */
  --dark-gray: #000000;
  --medium-gray: #000000;
  --light-gray: #FFFFFF;
  
  /* Nuances de bleu ciel uniquement */
  --gold-light: #60A5FA;
  --gold-dark: #2563EB;
  
  /* Overrides des couleurs globales - BLACK/SKY BLUE/WHITE uniquement */
  --background-color: #000000 !important;
  --default-color: #FFFFFF !important;
  --heading-color: #3B82F6 !important;
  --accent-color: #3B82F6 !important;
  --surface-color: #000000 !important;
  --contrast-color: #FFFFFF !important;
  
  /* Navigation */
  --nav-color: #FFFFFF !important;
  --nav-hover-color: #3B82F6 !important;
  --nav-mobile-background-color: #000000 !important;
  --nav-dropdown-background-color: #000000 !important;
  --nav-dropdown-color: #FFFFFF !important;
  --nav-dropdown-hover-color: #3B82F6 !important;
}

/* ============================================
   STYLES GÉNÉRAUX
   ============================================ */

body {
  background-color: var(--primary-black) !important;
  color: var(--primary-white) !important;
  position: relative;
  overflow-x: hidden;
}

/* ============================================
   ANIMATION BACKGROUND - ÉTOILES & CYBERPUNK
   ============================================ */

.stars-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background-color: var(--primary-black);
}

.star {
  position: absolute;
  background: var(--primary-gold);
  border-radius: 50%;
  animation: twinkle 3s infinite;
  box-shadow: 0 0 8px var(--primary-gold), 0 0 16px var(--primary-gold), 0 0 24px rgba(59, 130, 246, 0.5);
  opacity: 0.8;
}

.star::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--primary-gold) 0%, transparent 70%);
  opacity: 0.5;
}

/* Petites étoiles */
.star.small {
  width: 3px;
  height: 3px;
  animation-duration: 2s;
  opacity: 1;
}

/* Étoiles moyennes */
.star.medium {
  width: 4px;
  height: 4px;
  animation-duration: 3s;
  opacity: 1;
}

/* Grandes étoiles */
.star.large {
  width: 6px;
  height: 6px;
  animation-duration: 4s;
  opacity: 1;
}

/* Lignes cyberpunk */
.cyber-line {
  position: absolute;
  background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
  opacity: 0.4;
  animation: cyberMove 8s infinite linear;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.cyber-line.horizontal {
  width: 100%;
  height: 1px;
}

.cyber-line.vertical {
  width: 1px;
  height: 100%;
}

.cyber-line.diagonal {
  width: 200%;
  height: 1px;
  transform: rotate(45deg);
  transform-origin: center;
}

/* Grille cyberpunk */
.cyber-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(59, 130, 246, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.15) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridPulse 4s ease-in-out infinite;
  opacity: 0.3;
}

/* Particules dorées flottantes */
.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary-gold);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--primary-gold), 0 0 20px rgba(59, 130, 246, 0.6);
  animation: float 15s infinite;
  opacity: 0.9;
}

/* Animations */
@keyframes twinkle {
  0%, 100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.5);
  }
}

@keyframes cyberMove {
  0% {
    transform: translateX(-100%) translateY(-100%);
    opacity: 0;
  }
  50% {
    opacity: 0.6;
  }
  100% {
    transform: translateX(100%) translateY(100%);
    opacity: 0;
  }
}

@keyframes gridPulse {
  0%, 100% {
    opacity: 0.2;
  }
  50% {
    opacity: 0.4;
  }
}

@keyframes float {
  0% {
    transform: translateY(100vh) translateX(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) translateX(100px) rotate(360deg);
    opacity: 0;
  }
}

/* Effet de scan cyberpunk */
.scan-line {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(180deg, transparent, var(--primary-gold), transparent);
  box-shadow: 0 0 20px var(--primary-gold);
  animation: scan 8s linear infinite;
  z-index: 9999;
  pointer-events: none;
}

@keyframes scan {
  0% {
    top: 0;
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}

.section {
  background-color: var(--primary-black) !important;
  position: relative;
  z-index: 1;
}

.main {
  position: relative;
  z-index: 1;
}

/* Titres avec couleur or */
h1, h2, h3, h4, h5, h6 {
  color: var(--primary-gold) !important;
}

/* Liens */
a {
  color: var(--primary-gold) !important;
}

a:hover {
  color: var(--gold-light) !important;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.header {
  background-color: var(--primary-black) !important;
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--primary-gold);
  box-shadow: 0 2px 20px rgba(59, 130, 246, 0.1);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1000;
}

.header.scrolled {
  background-color: var(--primary-black) !important;
  box-shadow: 0 4px 30px rgba(59, 130, 246, 0.15);
}

.sitename {
  color: var(--primary-gold) !important;
}

.navmenu a {
  color: var(--primary-white) !important;
}

.navmenu a:hover,
.navmenu a.active {
  color: var(--primary-gold) !important;
}

.btn-getstarted {
  background: linear-gradient(135deg, var(--primary-gold) 0%, var(--gold-dark) 100%);
  color: var(--primary-black) !important;
  border: 2px solid var(--primary-gold) !important;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  animation: buttonGlow 3s ease-in-out infinite;
}

.btn-getstarted::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s;
}

.btn-getstarted:hover::before {
  left: 100%;
}

.btn-getstarted:hover {
  background: transparent;
  color: var(--primary-gold) !important;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5), 0 0 30px rgba(59, 130, 246, 0.3);
  animation: none;
}

.btn-getstarted:active {
  transform: translateY(-1px) scale(1.02);
}

@keyframes buttonGlow {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
  }
  50% {
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.5), 0 0 20px rgba(59, 130, 246, 0.2);
  }
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  background-color: var(--primary-black) !important;
}

/* Restaurer le style original de l'image */
.hero img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%; /* Centrer la tête de la personne - ajuste le % pour voir plus ou moins */
  z-index: 1;
}

/* Overlay original */
.hero:before {
  content: "";
  background: color-mix(in srgb, var(--background-color), transparent 30%);
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 0;
}

/* Dégradé en bas pour cacher la séparation */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(to bottom, transparent 0%, var(--primary-black) 100%);
  z-index: 3;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 3;
}

.hero h2 {
  color: var(--primary-white) !important;
  text-shadow: 2px 2px 4px rgba(59, 130, 246, 0.3);
}

.hero .typed {
  color: var(--primary-gold) !important;
}

.hero .social-links a {
  background-color: rgba(59, 130, 246, 0.1);
  border: 1px solid var(--primary-gold);
  color: var(--primary-gold) !important;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero .social-links a::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.4s, height 0.4s;
}

.hero .social-links a:hover::before {
  width: 100px;
  height: 100px;
}

.hero .social-links a:hover {
  background-color: var(--primary-gold);
  color: var(--primary-black) !important;
  transform: translateY(-5px) rotate(5deg) scale(1.1);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.hero .social-links a:active {
  transform: translateY(-2px) rotate(0deg) scale(1.05);
}

/* ============================================
   PROFILE CARD - IMAGE CENTRÉE ET CADRÉE
   ============================================ */

.about .profile-card {
  background-color: var(--primary-black);
  border: 2px solid var(--primary-gold);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(59, 130, 246, 0.15), 0 0 0 1px rgba(59, 130, 246, 0.1) inset;
  position: relative;
  overflow: hidden;
}

.about .profile-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.about .profile-card .profile-header .profile-avatar {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  width: 180px;
  height: 180px;
  overflow: hidden;
  border-radius: 50%;
  border: 3px solid var(--primary-gold);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

.about .profile-card .profile-header .profile-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%; /* Ajuste pour mieux voir la tête - augmente ou diminue le % pour ajuster */
  transform: scale(1.1); /* Zoom léger pour mieux cadrer le visage */
}

/* Centrer les éléments du header du profil */
.about .profile-card .profile-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 20px;
}

.about .profile-card .profile-header h3 {
  color: var(--primary-gold) !important;
  margin-top: 15px;
}

.about .profile-card .profile-header .role {
  color: var(--light-gray) !important;
  text-align: center;
}

.about .profile-card .profile-header .status-indicator {
  background-color: var(--primary-gold);
  box-shadow: 0 0 10px var(--primary-gold);
}

/* Boutons du profil - DYNAMIQUES */
.profile-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.profile-actions .btn-primary,
.profile-actions .btn-secondary {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.profile-actions .btn-primary {
  background: linear-gradient(135deg, var(--primary-gold) 0%, var(--gold-dark) 100%);
  color: var(--primary-black) !important;
  border: 2px solid var(--primary-gold) !important;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
  animation: buttonPulse 2s ease-in-out infinite;
}

.profile-actions .btn-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.profile-actions .btn-primary:hover::before {
  width: 300px;
  height: 300px;
}

.profile-actions .btn-primary:hover {
  background-color: transparent !important;
  color: var(--primary-gold) !important;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5), 0 0 30px rgba(59, 130, 246, 0.3);
  animation: none;
}

.profile-actions .btn-primary:active {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

/* Animation de téléchargement pour le CV */
.profile-actions .btn-primary[download]::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s;
}

.profile-actions .btn-primary[download]:hover::after {
  left: 100%;
}

.profile-actions .btn-primary[download] i {
  transition: transform 0.3s ease;
  display: inline-block;
}

.profile-actions .btn-primary[download]:hover i {
  animation: downloadBounce 0.6s ease-in-out infinite;
}

.profile-actions .btn-secondary {
  background-color: transparent !important;
  color: var(--primary-gold) !important;
  border: 2px solid var(--primary-gold) !important;
  position: relative;
  overflow: hidden;
}

.profile-actions .btn-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.2), transparent);
  transition: left 0.5s;
}

.profile-actions .btn-secondary:hover::before {
  left: 100%;
}

.profile-actions .btn-secondary:hover {
  background-color: var(--primary-gold) !important;
  color: var(--primary-black) !important;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
}

.profile-actions .btn-secondary:active {
  transform: translateY(-1px) scale(1.02);
}

/* Animations pour les boutons */
@keyframes buttonPulse {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
  }
  50% {
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.5), 0 0 15px rgba(59, 130, 246, 0.2);
  }
}

@keyframes downloadBounce {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-5px) rotate(-5deg);
  }
  75% {
    transform: translateY(-5px) rotate(5deg);
  }
}

@keyframes downloadSpin {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(180deg);
  }
  100% {
    transform: translateY(0) rotate(360deg);
  }
}

/* Effet ripple pour les boutons */
.btn-primary,
.btn-secondary,
.cta-btn,
button[type="submit"] {
  position: relative;
  overflow: hidden;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: rippleAnimation 0.6s ease-out;
  pointer-events: none;
}

@keyframes rippleAnimation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Animation de téléchargement active */
.profile-actions .btn-primary.downloading {
  animation: downloadingPulse 0.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes downloadingPulse {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3), 0 0 20px rgba(59, 130, 246, 0.5);
  }
  50% {
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.6), 0 0 30px rgba(59, 130, 246, 0.8);
  }
}

/* Réseaux sociaux - DYNAMIQUES */
.social-connect a,
.hero .social-links a,
.footer .social-links a {
  background-color: rgba(59, 130, 246, 0.1);
  border: 1px solid var(--primary-gold);
  color: var(--primary-gold) !important;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-connect a::before,
.hero .social-links a::before,
.footer .social-links a::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.4s, height 0.4s;
}

.social-connect a:hover::before,
.hero .social-links a:hover::before,
.footer .social-links a:hover::before {
  width: 100px;
  height: 100px;
}

.social-connect a:hover,
.hero .social-links a:hover,
.footer .social-links a:hover {
  background-color: var(--primary-gold);
  color: var(--primary-black) !important;
  transform: translateY(-5px) rotate(5deg) scale(1.1);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.social-connect a:active,
.hero .social-links a:active,
.footer .social-links a:active {
  transform: translateY(-2px) rotate(0deg) scale(1.05);
}

/* ============================================
   SECTIONS & CARDS
   ============================================ */

.section {
  position: relative;
  overflow: hidden;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--primary-gold) 50%, transparent 100%);
  opacity: 0.3;
}

.section-title {
  position: relative;
  z-index: 1;
}

.section-title .subtitle {
  color: var(--primary-gold) !important;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 14px;
}

.section-title h2 {
  color: var(--primary-white) !important;
  font-weight: 700;
  position: relative;
  padding-bottom: 15px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--primary-gold) 50%, transparent 100%);
  border-radius: 2px;
}

.section-title p {
  color: var(--light-gray) !important;
  font-size: 16px;
  line-height: 1.8;
  margin-top: 15px;
}

/* Cards des expériences */
.exp-card,
.service-item,
.portfolio-card {
  background-color: var(--primary-black) !important;
  border: 1px solid var(--primary-gold);
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.exp-card::before,
.service-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.05), transparent);
  transition: left 0.5s ease;
}

.exp-card:hover::before,
.service-item:hover::before {
  left: 100%;
}

.exp-card:hover,
.service-item:hover,
.portfolio-card:hover {
  border-color: var(--primary-gold);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
  transform: translateY(-5px);
}

.exp-card.featured {
  border: 2px solid var(--primary-gold);
  background: linear-gradient(135deg, rgba(0,0,0,0.9) 0%, rgba(212,175,55,0.1) 100%);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.2);
  position: relative;
}

.exp-card.featured::after {
  content: '⭐';
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  opacity: 0.6;
}

.period-badge {
  background: linear-gradient(135deg, var(--primary-gold) 0%, var(--gold-dark) 100%) !important;
  color: var(--primary-black) !important;
  font-weight: 700 !important;
  padding: 8px 16px !important;
  border-radius: 20px !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.5) !important;
  font-size: 0.85rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  border: 2px solid var(--primary-gold) !important;
  position: relative !important;
  z-index: 10 !important;
  display: inline-block !important;
  white-space: nowrap !important;
}

.skill-tag {
  background-color: rgba(59, 130, 246, 0.2);
  color: var(--primary-gold) !important;
  border: 1px solid var(--primary-gold);
}

/* Progress bars */
.progress {
  background-color: var(--primary-black) !important;
  border: 1px solid var(--primary-gold);
  border-radius: 10px;
  height: 10px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.progress-bar {
  background: linear-gradient(90deg, var(--gold-dark) 0%, var(--primary-gold) 50%, var(--gold-light) 100%);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5), 0 0 20px rgba(59, 130, 246, 0.3);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* ============================================
   SERVICES
   ============================================ */

.service-item .icon-wrapper {
  background: linear-gradient(135deg, var(--primary-gold) 0%, var(--gold-dark) 100%);
  color: var(--primary-black) !important;
}

.service-item.featured {
  border: 2px solid var(--primary-gold);
  background: linear-gradient(135deg, rgba(0,0,0,0.9) 0%, rgba(212,175,55,0.1) 100%);
}

.featured-tag {
  background-color: var(--primary-gold) !important;
  color: var(--primary-black) !important;
}

/* ============================================
   CTA BOX
   ============================================ */

.cta-box {
  background: var(--primary-white) !important;
  border: 2px solid var(--primary-gold);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.2);
}

.cta-box h3 {
  color: var(--primary-black) !important;
}

.cta-box p {
  color: var(--primary-black) !important;
}

.cta-btn {
  background: linear-gradient(135deg, var(--primary-gold) 0%, var(--gold-dark) 100%);
  color: var(--primary-black) !important;
  border: 2px solid var(--primary-gold) !important;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
  position: relative;
  overflow: hidden;
  animation: ctaPulse 2.5s ease-in-out infinite;
}

.cta-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.cta-btn:hover::before {
  width: 400px;
  height: 400px;
}

.cta-btn:hover {
  background: transparent;
  color: var(--primary-gold) !important;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5), 0 0 35px rgba(59, 130, 246, 0.3);
  animation: none;
}

.cta-btn:active {
  transform: translateY(-1px) scale(1.02);
}

@keyframes ctaPulse {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
  }
  50% {
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.5), 0 0 25px rgba(59, 130, 246, 0.2);
  }
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact .info-item {
  background-color: var(--primary-black);
  border: 1px solid var(--primary-gold);
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.contact .info-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
  transition: left 0.5s ease;
}

.contact .info-item:hover::before {
  left: 100%;
}

.contact .info-item:hover {
  border-color: var(--primary-gold);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
}

.contact .icon-wrapper {
  background: linear-gradient(135deg, var(--primary-gold) 0%, var(--gold-dark) 100%);
  color: var(--primary-black) !important;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
  transition: all 0.3s ease;
}

.contact .info-item:hover .icon-wrapper {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.contact .php-email-form {
  background-color: var(--primary-black);
  border: 1px solid var(--primary-gold);
  padding: 30px;
}

.contact .php-email-form input,
.contact .php-email-form textarea {
  background-color: var(--primary-black) !important;
  border: 1px solid var(--primary-gold);
  color: var(--primary-white) !important;
}

.contact .php-email-form input:focus,
.contact .php-email-form textarea:focus {
  border-color: var(--gold-light);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.contact .php-email-form button[type="submit"],
.cta-btn[href^="mailto:"] {
  background: linear-gradient(135deg, var(--primary-gold) 0%, var(--gold-dark) 100%) !important;
  color: var(--primary-black) !important;
  border: 2px solid var(--primary-gold) !important;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: emailPulse 2s ease-in-out infinite;
}

.contact .php-email-form button[type="submit"]::before,
.cta-btn[href^="mailto:"]::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.contact .php-email-form button[type="submit"]:hover::before,
.cta-btn[href^="mailto:"]:hover::before {
  width: 400px;
  height: 400px;
}

.contact .php-email-form button[type="submit"]:hover,
.cta-btn[href^="mailto:"]:hover {
  background: transparent !important;
  color: var(--primary-gold) !important;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5), 0 0 35px rgba(59, 130, 246, 0.3);
  animation: none;
}

.contact .php-email-form button[type="submit"]:active,
.cta-btn[href^="mailto:"]:active {
  transform: translateY(-1px) scale(1.02);
}

.cta-btn[href^="mailto:"] i {
  transition: transform 0.3s ease;
  display: inline-block;
}

.cta-btn[href^="mailto:"]:hover i {
  animation: emailBounce 0.6s ease-in-out infinite;
}

@keyframes emailPulse {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
  }
  50% {
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.5), 0 0 20px rgba(59, 130, 246, 0.2);
  }
}

@keyframes emailBounce {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-3px) scale(1.1);
  }
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background-color: var(--primary-black);
  border-top: 2px solid var(--primary-gold);
  position: relative;
  z-index: 1;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--primary-gold) 50%, transparent 100%);
}

.footer .sitename {
  color: var(--primary-gold) !important;
}

.footer a {
  color: var(--light-gray) !important;
}

.footer a:hover {
  color: var(--primary-gold) !important;
}

.footer .social-links a {
  background-color: rgba(59, 130, 246, 0.1);
  border: 1px solid var(--primary-gold);
  color: var(--primary-gold) !important;
}

.footer .social-links a:hover {
  background-color: var(--primary-gold);
  color: var(--primary-black) !important;
}

/* ============================================
   SCROLL TOP BUTTON
   ============================================ */

#scroll-top {
  background-color: var(--primary-gold) !important;
  color: var(--primary-black) !important;
}

#scroll-top:hover {
  background-color: var(--gold-light) !important;
}

/* ============================================
   CERTIFICATIONS STYLING
   ============================================ */

.certifications-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cert-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: var(--primary-black);
  border: 1px solid var(--primary-gold);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.cert-item:hover {
  border-color: var(--primary-gold);
  background-color: rgba(59, 130, 246, 0.05);
  transform: translateX(5px);
}

.cert-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.cert-link:hover {
  color: var(--primary-gold);
}

.cert-name {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-white);
  font-weight: 500;
  flex: 1;
}

.cert-name i {
  color: var(--primary-gold);
  font-size: 18px;
}

.cert-year {
  color: var(--primary-white);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.cert-link .cert-year i {
  color: var(--primary-gold);
  font-size: 14px;
  transition: transform 0.3s ease;
}

.cert-item:hover .cert-link .cert-year i {
  transform: scale(1.2);
}

.cert-link:hover .cert-year i {
  transform: translate(3px, -3px);
}

/* Timeline améliorations */
.timeline-item {
  margin-bottom: 30px;
  position: relative;
}

.timeline-marker {
  background: linear-gradient(135deg, var(--primary-gold) 0%, var(--gold-dark) 100%);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

.timeline-content {
  background-color: var(--primary-black);
  border: 1px solid var(--primary-gold);
  border-radius: 12px;
  padding: 25px;
  transition: all 0.3s ease;
}

.timeline-content:hover {
  border-color: var(--primary-gold);
  box-shadow: 0 5px 20px rgba(59, 130, 246, 0.2);
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE, TABLETTE, DESKTOP
   ============================================ */

/* ============================================
   MOBILE (320px - 575px)
   ============================================ */
@media (max-width: 575px) {
  
  /* Typography Mobile */
  body {
    font-size: 14px;
    line-height: 1.6;
  }
  
  h1 {
    font-size: 24px !important;
  }
  
  h2 {
    font-size: 22px !important;
  }
  
  h3 {
    font-size: 18px !important;
  }
  
  h4 {
    font-size: 16px !important;
  }

  /* Header Mobile */
  .header {
    padding: 10px 0;
  }

  .sitename {
    font-size: 16px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
  }

  .btn-getstarted {
    display: none;
  }

  .mobile-nav-toggle {
    font-size: 24px !important;
    color: var(--primary-gold) !important;
  }

  .navmenu ul {
    background-color: var(--primary-black) !important;
    border: 1px solid var(--primary-gold);
  }

  .navmenu a {
    color: var(--primary-white) !important;
    padding: 12px 20px;
    font-size: 16px;
  }

  .navmenu a:hover,
  .navmenu .active {
    color: var(--primary-gold) !important;
    background-color: rgba(59, 130, 246, 0.1);
  }

  /* Hero Section Mobile */
  .hero {
    min-height: 70vh;
    padding: 80px 0 40px;
  }

  .hero h2 {
    font-size: 24px !important;
    margin-bottom: 15px;
  }

  .hero p {
    font-size: 14px !important;
    margin-bottom: 20px;
  }

  .hero .social-links {
    gap: 10px;
    margin-top: 20px;
  }

  .hero .social-links a {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  /* Profile Card Mobile */
  .about .profile-card {
    margin-bottom: 30px;
  }

  .about .profile-card .profile-header {
    padding: 20px 15px;
  }

  .about .profile-card .profile-header .profile-avatar {
    width: 120px;
    height: 120px;
    margin-bottom: 15px;
  }

  .profile-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .profile-actions .btn-primary,
  .profile-actions .btn-secondary {
    width: 100%;
    padding: 12px 20px;
    font-size: 14px;
  }

  /* Sections Mobile */
  .section {
    padding: 40px 0 !important;
  }

  .section-title h2 {
    font-size: 24px !important;
    margin-bottom: 10px;
  }

  .section-title p {
    font-size: 14px !important;
  }

  /* Experience Cards Mobile */
  .exp-card {
    padding: 20px 15px;
    margin-bottom: 20px;
  }

  .exp-card .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
  }

  .exp-card .period-badge {
    font-size: 11px;
    padding: 4px 10px;
  }

  /* Services Mobile */
  .service-item {
    padding: 25px 15px;
    margin-bottom: 20px;
  }

  .service-item .icon-wrapper {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
  }

  .service-item .icon-wrapper i {
    font-size: 24px;
  }

  .service-item h4 {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .service-item p {
    font-size: 13px;
  }

  /* CTA Box Mobile */
  .cta-box {
    padding: 25px 15px;
    text-align: center;
  }

  .cta-box h3 {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .cta-box p {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .cta-btn {
    width: 100%;
    padding: 12px 24px;
    font-size: 13px;
  }

  /* Contact Section Mobile */
  .contact .php-email-form {
    padding: 20px 15px;
  }

  .contact .info-item {
    padding: 20px 15px;
    margin-bottom: 15px;
  }

  .contact .icon-wrapper {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  /* Certifications Mobile */
  .cert-item {
    padding: 12px 15px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .cert-name {
    font-size: 14px;
  }

  .cert-year {
    font-size: 12px;
  }

  /* Timeline Mobile */
  .timeline-content {
    padding: 20px 15px;
  }

  /* Footer Mobile */
  .footer {
    padding: 40px 0 20px;
    text-align: center;
  }

  .footer .footer-links {
    margin: 20px 0;
  }

  .footer .social-links {
    justify-content: center;
    margin-top: 20px;
  }

  /* Container Mobile */
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* ============================================
   TABLETTE (576px - 991px)
   ============================================ */
@media (min-width: 576px) and (max-width: 991px) {
  
  /* Typography Tablette */
  body {
    font-size: 15px;
  }
  
  h1 {
    font-size: 32px !important;
  }
  
  h2 {
    font-size: 28px !important;
  }
  
  h3 {
    font-size: 22px !important;
  }
  
  h4 {
    font-size: 20px !important;
  }

  /* Header Tablette */
  .header {
    padding: 12px 0;
  }

  .sitename {
    font-size: 18px !important;
  }

  .btn-getstarted {
    padding: 8px 20px;
    font-size: 13px;
  }

  .mobile-nav-toggle {
    font-size: 26px !important;
    color: var(--primary-gold) !important;
  }

  .navmenu ul {
    background-color: var(--primary-black) !important;
    border: 1px solid var(--primary-gold);
  }

  .navmenu a {
    color: var(--primary-white) !important;
    padding: 12px 20px;
  }

  .navmenu a:hover,
  .navmenu .active {
    color: var(--primary-gold) !important;
  }

  /* Hero Section Tablette */
  .hero {
    min-height: 80vh;
    padding: 100px 0 60px;
  }

  .hero h2 {
    font-size: 36px !important;
    margin-bottom: 20px;
  }

  .hero p {
    font-size: 18px !important;
    margin-bottom: 30px;
  }

  .hero .social-links a {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }

  /* Profile Card Tablette */
  .about .profile-card .profile-header {
    padding: 30px 25px;
  }

  .about .profile-card .profile-header .profile-avatar {
    width: 150px;
    height: 150px;
  }

  .profile-actions {
    gap: 15px;
  }

  .profile-actions .btn-primary,
  .profile-actions .btn-secondary {
    padding: 12px 24px;
    font-size: 15px;
  }

  /* Sections Tablette */
  .section {
    padding: 60px 0 !important;
  }

  .section-title h2 {
    font-size: 32px !important;
  }

  /* Experience Cards Tablette */
  .exp-card {
    padding: 25px 20px;
  }

  .exp-card .card-header {
    gap: 20px;
  }

  /* Services Tablette */
  .service-item {
    padding: 30px 20px;
  }

  .service-item .icon-wrapper {
    width: 70px;
    height: 70px;
  }

  /* CTA Box Tablette */
  .cta-box {
    padding: 35px 25px;
  }

  .cta-btn {
    padding: 12px 28px;
  }

  /* Contact Section Tablette */
  .contact .php-email-form {
    padding: 30px 25px;
  }

  .contact .info-item {
    padding: 25px 20px;
  }

  /* Grid adjustments Tablette */
  .row {
    margin-left: -10px;
    margin-right: -10px;
  }

  .row > * {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* ============================================
   DESKTOP (992px - 1399px)
   ============================================ */
@media (min-width: 992px) and (max-width: 1399px) {
  
  /* Typography Desktop */
  body {
    font-size: 16px;
  }
  
  h1 {
    font-size: 36px !important;
  }
  
  h2 {
    font-size: 32px !important;
  }
  
  h3 {
    font-size: 26px !important;
  }
  
  h4 {
    font-size: 22px !important;
  }

  /* Hero Section Desktop */
  .hero {
    min-height: 90vh;
    padding: 120px 0 80px;
  }

  .hero h2 {
    font-size: 42px !important;
  }

  .hero p {
    font-size: 20px !important;
  }

  /* Enhanced Hover Effects Desktop */
  .exp-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.3) !important;
  }
  
  .service-item:hover {
    transform: translateY(-8px) !important;
  }
  
  .profile-card:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.4) !important;
  }
  
  /* Smooth Transitions */
  .exp-card,
  .service-item,
  .profile-card,
  .info-item {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* Sections Desktop */
  .section {
    padding: 80px 0 !important;
  }

  /* Container Desktop */
  .container {
    max-width: 1140px;
  }
}

/* ============================================
   LARGE DESKTOP (1400px+)
   ============================================ */
@media (min-width: 1400px) {
  
  /* Typography Large Desktop */
  body {
    font-size: 17px;
  }
  
  h1 {
    font-size: 40px !important;
  }
  
  h2 {
    font-size: 36px !important;
  }
  
  h3 {
    font-size: 28px !important;
  }
  
  h4 {
    font-size: 24px !important;
  }

  .container {
    max-width: 1320px;
  }
  
  /* Hero Extra Large */
  .hero {
    min-height: 100vh;
    padding: 140px 0 100px;
  }

  .hero h2 {
    font-size: 48px !important;
  }
  
  .hero p {
    font-size: 22px !important;
  }
  
  /* Enhanced Spacing */
  .section {
    padding: 100px 0 !important;
  }

  /* Profile Card Large */
  .about .profile-card .profile-header {
    padding: 40px 30px;
  }

  .about .profile-card .profile-header .profile-avatar {
    width: 180px;
    height: 180px;
  }

  /* Experience Cards Large */
  .exp-card {
    padding: 35px 30px;
  }

  /* Services Large */
  .service-item {
    padding: 40px 30px;
  }

  .service-item .icon-wrapper {
    width: 80px;
    height: 80px;
  }

  /* CTA Box Large */
  .cta-box {
    padding: 50px 40px;
  }

  .cta-btn {
    padding: 16px 36px;
    font-size: 15px;
  }
}

/* ============================================
   LANDSCAPE MOBILE OPTIMIZATION
   ============================================ */
@media (max-width: 767px) and (orientation: landscape) {
  
  .hero {
    min-height: 100vh !important;
    padding: 60px 0 40px;
  }
  
  .section {
    padding: 30px 0 !important;
  }

  .about .profile-card .profile-header {
    padding: 20px 15px;
  }
}

/* ============================================
   RESPONSIVE ADJUSTMENTS - ANIMATIONS & GRIDS
   ============================================ */

/* Réduire les animations sur mobile pour les performances */
@media (max-width: 767px) {
  .stars-background .star {
    animation-duration: 4s;
  }

  .stars-background .cyber-line {
    animation-duration: 8s;
  }

  .stars-background .particle {
    animation-duration: 15s;
  }

  /* Réduire le nombre d'éléments animés sur mobile */
  .stars-background {
    opacity: 0.7;
  }
}

/* Ajustements pour les grilles sur tablette */
@media (min-width: 576px) and (max-width: 991px) {
  .row.gy-4 > * {
    margin-bottom: 20px;
  }
}

/* Optimisations pour les écrans tactiles */
@media (hover: none) and (pointer: coarse) {
  
  /* Larger Touch Targets */
  .profile-actions a,
  .cta-btn,
  button,
  .btn-primary,
  .btn-secondary {
    min-height: 48px;
    padding: 14px 24px;
    font-size: 16px;
  }
  
  .social-links a,
  .hero .social-links a,
  .footer .social-links a {
    min-width: 48px;
    min-height: 48px;
    font-size: 18px;
  }

  .navmenu a {
    padding: 12px 16px;
    font-size: 16px;
  }
  
  /* Remove Hover Effects on Touch */
  .exp-card:hover,
  .service-item:hover,
  .profile-card:hover,
  .info-item:hover {
    transform: none !important;
  }

  .profile-actions .btn-primary:hover,
  .profile-actions .btn-secondary:hover,
  .cta-btn:hover {
    transform: none !important;
  }
  
  /* Active States for Touch */
  .exp-card:active,
  .service-item:active,
  .profile-card:active {
    transform: scale(0.98);
  }

  .profile-actions .btn-primary:active,
  .profile-actions .btn-secondary:active,
  .cta-btn:active {
    transform: scale(0.95);
  }
}

/* Ajustements pour les petits écrans (320px - 400px) */
@media (max-width: 400px) {
  .hero h2 {
    font-size: 20px !important;
  }

  .hero p {
    font-size: 13px !important;
  }

  .section-title h2 {
    font-size: 20px !important;
  }

  .profile-actions {
    gap: 8px;
  }

  .profile-actions .btn-primary,
  .profile-actions .btn-secondary {
    padding: 10px 16px;
    font-size: 13px;
  }

  .exp-card .period-badge {
    font-size: 10px;
    padding: 3px 8px;
  }
}

/* Ajustements pour les tablettes en mode portrait */
@media (min-width: 768px) and (max-width: 991px) and (orientation: portrait) {
  .hero {
    min-height: 85vh;
  }

  .about .profile-card .profile-header .profile-avatar {
    width: 160px;
    height: 160px;
  }
}

/* Ajustements pour les tablettes en mode paysage */
@media (min-width: 768px) and (max-width: 991px) and (orientation: landscape) {
  .hero {
    min-height: 100vh;
    padding: 80px 0 60px;
  }

  .section {
    padding: 50px 0 !important;
  }
}

/* Print Styles */
@media print {
  
  .header,
  .btn-getstarted,
  .social-links,
  #scroll-top,
  .cta-box,
  .php-email-form {
    display: none !important;
  }
  
  body {
    background-color: white !important;
    color: black !important;
  }
  
  .section {
    page-break-inside: avoid;
  }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  
  .exp-card,
  .service-item,
  .profile-card {
    border: 3px solid var(--primary-gold) !important;
  }
  
  a {
    text-decoration: underline;
  }
}

/* ============================================
   MODAL CERTIFICAT
   ============================================ */

.cert-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cert-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.cert-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
}

.cert-modal-container {
  position: relative;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  background: linear-gradient(135deg, var(--primary-black) 0%, #1a1a1a 100%);
  border: 2px solid var(--primary-gold);
  border-radius: 16px;
  box-shadow: 0 10px 50px rgba(59, 130, 246, 0.3), 0 0 100px rgba(59, 130, 246, 0.1);
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  z-index: 10000;
}

.cert-modal.active .cert-modal-container {
  transform: scale(1);
}

.cert-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid var(--primary-gold);
  border-radius: 50%;
  color: var(--primary-gold);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10001;
}

.cert-modal-close:hover {
  background: var(--primary-gold);
  color: var(--primary-black);
  transform: rotate(90deg);
}

.cert-modal-content {
  padding: 30px;
  overflow-y: auto;
  max-height: 90vh;
}

.cert-modal-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.cert-modal-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-gold) 0%, #2563EB 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-black);
  font-size: 28px;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.cert-modal-title-section {
  flex: 1;
}

.cert-modal-title {
  color: var(--primary-white);
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 10px 0;
  line-height: 1.3;
}

.cert-modal-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cert-modal-org {
  color: var(--primary-gold);
  font-weight: 600;
  font-size: 14px;
}

.cert-modal-separator {
  color: rgba(59, 130, 246, 0.5);
}

.cert-modal-date {
  color: var(--primary-white);
  opacity: 0.8;
  font-size: 14px;
}

.cert-modal-body {
  margin-bottom: 25px;
}

.cert-modal-preview {
  width: 100%;
  min-height: 400px;
  max-height: 500px;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(59, 130, 246, 0.3);
  border-radius: 12px;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.cert-preview-iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: none;
  border-radius: 12px;
  background: var(--primary-white);
  display: block;
}

.cert-preview-iframe[src=""] {
  display: none;
}

.cert-preview-image {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  border-radius: 12px;
}

.cert-preview-placeholder {
  text-align: center;
  padding: 50px 30px;
  color: var(--primary-white);
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(59, 130, 246, 0.02) 100%);
  border: 2px dashed rgba(59, 130, 246, 0.3);
  border-radius: 12px;
}

.cert-preview-placeholder i {
  font-size: 64px;
  color: var(--primary-gold);
  margin-bottom: 20px;
  display: block;
  opacity: 0.8;
  animation: pulse 2s ease-in-out infinite;
}

.cert-preview-placeholder p {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 15px 0;
  color: var(--primary-white);
  line-height: 1.4;
}

.cert-preview-note {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
  display: block;
  margin-top: 15px;
  line-height: 1.6;
  max-width: 500px;
}

.cert-preview-note strong {
  color: var(--primary-gold);
  font-weight: 700;
}

.cert-preview-note small {
  display: block;
  margin-top: 15px;
  opacity: 0.7;
  font-size: 13px;
  line-height: 1.5;
}

.cert-modal-description {
  background: rgba(59, 130, 246, 0.05);
  border-left: 3px solid var(--primary-gold);
  padding: 20px;
  border-radius: 8px;
}

.cert-modal-description h4 {
  color: var(--primary-gold);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 12px 0;
}

.cert-modal-description p {
  color: var(--primary-white);
  line-height: 1.6;
  margin: 0;
  opacity: 0.9;
}

.cert-modal-footer {
  display: flex;
  gap: 15px;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid rgba(59, 130, 246, 0.2);
}

.cert-modal-btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

/* Call to Action Button - Style amélioré */
.cert-cta-btn {
  flex: 1;
  max-width: none;
  padding: 18px 28px;
  background: linear-gradient(135deg, var(--primary-gold) 0%, #2563EB 50%, var(--primary-gold) 100%);
  background-size: 200% 100%;
  color: var(--primary-black);
  box-shadow: 0 6px 25px rgba(59, 130, 246, 0.4), 0 0 30px rgba(59, 130, 246, 0.2);
  border: 2px solid var(--primary-gold);
  border-radius: 12px;
  font-weight: 700;
  position: relative;
  overflow: hidden;
  animation: ctaPulse 2s ease-in-out infinite;
}

.cert-cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.cert-cta-btn:hover::before {
  left: 100%;
}

.cert-cta-btn .cta-content {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1;
  position: relative;
}

.cert-cta-btn .cta-content i {
  font-size: 24px;
  color: var(--primary-black);
  animation: awardBounce 2s ease-in-out infinite;
}

.cert-cta-btn .cta-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.cert-cta-btn .cta-text strong {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-black);
  line-height: 1.2;
}

.cert-cta-btn .cta-text small {
  font-size: 12px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.7);
  line-height: 1.2;
}

.cert-cta-btn .cta-arrow {
  margin-left: auto;
  font-size: 20px;
  transition: transform 0.3s ease;
  z-index: 1;
  position: relative;
}

.cert-cta-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 35px rgba(59, 130, 246, 0.6), 0 0 50px rgba(59, 130, 246, 0.3);
  background-position: 100% 0;
  color: var(--primary-black);
}

.cert-cta-btn:hover .cta-arrow {
  transform: translateX(5px);
}

.cert-cta-btn:active {
  transform: translateY(-1px) scale(1);
}

/* Animation pour le bouton CTA */
@keyframes ctaPulse {
  0%, 100% {
    box-shadow: 0 6px 25px rgba(59, 130, 246, 0.4), 0 0 30px rgba(59, 130, 246, 0.2);
  }
  50% {
    box-shadow: 0 6px 30px rgba(59, 130, 246, 0.6), 0 0 40px rgba(59, 130, 246, 0.3);
  }
}

@keyframes awardBounce {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-3px) rotate(5deg);
  }
}

.cert-modal-btn-primary {
  background: linear-gradient(135deg, var(--primary-gold) 0%, #2563EB 100%);
  color: var(--primary-black);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.cert-modal-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
  color: var(--primary-black);
}

.cert-modal-btn-secondary {
  background: transparent;
  color: var(--primary-white);
  border: 1px solid rgba(59, 130, 246, 0.5);
  padding: 12px 20px;
}

.cert-modal-btn-secondary:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: var(--primary-gold);
  color: var(--primary-gold);
}

/* Responsive Modal */
@media (max-width: 768px) {
  .cert-modal-container {
    width: 95%;
    max-height: 95vh;
  }

  .cert-modal-content {
    padding: 20px;
  }

  .cert-modal-header {
    flex-direction: column;
    gap: 15px;
  }

  .cert-modal-icon {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }

  .cert-modal-title {
    font-size: 20px;
  }

  .cert-modal-preview {
    min-height: 200px;
  }

  .cert-preview-placeholder {
    padding: 20px;
  }

  .cert-preview-placeholder i {
    font-size: 48px;
  }

  .cert-modal-footer {
    flex-direction: column;
    gap: 12px;
  }

  .cert-modal-btn {
    width: 100%;
    justify-content: center;
  }

  .cert-cta-btn {
    padding: 16px 24px;
  }

  .cert-cta-btn .cta-content {
    gap: 10px;
  }

  .cert-cta-btn .cta-content i {
    font-size: 20px;
  }

  .cert-cta-btn .cta-text strong {
    font-size: 15px;
  }

  .cert-cta-btn .cta-text small {
    font-size: 11px;
  }

  .cert-cta-btn .cta-arrow {
    font-size: 18px;
  }
}

/* ============================================
   MODAL EXPÉRIENCE
   ============================================ */

.exp-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.exp-modal.active {
  display: flex;
  opacity: 1;
}

.exp-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
}

.exp-modal-container {
  position: relative;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  background: var(--primary-black);
  border: 2px solid var(--primary-gold);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(59, 130, 246, 0.3);
  z-index: 10000;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.exp-modal.active .exp-modal-container {
  transform: scale(1);
}

.exp-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid var(--primary-gold);
  border-radius: 50%;
  color: var(--primary-gold);
  font-size: 20px;
  cursor: pointer;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.exp-modal-close:hover {
  background: var(--primary-gold);
  color: var(--primary-black);
  transform: rotate(90deg);
}

.exp-modal-content {
  padding: 40px;
  overflow-y: auto;
  max-height: 90vh;
}

.exp-modal-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.exp-modal-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-gold) 0%, var(--gold-dark) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--primary-black);
  flex-shrink: 0;
}

.exp-modal-title-section {
  flex: 1;
}

.exp-modal-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-gold);
  margin: 0 0 8px 0;
  line-height: 1.2;
}

.exp-modal-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--primary-white);
  opacity: 0.8;
}

.exp-modal-company {
  font-weight: 600;
  color: var(--primary-gold);
}

.exp-modal-separator {
  color: rgba(59, 130, 246, 0.5);
}

.exp-modal-period {
  color: var(--primary-white);
}

.exp-modal-body {
  margin-bottom: 30px;
}

.exp-modal-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.exp-info-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: rgba(59, 130, 246, 0.05);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 10px;
}

.exp-info-item i {
  font-size: 24px;
  color: var(--primary-gold);
  flex-shrink: 0;
}

.exp-info-label {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.exp-info-item strong {
  display: block;
  font-size: 14px;
  color: var(--primary-white);
  font-weight: 600;
}

.exp-modal-preview {
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(59, 130, 246, 0.2);
  min-height: 300px;
  background: rgba(59, 130, 246, 0.02);
  position: relative;
}

.exp-preview-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  min-height: 300px;
}

.exp-preview-placeholder i {
  font-size: 64px;
  color: var(--primary-gold);
  margin-bottom: 20px;
  opacity: 0.5;
  animation: pulse 2s ease-in-out infinite;
}

.exp-preview-placeholder p {
  font-size: 18px;
  color: var(--primary-white);
  margin: 0 0 10px 0;
  font-weight: 600;
}

.exp-preview-note {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.exp-preview-iframe,
.exp-preview-image {
  width: 100%;
  height: 400px;
  border: none;
  display: block;
}

.exp-preview-image {
  object-fit: contain;
  background: #fff;
}

.exp-modal-description {
  margin-bottom: 30px;
}

.exp-modal-description h4 {
  font-size: 20px;
  color: var(--primary-gold);
  margin-bottom: 15px;
  font-weight: 600;
}

.exp-modal-description p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--primary-white);
  white-space: pre-line;
}

.exp-modal-skills {
  margin-bottom: 30px;
}

.exp-modal-skills h4 {
  font-size: 20px;
  color: var(--primary-gold);
  margin-bottom: 15px;
  font-weight: 600;
}

.exp-skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.exp-skills-tags .skill-tag {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--primary-gold);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}

.exp-modal-footer {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  padding-top: 20px;
  border-top: 1px solid rgba(59, 130, 246, 0.2);
}

.exp-modal-btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.exp-modal-btn-primary {
  background: linear-gradient(135deg, var(--primary-gold) 0%, var(--gold-dark) 100%);
  color: var(--primary-black);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.exp-modal-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
  color: var(--primary-black);
}

.exp-modal-btn-secondary {
  background: transparent;
  color: var(--primary-white);
  border: 1px solid rgba(59, 130, 246, 0.5);
  padding: 12px 20px;
}

.exp-modal-btn-secondary:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: var(--primary-gold);
  color: var(--primary-gold);
}

.exp-cta-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: linear-gradient(135deg, var(--primary-gold) 0%, var(--gold-dark) 100%);
  color: var(--primary-black);
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.exp-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.exp-view-details {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  color: var(--primary-gold);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.exp-view-details:hover {
  color: var(--gold-light);
  transform: translateX(5px);
}

/* Liens de plateforme animés dans les expériences */
.exp-card .description .platform-link {
  position: relative;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.exp-card .description .platform-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.exp-card .description .platform-link:hover {
  color: var(--gold-light) !important;
  transform: translateY(-2px);
  text-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}

.exp-card .description .platform-link:hover::before {
  opacity: 1;
}

.exp-card .description .platform-link i.bi-box-arrow-up-right {
  transition: transform 0.3s ease;
}

.exp-card .description .platform-link:hover i.bi-box-arrow-up-right {
  transform: translate(2px, -2px) scale(1.1);
}

.exp-card .description .platform-link i.bi-currency-bitcoin,
.exp-card .description .platform-link i.bi-graph-up {
  transition: transform 0.3s ease;
  display: inline-block;
}

.exp-card .description .platform-link:hover i.bi-currency-bitcoin,
.exp-card .description .platform-link:hover i.bi-graph-up {
  transform: rotate(10deg) scale(1.15);
  filter: drop-shadow(0 0 4px rgba(59, 130, 246, 0.6));
}

.exp-card .description .platform-link i.bi-patch-check-fill {
  transition: all 0.3s ease;
  animation: pulse-check 2s ease-in-out infinite;
}

@keyframes pulse-check {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

.exp-card .description .platform-link:hover i.bi-patch-check-fill {
  animation: none;
  transform: scale(1.2);
  filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.8));
}

/* Liens de plateforme animés dans les compétences */
.skill-item .skill-platform-link {
  position: relative;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-item .skill-platform-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.skill-item .skill-platform-link:hover {
  color: var(--gold-light) !important;
  transform: translateY(-2px);
  text-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}

.skill-item .skill-platform-link:hover::before {
  opacity: 1;
}

.skill-item .skill-platform-link i.bi-box-arrow-up-right {
  transition: transform 0.3s ease;
}

.skill-item .skill-platform-link:hover i.bi-box-arrow-up-right {
  transform: translate(2px, -2px) scale(1.1);
}

.skill-item .skill-platform-link i.bi-currency-bitcoin,
.skill-item .skill-platform-link i.bi-graph-up {
  transition: transform 0.3s ease;
  display: inline-block;
}

.skill-item .skill-platform-link:hover i.bi-currency-bitcoin,
.skill-item .skill-platform-link:hover i.bi-graph-up {
  transform: rotate(10deg) scale(1.15);
  filter: drop-shadow(0 0 4px rgba(59, 130, 246, 0.6));
}

.skill-item .skill-platform-link i.bi-patch-check-fill {
  transition: all 0.3s ease;
  animation: pulse-check 2s ease-in-out infinite;
}

.skill-item .skill-platform-link:hover i.bi-patch-check-fill {
  animation: none;
  transform: scale(1.2);
  filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.8));
}

.exp-view-details i {
  font-size: 16px;
}

/* Responsive Modal Expérience */
@media (max-width: 768px) {
  .exp-modal-container {
    width: 95%;
    max-height: 95vh;
  }

  .exp-modal-content {
    padding: 20px;
  }

  .exp-modal-header {
    flex-direction: column;
    gap: 15px;
  }

  .exp-modal-icon {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }

  .exp-modal-title {
    font-size: 20px;
  }

  .exp-modal-info {
    grid-template-columns: 1fr;
  }

  .exp-modal-footer {
    flex-direction: column;
  }

  .exp-modal-btn {
    width: 100%;
    justify-content: center;
  }
}
