/* Reset simple */
* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  background: #000;
  color: #f5f5f7;
  line-height: 1.6;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
}

a { color: #a855f7; text-decoration: none; transition: color 0.3s ease; }
a:hover { color: #d8a5ff; text-decoration: underline; }

.page {
  max-width: 100%;
  margin: 0;
  padding: 0;
  animation: pageEnter 1s ease-out forwards;
}

@keyframes pageEnter {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes bounceDown {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

.scroll-down-arrow {
  margin-top: 80px;
  display: flex;
  justify-content: center;
  animation: pageEnter 1s ease-out 0.3s forwards;
}

.arrow-circle {
  width: 50px;
  height: 50px;
  border: 2px solid #a855f7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a855f7;
  animation: bounceDown 2s ease-in-out infinite;
  cursor: pointer;
  transition: all 0.3s ease;
}

.arrow-circle:hover {
  border-color: #d8a5ff;
  color: #d8a5ff;
  transform: scale(1.1);
}

.scroll-up-arrow {
  margin: 30px 0 40px;
  display: flex;
  justify-content: center;
  animation: pageEnter 1s ease-out 0.3s forwards;
}

/* Hero façon Apple - fullwidth */
.hero {
  text-align: center;
  padding: 20px 40px 100px;
  animation: fadeInDown 0.8s ease-out;
  position: relative;
}

.hero-profile {
  margin-bottom: 10px;
}

.profile-pic {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.12);
  animation: fadeInDown 0.8s ease-out;
  transition: all 0.3s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.profile-pic:hover {
  border-color: rgba(41, 151, 255, 0.3);
  box-shadow: 0 20px 60px rgba(41, 151, 255, 0.2);
  transform: scale(1.05);
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: 11px;
  color: #86868b;
  margin-bottom: 16px;
  animation: fadeInDown 0.8s ease-out 0.1s both;
}

.hero-title {
  font-size: clamp(54px, 10vw, 100px);
  font-weight: 500;
  margin-bottom: 20px;
  line-height: 1.1;
  color: #f5f5f7;
  animation: heroGradientEffect 7s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s both, fadeInDown 0.8s ease-out 0.2s both;
  letter-spacing: -2px;
}

@keyframes heroGradientEffect {
  0% {
    background: linear-gradient(
      90deg,
      #a855f7 0%,
      #ec4899 25%,
      #06b6d4 50%,
      #a855f7 75%,
      #ec4899 100%
    );
    background-size: 300% 300%;
    background-position: 0% 50%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  7% {
    background: linear-gradient(
      90deg,
      #a855f7 0%,
      #ec4899 25%,
      #06b6d4 50%,
      #a855f7 75%,
      #ec4899 100%
    );
    background-size: 300% 300%;
    background-position: 10% 50%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  14% {
    background: linear-gradient(
      90deg,
      #a855f7 0%,
      #ec4899 25%,
      #06b6d4 50%,
      #a855f7 75%,
      #ec4899 100%
    );
    background-size: 300% 300%;
    background-position: 20% 50%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  21% {
    background: linear-gradient(
      90deg,
      #a855f7 0%,
      #ec4899 25%,
      #06b6d4 50%,
      #a855f7 75%,
      #ec4899 100%
    );
    background-size: 300% 300%;
    background-position: 30% 50%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  28% {
    background: linear-gradient(
      90deg,
      #a855f7 0%,
      #ec4899 25%,
      #06b6d4 50%,
      #a855f7 75%,
      #ec4899 100%
    );
    background-size: 300% 300%;
    background-position: 45% 50%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  35% {
    background: linear-gradient(
      90deg,
      #a855f7 0%,
      #ec4899 25%,
      #06b6d4 50%,
      #a855f7 75%,
      #ec4899 100%
    );
    background-size: 300% 300%;
    background-position: 70% 50%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  42% {
    background: linear-gradient(
      90deg,
      #a855f7 0%,
      #ec4899 25%,
      #06b6d4 50%,
      #a855f7 75%,
      #ec4899 100%
    );
    background-size: 300% 300%;
    background-position: 100% 50%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  47% {
    background: linear-gradient(
      90deg,
      #b05afa 0%,
      #ed7ea9 25%,
      #0dafaf 50%,
      #b05afa 75%,
      #ed7ea9 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  52% {
    background: linear-gradient(
      90deg,
      #b873fa 0%,
      #f084c0 25%,
      #1db8a6 50%,
      #b873fa 75%,
      #f084c0 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  57% {
    background: linear-gradient(
      90deg,
      #c18cfb 0%,
      #f2a1cc 25%,
      #3dc4ab 50%,
      #c18cfb 75%,
      #f2a1cc 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  64% {
    background: linear-gradient(
      90deg,
      #d5a7f0 0%,
      #f5b9dc 25%,
      #7dd3c0 50%,
      #d5a7f0 75%,
      #f5b9dc 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  70% {
    background: linear-gradient(
      90deg,
      #ddbce9 0%,
      #f8c5e5 25%,
      #a2dcc9 50%,
      #ddbce9 75%,
      #f8c5e5 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  77% {
    background: linear-gradient(
      90deg,
      #e8d5f7 0%,
      #fadce8 25%,
      #cff0ee 50%,
      #e8d5f7 75%,
      #fadce8 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  84% {
    background: linear-gradient(
      90deg,
      #f0e5fb 0%,
      #fce3f0 25%,
      #e0f7f5 50%,
      #f0e5fb 75%,
      #fce3f0 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  90% {
    background: linear-gradient(
      90deg,
      #f3eaf8 0%,
      #fce7f3 25%,
      #e7fdf9 50%,
      #f3eaf8 75%,
      #fce7f3 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  95% {
    background: linear-gradient(
      90deg,
      #f5eefh 0%,
      #fef0f6 25%,
      #f3fbfa 50%,
      #f5eefh 75%,
      #fef0f6 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  98% {
    background: linear-gradient(
      90deg,
      #f8f5fb 0%,
      #fef3f8 25%,
      #f5fefd 50%,
      #f8f5fb 75%,
      #fef3f8 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #f5f5f7;
  }
  100% {
    background: linear-gradient(
      90deg,
      #f5f5f7 0%,
      #f5f5f7 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: #f5f5f7;
    background-clip: text;
    color: #f5f5f7;
  }
}

.hero-subtitle {
  font-size: 24px;
  color: #d2d2d7;
  max-width: 760px;
  margin: 0 auto 28px;
  animation: fadeInDown 0.8s ease-out 0.3s both;
  font-weight: 300;
  line-height: 1.5;
}

.hero-tagline {
  font-size: 17px;
  color: #86868b;
  max-width: 600px;
  margin: 0 auto;
  animation: fadeInDown 0.8s ease-out 0.4s both;
  font-weight: 400;
}

.hero-badges {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.badge {
  border-radius: 999px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 13px;
  color: #f5f5f7;
  backdrop-filter: blur(20px);
  transition: all 0.3s ease;
  cursor: pointer;
  animation: fadeInUp 0.6s ease-out forwards;
  font-weight: 500;
}

.badge:nth-child(1) { animation-delay: 0.5s; }
.badge:nth-child(2) { animation-delay: 0.55s; }
.badge:nth-child(3) { animation-delay: 0.6s; }
.badge:nth-child(4) { animation-delay: 0.65s; }
.badge:nth-child(5) { animation-delay: 0.7s; }

.italic-text {
  font-style: italic;
  color: #d0d0d0;
  text-align: justify;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.badge:hover {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.1);
}

/* Carte principale avec glassmorphism */
.card {
  background: rgba(28, 28, 30, 0.5);
  backdrop-filter: blur(40px);
  border-radius: 28px;
  padding: 64px 56px;
  margin: 80px auto;
  max-width: 980px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 1;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.card:has(.map-container)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.7) 100%);
  pointer-events: none;
  z-index: 1;
}

.card:has(.diploma-container)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.7) 100%);
  pointer-events: none;
  z-index: 1;
}

.profile-card {
  overflow: hidden;
  position: relative;
}

.profile-card .card-header {
  position: relative;
  z-index: 2;
}

.card:has(.diploma-container) {
  overflow: hidden;
  position: relative;
}

.card:has(.diploma-container) .card-content {
  position: relative;
  z-index: 2;
}

.card-location-map {
  display: none;
}

.map-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  z-index: 0;
  opacity: 0.8;
}

.diploma-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  z-index: 0;
  opacity: 0.8;
  background-image: url('images/diplome.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.map-container .leaflet-container {
  border-radius: 28px;
  height: 100%;
}

/* Animation pulse pour le marqueur */
.pulse-marker {
  animation: pulseMarker 2s ease-in-out infinite !important;
}

@keyframes pulseMarker {
  0%, 100% {
    r: 6px;
    stroke-width: 2;
  }
  50% {
    r: 10px;
    stroke-width: 1;
    opacity: 0.5;
  }
}

/* Animation pulse pour le cercle de rayon */
.pulse-radius {
  animation: pulseRadius 3s ease-in-out infinite !important;
}

@keyframes pulseRadius {
  0%, 100% {
    stroke-width: 2;
    fill-opacity: 0.1;
  }
  50% {
    stroke-width: 4;
    fill-opacity: 0.35;
  }
}

.card-content {
  position: relative;
  z-index: 2;
}

@keyframes fadeInCard {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOutCard {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(20px);
  }
}

.card.fade-in {
  animation: fadeInCard 0.6s ease-out forwards;
  opacity: 1;
}

.card.fade-out {
  animation: fadeOutCard 0.4s ease-in forwards;
  opacity: 0;
}

@keyframes experienceFadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes experienceFadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(15px);
  }
}

.experience-item.fade-in {
  /* Fade-in disabled */
}

.experience-item.fade-out {
  /* Fade-out disabled */
}

.card:hover {
  background: rgba(45, 45, 48, 0.6);
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  transform: translateY(-4px);
}

.card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.card-title {
  font-size: 40px;
  font-weight: 700;
  transition: color 0.3s ease;
  letter-spacing: -1px;
}

.card:hover .card-title {
  color: #d8a5ff;
}

.card-subtitle {
  font-size: 16px;
  color: #86868b;
  transition: color 0.3s ease;
  font-weight: 400;
}

.card:hover .card-subtitle {
  color: #a8a8af;
}

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 60px;
}

@media (max-width: 768px) {
  .grid-2 { grid-template-columns: 1fr; }
  .card { padding: 40px 28px; margin: 60px auto; width: 100%; box-sizing: border-box; }
  
  /* Hero responsif */
  .hero-title { font-size: 36px; line-height: 1.2; }
  .hero-subtitle { font-size: 14px; }
  
  /* Nombres de background réduits */
  .competence-number-1::before,
  .competence-number-2::before,
  .competence-number-3::before { font-size: 200px; }
  
  .competence-number-1::before { top: -40px; left: -30px; }
  .competence-number-2::before { top: -80px; right: -20px; }
  .competence-number-3::before { top: -30px; left: 60px; }
  
  /* Temple réduit */
  .competence-diagram svg { max-width: 220px; }
  .competence-diagram { margin-top: -120px; }
  
  /* Expertise boxes adaptées */
  .expertise-box { padding: 20px 16px; font-size: 14px; }
  
  /* Experience items */
  .experience-item { padding: 20px 16px; }
  
  /* Polices */
  h2 { font-size: 22px; }
  p { font-size: 14px; }
}

@media (max-width: 600px) {
  .hero-title { font-size: 28px; }
  .hero-subtitle { font-size: 13px; }
  .card { padding: 32px 20px; margin: 40px auto; }
  
  /* Nombres très réduits */
  .competence-number-1::before,
  .competence-number-2::before,
  .competence-number-3::before { font-size: 140px; }
  
  .competence-number-1::before { top: -30px; left: -20px; }
  .competence-number-2::before { top: -60px; right: -15px; }
  .competence-number-3::before { top: -20px; left: 40px; }
  
  /* Temple très petit */
  .competence-diagram svg { max-width: 160px; }
  .competence-diagram { margin-top: -80px; }
  
  /* Expertise boxes */
  .expertise-box { padding: 16px 12px; font-size: 13px; }
  
  /* Cartes */
  h2 { font-size: 18px; }
  p { font-size: 13px; }
  
  /* Hero badges */
  .hero-badges { gap: 8px; }
  .badge { padding: 6px 12px; font-size: 12px; }
  
  /* Experience items */
  .experience-item { padding: 16px 12px; }
  .experience-item h3 { font-size: 16px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 24px; }
  .hero-subtitle { font-size: 12px; }
  .card { padding: 24px 16px; margin: 30px auto; border-radius: 16px; }
  
  /* Nombres très très réduits */
  .competence-number-1::before,
  .competence-number-2::before,
  .competence-number-3::before { font-size: 100px; }
  
  .competence-number-1::before { top: -20px; left: -15px; }
  .competence-number-2::before { top: -40px; right: -10px; }
  .competence-number-3::before { top: -15px; left: 30px; }
  
  /* Temple très petit */
  .competence-diagram svg { max-width: 120px; }
  .competence-diagram { margin-top: -60px; }
  
  /* Expertise boxes compactes */
  .expertise-box { padding: 14px 10px; font-size: 12px; }
  
  /* Polices minimales */
  h2 { font-size: 16px; }
  h3 { font-size: 14px; }
  p { font-size: 12px; }
  
  /* Experience items */
  .experience-item { padding: 14px 10px; }
  .experience-item h3 { font-size: 14px; }
  
  /* Maps */
  .map-container { height: 300px; }
}

.section-label {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12px;
  color: #86868b;
  margin-bottom: 16px;
  transition: color 0.3s ease;
  font-weight: 600;
  position: relative;
  display: inline-block;
}

/* Numéros en background pour les compétences */
.competence-number-1::before,
.competence-number-2::before,
.competence-number-3::before {
  position: absolute;
  font-size: 400px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.08);
  z-index: 0;
  line-height: 1;
  overflow: hidden;
}

.competence-number-1::before {
  content: "1";
  top: -80px;
  left: -60px;
}

.competence-number-2::before {
  content: "2";
  top: -160px;
  right: -40px;
}

.competence-number-3::before {
  content: "3";
  top: -60px;
  left: 120px;
}

.competence-number-1,
.competence-number-2,
.competence-number-3 {
  position: relative;
  z-index: 1;
}

/* Diagramme des 3 piliers */
.competence-diagram {
  margin-top: -200px;
  margin-right: 0px;
  padding: 0;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}

.competence-diagram svg {
  width: 100%;
  max-width: 380px;
  height: auto;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 24px;
  transition: color 0.3s ease;
  letter-spacing: -0.5px;
}

.section-text {
  font-size: 17px;
  color: #d2d2d7;
  line-height: 1.8;
  font-weight: 400;
}

/* Listes stylées */
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.pill {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  color: #d2d2d7;
  transition: all 0.3s ease;
  cursor: pointer;
}

.pill:hover {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.3);
  color: #d8a5ff;
  transform: translateY(-2px);
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.expertise-box {
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.25);
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
}

.expertise-title {
  font-size: 13px;
  font-weight: 500;
  color: #d8a5ff;
  line-height: 1.3;
}

.expertise-box:hover {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.15);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 12px;
}

.kv {
  font-size: 14px;
  color: #d2d2d7;
  transition: all 0.3s ease;
}

.kv-label {
  color: #86868b;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .14em;
  display: block;
  margin-bottom: 4px;
}

/* Expériences façon sections Apple avec timeline */
.experience-section {
  margin-top: 60px;
}

.timeline-container {
  position: relative;
  padding-left: 40px;
}

.timeline-line {
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #a855f7 0%, rgba(168, 85, 247, 0.3) 50%, transparent 100%);
}

.timeline-dot {
  position: absolute;
  left: -13px;
  top: 40px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #000;
  border: 3px solid #a855f7;
  transition: all 0.3s ease;
  box-shadow: 0 0 0 8px rgba(0, 0, 0, 0.8), 0 0 20px rgba(41, 151, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.timeline-dot::before {
  content: attr(data-year);
  position: absolute;
  left: 100%;
  margin-left: 16px;
  font-size: 12px;
  font-weight: 600;
  color: #a855f7;
  white-space: nowrap;
  top: 50%;
  transform: translateY(-50%);
}

.experience-item:hover .timeline-dot {
  box-shadow: 0 0 0 8px rgba(0, 0, 0, 0.8), 0 0 20px rgba(168, 85, 247, 0.5);
}

.experience-item {
  padding: 32px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  opacity: 1;
}

.experience-item:not(.active):hover {
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.15);
  transition: all 0.3s ease;
}

.experience-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background: linear-gradient(180deg, rgba(41, 151, 255, 0.3), transparent);
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.experience-item:hover::before {
  opacity: 0;
}

.experience-item.expanded .exp-details {
  display: block;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 500px;
  }
}

.experience-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 8px;
  align-items: flex-start;
  padding: 32px;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  min-height: 220px;
  transition: all 0.3s ease;
}

.experience-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.5) 100%);
  z-index: 1;
}

.exp-title,
.exp-meta {
  position: relative;
  z-index: 2;
}

.exp-title {
  flex: 1;
  min-width: 200px;
}

.exp-meta {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
}

.exp-title {
  font-size: 19px;
  font-weight: 700;
  color: #f5f5f7;
  transition: color 0.3s ease;
  letter-spacing: -0.3px;
}

.experience-item:hover .exp-title {
  color: #a855f7;
}

.exp-meta {
  font-size: 11px;
  color: #000;
  transition: all 0.3s ease;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: white;
  padding: 6px 10px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  height: 48px;
  white-space: nowrap;
}

.company-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.exp-company {
  font-size: 15px;
  color: #d2d2d7;
  margin-bottom: 12px;
  font-weight: 400;
}

.exp-bullets {
  font-size: 15px;
  color: #d2d2d7;
  list-style: none;
  padding-left: 0;
  margin-top: 8px;
  font-weight: 400;
  line-height: 1.7;
}

.exp-bullets li {
  margin-bottom: 10px;
  line-height: 1.6;
  opacity: 1;
  transition: opacity 0.3s ease;
}

@keyframes fadeInList {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.exp-bullets li::before {
  content: "▸";
  color: #a855f7;
  margin-right: 10px;
  font-weight: bold;
}

.exp-project {
  background: rgba(168, 85, 247, 0.08);
  border-left: 3px solid #a855f7;
  padding: 16px 20px;
  margin: 20px 0;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.7;
  color: #d2d2d7;
  font-style: italic;
}

.exp-project strong {
  color: #a855f7;
  font-style: normal;
  font-weight: 600;
}

.exp-details {
  display: none;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.exp-gallery {
  display: none;
}

.exp-photo {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 16px;
  border: 2px solid rgba(41, 151, 255, 0.15);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  position: relative;
  overflow: hidden;
  filter: url(#noise-filter);
}

.exp-photo::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.025),
      rgba(0, 0, 0, 0.025) 1px,
      transparent 1px,
      transparent 2px
    );
  opacity: 0.6;
  pointer-events: none;
  mix-blend-mode: overlay;
}

.exp-photo:hover::after {
  opacity: 0.6;
}

@keyframes expandPulse {
  0% {
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0);
  }
  50% {
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.25);
  }
  100% {
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0);
  }
}



.experience-item.active {
  animation: expandPulse 0.6s ease-out forwards;
}

/* Footer contact */
.footer {
  margin-top: 100px;
  padding: 80px 40px;
  text-align: center;
  color: #86868b;
  font-size: 15px;
  animation: fadeInUp 0.6s ease-out;
  font-weight: 400;
}

.footer a {
  color: #f5f5f7;
  font-weight: 600;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: #55b0ff;
}

/* Statistiques animées */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.stat {
  text-align: center;
  padding: 40px 28px;
  background: rgba(255,255,255,0.02);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.05);
  transition: all 0.3s ease;
}

.stat:hover {
  background: rgba(41, 151, 255, 0.1);
  border-color: rgba(41, 151, 255,0.2);
  transform: translateY(-4px);
}

.stat-number {
  font-size: 56px;
  font-weight: 800;
  color: #a855f7;
  margin-bottom: 12px;
  counter-increment: stat-counter;
  letter-spacing: -2px;
}

.stat-label {
  font-size: 13px;
  color: #86868b;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 600;
}

/* Boutons et interactions */
.cta-button {
  display: inline-block;
  padding: 10px 20px;
  background: #a855f7;
  color: white;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 16px;
}

.cta-button:hover {
  background: #55b0ff;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(41, 151, 255, 0.3);
}

/* Scroll indicator */
.scroll-indicator {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 12px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 6px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.scroll-indicator.visible {
  opacity: 1;
}

.scroll-indicator::after {
  content: '';
  width: 2px;
  height: 6px;
  background: rgba(255,255,255,0.4);
  border-radius: 999px;
  animation: scrollBounce 1.5s infinite;
}

@keyframes scrollBounce {
  0%, 100% {
    opacity: 1;
    transform: translateY(0);
  }
  50% {
    opacity: 0.5;
    transform: translateY(6px);
  }
}

@media (max-width: 768px) {
  .scroll-indicator {
    display: none;
  }
}

/* ===== IMPRESSION / PRINT CSS ===== */
@media print {
  /* Cacher les éléments non-essentiels */
  .scroll-down-arrow,
  .scroll-indicator,
  .hero-profile {
    display: none !important;
  }
  
  /* Fond blanc pour l'impression */
  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
  }
  
  /* Cartes lisibles en noir et blanc */
  .card {
    background: #fff;
    border: 1px solid #ccc;
    box-shadow: none;
    page-break-inside: avoid;
    margin: 20px 0;
    padding: 20px;
  }
  
  /* En-têtes visibles */
  .hero {
    background: #fff;
    color: #000;
    margin-bottom: 30px;
    page-break-after: avoid;
  }
  
  .hero-title {
    color: #000;
    animation: none;
  }
  
  /* Experience items lisibles */
  .experience-item {
    page-break-inside: avoid;
    margin-bottom: 15px;
    border: none;
    padding: 10px 0;
  }
  
  /* Liens visibles */
  a {
    color: #000;
    text-decoration: underline;
  }
  
  /* Badges visibles mais simples */
  .badge {
    display: inline-block;
    border: 1px solid #000;
    page-break-inside: avoid;
    margin: 3px 3px 3px 0;
    padding: 3px 6px;
  }
  
  /* Images de fond cachées */
  .map-container,
  .diploma-container {
    display: none;
  }
  
  /* Marges de page */
  @page {
    margin: 2cm;
  }
  
  /* Pas d'animation */
  * {
    animation: none !important;
    transition: none !important;
  }
}
